|
|
@@ -151,6 +151,13 @@ namespace UAS_MES_NEW.Make
|
|
|
|
|
|
private void allParse_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
+ if (String.IsNullOrEmpty(ma_code.Text))
|
|
|
+ {
|
|
|
+ ma_code.Focus();
|
|
|
+ MessageBox.Show(this.ParentForm, "请选择归属工单", "提示");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
if (Device.SelectedIndex == -1)
|
|
|
{
|
|
|
Device.Focus();
|
|
|
@@ -189,6 +196,12 @@ namespace UAS_MES_NEW.Make
|
|
|
|
|
|
private void onWatch_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
+ if (String.IsNullOrEmpty(ma_code.Text))
|
|
|
+ {
|
|
|
+ ma_code.Focus();
|
|
|
+ MessageBox.Show(this.ParentForm, "请选择归属工单", "提示");
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (Device.SelectedIndex == -1)
|
|
|
{
|
|
|
Device.Focus();
|
|
|
@@ -304,7 +317,7 @@ namespace UAS_MES_NEW.Make
|
|
|
|
|
|
if (outFileMsg != "OK")
|
|
|
{
|
|
|
- LogMessage(0, outFileMsg);
|
|
|
+ //LogMessage(0, outFileMsg);
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
@@ -460,7 +473,7 @@ namespace UAS_MES_NEW.Make
|
|
|
param.Add(outMsg);
|
|
|
string[] paramList = param.ToArray();
|
|
|
dh.CallProcedure("CS_INSERT_TESTDETAILS", ref paramList);
|
|
|
- if (paramList[8].Substring(0, 2) == "OK")
|
|
|
+ if (paramList[10].Substring(0, 2) == "OK")
|
|
|
{
|
|
|
LogMessage(1, $"文件: {item.SN} 采集成功, 测试结果为{item.Result},共{item.LogItemList.Count}条信息");
|
|
|
}
|