|
|
@@ -400,9 +400,15 @@ namespace UAS_MES.Make
|
|
|
{
|
|
|
if (dh.getFieldDataByCondition("package", "pa_status", "pa_outboxcode='" + pa_outboxcode.Text + "'").ToString() == "1")
|
|
|
{
|
|
|
- OperateResult.AppendText(">>打印箱号" + pa_outboxcode.Text + "\n", Color.Black);
|
|
|
doc = lbl.Documents.Open(ftpOperater.DownLoadTo + PrintLabel.Text);
|
|
|
- Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), PrinterList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text));
|
|
|
+ if (Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), PrinterList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text), pa_makecode.Text, pa_prodcode.Text, "大箱标", "0", out ErrorMessage))
|
|
|
+ {
|
|
|
+ OperateResult.AppendText(">>打印箱号" + pa_outboxcode.Text + "\n", Color.Black);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ OperateResult.AppendText(ErrorMessage + "\n", Color.Red);
|
|
|
+ }
|
|
|
pa_outboxcode.Focus();
|
|
|
pa_outboxcode.SelectAll();
|
|
|
}
|
|
|
@@ -416,7 +422,7 @@ namespace UAS_MES.Make
|
|
|
if (dh.getRowCount("packagedetail", "pd_outboxcode='" + pa_outboxcode.Text + "'") > 0)
|
|
|
{
|
|
|
string pa_mothercode = dh.getFieldDataByCondition("package", "pa_mothercode", "pa_outboxcode='" + pa_outboxcode.Text + "'").ToString();
|
|
|
- if (pa_mothercode == "")
|
|
|
+ if (pa_mothercode == "")
|
|
|
{
|
|
|
string Delete = MessageBox.Show(this.ParentForm, "是否确认拆箱?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
|
|
|
if (Delete == "Yes")
|
|
|
@@ -453,7 +459,7 @@ namespace UAS_MES.Make
|
|
|
palletcode_KeyDown(new object(), new KeyEventArgs(Keys.Enter));
|
|
|
}
|
|
|
}
|
|
|
- else OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "已装箱"+ pa_mothercode + ",不能取消解除装箱\n", Color.Red);
|
|
|
+ else OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "已装箱" + pa_mothercode + ",不能取消解除装箱\n", Color.Red);
|
|
|
}
|
|
|
else OperateResult.AppendText(">>箱号" + pa_outboxcode.Text + "未采集箱\n", Color.Red);
|
|
|
}
|