Commit 40fdf150 张东亮

手动清除料箱

1 个父辈 e8bbd759
using DeviceLib.BLL; using DeviceLib.BLL;
using DeviceLib.Model.AGV;
using Dolen.Forms; using Dolen.Forms;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
...@@ -23,18 +24,23 @@ namespace AGVDispatch ...@@ -23,18 +24,23 @@ namespace AGVDispatch
private void button1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e)
{ {
if (string.IsNullOrEmpty(txtRfid.Text)) return; if (string.IsNullOrEmpty(txtRfid.Text)) return;
bool rtn = HttpManager.ClearBoxBind(txtRfid.Text.ToUpper(), "Manual"); bool rtn = HttpManager.BoxToAgv(txtRfid.Text.ToUpper(), "Manual");
string msg=$"清除料箱【{txtRfid.Text}】"+(rtn?"成功":"失败"); if (rtn)
MessageBox.Show(msg, "结果"); {
rtn = HttpManager.ClearBoxBind(txtRfid.Text.ToUpper(), "Manual");
string msg = $"清除料箱【{txtRfid.Text}】" + (rtn ? "成功" : "失败");
MessageBox.Show(msg, "结果");
}
} }
private void button2_Click(object sender, EventArgs e) private void button2_Click(object sender, EventArgs e)
{ {
if (string.IsNullOrEmpty(txtRfid.Text)) return; if (string.IsNullOrEmpty(txtRfid.Text)) return;
bool rtn = HttpManager.GetBoxTarget(txtRfid.Text.ToUpper(),out BoxTaskInfo boxTaskInfo); bool rtn = HttpManager.GetBoxTarget(txtRfid.Text.ToUpper(), out BoxTaskInfo boxTaskInfo);
if(rtn) if (rtn)
{ {
label2.Text = $"料箱【{txtRfid.Text}】出库信息:"+"\r\n"+boxTaskInfo?.ToStr()??""; label2.Text = $"料箱【{txtRfid.Text}】出库信息:" + "\r\n" + boxTaskInfo?.ToStr() ?? "";
} }
else else
{ {
......
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup> </startup>
<appSettings> <appSettings>
<add key="ProName" value="AGVDispatch-在共享通道冲突问题优化" /> <add key="ProName" value="AGVDispatch-在共享通道冲突问题及出料口箱子冲突优化" />
</appSettings> </appSettings>
</configuration> </configuration>
\ No newline at end of file \ No newline at end of file
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!