|
|
|
@ -101,8 +101,7 @@ namespace Aucma.Core.BoxFoam.Business
|
|
|
|
|
private List<BaseSpaceInfo> allSpaces = null;
|
|
|
|
|
private List<SpaceAddress> spaceAddresses = new List<SpaceAddress>();
|
|
|
|
|
private SemaphoreSlim _lock = new SemaphoreSlim(1);
|
|
|
|
|
private static int AAA = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void init()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
@ -111,7 +110,12 @@ namespace Aucma.Core.BoxFoam.Business
|
|
|
|
|
{
|
|
|
|
|
spaceAddresses.Add(spaceConfig.GetSpaceAddress(storeCode, space.SpaceCode));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 模拟入库
|
|
|
|
|
Task.Run(() =>
|
|
|
|
|
{
|
|
|
|
|
Thread.Sleep(2000);
|
|
|
|
|
InStore("B24010181060282920011");
|
|
|
|
|
});
|
|
|
|
|
//实时监测入库任务下发和入库任务完成
|
|
|
|
|
StartPassDownAndRealInstoreFinish();
|
|
|
|
|
|
|
|
|
@ -278,16 +282,16 @@ namespace Aucma.Core.BoxFoam.Business
|
|
|
|
|
if (result)
|
|
|
|
|
{
|
|
|
|
|
#region 更新过点数据
|
|
|
|
|
MaterialCompletion completion = new MaterialCompletion();
|
|
|
|
|
completion.OrderCode = print.OrderCode;
|
|
|
|
|
completion.MaterialBarcode = materialBarCode;
|
|
|
|
|
completion.MaterialCode = print.MaterialCode;
|
|
|
|
|
completion.MaterialName = print.MaterialName;
|
|
|
|
|
completion.StationName = "1003";
|
|
|
|
|
completion.CompleteDate = DateTime.Now;
|
|
|
|
|
await _iMaterialCompletionServices.AddAsync(completion);
|
|
|
|
|
//MaterialCompletion completion = new MaterialCompletion();
|
|
|
|
|
//completion.OrderCode = print.OrderCode;
|
|
|
|
|
//completion.MaterialBarcode = materialBarCode;
|
|
|
|
|
//completion.MaterialCode = print.MaterialCode;
|
|
|
|
|
//completion.MaterialName = print.MaterialName;
|
|
|
|
|
//completion.StationName = "1003";
|
|
|
|
|
//completion.CompleteDate = DateTime.Now;
|
|
|
|
|
//await _iMaterialCompletionServices.AddAsync(completion);
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
// RefreshDataGridDelegateEvent?.Invoke();
|
|
|
|
|
await _baseSpaceInfoServices.UpdateSpaceInfo(spaceInfo);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|