Commit b9088dc4 LN

增加rfid参数

1 个父辈 bae79475
......@@ -1221,7 +1221,7 @@ namespace OnlineStore.DeviceLibrary
}
public bool ReviceLineCheckInStoreCMD(string posId, string plateH, string plateW, string message)
public bool ReviceLineCheckInStoreCMD(string posId, string plateH, string plateW, string message, string rfid)
{
string logName = "入库库位验证【 " + message + "】【" + posId + "】:";
try
......@@ -1229,15 +1229,15 @@ namespace OnlineStore.DeviceLibrary
if (storeRunStatus.Equals(StoreRunStatus.Wait))
{
LogUtil.info(LOGGER, logName+ " 设备未启动,验证失败");
LogUtil.info(LOGGER, logName + " 设备未启动,验证失败");
return false;
}
// CodeMsg = "收到二维码【 " + message + "】,发送给服务器获取入库PosID";
LogUtil.debug(LOGGER, logName+"发送给服务器验证入库PosID");
LogUtil.debug(LOGGER, logName + "发送给服务器验证入库PosID");
//发送扫码内容到服务器进行入库操作
Operation operation = getLineBoxStatus();
operation.op = 1;
operation.data = new Dictionary<string, string>() { { "code", message }, { "boxId", StoreID.ToString() } };
operation.data = new Dictionary<string, string>() { { "code", message }, { "boxId", StoreID.ToString() }, { "rfid", rfid } };
operation.data.Add("inPos", posId);
string server = ConfigAppSettings.GetValue(Setting_Init.http_server);
Operation resultOperation = HttpHelper.Post(StoreManager.GetPostApi(server), operation, false);
......@@ -1265,13 +1265,13 @@ namespace OnlineStore.DeviceLibrary
}
return false;
}
public void ReviceLineInStoreCMD(string posId, string plateH, string plateW, string message)
public void ReviceLineInStoreCMD(string posId, string plateH, string plateW, string message,string rfid)
{
string logName = "流水线入库命令【 " + message + "】【" + posId + "】:";
if (!LineConnect.WaitInStoreList.Contains(posId))
{
LogUtil.error(logName + "库位未验证通过,重新验证库位");
bool result = ReviceLineCheckInStoreCMD(posId, plateH, plateW, message);
bool result = ReviceLineCheckInStoreCMD(posId, plateH, plateW, message,rfid);
if (!result)
{
return;
......@@ -1293,7 +1293,10 @@ namespace OnlineStore.DeviceLibrary
//TODO:判断BOX是否处于可以入库状态,如果调试或急停中,需要返回给服务器;
if (CanStarInOut())
{
InOutParam param = new InOutParam(new InOutPosInfo( message, posId, plateH, plateW));
InOutPosInfo inout = new InOutPosInfo(message, posId, plateH, plateW);
inout.rfid = rfid;
InOutParam param = new InOutParam(inout);
LogUtil.info(logName + " 开始入库!");
StartInStoreMove(param);
//如果当前正在出入库中,需要记录下来,等待空闲时执行
......
......@@ -111,7 +111,7 @@ namespace OnlineStore.DeviceLibrary
if (cmd.Equals(cmd_startIn))
{
LogUtil.info("收到流水线入库消息:" + message);
StoreManager.Store.ReviceLineInStoreCMD(reviceInfo.PosId, reviceInfo.PlateH, reviceInfo.PlateW, reviceInfo.WareCode);
StoreManager.Store.ReviceLineInStoreCMD(reviceInfo.PosId, reviceInfo.PlateH, reviceInfo.PlateW, reviceInfo.WareCode,reviceInfo.rfid);
}
else if (cmd.Equals(cmd_updateDebug))
{
......@@ -131,7 +131,7 @@ namespace OnlineStore.DeviceLibrary
// LineConnect.WaitInStoreList.Remove(reviceInfo.PosId);
//}
bool result = StoreManager.Store.ReviceLineCheckInStoreCMD(reviceInfo.PosId, reviceInfo.PlateH, reviceInfo.PlateW, reviceInfo.WareCode);
bool result = StoreManager.Store.ReviceLineCheckInStoreCMD(reviceInfo.PosId, reviceInfo.PlateH, reviceInfo.PlateW, reviceInfo.WareCode,reviceInfo.rfid);
if (result && (!WaitInStoreList.Contains(reviceInfo.PosId)))
{
LineConnect.WaitInStoreList.Add(reviceInfo.PosId);
......@@ -198,6 +198,7 @@ namespace OnlineStore.DeviceLibrary
public string PlateW = "0";
public string WareCode = "";
public int IsDebug = 0;
public string rfid = "";
}
public class StoreSendBean
{
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!