出货报工
This commit is contained in:
@@ -73,6 +73,14 @@ public class ProReportworkService : BaseService<ProReportwork01>, IProReportwork
|
||||
/// <returns></returns>
|
||||
public ProReportwork01 AddProReportwork(ProReportwork01 model)
|
||||
{
|
||||
//出货工序
|
||||
if(model.ProcessId== 90&& !string.IsNullOrEmpty(model.Workorder))
|
||||
{
|
||||
Context.Updateable<ProWorkorder>()
|
||||
.SetColumns(it => it.ShipmentNum == model.FinishNum)
|
||||
.Where(it => it.Workorder == model.Workorder).ExecuteCommand();
|
||||
}
|
||||
|
||||
return Insertable(model).ExecuteReturnEntity();
|
||||
}
|
||||
|
||||
@@ -83,6 +91,13 @@ public class ProReportworkService : BaseService<ProReportwork01>, IProReportwork
|
||||
/// <returns></returns>
|
||||
public int UpdateProReportwork(ProReportwork01 model)
|
||||
{
|
||||
//出货工序
|
||||
if (model.ProcessId == 90 && !string.IsNullOrEmpty(model.Workorder))
|
||||
{
|
||||
Context.Updateable<ProWorkorder>()
|
||||
.SetColumns(it => it.ShipmentNum == model.FinishNum)
|
||||
.Where(it => it.Workorder == model.Workorder).ExecuteCommand();
|
||||
}
|
||||
return Update(model, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user