69 lines
2.1 KiB
C#
69 lines
2.1 KiB
C#
using Model.DBModel;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Drawing;
|
||
using System.IO;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
using ZR.Model.mes.pro;
|
||
using ZR.Model.MES.op.DTO;
|
||
using ZR.Model.MES.pro.DTO;
|
||
using ZR.Model.mes.pro;
|
||
|
||
namespace ZR.Service.mes.pro.IService
|
||
{
|
||
public interface IProWorkplanServiceV2
|
||
{
|
||
|
||
public (List<ProWorklplanDto>, int) GetAllData(int pageNum, int pageSize, int year, int week, string partNumber, string color);
|
||
|
||
/// <summary>
|
||
/// 根据计划ID,获取对象
|
||
/// </summary>
|
||
/// <param name="id"></param>
|
||
/// <returns></returns>
|
||
public List<ProWorklplan_v2> GetProWorkplanById(string id);
|
||
|
||
public int AddWorkPlan(ProWorklplan_v2 proWorkplan);
|
||
|
||
public int UpdateWorkPlan(ProWorklplan_v2 proWorkplan);
|
||
|
||
public int DeleteWorkPlan(string id);
|
||
public int DeleteAllWorkPlan(int year,int week);
|
||
|
||
public string ImportExceldata(List<ProWorklplan_v2> proWorklplans);
|
||
|
||
public (string,string) ExportExceldata(int year, int week);
|
||
|
||
/// <summary>
|
||
/// 生产计划字段数据检查
|
||
/// </summary>
|
||
/// <param name="proWorkplan">计划字段</param>
|
||
/// <returns>0-正常 1-物料号不存在 2-物料号与描述不匹配</returns>
|
||
public int CheckWorkPlan(ProWorklplan_v2 proWorkplan);
|
||
|
||
public WorkplanSummaryDto GetWeekSummary(int year ,int week);
|
||
|
||
/// <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);
|
||
}
|
||
}
|