长管投料不解绑父载具
This commit is contained in:
@@ -1619,6 +1619,12 @@ namespace Tnb.ProductionMgr
|
||||
{
|
||||
["30019971917589"] = "外包装箱码垛线"
|
||||
};
|
||||
|
||||
Dictionary<String, String> dic2 = new Dictionary<string, string>()
|
||||
{
|
||||
[WmsWareHouseConst.XUELUGUAN1XIAN] = "WBZX_x1_Enquantity",
|
||||
[WmsWareHouseConst.XUELUGUAN2XIAN] = "WBZX_x2_Enquantity"
|
||||
};
|
||||
string materialBoxCode = input.material_box_code;
|
||||
BasLocation location = null;
|
||||
try
|
||||
@@ -1975,27 +1981,27 @@ namespace Tnb.ProductionMgr
|
||||
|
||||
if (prdMoTask.schedule_type == 2)
|
||||
{
|
||||
Dictionary<string, string> dicCommand2 = new(StringComparer.OrdinalIgnoreCase)
|
||||
{
|
||||
["DevName"] = dic[prdMoTask.workline_id],
|
||||
["token"] = _eleCtlCfg.token,
|
||||
["TagName"] = "WBZX_x1_ok",
|
||||
["Value"] = "true",
|
||||
};
|
||||
Log.Information($"提拔确认完成参数:{JsonConvert.SerializeObject(dicCommand2)}");
|
||||
string responseresult = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand2);
|
||||
Log.Information($"提拔确认完成参数成返回结果:{responseresult}");
|
||||
X2ServerResult x2ServerResult = JsonConvert.DeserializeObject<X2ServerResult>(responseresult);
|
||||
if (x2ServerResult.Result != X2ServerResult.Ok)
|
||||
{
|
||||
throw Oops.Bah(x2ServerResult.Msg);
|
||||
}
|
||||
// Dictionary<string, string> dicCommand2 = new(StringComparer.OrdinalIgnoreCase)
|
||||
// {
|
||||
// ["DevName"] = dic[prdMoTask.workline_id],
|
||||
// ["token"] = _eleCtlCfg.token,
|
||||
// ["TagName"] = "WBZX_x1_ok",
|
||||
// ["Value"] = "true",
|
||||
// };
|
||||
// Log.Information($"提拔确认完成参数:{JsonConvert.SerializeObject(dicCommand2)}");
|
||||
// string responseresult = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand2);
|
||||
// Log.Information($"提拔确认完成参数成返回结果:{responseresult}");
|
||||
// X2ServerResult x2ServerResult = JsonConvert.DeserializeObject<X2ServerResult>(responseresult);
|
||||
// if (x2ServerResult.Result != X2ServerResult.Ok)
|
||||
// {
|
||||
// throw Oops.Bah(x2ServerResult.Msg);
|
||||
// }
|
||||
|
||||
Dictionary<string, string> dicCommand4 = new(StringComparer.OrdinalIgnoreCase)
|
||||
{
|
||||
["DevName"] = "外包装箱码垛线",
|
||||
["token"] = _eleCtlCfg.token,
|
||||
["TagName"] = "WBZX_x1_Enquantity",
|
||||
["TagName"] = dic2[prdMoTask.workline_id],
|
||||
["Value"] = "0",
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user