|
|
@@ -145,6 +145,7 @@ namespace UAS_MES.Make
|
|
|
OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red);
|
|
|
}
|
|
|
}
|
|
|
+ else OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
@@ -177,17 +178,18 @@ namespace UAS_MES.Make
|
|
|
OperateResult.AppendText(">>序列号" + ms_sncode.Text + "对应的工单已经采集完成\n", Color.Green);
|
|
|
Print.CodeSoft(lbl, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, code.Text, int.Parse(PrintNum.Text), indate[PrintLabel.SelectedIndex]);
|
|
|
RemainIndex = 0;
|
|
|
- code.Clear();
|
|
|
- LoadCollectNum();
|
|
|
- BaseUtil.CleanDataTableData(ListA);
|
|
|
+ if (LogicHandler.UpdateMakeMessage(ms_sncode.Text, ms_makecode.Text, "彩盒上料打印", User.UserSourceCode, User.UserCode, "上料成功", out ErrorMessage))
|
|
|
+ {
|
|
|
+ mcd_okqty.Text = int.Parse(mcd_okqty.Text) + 1 + "";
|
|
|
+ code.Clear();
|
|
|
+ LoadCollectNum();
|
|
|
+ BaseUtil.CleanDataTableData(ListA);
|
|
|
+ }
|
|
|
+ else OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red, code);
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
- else
|
|
|
- {
|
|
|
- OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red);
|
|
|
- code.Clear();
|
|
|
- }
|
|
|
+ else OperateResult.AppendText(">>" + ErrorMessage + "\n", Color.Red, code);
|
|
|
}
|
|
|
}
|
|
|
}
|