|
|
@@ -15,14 +15,15 @@ using System.Net.Sockets;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Net;
|
|
|
using System.Text;
|
|
|
+using Seagull.BarTender.Print;
|
|
|
|
|
|
namespace UAS_MES_NEW.Make
|
|
|
{
|
|
|
public partial class Make_ColorBoxWeigh_HUAGUAN : Form
|
|
|
{
|
|
|
AutoSizeFormClass asc = new AutoSizeFormClass();
|
|
|
- ApplicationClass lbl;
|
|
|
DataHelper dh;
|
|
|
+ Engine engine;
|
|
|
DataTable dt;
|
|
|
LogStringBuilder sql = new LogStringBuilder();
|
|
|
//启用线程进行称重数据读取
|
|
|
@@ -104,8 +105,7 @@ namespace UAS_MES_NEW.Make
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
- lbl = new ApplicationClass();
|
|
|
- BaseUtil.WriteLbl();
|
|
|
+ engine = new Engine(true);
|
|
|
}
|
|
|
catch (Exception)
|
|
|
{
|
|
|
@@ -303,7 +303,6 @@ namespace UAS_MES_NEW.Make
|
|
|
//关闭窗口的时候停止进程读取串口数据
|
|
|
private void 彩盒称重_FormClosing(object sender, FormClosingEventArgs e)
|
|
|
{
|
|
|
- BaseUtil.ClosePrint(lbl);
|
|
|
StopWeight.PerformClick();
|
|
|
InitPrint.Abort();
|
|
|
if (serialPort1.IsOpen)
|
|
|
@@ -321,7 +320,7 @@ namespace UAS_MES_NEW.Make
|
|
|
if (PrintLabel.Items.Count != 0)
|
|
|
{
|
|
|
string oErrorMessage;
|
|
|
- if (!Print.CodeSoft(Tag.ToString(), ref lbl, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), PrinterList.Text, sncode.Text, int.Parse(PrintNum.Text), ma_code.Text, pr_code.Text, "彩盒标", "0", out oErrorMessage))
|
|
|
+ if (!Print.BarTender(Tag.ToString(), ref engine, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), PrinterList.Text, sncode.Text, int.Parse(PrintNum.Text), ma_code.Text, pr_code.Text, "彩盒标", "0", out oErrorMessage))
|
|
|
{
|
|
|
OperateResult.AppendText(oErrorMessage + "\n", Color.Red);
|
|
|
}
|