|
|
@ -464,8 +464,8 @@ namespace Aucma.Scada.Business
|
|
|
|
var item = info[i];
|
|
|
|
var item = info[i];
|
|
|
|
ReadLinerFinish_OutStore(item);
|
|
|
|
ReadLinerFinish_OutStore(item);
|
|
|
|
Console.WriteLine($"内胆任务:{item.taskCode};物料:{item.materialCode};出库完成");
|
|
|
|
Console.WriteLine($"内胆任务:{item.taskCode};物料:{item.materialCode};出库完成");
|
|
|
|
item.taskStatus = 3;
|
|
|
|
// item.taskStatus = 3;
|
|
|
|
linerTaskInfos.Add(item);
|
|
|
|
// linerTaskInfos.Add(item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -483,9 +483,12 @@ namespace Aucma.Scada.Business
|
|
|
|
{
|
|
|
|
{
|
|
|
|
while (true)
|
|
|
|
while (true)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var shellTasks = shellTaskInfos.Where(x => x.taskStatus == 3).ToList();
|
|
|
|
//var shellTasks = shellTaskInfos.Where(x => x.taskStatus == 3).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//var linerTasks = linerTaskInfos.Where(x => x.taskStatus == 3).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
var linerTasks = linerTaskInfos.Where(x => x.taskStatus == 3).ToList();
|
|
|
|
var shellTasks = GetTaskInfoByTaskStatus(appConfig.shellStoreCode,3);
|
|
|
|
|
|
|
|
var linerTasks = GetTaskInfoByTaskStatus(appConfig.linerStoreCode, 3);
|
|
|
|
|
|
|
|
|
|
|
|
RealTaskInfo shellTask = null;
|
|
|
|
RealTaskInfo shellTask = null;
|
|
|
|
RealTaskInfo linerTask = null;
|
|
|
|
RealTaskInfo linerTask = null;
|
|
|
@ -504,11 +507,14 @@ namespace Aucma.Scada.Business
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Console.WriteLine($"绑定箱壳:{shellTask.materialCode};内胆:{linerTask.materialCode};条码");
|
|
|
|
Console.WriteLine($"绑定箱壳:{shellTask.materialCode};内胆:{linerTask.materialCode};条码");
|
|
|
|
_codeBindingRecordServices.BindingCode(shellTask.materialCode, linerTask.materialCode);
|
|
|
|
_codeBindingRecordServices.BindingCode(shellTask.materialCode, linerTask.materialCode);
|
|
|
|
shellTaskInfos.Remove(shellTask);
|
|
|
|
|
|
|
|
linerTaskInfos.Remove(linerTask);
|
|
|
|
_taskInfoService.DeleteTaskInfoById(shellTask.objId);
|
|
|
|
|
|
|
|
_taskInfoService.DeleteTaskInfoById(linerTask.objId);
|
|
|
|
|
|
|
|
// shellTaskInfos.Remove(shellTask);
|
|
|
|
|
|
|
|
// linerTaskInfos.Remove(linerTask);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Thread.Sleep(1000);
|
|
|
|
Thread.Sleep(2000);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|