Commit 7b6ce92d 几米阳光

排队中的出库信息需要保存是否是批量出库

1 个父辈 e023b281
...@@ -1168,7 +1168,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -1168,7 +1168,7 @@ namespace OnlineStore.DeviceLibrary
if (currInOutFixture.WareNum.Equals("")) if (currInOutFixture.WareNum.Equals(""))
{ {
LogUtil.info(LOGGER, StoreName + "开始执行排队中的出库【" + currInOutFixture.ToStr() + "】"); LogUtil.info(LOGGER, StoreName + "开始执行排队中的出库【" + currInOutFixture.ToStr() + "】");
bool result = StartOutStoreMove(new InOutStoreParam("", currInOutFixture.PosId, currInOutFixture.plateH, currInOutFixture.plateW), true); bool result = StartOutStoreMove(new InOutStoreParam("", currInOutFixture.PosId, currInOutFixture.plateH, currInOutFixture.plateW),currInOutFixture.BatchInOut);
if (!result) if (!result)
{ {
LogUtil.info(LOGGER, StoreName + " 执行排队中的出库【" + currInOutFixture.ToStr() + "】失败,重新加入等待队列"); LogUtil.info(LOGGER, StoreName + " 执行排队中的出库【" + currInOutFixture.ToStr() + "】失败,重新加入等待队列");
...@@ -1746,7 +1746,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -1746,7 +1746,7 @@ namespace OnlineStore.DeviceLibrary
} }
else else
{ {
FixtureCodeInfo currInOutFixture = new FixtureCodeInfo(0, "", posId, plateW, plateH); FixtureCodeInfo currInOutFixture = new FixtureCodeInfo(0, "", posId, plateW, plateH,!isSingleOut);
if (CanStarInOut()) if (CanStarInOut())
{ {
bool result = StartOutStoreMove(new InOutStoreParam("", posId, plateH, plateW), !isSingleOut); bool result = StartOutStoreMove(new InOutStoreParam("", posId, plateH, plateW), !isSingleOut);
......
...@@ -3,7 +3,7 @@ using System; ...@@ -3,7 +3,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
namespace OnlineStore.DeviceLibrary namespace OnlineStore.DeviceLibrary
{ {
...@@ -13,16 +13,18 @@ namespace OnlineStore.DeviceLibrary ...@@ -13,16 +13,18 @@ namespace OnlineStore.DeviceLibrary
public class FixtureCodeInfo public class FixtureCodeInfo
{ {
public FixtureCodeInfo(int trayCode, string wareNum, string posId) public FixtureCodeInfo(int trayCode, string wareNum, string posId, bool batchInOut=true)
{ {
this.BatchInOut = batchInOut;
this.TrayCode = trayCode; this.TrayCode = trayCode;
this.WareNum = wareNum; this.WareNum = wareNum;
this.PosId = posId; this.PosId = posId;
SetSize(); SetSize();
} }
public FixtureCodeInfo(int trayCode, string wareNum, string posId, int platew, int plateh) public FixtureCodeInfo(int trayCode, string wareNum, string posId, int platew, int plateh, bool batchInOut=true)
{ {
this.BatchInOut = batchInOut;
this.TrayCode = trayCode; this.TrayCode = trayCode;
this.WareNum = wareNum; this.WareNum = wareNum;
this.PosId = posId; this.PosId = posId;
...@@ -65,7 +67,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -65,7 +67,10 @@ namespace OnlineStore.DeviceLibrary
/// </summary> /// </summary>
public int plateH { get; set; } public int plateH { get; set; }
/// <summary>
/// 是否是批量出入库
/// </summary>
public bool BatchInOut { get; set; }
public string ToStr() public string ToStr()
{ {
return "TrayCode【" + TrayCode + "】,WareNum=【" + WareNum + "】,PosId=【" + PosId + "】,plateW=【" + plateW + "】,plateH=【" + plateH + "】"; return "TrayCode【" + TrayCode + "】,WareNum=【" + WareNum + "】,PosId=【" + PosId + "】,plateW=【" + plateW + "】,plateH=【" + plateH + "】";
...@@ -87,9 +92,9 @@ namespace OnlineStore.DeviceLibrary ...@@ -87,9 +92,9 @@ namespace OnlineStore.DeviceLibrary
} }
catch (Exception ex) catch (Exception ex)
{ {
} }
} }
} }
return -1; return -1;
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!