排产工单排序
This commit is contained in:
@@ -16,5 +16,7 @@ namespace ZR.Service.mes.pro.IService
|
||||
public int SetWorkorderSechedule(string id, DateTime arrange_starttime, DateTime arrange_endtime);
|
||||
|
||||
public int ResetWorkorderSechedule(string id);
|
||||
|
||||
public int SortWorkorderSchedule(string id, int sort);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,5 +49,12 @@ namespace ZR.Service.mes.pro
|
||||
.ExecuteCommand();
|
||||
}
|
||||
|
||||
public int SortWorkorderSchedule(string id, int order)
|
||||
{
|
||||
return Context.Updateable<ProWorkorder>()
|
||||
.SetColumns(it => it.Order == order)
|
||||
.Where(it => it.Id.Equals(id))
|
||||
.ExecuteCommand();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user