collectionStore
liuwf 1 year ago
parent 36dc552505
commit 66f1e0dd8a

@ -42,6 +42,8 @@ namespace Aucma.Scada.Business
private RegisterServices registerServices = RegisterServices.Instance;
private IRealTaskInfoService _taskInfoService;
private ICodeBindingRecordServices _codeBindingRecordServices;
#endregion
#region 私有变量
@ -90,7 +92,7 @@ namespace Aucma.Scada.Business
{
_plcDictionary = _pool.GetAll();
_taskInfoService = registerServices.GetService<IRealTaskInfoService>();
_codeBindingRecordServices = registerServices.GetService<ICodeBindingRecordServices>();
RealReadShellFinish();
RealReadLinerFinish();
@ -492,7 +494,7 @@ namespace Aucma.Scada.Business
if (shellTask != null && linerTask != null)
{
Console.WriteLine($"绑定箱壳:{shellTask.materialCode};内胆:{linerTask.materialCode};条码");
_codeBindingRecordServices.BindingCode(shellTask.materialCode, linerTask.materialCode);
shellTaskInfos.Remove(shellTask);
linerTaskInfos.Remove(linerTask);
}

Loading…
Cancel
Save