From 66f1e0dd8a09433dca2c11f33e5738c1df95d18d Mon Sep 17 00:00:00 2001 From: liuwf Date: Wed, 27 Dec 2023 09:47:06 +0800 Subject: [PATCH] change. --- Aucma.Scada.Business/OutStoreTaskHandle.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Aucma.Scada.Business/OutStoreTaskHandle.cs b/Aucma.Scada.Business/OutStoreTaskHandle.cs index e8f1cf1f..f61abe50 100644 --- a/Aucma.Scada.Business/OutStoreTaskHandle.cs +++ b/Aucma.Scada.Business/OutStoreTaskHandle.cs @@ -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(); - + _codeBindingRecordServices = registerServices.GetService(); 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); }