|
|
@@ -261,7 +261,14 @@ namespace UAS_MES.Make
|
|
|
if (pr_outboxinnerqty.Text == pa_packageqty.Text)
|
|
|
{
|
|
|
OperateResult.AppendText(">>打印箱号" + pa_outboxcode.Text + "\n", Color.Green);
|
|
|
- Print.CodeSoft(lbl, PrintLabel.Text.Split(':')[1], PrintLabel.SelectedValue.ToString(), PrintList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text), indate[PrintLabel.SelectedIndex]);
|
|
|
+ if (PrintLabel.Items.Count != 0)
|
|
|
+ {
|
|
|
+ Print.CodeSoft(lbl, PrintLabel.Text.Split(':')[1], PrintLabel.SelectedValue.ToString(), PrintList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text), indate[PrintLabel.SelectedIndex]);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ OperateResult.AppendText(">>产品" + pr_code.Text + "未维护打印标签\n", Color.Red);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|