|
|
@@ -120,6 +120,10 @@ namespace UAS_MES.Make
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
+ if (PrintLabel.SelectedValue.ToString()=="") {
|
|
|
+ OperateResult.AppendText(">>产品:" + pa_prodcode.Text + "未维护栈板标签模板\n", Color.Red);
|
|
|
+ return;
|
|
|
+ }
|
|
|
Print.CodeSoft(lbl, PrintLabel.Text.Split(':')[1], PrintLabel.SelectedValue.ToString(), Printer.Text, palletcode.Text, int.Parse(printNum.Text), indate[PrintLabel.SelectedIndex]);
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
@@ -127,6 +131,7 @@ namespace UAS_MES.Make
|
|
|
OperateResult.AppendText("<<打印失败\n", Color.Red);
|
|
|
OperateResult.AppendText(">>请输入栈板号\n", Color.Green);
|
|
|
palletcode.Text = "";
|
|
|
+ return;
|
|
|
}
|
|
|
//打印成功,请输入栈板号
|
|
|
OperateResult.AppendText("<<打印成功\n", Color.Green);
|