Commit 84f6140c LN

门口料盘检测状态传给服务器,放在data里doorReelSignal,0或1.

1 个父辈 e6920f6a
......@@ -142,4 +142,18 @@ DeCodeType=解码类型,0=halcon,1=zxing解码 西安料仓解析方式。2=
增加最大尺寸配置,
StoreConfig.csv增加一行配置:
PRO,大盘宽度(13寸或15寸),Big_TrayWidth,15,,,,,,,
\ No newline at end of file
PRO,大盘宽度(13寸或15寸),Big_TrayWidth,15,,,,,,,
20200624
门口料盘检测状态传给服务器,放在data里doorReelSignal,0或1.
......@@ -206,6 +206,10 @@ namespace OnlineStore.Common
/// <summary>
/// 温度报警值
/// </summary>
public static string maxTemperature = "temp";
public static string maxTemperature = "temp";
/// <summary>
/// 门口料盘检测信号,1或者0
/// </summary>
public static string doorReelSignal = "doorReelSignal";
}
}
......@@ -1408,7 +1408,8 @@ namespace OnlineStore.DeviceLibrary
//发送扫码内容到服务器进行入库操作
Operation operationT = getLineBoxStatus();
operationT.op = 1;
operationT.data = new Dictionary<string, string>() { { "code", message }, { "boxId", StoreID.ToString() } };
int dInfo = (int)IOManager.IOValue(IO_Type.TrayCheck_Door);
operationT.data = new Dictionary<string, string>() { { "code", message }, { "boxId", StoreID.ToString() }, { ParamDefine.doorReelSignal, dInfo.ToString() } };
HttpHelper.Post(StoreManager.GetPostApi(server), operationT, false);
}
else
......@@ -1431,7 +1432,8 @@ namespace OnlineStore.DeviceLibrary
//发送扫码内容到服务器进行入库操作
Operation operation = getLineBoxStatus();
operation.op = 1;
operation.data = new Dictionary<string, string>() { { "code", message }, { "boxId", StoreID.ToString() } };
int doorReelSignal = (int)IOManager.IOValue(IO_Type.TrayCheck_Door);
operation.data = new Dictionary<string, string>() { { "code", message }, { "boxId", StoreID.ToString() }, { ParamDefine.doorReelSignal, doorReelSignal.ToString() } };
// string server = ConfigAppSettings.GetValue(Setting_Init.http_server);
Operation resultOperation = HttpHelper.Post(StoreManager.GetPostApi(server), operation, false);
if (resultOperation == null)
......@@ -1953,6 +1955,8 @@ namespace OnlineStore.DeviceLibrary
{
lineOperation.alarmList.Add(alarmInfo);
}
int doorReelSignal = (int)IOManager.IOValue(IO_Type.TrayCheck_Door);
lineOperation.data = new Dictionary<string, string> { { ParamDefine.doorReelSignal, doorReelSignal.ToString() } };
return lineOperation;
}
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!