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); }