save-备份

collectionStore
liuwf 9 months ago
parent 66f1e0dd8a
commit 3de61d612e

@ -40,7 +40,6 @@ namespace Aucma.Scada.Business
private InStoreTaskHandle taskHandle = InStoreTaskHandle.Instance;
#endregion
#region 接口引用
@ -150,6 +149,7 @@ namespace Aucma.Scada.Business
var result = CreateInStoreTask(spaceInfo, materialCode); //创建入库任务
if (result)
{
#region 2023-12-15 更新过点数据,插入记录到MATERIAL_COMPLETION表
PrintBarCode print =_printBarCodeServices.query(materialCode);
string planCode = _productPlanInfoServices.GetPlanCode(print.OrderCode, appConfig.stationCode);
@ -456,7 +456,7 @@ namespace Aucma.Scada.Business
string result = string.Empty;
if (!string.IsNullOrEmpty(materialCode))
{
result = materialCode.Substring(2, 10);
result = materialCode.Substring(7, 10);
}
return result;

@ -156,7 +156,6 @@ namespace Aucma.Scada.Business
//写入任务号
_plc.writeStringByAddress(plcConfig.in_shell_task, string.Empty);
isFlag = false;
WritePlc(taskInfo.storeCode, taskInfo.spaceCode, false);
//ReadShellFinish_InStore(taskCode);

@ -248,6 +248,10 @@ namespace Aucma.Scada.Business
PrintLogInfoMessage("出库任务创建失败");
}
}
else
{
PrintLogInfoMessage("出库任务创建失败,货道明细为空");
}
}
catch (Exception ex)
{

@ -174,15 +174,14 @@ namespace Aucma.Scada.Business
_plc.writeInt32ByAddress(plcConfig.out_shell_amount, 0);
//写入应答字
_plc.writeInt32ByAddress(plcConfig.out_shell_answer, 0);
//写入任务号
_plc.writeStringByAddress(plcConfig.out_shell_task, string.Empty);
isFlag = false;
//ReadShellFinish_OutStore(taskInfo.taskCode);
OutStoreAnswerEvent?.Invoke(appConfig.shellStoreCode, taskInfo.taskCode);
//shellTaskInfos.Add(taskInfo);
}
Thread.Sleep(1000);
@ -234,7 +233,7 @@ namespace Aucma.Scada.Business
isFlag = false;
//shellTaskInfos.Remove(taskInfo);
}
Thread.Sleep(1000);

Loading…
Cancel
Save