Commit cf108a75 LN

料仓25,26在等待空托盘时,入料2不拦截空托盘

1 个父辈 499d7c53
...@@ -1772,33 +1772,46 @@ namespace OnlineStore.DeviceLibrary ...@@ -1772,33 +1772,46 @@ namespace OnlineStore.DeviceLibrary
{ {
try try
{ {
List<int> moveIds = new List<int>() { };
if (DeviceID.Equals(102)) if (DeviceID.Equals(102))
{ {
MoveEquip moveEquip7 = LineManager.Line.GetMoveByDId(7); moveIds = new List<int>() { 7, 8, 19, 20 };
if (moveEquip7.IsWaitEmptyTray()) //MoveEquip moveEquip7 = LineManager.Line.GetMoveByDId(7);
{ //if (moveEquip7.IsWaitEmptyTray())
return true; //{
} // return true;
MoveEquip moveEquip8 = LineManager.Line.GetMoveByDId(8); //}
if (moveEquip8.IsWaitEmptyTray()) //MoveEquip moveEquip8 = LineManager.Line.GetMoveByDId(8);
{ //if (moveEquip8.IsWaitEmptyTray())
return true; //{
} // return true;
//}
} //如果是入料三入库,且进仓19,进仓20需要空托盘,先放托盘经过 } //如果是入料三入库,且进仓19,进仓20需要空托盘,先放托盘经过
if (DeviceID.Equals(103)) if (DeviceID.Equals(103))
{ {
MoveEquip moveEquip19 = LineManager.Line.GetMoveByDId(19); moveIds = new List<int>() { 19, 20 };
if (moveEquip19.IsWaitEmptyTray()) //MoveEquip moveEquip19 = LineManager.Line.GetMoveByDId(19);
{ //if (moveEquip19.IsWaitEmptyTray())
return true; //{
} // return true;
MoveEquip moveEquip20 = LineManager.Line.GetMoveByDId(20); //}
if (moveEquip20.IsWaitEmptyTray()) //MoveEquip moveEquip20 = LineManager.Line.GetMoveByDId(20);
//if (moveEquip20.IsWaitEmptyTray())
//{
// return true;
//}
}
if (moveIds.Count > 0)
{
foreach (int id in moveIds)
{ {
return true; MoveEquip moveEquip = LineManager.Line.GetMoveByDId(id);
if (moveEquip != null && moveEquip.IsWaitEmptyTray())
{
return true;
}
} }
} }
} }
catch (Exception ex) catch (Exception ex)
{ {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!