Commit 5199794c LN

1

1 个父辈 a49e5680
...@@ -185,30 +185,30 @@ namespace OnlineStore.DeviceLibrary ...@@ -185,30 +185,30 @@ namespace OnlineStore.DeviceLibrary
{ {
return false; return false;
} }
ACBoxPosition position = CSVPositionReader<ACBoxPosition>.GetPositon(param.PosID);
if (position == null)
{
LogUtil.error(box.Name + "GetPositon[" + param.PosID + "]=null,没有库位不能执行出入库");
return false;
}
ShelfPosition sp = CSVPositionReader<ShelfPosition>.GetPositon(param.ShelfPosID);
if (sp == null && needCheckShelf)
{
LogUtil.error(box.Name + "GetPositon[" + param.ShelfPosID + "]=null,没有库位不能执行出入库");
return false;
}
if (param.PlateH <= 0)
{
param.PlateH = position.BagHigh;
}
if (param.PlateW <= 0)
{
param.PlateW = position.BagWidth;
}
//加载位置 //加载位置
if (param.MoveP == null) if (param.MoveP == null)
{ {
LineMoveP p = new LineMoveP(); LineMoveP p = new LineMoveP();
ACBoxPosition position = CSVPositionReader<ACBoxPosition>.GetPositon(param.PosID);
if (position == null)
{
LogUtil.error(box.Name + "GetPositon[" + param.PosID + "]=null,没有库位不能执行出入库");
return false;
}
ShelfPosition sp = CSVPositionReader<ShelfPosition>.GetPositon(param.ShelfPosID);
if (sp == null && needCheckShelf)
{
LogUtil.error(box.Name + "GetPositon[" + param.ShelfPosID + "]=null,没有库位不能执行出入库");
return false;
}
if (param.PlateH<=0)
{
param.PlateH = position.BagHigh;
}
if (param.PlateW<=0)
{
param.PlateW = position.BagWidth;
}
if (sp != null) if (sp != null)
{ {
p.InOut_P101 = sp.InoutAxis_P101; p.InOut_P101 = sp.InoutAxis_P101;
...@@ -244,7 +244,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -244,7 +244,7 @@ namespace OnlineStore.DeviceLibrary
return true; return true;
} }
return true; return true;
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!