100 lines
3.0 KiB
C#
100 lines
3.0 KiB
C#
using DOAN.Model;
|
|
using DOAN.Model.MES.product;
|
|
using DOAN.Model.MES.product.Dto;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DOAN.Service.MES.product.IService
|
|
{
|
|
public interface IProweekplanManageService
|
|
{
|
|
/// <summary>
|
|
/// 查询周计划
|
|
/// </summary>
|
|
/// <param name="weekplanQuery"></param>
|
|
/// <returns></returns>
|
|
PagedInfo<ProWeeklyPlanChildDateDto> SearchWeekplan(WeekplanQueryDto weekplanQuery);
|
|
|
|
/// <summary>
|
|
/// Excel导入
|
|
/// </summary>
|
|
/// <param name="formFile"></param>
|
|
/// <param name="username"></param>
|
|
/// <returns></returns>
|
|
int ImportExcel(IFormFile formFile, string username);
|
|
|
|
// TODO
|
|
/// <summary>
|
|
/// ERP导入
|
|
/// </summary>
|
|
/// <param name="formFile"></param>
|
|
/// <param name="username"></param>
|
|
/// <returns></returns>
|
|
int ImportERP();
|
|
|
|
/// <summary>
|
|
/// 预览日计划
|
|
/// </summary>
|
|
/// <param name="datePlanRequest"></param>
|
|
/// <returns></returns>
|
|
PagedInfo<ProWorkorder> PreviewDatePlan(DatePlanRequest datePlanRequest);
|
|
|
|
/// <summary>
|
|
/// 修改周计划
|
|
/// </summary>
|
|
/// <param name="updateWeekPlanDto"></param>
|
|
/// <returns></returns>
|
|
int UpdateWeekPlan(ProWeeklyPlanAndDateDto updateWeekPlanDto);
|
|
|
|
// TODO
|
|
/// <summary>
|
|
/// 是否关联(库存、效率、箱标签)
|
|
/// </summary>
|
|
/// <param name="inventory"></param>
|
|
/// <param name="efficiency"></param>
|
|
/// <param name="boxLabel"></param>
|
|
/// <returns></returns>
|
|
int IsAssociateOthers(int inventory, int efficiency, int boxLabel);
|
|
|
|
|
|
/// <summary>
|
|
/// 导出日计划
|
|
/// </summary>
|
|
/// <param name="year"></param>
|
|
/// <param name="week"></param>
|
|
/// <param name="dayofweek"></param>
|
|
/// <returns></returns>
|
|
(byte[] fileBytes, string fileName) ExportWeekDatePlan(int year, int week, string dayofweek);
|
|
|
|
/// <summary>
|
|
/// 导出周计划
|
|
/// </summary>
|
|
/// <param name="year"></param>
|
|
/// <param name="week"></param>
|
|
/// <returns></returns>
|
|
(byte[] fileBytes, string fileName) ExportWeekOrderPlan(int year, int week);
|
|
|
|
/// <summary>
|
|
/// 更新实际组装进度
|
|
/// </summary>
|
|
/// <param name="year"></param>
|
|
/// <param name="week"></param>
|
|
/// <returns></returns>
|
|
int UpdateActualAssemblyProgress(int year, int week);
|
|
|
|
//void ExportWeekDatePlan(int year, int week, int dayofweek);
|
|
|
|
/// <summary>
|
|
/// 导出日计划
|
|
/// </summary>
|
|
/// <param name="chooseDate"></param>
|
|
/// <returns></returns>
|
|
(byte[] fileBytes, string fileName) ExportDatePlan(string chooseDate);
|
|
}
|
|
}
|