|
|
@@ -46,7 +46,7 @@ namespace UAS_MES.Make
|
|
|
try
|
|
|
{
|
|
|
lbl = new ApplicationClass();
|
|
|
- BaseUtil.WriteLbl(lbl);
|
|
|
+ BaseUtil.WriteLbl();
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
@@ -137,8 +137,8 @@ namespace UAS_MES.Make
|
|
|
if (dh.getFieldDataByCondition("package", "pa_status", "pa_outboxcode='" + pa_outboxcode.Text + "'").ToString() == "1")
|
|
|
{
|
|
|
dh.ExecuteSql("update package set pa_printcount=pa_printcount+1 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
|
|
|
- doc = lbl.Documents.Open(PrintLabel.Text);
|
|
|
- if (Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), PrintList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text), oMakeCode == "" ? pa_makecode.Text : oMakeCode, pr_code.Text, "卡通箱标", "0", out ErrorMessage))
|
|
|
+ //doc = lbl.Documents.Open(PrintLabel.Text);
|
|
|
+ if (Print.CodeSoft(Tag.ToString(), ref lbl, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), PrintList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text), oMakeCode == "" ? pa_makecode.Text : oMakeCode, pr_code.Text, "卡通箱标", "0", out ErrorMessage))
|
|
|
{
|
|
|
OperateResult.AppendText(">>开始打印箱号" + pa_outboxcode.Text + "\n", Color.Black);
|
|
|
}
|