Commit 28add6e8 by 任天宇

优化

parent 8450641d
......@@ -48,6 +48,7 @@ namespace Kivii.Client.SampleInbounds
private void FrmMain_Load(object sender, EventArgs e)
{
WindowState = FormWindowState.Maximized;
initControls();
loadDefault(tbxServiceUrl, tbxUserName, tbxPassword);
}
......@@ -263,6 +264,7 @@ namespace Kivii.Client.SampleInbounds
btnScanRfid.BackColor = Color.PapayaWhip;
btnScanRfid.ForeColor = Color.Chocolate;
}));
disConnectReader();
outputMessage("停止扫描");
return;
}
......@@ -502,7 +504,12 @@ namespace Kivii.Client.SampleInbounds
var request = new SamplePrePackaging();
if (!tid.IsNullOrEmpty()) request.Tid = tid;
if (!bizId.IsNullOrEmpty()) request.BizId = bizId;
if(Guid.TryParse(epc, out var epcKvid))
if(!Guid.TryParse(epc, out var epcKvid))
{
return;
//request.BizKvid = epcKvid;
}
else
{
request.BizKvid = epcKvid;
}
......@@ -518,8 +525,8 @@ namespace Kivii.Client.SampleInbounds
var resp = _client.Post(request);
if (resp.Results.Count <= 0)
{
MessageBox.Show("未找到样品,当前组不包含此样品!", "交接查询");
outputMessage("未找到样品,当前组不包含此样品!");
//MessageBox.Show("未找到样品,当前组不包含此样品!", "交接查询");
outputMessage($"未找到样品:{epc},当前组不包含此样品!");
return;
}
var record = resp.Results[0];
......
......@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.6.2023.5300")]
[assembly: AssemblyFileVersion("5.6.2023.5300")]
[assembly: AssemblyVersion("5.6.2023.6050")]
[assembly: AssemblyFileVersion("5.6.2023.6050")]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment