模具维修修改
This commit is contained in:
@@ -140,8 +140,7 @@ namespace Tnb.ProductionMgr
|
||||
["TagName"] = "开工1",
|
||||
["Value"] = "true",
|
||||
};
|
||||
string responseresult =
|
||||
await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand, false);
|
||||
string responseresult = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand, false);
|
||||
Log.Information($"注塑主控柜开工1开启返回结果:{responseresult}");
|
||||
|
||||
Dictionary<string, string> dicCommand2 = new(StringComparer.OrdinalIgnoreCase)
|
||||
@@ -152,9 +151,19 @@ namespace Tnb.ProductionMgr
|
||||
["Value"] = "true",
|
||||
};
|
||||
|
||||
string responseresult2 =
|
||||
await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand2, false);
|
||||
string responseresult2 = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand2, false);
|
||||
Log.Information($"注塑主控柜开工2开启返回结果:{responseresult2}");
|
||||
|
||||
Dictionary<string, string> dicCommand4 = new(StringComparer.OrdinalIgnoreCase)
|
||||
{
|
||||
["DevName"] = "挤出集中供料",
|
||||
["token"] = _eleCtlCfg.token,
|
||||
["TagName"] = "开关1",
|
||||
["Value"] = "true",
|
||||
};
|
||||
|
||||
string responseresult4 = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand4, false);
|
||||
Log.Information($"挤出集中供料开关1开启返回结果:{responseresult4}");
|
||||
|
||||
List<PrdRawMaterialBarcode> prdRawMaterialBarcodeList = await _db.Queryable<PrdRawMaterialBarcode>()
|
||||
.Where(x => ids.Contains(x.id)).ToListAsync();
|
||||
@@ -224,6 +233,17 @@ namespace Tnb.ProductionMgr
|
||||
};
|
||||
string responseresult2 = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand2, false);
|
||||
Log.Information($"注塑主控柜开工2关闭返回结果:{responseresult2}");
|
||||
|
||||
Dictionary<string, string> dicCommand4 = new(StringComparer.OrdinalIgnoreCase)
|
||||
{
|
||||
["DevName"] = "挤出集中供料",
|
||||
["token"] = _eleCtlCfg.token,
|
||||
["TagName"] = "开关1",
|
||||
["Value"] = "false",
|
||||
};
|
||||
|
||||
string responseresult4 = await HttpClientHelper.GetRequestAsync(_eleCtlCfg.WriteTagUrl, dicCommand4, false);
|
||||
Log.Information($"挤出集中供料开关1关闭返回结果:{responseresult4}");
|
||||
}
|
||||
|
||||
return "成功";
|
||||
|
||||
Reference in New Issue
Block a user