|
|
@@ -7,6 +7,8 @@ using UAS_MES.DataOperate;
|
|
|
using UAS_MES.PublicMethod;
|
|
|
using UAS_MES.Entity;
|
|
|
using LabelManager2;
|
|
|
+using System.Threading;
|
|
|
+using UAS_MES.PublicForm;
|
|
|
|
|
|
namespace UAS_MES.Make
|
|
|
{
|
|
|
@@ -34,6 +36,7 @@ namespace UAS_MES.Make
|
|
|
//当前提示的索引
|
|
|
int RemainIndex = 0;
|
|
|
|
|
|
+ Thread InitPrint;
|
|
|
ApplicationClass lbl;
|
|
|
|
|
|
public Make_ColorBoxLabelPrint()
|
|
|
@@ -46,6 +49,14 @@ namespace UAS_MES.Make
|
|
|
dh = new DataHelper();
|
|
|
sncode.Focus();
|
|
|
asc.controllInitializeSize(this);
|
|
|
+ InitPrint = new Thread(InPrint);
|
|
|
+ SetLoadingWindow stw = new SetLoadingWindow(InitPrint, "初始化打印程序");
|
|
|
+ BaseUtil.SetFormCenter(stw);
|
|
|
+ stw.ShowDialog();
|
|
|
+ }
|
|
|
+
|
|
|
+ private void InPrint()
|
|
|
+ {
|
|
|
lbl = new ApplicationClass();
|
|
|
}
|
|
|
|
|
|
@@ -113,7 +124,7 @@ namespace UAS_MES.Make
|
|
|
OperateResult.AppendText(">>请输入SN\n", Color.Green);
|
|
|
return;
|
|
|
}
|
|
|
- Print.CodeSoft(lbl, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, ma_code.Text, int.Parse(PrintNum.Text), indate[PrintLabel.SelectedIndex]);
|
|
|
+ Print.CodeSoft(lbl, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, sncode.Text, int.Parse(PrintNum.Text), indate[PrintLabel.SelectedIndex]);
|
|
|
|
|
|
if (LogicHandler.UpdateMakeMessage(sncode.Text, ma_code.Text, "彩盒打印", User.UserSourceCode, User.UserCode, "彩盒打印成功", out ErrorMessage))
|
|
|
{
|