更新工单逻辑
This commit is contained in:
@@ -14,6 +14,11 @@ namespace ZR.Service.mes.pro.IService
|
||||
|
||||
public (List<ProWorkplan>,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<ProWorkplan> GetProWorkplanById(string id);
|
||||
|
||||
public int AddWorkPlan(ProWorkplan proWorkplan);
|
||||
@@ -22,6 +27,11 @@ namespace ZR.Service.mes.pro.IService
|
||||
|
||||
public int DeleteWorkPlan(string id);
|
||||
|
||||
/// <summary>
|
||||
/// 根据生产计划ID,获取工单列表
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <returns></returns>
|
||||
public List<ProWorkorder> GetWorkorderList(string id);
|
||||
|
||||
public int AddWorkorder(ProWorkorder proWorkorder);
|
||||
|
||||
@@ -32,6 +32,7 @@ namespace ZR.Service.mes.pro
|
||||
return (proWorkplanList, totalCount);
|
||||
}
|
||||
|
||||
|
||||
public List<ProWorkplan> GetProWorkplanById(string id)
|
||||
{
|
||||
return Context.Queryable<ProWorkplan>().Where(it => it.Id == id).ToList();
|
||||
|
||||
Reference in New Issue
Block a user