Commit 84f6140c LN

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

1 个父辈 e6920f6a
...@@ -143,3 +143,17 @@ DeCodeType=解码类型,0=halcon,1=zxing解码 西安料仓解析方式。2= ...@@ -143,3 +143,17 @@ DeCodeType=解码类型,0=halcon,1=zxing解码 西安料仓解析方式。2=
StoreConfig.csv增加一行配置: StoreConfig.csv增加一行配置:
PRO,大盘宽度(13寸或15寸),Big_TrayWidth,15,,,,,,, PRO,大盘宽度(13寸或15寸),Big_TrayWidth,15,,,,,,,
20200624
门口料盘检测状态传给服务器,放在data里doorReelSignal,0或1.
...@@ -207,5 +207,9 @@ namespace OnlineStore.Common ...@@ -207,5 +207,9 @@ 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 ...@@ -1408,7 +1408,8 @@ namespace OnlineStore.DeviceLibrary
//发送扫码内容到服务器进行入库操作 //发送扫码内容到服务器进行入库操作
Operation operationT = getLineBoxStatus(); Operation operationT = getLineBoxStatus();
operationT.op = 1; 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); HttpHelper.Post(StoreManager.GetPostApi(server), operationT, false);
} }
else else
...@@ -1431,7 +1432,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -1431,7 +1432,8 @@ namespace OnlineStore.DeviceLibrary
//发送扫码内容到服务器进行入库操作 //发送扫码内容到服务器进行入库操作
Operation operation = getLineBoxStatus(); Operation operation = getLineBoxStatus();
operation.op = 1; 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); // string server = ConfigAppSettings.GetValue(Setting_Init.http_server);
Operation resultOperation = HttpHelper.Post(StoreManager.GetPostApi(server), operation, false); Operation resultOperation = HttpHelper.Post(StoreManager.GetPostApi(server), operation, false);
if (resultOperation == null) if (resultOperation == null)
...@@ -1953,6 +1955,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -1953,6 +1955,8 @@ namespace OnlineStore.DeviceLibrary
{ {
lineOperation.alarmList.Add(alarmInfo); 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; return lineOperation;
} }
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!