|
|
@@ -20,7 +20,6 @@ namespace UAS_MES_NEW.Packing
|
|
|
DataTable dt;
|
|
|
LogStringBuilder sql = new LogStringBuilder();
|
|
|
AutoSizeFormClass asc = new AutoSizeFormClass();
|
|
|
- ApplicationClass lbl;
|
|
|
Thread thread;
|
|
|
Document doc;
|
|
|
DataTable Dbfind;
|
|
|
@@ -55,12 +54,6 @@ namespace UAS_MES_NEW.Packing
|
|
|
{
|
|
|
|
|
|
}
|
|
|
- try
|
|
|
- {
|
|
|
- lbl = new ApplicationClass();
|
|
|
- }
|
|
|
- catch { }
|
|
|
- BaseUtil.WriteLbl();
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
@@ -191,17 +184,6 @@ namespace UAS_MES_NEW.Packing
|
|
|
OperateResult.AppendText(ErrorMessage + "\n", Color.Red);
|
|
|
}
|
|
|
}
|
|
|
- else
|
|
|
- {
|
|
|
- if (Print.CodeSoft(Tag.ToString(), ref lbl, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), PrintList.Text, pa_outboxcode.Text, int.Parse(PrintNum.Text), oMakeCode == "" ? pa_makecode.Text : oMakeCode, pr_code.Text, "卡通箱标", "0", out ErrorMessage))
|
|
|
- {
|
|
|
- OperateResult.AppendText(">>开始打印箱号" + pa_outboxcode.Text + "\n", Color.Black);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- OperateResult.AppendText(ErrorMessage + "\n", Color.Red);
|
|
|
- }
|
|
|
- }
|
|
|
if (!AutoGenBoxCode.Checked)
|
|
|
{
|
|
|
pa_outboxcode.SelectAll();
|
|
|
@@ -624,9 +606,8 @@ namespace UAS_MES_NEW.Packing
|
|
|
|
|
|
private void PackCollection_FormClosing(object sender, FormClosingEventArgs e)
|
|
|
{
|
|
|
- BaseUtil.ClosePrint(lbl);
|
|
|
- if (engine != null)
|
|
|
- engine.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);
|
|
|
+ //if (engine != null)
|
|
|
+ // engine.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);
|
|
|
dh.Dispose();
|
|
|
}
|
|
|
|