|
|
@ -507,14 +507,25 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
|
} |
|
|
|
labels.Add(labeldata); |
|
|
|
|
|
|
|
WriteLog.Write(System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " 开始打印" + labeldata.OrderNo); |
|
|
|
|
|
|
|
PrintLabel(labels); |
|
|
|
|
|
|
|
WriteLog.Write(System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " 开始变成打印状态" + labeldata.OrderNo); |
|
|
|
|
|
|
|
//变更打印状态 0=>1
|
|
|
|
_agent.InvokeServiceFunction<int>("WorkOrderBLL_SetOrderPrinted", orders[0].PID); |
|
|
|
|
|
|
|
WriteLog.Write(System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " 开始插入记录" + labeldata.OrderNo); |
|
|
|
|
|
|
|
InsertProduct(labeldata.OrderNo, orders[0].MATERIAL_CODE, comboBox1.SelectedValue.ToString()); |
|
|
|
|
|
|
|
WriteLog.Write(System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " 插入结束" + labeldata.OrderNo); |
|
|
|
|
|
|
|
BindPlanView(); |
|
|
|
tsbPrint.Enabled = true; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
catch (Exception ee) |
|
|
|
{ |
|
|
@ -667,11 +678,18 @@ namespace QMAPP.WinForm.Forms.TianJin |
|
|
|
} |
|
|
|
labels.Add(labeldata); |
|
|
|
|
|
|
|
WriteLog.Write(System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " 开始打印" + labeldata.OrderNo); |
|
|
|
|
|
|
|
PrintLabel(labels); |
|
|
|
|
|
|
|
WriteLog.Write(System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " 开始变成打印状态" + labeldata.OrderNo); |
|
|
|
//变更打印状态 0=>1
|
|
|
|
_agent.InvokeServiceFunction<int>("WorkOrderBLL_SetOrderPrinted", orders[0].PID); |
|
|
|
|
|
|
|
|
|
|
|
WriteLog.Write(System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " 开始插入记录" + labeldata.OrderNo); |
|
|
|
InsertProduct(labeldata.OrderNo, orders[0].MATERIAL_CODE, comboBox1.SelectedValue.ToString()); |
|
|
|
|
|
|
|
WriteLog.Write(System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " 插入结束" + labeldata.OrderNo); |
|
|
|
} |
|
|
|
|
|
|
|
BindPlanView(); |
|
|
|