Commit 16762afe LN

收到服务器出库需要判断是否是重复命令

1 个父辈 d80a0665
......@@ -1680,6 +1680,31 @@ namespace OnlineStore.DeviceLibrary
else
{
FixtureCodeInfo currInOutFixture = new FixtureCodeInfo(0, "", posId, plateW, plateH);
try
{
//判断是否接收过此库位的出库信息
if (StoreMove.MoveType.Equals(StoreMoveType.OutStore) && StoreMove.MoveParam.PositionNum.Equals(posId))
{
LogUtil.info(LOGGER, StoreName + " 收到出库【" + currInOutFixture.ToStr() + "】重复,当前已在【" + posId + "】出库中");
continue;
}
else
{
//判断排队列表中是否已存在
List<FixtureCodeInfo> reviceList = new List<FixtureCodeInfo>(waitOutStoreList);
reviceList = (from m in reviceList where m.PosId.Equals(posId) select m).ToList<FixtureCodeInfo>();
if (reviceList.Count > 0)
{
LogUtil.info(LOGGER, StoreName + " 收到出库【" + currInOutFixture.ToStr() + "】重复,排队列表中已存在【" + reviceList[0].ToStr() + "】");
continue;
}
}
}catch(Exception ex)
{
LogUtil.error("验证出库【" + currInOutFixture.ToStr() + "】是否重复出错:"+ex.ToString());
}
if (CanStarInOut() &&( LineConnect.CanStartOut()||IsDebug))
{
bool result = StartOutStoreMove(new InOutStoreParam("", posId, plateW,plateH));
......
......@@ -145,7 +145,7 @@ namespace OnlineStore.DeviceLibrary
}
catch (Exception ex)
{
LogUtil.error("处理流水线消息出错:" + message);
LogUtil.error("处理流水线消息【"+ message +"】出错:" +ex.ToString() );
}
}
public static char cmd_spilt = ';';
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!