|
|
@@ -28,6 +28,8 @@ namespace UAS_MES.Make
|
|
|
|
|
|
ApplicationClass lbl;
|
|
|
|
|
|
+ Document doc;
|
|
|
+
|
|
|
Thread thread;
|
|
|
//创建串口实例
|
|
|
SerialPort serialPort1 = new SerialPort();
|
|
|
@@ -130,7 +132,8 @@ namespace UAS_MES.Make
|
|
|
{
|
|
|
if (AutoPrint.Checked)
|
|
|
{
|
|
|
- Print.CodeSoft(Tag.ToString(),lbl, PrintLabel.Text.Split(':')[1], PrintLabel.SelectedValue.ToString(), PrinterList.Text, outboxcode.Text, int.Parse(PrintNum.Text), indate[PrintLabel.SelectedIndex]);
|
|
|
+ doc = lbl.Documents.Open(ftpOperater.DownLoadTo + PrintLabel.Text.Split(':')[1]);
|
|
|
+ Print.CodeSoft(Tag.ToString(),doc, PrintLabel.Text.Split(':')[1], PrintLabel.SelectedValue.ToString(), PrinterList.Text, outboxcode.Text, int.Parse(PrintNum.Text), indate[PrintLabel.SelectedIndex]);
|
|
|
}
|
|
|
LogicHandler.DoCommandLog(Tag.ToString(), User.UserSourceCode, ma_code.Text, User.UserLineCode, User.UserSourceCode, "卡通箱称重", "称量合格", outboxcode.Text, "");
|
|
|
OperateResult.AppendText(">>箱号" + outboxcode.Text + "检测合格\n", Color.Green);
|
|
|
@@ -185,7 +188,8 @@ namespace UAS_MES.Make
|
|
|
//确认打印
|
|
|
private void Confirm_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
- Print.CodeSoft(Tag.ToString(), lbl, PrintLabel.Text.Split(':')[1], PrintLabel.SelectedValue.ToString(), PrinterList.Text, outboxcode.Text, int.Parse(PrintNum.Text), indate[PrintLabel.SelectedIndex]);
|
|
|
+ doc = lbl.Documents.Open(ftpOperater.DownLoadTo + PrintLabel.Text.Split(':')[1]);
|
|
|
+ Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text.Split(':')[1], PrintLabel.SelectedValue.ToString(), PrinterList.Text, outboxcode.Text, int.Parse(PrintNum.Text), indate[PrintLabel.SelectedIndex]);
|
|
|
}
|
|
|
|
|
|
//停止进程,关闭串口
|