|
|
@@ -180,7 +180,7 @@ namespace UAS_MES.Make
|
|
|
else
|
|
|
type = "卡通箱标";
|
|
|
|
|
|
- getlabel = "select la_id,substr(la_url,instr(la_url,'\\',-1)+1)la_name,la_url,la_isdefault from label where la_prodcode='" + pr_code.Text + "' and la_templatetype='"+type+"' and la_statuscode='AUDITED' order by la_isdefault";
|
|
|
+ getlabel = "select la_id,substr(la_url,instr(la_url,'\\',-1)+1)la_name,la_url,la_isdefault from label where la_prodcode='" + pr_code.Text + "' and la_templatetype='" + type + "' and la_statuscode='AUDITED' order by la_isdefault";
|
|
|
|
|
|
listA = (DataTable)dh.ExecuteSql(getlabel, "select");
|
|
|
if (listA.Rows.Count == 0)
|
|
|
@@ -221,8 +221,8 @@ namespace UAS_MES.Make
|
|
|
return;
|
|
|
}
|
|
|
//判定通过进行打印
|
|
|
- //doc = lbl.Documents.Open(PrintLabel.Text);
|
|
|
- if (Print.CodeSoft(Tag.ToString(), ref lbl, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, inputValue.Text, int.Parse(printNum.Text),ms_makecode.Text,pr_code.Text,giftBox.Checked?"彩盒标":"机身标","-1",out errorMessage))
|
|
|
+ doc = lbl.Documents.Open(PrintLabel.Text);
|
|
|
+ if (Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, inputValue.Text, int.Parse(printNum.Text), ms_makecode.Text, pr_code.Text, giftBox.Checked ? "彩盒标" : "机身标", "-1", out errorMessage))
|
|
|
{
|
|
|
//按照打印张数打印
|
|
|
OperateResult.AppendText("<<打印成功\n", Color.Green);
|
|
|
@@ -253,8 +253,8 @@ namespace UAS_MES.Make
|
|
|
OperateResult.AppendText("<<箱号:" + inputValue.Text + "错误,不存在\n", Color.Red);
|
|
|
return;
|
|
|
}
|
|
|
- //doc = lbl.Documents.Open(PrintLabel.Text);
|
|
|
- if (Print.CodeSoft(Tag.ToString(), ref lbl, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, inputValue.Text, int.Parse(printNum.Text),ms_makecode.Text,pr_code.Text,"卡通箱标","-1",out errorMessage))
|
|
|
+ doc = lbl.Documents.Open(PrintLabel.Text);
|
|
|
+ if (Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, inputValue.Text, int.Parse(printNum.Text), ms_makecode.Text, pr_code.Text, "卡通箱标", "-1", out errorMessage))
|
|
|
{
|
|
|
//判断通过,打印
|
|
|
OperateResult.AppendText("<<打印成功\n", Color.Green);
|