|
|
@@ -91,8 +91,8 @@ namespace UAS_MES.Make
|
|
|
if (PrintLabel.SelectedValue != null)
|
|
|
{
|
|
|
//如果打印张数为空,返回
|
|
|
- if (PrintNum.Text=="") {
|
|
|
- OperateResult.AppendText(">>打印张数不可为空\n", Color.Red);
|
|
|
+ if (PrintNum.Text==""|| int.Parse(PrintNum.Text)==0) {
|
|
|
+ OperateResult.AppendText(">>打印张数不可空或者为0\n", Color.Red);
|
|
|
//清空输入框的值,聚焦
|
|
|
sncode.Text = "";
|
|
|
sncode.Focus();
|