Commit ce605b78 LN

紧急料放到NG箱

1 个父辈 c3202696
......@@ -812,6 +812,12 @@ namespace OnlineStore.DeviceLibrary
StartMove();
return;
}
else if (LineConnect.DoorPosInfo.urgentReel)
{
LineConnect.DoorPosInfo.urgentReel = true;
StartMove();
return;
}
string shelfRfid = ReadyShelf();
if (String.IsNullOrEmpty(shelfRfid))
{
......
......@@ -36,7 +36,7 @@ namespace OnlineStore.DeviceLibrary
{
LineMoveP p = new LineMoveP();
if (param.PosInfo.IsNg && param.PosInfo.ShelfPosId.Equals(""))
if ((param.PosInfo.IsNg||param.PosInfo.urgentReel) && param.PosInfo.ShelfPosId.Equals(""))
{
//判断料盘尺寸
if (param.PosInfo.PlateW.Equals(7))
......@@ -375,7 +375,7 @@ namespace OnlineStore.DeviceLibrary
}
private void MoveToPosition(LineMoveP moveP)
{
if (MoveInfo.MoveParam.PosInfo.IsNg)
if (MoveInfo.MoveParam.PosInfo.IsNg||MoveInfo.MoveParam.PosInfo.urgentReel)
{
storeStatus = StoreStatus.OutStoreBoxEnd;
MoveInfo.NextMoveStep(MoveStep.SO_31_MoveToNG);
......@@ -668,6 +668,10 @@ namespace OnlineStore.DeviceLibrary
{
moveStr = "->NG箱 ";
LogUtil.info(Name + "[" + barcode + "]" + moveStr + " : " + MoveInfo.MoveStep + " " + msg);
}else if (MoveInfo.MoveParam != null && MoveInfo.MoveParam.PosInfo != null && MoveInfo.MoveParam.PosInfo.urgentReel)
{
moveStr = " ->紧急料 ";
LogUtil.info(Name + "[" + BoxPosId + "]" + moveStr + " : " + MoveInfo.MoveStep + " " + msg);
}
else
{
......
......@@ -131,7 +131,7 @@ namespace OnlineStore.DeviceLibrary
if (cmd.Equals(cmd_startIn))
{
LogUtil.info("[" + CID + "]收到流水线消息:" + message);
InOutPosInfo inout = new InOutPosInfo(reviceInfo.WareCode, "", reviceInfo.PlateW, reviceInfo.PlateH, reviceInfo.IsNg, reviceInfo.PosId, reviceInfo.rfid);
InOutPosInfo inout = new InOutPosInfo(reviceInfo.WareCode, "", reviceInfo.PlateW, reviceInfo.PlateH, reviceInfo.IsNg, reviceInfo.PosId, reviceInfo.rfid,reviceInfo.urgentReel);
string logName = "收到流水线命令【 " + inout.ToStr() + "】:";
bool needUpdate = true;
......@@ -255,6 +255,7 @@ namespace OnlineStore.DeviceLibrary
public int IsDebug = 0;
public string rfid = "";
public bool IsNg = false;
public bool urgentReel = false;
}
public class StoreSendBean
{
......
......@@ -74,7 +74,7 @@ namespace OnlineStore.DeviceLibrary
}
public class InOutPosInfo
{
public InOutPosInfo(string barcode, string shelfPosId, int platew =0, int plateh =0,bool IsNg=false,string boxPosId="", string rfid = "" )
public InOutPosInfo(string barcode, string shelfPosId, int platew =0, int plateh =0,bool IsNg=false,string boxPosId="", string rfid = "",bool urgentReel=false )
{
this.barcode = barcode;
this.ShelfPosId = shelfPosId;
......@@ -83,6 +83,7 @@ namespace OnlineStore.DeviceLibrary
this.rfid = rfid;
this.IsNg = IsNg;
this.BoxPosId = boxPosId;
this.urgentReel = urgentReel;
}
/// <summary>
......@@ -114,12 +115,22 @@ namespace OnlineStore.DeviceLibrary
/// 是否是去NG箱的料
/// </summary>
public bool IsNg { get; set; }
/// <summary>
/// 是否是去NG箱的料
/// </summary>
public bool urgentReel { get; set; }
public string ToStr()
{
if (IsNg)
{
{
return $" 门口NG料 [{ barcode }] [{ ShelfPosId }] [{PlateW }x{ PlateH }],boxPos[{ BoxPosId }],rfid [{ rfid}]";
}
else if (urgentReel)
{
return $" 门口紧急料 [{ barcode }] [{ ShelfPosId }] [{PlateW }x{ PlateH }],boxPos[{ BoxPosId }],rfid [{ rfid}]";
}
else
{
return $" 门口物料 [{ barcode }] [{ ShelfPosId }] [{PlateW }x{ PlateH }],boxPos[{ BoxPosId }],rfid [{ rfid}]";
......@@ -128,7 +139,7 @@ namespace OnlineStore.DeviceLibrary
internal bool IsSameWare(InOutPosInfo posInfo)
{
if (BoxPosId.Equals(posInfo.BoxPosId) && barcode.Equals(posInfo.barcode) && rfid.Equals(posInfo.rfid) && IsNg.Equals(posInfo.IsNg))
if (BoxPosId.Equals(posInfo.BoxPosId) && barcode.Equals(posInfo.barcode) && rfid.Equals(posInfo.rfid) && IsNg.Equals(posInfo.IsNg) && urgentReel.Equals(posInfo.urgentReel))
{
return true;
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!