Commit d5368b31 LN

出入库bug修改

1 个父辈 322bf14b
......@@ -780,17 +780,8 @@ namespace OnlineStore.DeviceLibrary
{
index++;
int plateW = Convert.ToInt32(plateWArray[index]);
int plateH = Convert.ToInt32(plateHArray[index]);
string[] posArray = posId.Split('#');
if (posArray.Length != 2)
{
WarnMsg = Name + "出库格式错误:库位号【" + posId + "】";
LogUtil.error("收到服务器出库命令:库位号【" + posId + "】格式错误");
continue;
}
int storeId = int.Parse(posArray[0]);
//根据发送的posId获取位置列表
int plateH = Convert.ToInt32(plateHArray[index]);
VerticalPosition position = CSVPositionReader<VerticalPosition>.GetPositon(posId);
if (position == null)
{
......@@ -802,20 +793,18 @@ namespace OnlineStore.DeviceLibrary
else
{
InOutParam currInOutFixture = new InOutParam(MoveType.OutStore, posId, "", plateW, plateH);
//if (CanStarInOut())
//{
// bool result = StartOutStore(currInOutFixture);
// if (!result)
// {
// LogUtil.info(Name + " 执行出库【" + currInOutFixture.ToStr() + "】失败,加入等待队列");
// AddWaitMoveParam(currInOutFixture);
// }
//}
//else
//{
// LogUtil.error("执行出库【" + currInOutFixture.ToStr() + "】失败,当前在忙碌中,加入等待队列");
// AddWaitMoveParam(currInOutFixture);
//}
if (CanStarInOut())
{
bool result = StartOutStore(currInOutFixture);
if (!result)
{
LogUtil.info(Name + " 执行出库【" + currInOutFixture.ToStr() + "】失败");
}
}
else
{
LogUtil.error("执行出库【" + currInOutFixture.ToStr() + "】失败,当前在忙碌中");
}
}
}
......@@ -837,15 +826,7 @@ namespace OnlineStore.DeviceLibrary
string posId = data[ParamDefine.posId];
int plateW = Convert.ToInt32(data[ParamDefine.plateW].Trim());
int plateH = Convert.ToInt32(data[ParamDefine.plateH].Trim());
string[] posArray = posId.Split('#');
if (!(posArray.Length == 2))
{
WarnMsg = Name + "入库库位格式错误:二维码【" + message + "】库位【" + posId + "】";
LogUtil.error("服务器反馈 入库库位格式错误:二维码【" + message + "】库位【" + posId + "】");
return;
}
int storeId = int.Parse(posArray[0]);
//根据发送的posId获取位置列表
VerticalPosition position = CSVPositionReader<VerticalPosition>.GetPositon(posId);
if (position == null)
......
......@@ -164,6 +164,7 @@
this.button1.TabIndex = 254;
this.button1.Text = "关闭";
this.button1.UseVisualStyleBackColor = true;
this.button1.Visible = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// groupBox1
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!