1
This commit is contained in:
@@ -1008,16 +1008,22 @@ namespace Tnb.ProductionMgr
|
||||
var taskReportLogs = new List<PrdMoTask>();
|
||||
var prdTaskList = await db.Queryable<PrdMoTask>().Where(it => input.TaskIds.Contains(it.id)).ToListAsync();
|
||||
if (prdTaskList?.Count > 0)
|
||||
{
|
||||
/*
|
||||
if (prdTaskList.Where(p => p.mo_task_status == "Closed").Count() > 0 && status == "InProgress")
|
||||
{
|
||||
foreach (var task in prdTaskList.Where(p => p.mo_task_status == "Closed").ToList())
|
||||
{
|
||||
{
|
||||
#region 质检模块
|
||||
//质检
|
||||
if (prdTaskList.Where(p => p.mo_task_status == "Pause").Count() > 0 && status == "InProgress")
|
||||
{
|
||||
foreach (var task in prdTaskList.Where(p => p.mo_task_status == "Pause").ToList())
|
||||
{
|
||||
TriggerPlanEntity entity = new TriggerPlanEntity();
|
||||
entity.materialid = task.material_id;
|
||||
entity.processid = task.process_id;
|
||||
entity.workid = task.workstation_id;
|
||||
entity.triggerevent = EnumTriggerEvent.首件检生产任务暂停;
|
||||
await _qcCheckPlanService.CreateTask(entity);
|
||||
}
|
||||
}
|
||||
*/
|
||||
#endregion
|
||||
prdTaskList.ForEach(x => x.mo_task_status = status);
|
||||
row = await db.Updateable(prdTaskList).ExecuteCommandAsync();
|
||||
if (row > 0)
|
||||
|
||||
Reference in New Issue
Block a user