Commit 40fdf150 张东亮

手动清除料箱

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