Files
shanghaigangxiangtuzhuangMES/ZR.Service/mes/pro/IService/IProWorkplanServiceV2.cs

60 lines
1.9 KiB
C#
Raw Normal View History

2024-01-13 16:14:34 +08:00
using Model.DBModel;
using ZR.Model.mes.pro;
2024-01-20 14:37:32 +08:00
using ZR.Model.MES.pro.DTO;
2024-01-13 16:14:34 +08:00
namespace ZR.Service.mes.pro.IService
{
public interface IProWorkplanServiceV2
{
2024-05-31 13:22:07 +08:00
public (List<ProWorklplanDto>, int) GetAllData(int pageNum, int pageSize, int year, int week, string partNumber, string color);
2024-01-13 16:14:34 +08:00
/// <summary>
/// 根据计划ID获取对象
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
2024-01-22 15:22:56 +08:00
public List<ProWorklplan_v2> GetProWorkplanById(string id);
2024-01-13 16:14:34 +08:00
2024-01-15 20:04:50 +08:00
public int AddWorkPlan(ProWorklplan_v2 proWorkplan);
2024-01-13 16:14:34 +08:00
2024-01-15 20:04:50 +08:00
public int UpdateWorkPlan(ProWorklplan_v2 proWorkplan);
2024-01-13 16:14:34 +08:00
public int DeleteWorkPlan(string id);
2024-06-07 11:04:26 +08:00
public int DeleteAllWorkPlan(int year, int week);
2024-01-20 14:37:32 +08:00
2024-06-07 11:04:26 +08:00
public string ImportExceldata(List<ProWorklplan_v2> proWorklplans);
2024-01-20 14:37:32 +08:00
2024-06-07 11:04:26 +08:00
public (string, string) ExportExceldata(int year, int week);
2024-01-20 14:37:32 +08:00
2024-05-31 13:22:07 +08:00
/// <summary>
/// 生产计划字段数据检查
/// </summary>
/// <param name="proWorkplan">计划字段</param>
/// <returns>0-正常 1-物料号不存在 2-物料号与描述不匹配</returns>
public int CheckWorkPlan(ProWorklplan_v2 proWorkplan);
2024-01-20 14:37:32 +08:00
2024-06-07 11:04:26 +08:00
public WorkplanSummaryDto GetWeekSummary(int year, int week);
2024-01-13 16:14:34 +08:00
/// <summary>
/// 根据生产计划ID获取工单列表
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public List<ProWorkorder> GetWorkorderListByPlanId(string id);
/// <summary>
/// 根据工单ID获取工单
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public List<ProWorkorder> GetWorkorderListById(string id);
public int AddWorkorder(ProWorkorder proWorkorder);
public int UpdateWorkorder(ProWorkorder proWorkorder);
public int DeleteWorkorder(string id);
}
}