|
|
|
@ -186,8 +186,7 @@ namespace Aucma.Core.Palletiz.Business
|
|
|
|
|
recordInstore.EntryPattern = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_ = _recordInstoreServices.AddAsync(recordInstore).Result;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
if (!result)
|
|
|
|
@ -214,7 +213,8 @@ namespace Aucma.Core.Palletiz.Business
|
|
|
|
|
//刷新页面
|
|
|
|
|
AddDataEvent?.Invoke(recordInstore);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_ = _recordInstoreServices.AddAsync(recordInstore).Result;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -280,7 +280,7 @@ namespace Aucma.Core.Palletiz.Business
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (spaceinfos == null)
|
|
|
|
|
if (spaceinfos == null || spaceinfos.Count==0)
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentException($"通过物料型号获取货道信息异常:根据成品信息获取货道信息为空");
|
|
|
|
|
}
|
|
|
|
@ -289,14 +289,14 @@ namespace Aucma.Core.Palletiz.Business
|
|
|
|
|
|
|
|
|
|
MatchSpaceInfoByPlc(ref spaceinfos);
|
|
|
|
|
|
|
|
|
|
if (spaceinfos == null)
|
|
|
|
|
if (spaceinfos == null || spaceinfos.Count==0)
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentException($"通过物料型号获取货道信息异常:通过PLC匹配可用货道信息为空");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FiltrateSpaceInfo(spaceinfos, out laseSpaceinfo, out spaceinfo);
|
|
|
|
|
|
|
|
|
|
if (spaceinfo == null)
|
|
|
|
|
if (spaceinfo == null || spaceinfos.Count==0)
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentException($"通过物料型号获取货道信息异常:未获取到匹配的货道信息");
|
|
|
|
|
}
|
|
|
|
@ -346,7 +346,7 @@ namespace Aucma.Core.Palletiz.Business
|
|
|
|
|
/// <exception cref="ArgumentException"></exception>
|
|
|
|
|
private void FiltrateSpaceInfo(List<BaseSpaceInfo> spaceinfos, out BaseSpaceInfo laseSpaceinfo, out BaseSpaceInfo spaceinfo)
|
|
|
|
|
{
|
|
|
|
|
if (spaceinfos == null)
|
|
|
|
|
if (spaceinfos == null || spaceinfos.Count == 0)
|
|
|
|
|
{
|
|
|
|
|
throw new ArgumentException($"筛选货道信息异常:传入货道信息参数为空");
|
|
|
|
|
}
|
|
|
|
|