|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
using Admin.Core.Common;
|
|
|
|
|
using Admin.Core.IService;
|
|
|
|
|
using Admin.Core.Model;
|
|
|
|
|
using Admin.Core.Service;
|
|
|
|
|
using Aucma.Core.HwPLc;
|
|
|
|
|
using Aucma.Core.Scanner;
|
|
|
|
|
using log4net;
|
|
|
|
@ -10,8 +9,6 @@ using StackExchange.Profiling.Internal;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Printing;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
@ -33,13 +30,14 @@ namespace Aucma.Core.Palletiz.Business
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 初始化对象
|
|
|
|
|
private static readonly log4net.ILog logHelper = LogManager.GetLogger(typeof(InstoreBusiness));
|
|
|
|
|
private readonly IBaseSpaceInfoServices? _baseSpaceInfoServices;
|
|
|
|
|
private readonly ICodeBindingRecordServices? _codeBindingServices;
|
|
|
|
|
private readonly IRecordInStoreServices? _recordInstoreServices;
|
|
|
|
|
private readonly IRecordInStoreServices? _recordInstoreServices;
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 构造函数
|
|
|
|
|
public InstoreBusiness()
|
|
|
|
|
{
|
|
|
|
|
_baseSpaceInfoServices = App.ServiceProvider.GetService<IBaseSpaceInfoServices>();
|
|
|
|
@ -48,12 +46,8 @@ namespace Aucma.Core.Palletiz.Business
|
|
|
|
|
MvCodeHelper.HandlePalletizDelegateEvent += ScannerInStore;//注册扫码器扫码后业务处理事件
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region 接口引用
|
|
|
|
|
private static readonly log4net.ILog logHelper = LogManager.GetLogger(typeof(InstoreBusiness));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 变量定义
|
|
|
|
|
public readonly List<ScannerModel> allScanners = Appsettings.app<ScannerModel>("ScannerServer").ToList();
|
|
|
|
|
public readonly string storeCodeA = Appsettings.app("StoreInfo", "PalletizStoreCodeA");//分垛库A
|
|
|
|
@ -83,8 +77,6 @@ namespace Aucma.Core.Palletiz.Business
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region Test
|
|
|
|
|
[Obsolete("正式环境下使用ScannerInStore(string SNCode,string IP)")]
|
|
|
|
|
public void test()
|
|
|
|
|