|
|
@@ -195,13 +195,10 @@ namespace UAS_MES.Make
|
|
|
dh.ExecuteSql("update package set pa_printcount=pa_printcount+1 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
|
|
|
OperateResult.AppendText(">>开始打印箱号" + pa_outboxcode.Text + "\n", Color.Black);
|
|
|
doc = lbl.Documents.Open(ftpOperater.DownLoadTo + PrintLabel.Text);
|
|
|
- if (Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), PrintList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text),ms_makecode.Text,pr_code.Text,"卡通箱标","0",out ErrorMessage))
|
|
|
- {
|
|
|
- }
|
|
|
- else
|
|
|
+ if (!Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), PrintList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text),ms_makecode.Text,pr_code.Text,"卡通箱标","0",out ErrorMessage))
|
|
|
{
|
|
|
OperateResult.AppendText(ErrorMessage + "\n", Color.Red);
|
|
|
- }
|
|
|
+ }
|
|
|
pa_outboxcode.Focus();
|
|
|
pa_outboxcode.SelectAll();
|
|
|
}
|