|
|
@@ -50,6 +50,8 @@ namespace UAS_MES.Make
|
|
|
DataTable formValue;//界面赋值
|
|
|
|
|
|
string type = "";
|
|
|
+
|
|
|
+ string errorMessage = "";
|
|
|
public Make_RePrintLabel()
|
|
|
{
|
|
|
InitializeComponent();
|
|
|
@@ -224,10 +226,16 @@ namespace UAS_MES.Make
|
|
|
return;
|
|
|
}
|
|
|
//判定通过进行打印
|
|
|
- //按照打印张数打印
|
|
|
- OperateResult.AppendText("<<打印成功\n", Color.Green);
|
|
|
doc = lbl.Documents.Open(ftpOperater.DownLoadTo + PrintLabel.Text);
|
|
|
- Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, inputValue.Text, int.Parse(printNum.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);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ OperateResult.AppendText(errorMessage + "\n", Color.Red);
|
|
|
+ }
|
|
|
//打印成功,记录日志commandlog , cl_operate彩盒或者机身标补打印,cl_result补打印成功
|
|
|
LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, ms_makecode.Text, User.UserLineCode, User.UserSourceCode, giftBox.Checked ? "彩盒标补打印" : "机身标补打印", "补打印成功", inputValue.Text, "");
|
|
|
//如果ms_downstatus<>0,则更新ms_downstatus=-1 where ms_id=?id,同时插入记录至表 MAKEDOWN
|
|
|
@@ -249,10 +257,16 @@ namespace UAS_MES.Make
|
|
|
OperateResult.AppendText("<<箱号:" + inputValue.Text + "错误,不存在\n", Color.Red);
|
|
|
return;
|
|
|
}
|
|
|
- //判断通过,打印
|
|
|
- OperateResult.AppendText("<<打印成功\n", Color.Green);
|
|
|
doc = lbl.Documents.Open(ftpOperater.DownLoadTo + PrintLabel.Text);
|
|
|
- Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, inputValue.Text, int.Parse(printNum.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);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ OperateResult.AppendText(errorMessage + "\n", Color.Red);
|
|
|
+ }
|
|
|
//打印成功,记录日志commandlog , cl_operate彩盒或者机身标补打印,cl_result补打印成功
|
|
|
LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, ms_makecode.Text, User.UserLineCode, User.UserSourceCode, "卡通箱标签补打印,箱号:" + inputValue.Text, "补打印成功", inputValue.Text, "");
|
|
|
//如果pa_downstatus<>0,则更新pa_downstatus=-1 where pa_outboxcode=?code,同时插入记录至表 MAKEDOWN
|