|
@@ -119,7 +119,6 @@ namespace UAS_MES.Make
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
else OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "已采集满\n", Color.Red);
|
|
else OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "已采集满\n", Color.Red);
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private void Print_Click(object sender, EventArgs e)
|
|
private void Print_Click(object sender, EventArgs e)
|
|
@@ -130,21 +129,17 @@ namespace UAS_MES.Make
|
|
|
DialogResult result = MessageBox.Show("该箱未采集满,确定打印?", "提示", MessageBoxButtons.YesNo);
|
|
DialogResult result = MessageBox.Show("该箱未采集满,确定打印?", "提示", MessageBoxButtons.YesNo);
|
|
|
if (result.ToString() == "Yes")
|
|
if (result.ToString() == "Yes")
|
|
|
{
|
|
{
|
|
|
- try
|
|
|
|
|
- {
|
|
|
|
|
- OperateResult.AppendText(">>开始打印\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]);
|
|
|
|
|
- }
|
|
|
|
|
- catch
|
|
|
|
|
- {
|
|
|
|
|
- OperateResult.AppendText(">>打印程序异常,请检查是否连接打印机或者打印软件是否安装\n", Color.Red);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ OperateResult.AppendText(">>开始打印\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]);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
if (PrintLabel.SelectedValue != null)
|
|
if (PrintLabel.SelectedValue != null)
|
|
|
|
|
+ {
|
|
|
|
|
+ OperateResult.AppendText(">>开始打印\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]);
|
|
Print.CodeSoft(lbl, PrintLabel.Text.Split(':')[1], PrintLabel.SelectedValue.ToString(), PrintList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text), indate[PrintLabel.SelectedIndex]);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|