shgx_tz_mom/ZR.Service/mes/pro/IService/IProWorkplanServiceV2.cs

69 lines
2.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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);
}
}