Просмотр исходного кода

Merge branch 'master' of ssh://10.10.100.21/source/mes-client

caosy 6 лет назад
Родитель
Сommit
ef9702e3a7

+ 5 - 3
UAS-MES/FunctionCode/Make/Make_SMTStencil.Designer.cs

@@ -44,7 +44,7 @@
             this.SU_RETURNIFCLEAN = new System.Windows.Forms.CheckBox();
             this.em_code_label = new System.Windows.Forms.Label();
             this.em_code = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
-            this.su_singlepringqty1 = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
+            this.su_singlepringqty1 = new UAS_MES.CustomControl.TextBoxWithIcon.NumOnlyTextBox();
             this.st_table = new UAS_MES.CustomControl.ComBoxWithFocus.ComBoxWithFocus();
             this.Receive = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
             this.Return = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
@@ -198,7 +198,7 @@
             // 
             this.SU_RETURNIFCLEAN.AutoSize = true;
             this.SU_RETURNIFCLEAN.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SU_RETURNIFCLEAN.Location = new System.Drawing.Point(692, 550);
+            this.SU_RETURNIFCLEAN.Location = new System.Drawing.Point(692, 552);
             this.SU_RETURNIFCLEAN.Name = "SU_RETURNIFCLEAN";
             this.SU_RETURNIFCLEAN.Size = new System.Drawing.Size(84, 24);
             this.SU_RETURNIFCLEAN.TabIndex = 110;
@@ -236,6 +236,7 @@
             this.su_singlepringqty1.ID = null;
             this.su_singlepringqty1.Location = new System.Drawing.Point(559, 496);
             this.su_singlepringqty1.Name = "su_singlepringqty1";
+            this.su_singlepringqty1.Negative = false;
             this.su_singlepringqty1.Power = null;
             this.su_singlepringqty1.Size = new System.Drawing.Size(39, 21);
             this.su_singlepringqty1.Str = null;
@@ -447,6 +448,7 @@
             // 
             this.ma_prodcode.AllPower = null;
             this.ma_prodcode.BackColor = System.Drawing.Color.White;
+            this.ma_prodcode.Enabled = false;
             this.ma_prodcode.ID = null;
             this.ma_prodcode.Location = new System.Drawing.Point(309, 9);
             this.ma_prodcode.Name = "ma_prodcode";
@@ -571,7 +573,7 @@
         private System.Windows.Forms.Label ma_qty_label;
         private System.Windows.Forms.Label ma_qty;
         private CustomControl.ComBoxWithFocus.ComBoxWithFocus st_table;
-        private CustomControl.TextBoxWithIcon.EnterTextBox su_singlepringqty1;
+        private CustomControl.TextBoxWithIcon.NumOnlyTextBox su_singlepringqty1;
         private System.Windows.Forms.Label su_singlepringqty1_label;
         private System.Windows.Forms.DataGridViewTextBoxColumn su_stcode;
         private System.Windows.Forms.DataGridViewTextBoxColumn st_pcbcode;

+ 45 - 30
UAS-MES/FunctionCode/Make/Make_SMTStencil.cs

@@ -54,6 +54,7 @@ namespace UAS_MES.Make
             li_code.FormName = Name;
             li_code.SetValueField = new string[] { "li_code", "li_name" };
             li_code.DbChange += Li_code_DbChange;
+            ma_code.Controls["TextBox"].Focus();
         }
 
         private void Li_code_DbChange(object sender, EventArgs e)
@@ -131,20 +132,27 @@ namespace UAS_MES.Make
                 dt = (DataTable)dh.ExecuteSql("select em_name from employee where em_code='" + em_code.Text + "'", "select");
                 if (dt.Rows.Count > 0)
                 {
-                    string em_name = dt.Rows[0]["em_name"].ToString();
-                    sql.Clear();
-                    sql.Append("insert into StencilUse(su_id,SU_USEPRODCODE,su_stid,su_linecode,su_stcode,su_usedate,su_useman,SU_USEMANCODE,SU_TABLE,su_usemacode,su_singlepringqty,su_stverison,SU_STATUS)");
-                    sql.Append("select StencilUse_seq.nextval,'" + ma_prodcode.Text + "',st_id,'" + li_code.Text + "','" + SU_DEVCODE.Text + "',sysdate,'" + em_name + "','" + em_code.Text + "','" + st_table.Text + "','" + ma_code.Text + "'");
-                    sql.Append(",'" + su_singlepringqty1.Text + "',st_version,'在线' from ");
-                    sql.Append("Stencil where st_code='" + SU_DEVCODE.Text + "'");
-                    dh.ExecuteSql(sql.ToString(), "insert");
-                    dh.ExecuteSql("update Stencil set ST_USESTATUS='在线' where st_code='" + SU_DEVCODE.Text + "'", "update");
-                    MessageBox.Show("领用成功");
-                    st_table.SelectedItem = null;
-                    SU_DEVCODE.Text = "";
-                    em_code.Text = "";
-                    Receive.Enabled = false;
-                    LoadGridData();
+                    if (int.Parse(su_singlepringqty1.Text) > 0)
+                    {
+                        string em_name = dt.Rows[0]["em_name"].ToString();
+                        sql.Clear();
+                        sql.Append("insert into StencilUse(su_id,SU_USEPRODCODE,su_stid,su_linecode,su_stcode,su_usedate,su_useman,SU_USEMANCODE,SU_TABLE,su_usemacode,su_singlepringqty,su_stverison,SU_STATUS)");
+                        sql.Append("select StencilUse_seq.nextval,'" + ma_prodcode.Text + "',st_id,'" + li_code.Text + "','" + SU_DEVCODE.Text + "',sysdate,'" + em_name + "','" + em_code.Text + "','" + st_table.Text + "','" + ma_code.Text + "'");
+                        sql.Append(",'" + su_singlepringqty1.Text + "',st_version,'在线' from ");
+                        sql.Append("Stencil where st_code='" + SU_DEVCODE.Text + "'");
+                        dh.ExecuteSql(sql.ToString(), "insert");
+                        dh.ExecuteSql("update Stencil set ST_USESTATUS='在线' where st_code='" + SU_DEVCODE.Text + "'", "update");
+                        MessageBox.Show("领用成功");
+                        st_table.SelectedItem = null;
+                        SU_DEVCODE.Text = "";
+                        em_code.Text = "";
+                        Receive.Enabled = false;
+                        LoadGridData();
+                    }
+                    else
+                    {
+                        MessageBox.Show("单片印刷次数必须大于0");
+                    }
                 }
                 else
                 {
@@ -161,7 +169,7 @@ namespace UAS_MES.Make
                 if (dt.Rows.Count > 0)
                 {
                     string status = dt.Rows[0]["ST_USESTATUS"].ToString();
-                    if (status == "在仓")
+                    if (status == "在仓" || status == "借出")
                     {
                         MessageBox.Show("当前钢网" + SU_DEVCODE.Text + "未在线,无需归还");
                         return;
@@ -180,20 +188,27 @@ namespace UAS_MES.Make
                 dt = (DataTable)dh.ExecuteSql("select em_name from employee where em_code='" + em_code1.Text + "'", "select");
                 if (dt.Rows.Count > 0)
                 {
-                    sql.Clear();
-                    sql.Append("update StencilUse set SU_BACKDATE=sysdate,su_returnmancode='" + em_code1.Text + "',");
-                    sql.Append("SU_THISUSETIMES='" + st_combinenumber.Text + "',SU_STATUS='借出',su_usecount=" + (St_USECOUNT == "" ? "0" : St_USECOUNT) + "+" + st_combinenumber.Text);
-                    sql.Append(",SU_RETURNIFCLEAN='" + (SU_RETURNIFCLEAN.Checked ? "-1" : "0") + "' where su_id=(select max(su_id) from stenciluse where su_stcode='" + SU_DEVCODE1.Text + "' and su_status='在线')");
-                    dh.ExecuteSql(sql.ToString(), "update");
-                    sql.Clear();
-                    sql.Append("update Stencil set St_USECOUNT=nvl(St_USECOUNT,0)+" + st_combinenumber.Text + ",ST_USESTATUS='借出' where st_code='" + SU_DEVCODE1.Text + "'");
-                    dh.ExecuteSql(sql.ToString(), "update");
-                    MessageBox.Show("钢网" + SU_DEVCODE1.Text + "退回成功!");
-                    SU_DEVCODE1.Text = "";
-                    st_combinenumber.Text = "";
-                    em_code1.Text = "";
-                    SU_RETURNIFCLEAN.Checked = false;
-                    Confirm.PerformClick();
+                    if (int.Parse(st_combinenumber.Text) >= 0)
+                    {
+                        sql.Clear();
+                        sql.Append("update StencilUse set SU_BACKDATE=sysdate,su_returnman='" + dt.Rows[0]["em_name"].ToString() + "',su_returnmancode='" + em_code1.Text + "',");
+                        sql.Append("SU_THISUSETIMES='" + (st_combinenumber.Text == "" ? "0" : st_combinenumber.Text) + "',SU_STATUS='借出',su_usecount=" + (St_USECOUNT == "" ? "0" : St_USECOUNT) + "+" + st_combinenumber.Text);
+                        sql.Append(",SU_RETURNIFCLEAN='" + (SU_RETURNIFCLEAN.Checked ? "-1" : "0") + "' where su_id=(select max(su_id) from stenciluse where su_stcode='" + SU_DEVCODE1.Text + "' and su_status='在线')");
+                        dh.ExecuteSql(sql.ToString(), "update");
+                        sql.Clear();
+                        sql.Append("update Stencil set St_USECOUNT=nvl(St_USECOUNT,0)+" + (st_combinenumber.Text == "" ? "0" : st_combinenumber.Text) + ",ST_USESTATUS='借出' where st_code='" + SU_DEVCODE1.Text + "'");
+                        dh.ExecuteSql(sql.ToString(), "update");
+                        MessageBox.Show("钢网" + SU_DEVCODE1.Text + "退回成功!");
+                        SU_DEVCODE1.Text = "";
+                        st_combinenumber.Text = "";
+                        em_code1.Text = "";
+                        SU_RETURNIFCLEAN.Checked = false;
+                        Confirm.PerformClick();
+                    }
+                    else
+                    {
+                        MessageBox.Show("加工小板数必须大于等于0");
+                    }
                 }
                 else
                 {
@@ -276,7 +291,7 @@ namespace UAS_MES.Make
                 {
                     try
                     {
-                        st_combinenumber.Text = (int.Parse(ma_qty.Text) / int.Parse(dt.Rows[0][0].ToString())).ToString();
+                        st_combinenumber.Text = (Math.Ceiling(decimal.Parse(ma_qty.Text) / decimal.Parse(dt.Rows[0][0].ToString()))).ToString();
                     }
                     catch (Exception)
                     {

+ 0 - 24
UAS-MES/FunctionCode/Make/Make_SMTStencil.resx

@@ -218,30 +218,6 @@
   <metadata name="su_usemacode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
-  <metadata name="su_stcode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="st_pcbcode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="su_status.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="SU_LINECODE.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="su_stverison.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="su_singlepringqty.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="su_table.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
-  <metadata name="su_usemacode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
-    <value>True</value>
-  </metadata>
   <data name="Confirm.DownImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>
         iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m

+ 40 - 10
UAS-MES/FunctionCode/Make/Make_SMTStockStencil.Designer.cs

@@ -47,11 +47,11 @@
             this.Receive = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
             this.Return = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
             this.Scrap = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
-            this.ST_ENSIONA = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
-            this.ST_ENSIONB = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
-            this.ST_ENSIONC = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
-            this.ST_ENSIOND = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
-            this.ST_ENSIONE = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
+            this.ST_ENSIONA = new UAS_MES.CustomControl.TextBoxWithIcon.NumOnlyTextBox();
+            this.ST_ENSIONB = new UAS_MES.CustomControl.TextBoxWithIcon.NumOnlyTextBox();
+            this.ST_ENSIONC = new UAS_MES.CustomControl.TextBoxWithIcon.NumOnlyTextBox();
+            this.ST_ENSIOND = new UAS_MES.CustomControl.TextBoxWithIcon.NumOnlyTextBox();
+            this.ST_ENSIONE = new UAS_MES.CustomControl.TextBoxWithIcon.NumOnlyTextBox();
             this.SU_DEVCODE1 = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
             this.SU_DEVCODE = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
             this.ToolsBom = new UAS_MES.CustomControl.DataGrid_View.DataGridViewWithSerialNum();
@@ -66,6 +66,8 @@
             this.Confirm = new UAS_MES.CustomControl.ButtonUtil.NormalButton();
             this.ma_prodcode = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
             this.ma_code = new UAS_MES.CustomControl.TextBoxWithIcon.SearchTextBox();
+            this.st_usecount = new System.Windows.Forms.Label();
+            this.label2 = new System.Windows.Forms.Label();
             ((System.ComponentModel.ISupportInitialize)(this.ToolsBom)).BeginInit();
             this.SuspendLayout();
             // 
@@ -287,6 +289,7 @@
             this.ST_ENSIONA.ID = null;
             this.ST_ENSIONA.Location = new System.Drawing.Point(160, 493);
             this.ST_ENSIONA.Name = "ST_ENSIONA";
+            this.ST_ENSIONA.Negative = false;
             this.ST_ENSIONA.Power = null;
             this.ST_ENSIONA.Size = new System.Drawing.Size(120, 21);
             this.ST_ENSIONA.Str = null;
@@ -302,6 +305,7 @@
             this.ST_ENSIONB.ID = null;
             this.ST_ENSIONB.Location = new System.Drawing.Point(325, 493);
             this.ST_ENSIONB.Name = "ST_ENSIONB";
+            this.ST_ENSIONB.Negative = false;
             this.ST_ENSIONB.Power = null;
             this.ST_ENSIONB.Size = new System.Drawing.Size(120, 21);
             this.ST_ENSIONB.Str = null;
@@ -317,6 +321,7 @@
             this.ST_ENSIONC.ID = null;
             this.ST_ENSIONC.Location = new System.Drawing.Point(489, 493);
             this.ST_ENSIONC.Name = "ST_ENSIONC";
+            this.ST_ENSIONC.Negative = false;
             this.ST_ENSIONC.Power = null;
             this.ST_ENSIONC.Size = new System.Drawing.Size(120, 21);
             this.ST_ENSIONC.Str = null;
@@ -332,6 +337,7 @@
             this.ST_ENSIOND.ID = null;
             this.ST_ENSIOND.Location = new System.Drawing.Point(160, 520);
             this.ST_ENSIOND.Name = "ST_ENSIOND";
+            this.ST_ENSIOND.Negative = false;
             this.ST_ENSIOND.Power = null;
             this.ST_ENSIOND.Size = new System.Drawing.Size(120, 21);
             this.ST_ENSIOND.Str = null;
@@ -347,6 +353,7 @@
             this.ST_ENSIONE.ID = null;
             this.ST_ENSIONE.Location = new System.Drawing.Point(325, 520);
             this.ST_ENSIONE.Name = "ST_ENSIONE";
+            this.ST_ENSIONE.Negative = false;
             this.ST_ENSIONE.Power = null;
             this.ST_ENSIONE.Size = new System.Drawing.Size(120, 21);
             this.ST_ENSIONE.Str = null;
@@ -507,11 +514,32 @@
             this.ma_code.TextBoxEnable = true;
             this.ma_code.TextKeyDown += new UAS_MES.CustomControl.TextBoxWithIcon.SearchTextBox.OnTextKeyDown(this.ma_code_TextKeyDown);
             // 
+            // st_usecount
+            // 
+            this.st_usecount.AutoSize = true;
+            this.st_usecount.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.st_usecount.Location = new System.Drawing.Point(476, 461);
+            this.st_usecount.Name = "st_usecount";
+            this.st_usecount.Size = new System.Drawing.Size(0, 21);
+            this.st_usecount.TabIndex = 112;
+            // 
+            // label2
+            // 
+            this.label2.AutoSize = true;
+            this.label2.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label2.Location = new System.Drawing.Point(357, 460);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(106, 21);
+            this.label2.TabIndex = 111;
+            this.label2.Text = "累计使用次数";
+            // 
             // Make_SMTStockStencil
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.ClientSize = new System.Drawing.Size(908, 551);
+            this.Controls.Add(this.st_usecount);
+            this.Controls.Add(this.label2);
             this.Controls.Add(this.SU_RETURNIFCLEAN);
             this.Controls.Add(this.ma_qty);
             this.Controls.Add(this.ma_qty_label);
@@ -563,15 +591,15 @@
         private CustomControl.TextBoxWithIcon.EnterTextBox SU_DEVCODE1;
         private System.Windows.Forms.Label SU_DEVCODE1_label;
         private System.Windows.Forms.Label label7;
-        private CustomControl.TextBoxWithIcon.EnterTextBox ST_ENSIONE;
+        private CustomControl.TextBoxWithIcon.NumOnlyTextBox ST_ENSIONE;
         private System.Windows.Forms.Label ST_ENSIONE_label;
-        private CustomControl.TextBoxWithIcon.EnterTextBox ST_ENSIOND;
+        private CustomControl.TextBoxWithIcon.NumOnlyTextBox ST_ENSIOND;
         private System.Windows.Forms.Label label9;
-        private CustomControl.TextBoxWithIcon.EnterTextBox ST_ENSIONC;
+        private CustomControl.TextBoxWithIcon.NumOnlyTextBox ST_ENSIONC;
         private System.Windows.Forms.Label ST_ENSIONC_label;
-        private CustomControl.TextBoxWithIcon.EnterTextBox ST_ENSIONB;
+        private CustomControl.TextBoxWithIcon.NumOnlyTextBox ST_ENSIONB;
         private System.Windows.Forms.Label ST_ENSIONB_label;
-        private CustomControl.TextBoxWithIcon.EnterTextBox ST_ENSIONA;
+        private CustomControl.TextBoxWithIcon.NumOnlyTextBox ST_ENSIONA;
         private System.Windows.Forms.Label ST_ENSIONA_label;
         private CustomControl.ButtonUtil.NormalButton Scrap;
         private CustomControl.ButtonUtil.NormalButton Return;
@@ -591,5 +619,7 @@
         private CustomControl.TextBoxWithIcon.EnterTextBox ma_prodcode;
         private System.Windows.Forms.Label ma_qty_label;
         private System.Windows.Forms.Label ms_makecode_label;
+        private System.Windows.Forms.Label st_usecount;
+        private System.Windows.Forms.Label label2;
     }
 }

+ 43 - 14
UAS-MES/FunctionCode/Make/Make_SMTStockStencil.cs

@@ -24,6 +24,8 @@ namespace UAS_MES.Make
 
         StringBuilder sql = new StringBuilder();
 
+        bool ifUsed = false;
+
         public Make_SMTStockStencil()
         {
             InitializeComponent();
@@ -51,6 +53,8 @@ namespace UAS_MES.Make
             ma_code.Condition = "ma_statuscode in('STARTED','AUDITED')";
             ma_code.DbChange += Ma_code_DbChange;
 
+            SU_DEVCODE.Focus();
+
         }
 
         private void Ma_code_DbChange(object sender, EventArgs e)
@@ -69,7 +73,7 @@ namespace UAS_MES.Make
         {
             sql.Clear();
             sql.Append("select St_PCBCODE,su_stcode,su_table,su_status,su_linecode,su_usemacode,su_singlepringqty,su_stverison ");
-            sql.Append("from StencilUse left join stencil on st_code=su_stcode where su_usemacode='" + ma_code.Text + "' and su_status='借出'");
+            sql.Append("from StencilUse left join stencil on st_code=su_stcode where su_usemacode='" + ma_code.Text + "' and su_status='在线'");
             DataTable dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
             BaseUtil.FillDgvWithDataTable(ToolsBom, dt);
         }
@@ -115,23 +119,23 @@ namespace UAS_MES.Make
             {
                 if (SU_RETURNIFCLEAN.Checked)
                 {
-                    DataTable dt = (DataTable)dh.ExecuteSql("select ST_USESTATUS,St_USECOUNT from Stencil where st_code='" + SU_DEVCODE1.Text + "' and st_statuscode='AUDITED'", "select");
+                    DataTable dt = (DataTable)dh.ExecuteSql("select ST_USESTATUS,nvl(St_USECOUNT,0)St_USECOUNT from Stencil where st_code='" + SU_DEVCODE1.Text + "' and st_statuscode='AUDITED'", "select");
                     if (dt.Rows.Count > 0)
                     {
                         string status = dt.Rows[0]["ST_USESTATUS"].ToString();
                         if (status == "在线")
                         {
-                            MessageBox.Show("当前钢网" + SU_DEVCODE.Text + "处于在线状态,无法退回");
+                            MessageBox.Show("当前钢网" + SU_DEVCODE1.Text + "处于在线状态,无法退回");
                             return;
                         }
                         if (status == "在仓")
                         {
-                            MessageBox.Show("当前钢网" + SU_DEVCODE.Text + "未借出,无需归还");
+                            MessageBox.Show("当前钢网" + SU_DEVCODE1.Text + "未借出,无需归还");
                             return;
                         }
                         if (status == "报废")
                         {
-                            MessageBox.Show("当前钢网" + SU_DEVCODE.Text + "处于" + status + "状态,无法退回");
+                            MessageBox.Show("当前钢网" + SU_DEVCODE1.Text + "处于" + status + "状态,无法退回");
                             return;
                         }
                     }
@@ -140,9 +144,8 @@ namespace UAS_MES.Make
                         MessageBox.Show("钢网编号" + SU_DEVCODE1.Text + "不存在或者未审核");
                         return;
                     }
-                    string St_USECOUNT = dt.Rows[0]["St_USECOUNT"].ToString();
                     sql.Clear();
-                    sql.Append("update StencilUse set SU_BACKDATE=sysdate,SU_ENSIONA='" + ST_ENSIONA.Text + "',SU_ENSIONB='" + ST_ENSIONB.Text + "',SU_ENSIONC='" + ST_ENSIONC.Text + "',SU_ENSIOND='" + ST_ENSIOND.Text + "',");
+                    sql.Append("update StencilUse set su_returnman='" + User.UserName + "',SU_BACKDATE=sysdate,SU_ENSIONA='" + ST_ENSIONA.Text + "',SU_ENSIONB='" + ST_ENSIONB.Text + "',SU_ENSIONC='" + ST_ENSIONC.Text + "',SU_ENSIOND='" + ST_ENSIOND.Text + "',");
                     sql.Append("SU_ENSIONE='" + ST_ENSIONE.Text + "',SU_STATUS='在仓'");
                     sql.Append(",SU_RETURNIFCLEAN='" + (SU_RETURNIFCLEAN.Checked ? "-1" : "0") + "' where su_id=(select max(su_id) from stenciluse where su_stcode='" + SU_DEVCODE1.Text + "' and su_status='借出')");
                     dh.ExecuteSql(sql.ToString(), "update");
@@ -176,7 +179,7 @@ namespace UAS_MES.Make
         Make_StencilScrapReason form;
         private void Scrap_Click(object sender, EventArgs e)
         {
-            DataTable dt = (DataTable)dh.ExecuteSql("select st_usestatus from stencil where st_code='" + SU_DEVCODE1.Text + "'", "select");
+            DataTable dt = (DataTable)dh.ExecuteSql("select st_usestatus,st_status from stencil where st_code='" + SU_DEVCODE1.Text + "' and st_statuscode='AUDITED'", "select");
             if (dt.Rows.Count > 0)
             {
                 if (dt.Rows[0]["st_usestatus"].ToString() == "报废")
@@ -199,6 +202,10 @@ namespace UAS_MES.Make
                 form.Controls["ConfirmScrap"].Click += Make_SMTStencil_Click;
                 form.ShowDialog();
             }
+            else
+            {
+                MessageBox.Show("钢网编号" + SU_DEVCODE1.Text + "不存在或者未审核");
+            }
         }
 
         private void Make_SMTStencil_Click(object sender, EventArgs e)
@@ -210,14 +217,12 @@ namespace UAS_MES.Make
                 MessageBox.Show("报废原因不能为空");
                 return;
             }
-            DataTable dt = (DataTable)dh.ExecuteSql("select St_USECOUNT from stencil where st_code='" + SU_DEVCODE1.Text + "'", "select");
-            string St_USECOUNT = dt.Rows[0]["St_USECOUNT"].ToString();
             sql.Clear();
             sql.Append("update StencilUse set SU_IFSCRAPOLD=-1,SU_STATUS='报废',SU_ENSIONA='" + ST_ENSIONA.Text + "',SU_ENSIONB='" + ST_ENSIONB.Text + "',SU_ENSIONC='" + ST_ENSIONC.Text + "',SU_ENSIOND='" + ST_ENSIOND.Text + "',SU_ENSIONE='" + ST_ENSIONE.Text + "'");
             sql.Append(",SU_RETURNIFCLEAN='" + (SU_RETURNIFCLEAN.Checked ? "-1" : "0") + "' where su_id=(select max(su_id) from stenciluse where su_stcode='" + SU_DEVCODE1.Text + "')");
             dh.ExecuteSql(sql.ToString(), "update");
             sql.Clear();
-            sql.Append("update Stencil set ST_SCRAPREASON='" + scrapreason + "',ST_USESTATUS='报废',ST_ENSIONA='" + ST_ENSIONA.Text + "',ST_ENSIONB='" + ST_ENSIONB.Text + "',");
+            sql.Append("update Stencil set ST_SCRAPREASON='" + scrapreason + "',ST_SCRAPMANCODE='" + User.UserCode + "',st_scrapman='" + User.UserName + "',st_scrapdate=sysdate,ST_USESTATUS='报废',ST_ENSIONA='" + ST_ENSIONA.Text + "',ST_ENSIONB='" + ST_ENSIONB.Text + "',");
             sql.Append("ST_ENSIONC='" + ST_ENSIONC.Text + "',ST_ENSIOND='" + ST_ENSIOND.Text + "',ST_ENSIONE='" + ST_ENSIONE.Text + "' ");
             sql.Append("where st_code='" + SU_DEVCODE1.Text + "'");
             dh.ExecuteSql(sql.ToString(), "insert");
@@ -237,6 +242,7 @@ namespace UAS_MES.Make
             ST_ENSIONE.Text = "";
             SU_RETURNIFCLEAN.Checked = false;
             Scrap.Enabled = false;
+            MessageBox.Show("报废成功!");
         }
 
         private void Radio_CheckedChanged(object sender, EventArgs e)
@@ -297,9 +303,20 @@ namespace UAS_MES.Make
                     FillCount = FillCount + 1;
                     if (double.TryParse(item, out Range))
                     {
-                        if (Range >= 39 && Range <= 55)
+                        //如果使用过张力范围39-55,使用过30-55
+                        if (ifUsed)
+                        {
+                            if (Range >= 30 && Range <= 55)
+                            {
+                                CheckCount = CheckCount + 1;
+                            }
+                        }
+                        else
                         {
-                            CheckCount = CheckCount + 1;
+                            if (Range >= 39 && Range <= 55)
+                            {
+                                CheckCount = CheckCount + 1;
+                            }
                         }
                     }
                 }
@@ -343,11 +360,23 @@ namespace UAS_MES.Make
         {
             if (e.KeyCode == Keys.Enter)
             {
-                DataTable dt = (DataTable)dh.ExecuteSql("select case when nvl(ST_COMBINENUMBER,1)=0 then 1 else nvl(ST_COMBINENUMBER,1) end from STENCIL where st_code='" + SU_DEVCODE1.Text + "' and st_statuscode='AUDITED'", "select");
+                DataTable dt = (DataTable)dh.ExecuteSql("select nvl(st_usecount,0)st_usecount,case when nvl(ST_COMBINENUMBER,1)=0 then 1 else nvl(ST_COMBINENUMBER,1) end from STENCIL where st_code='" + SU_DEVCODE1.Text + "' and st_statuscode='AUDITED'", "select");
                 if (dt.Rows.Count == 0)
                 {
                     MessageBox.Show("钢网编号" + SU_DEVCODE1.Text + "不存在或者未审核");
                 }
+                else
+                {
+                    st_usecount.Text = dt.Rows[0]["st_usecount"].ToString();
+                    if (int.Parse(st_usecount.Text) > 0)
+                    {
+                        ifUsed = true;
+                    }
+                    else
+                    {
+                        ifUsed = false;
+                    }
+                }
             }
         }
 

+ 24 - 0
UAS-MES/FunctionCode/Make/Make_SMTStockStencil.resx

@@ -256,6 +256,30 @@
   <metadata name="su_usemacode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
+  <metadata name="su_stcode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="st_pcbcode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="su_status.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="SU_LINECODE.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="su_stverison.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="su_singlepringqty.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="su_table.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
+  <metadata name="su_usemacode.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
   <data name="Confirm.DownImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>
         iVBORw0KGgoAAAANSUhEUgAAAEUAAAAWCAYAAACWl1FwAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m

+ 0 - 4
UAS-MES/PublicMethod/LogicHandler.cs

@@ -49,10 +49,6 @@ namespace UAS_MES.PublicMethod
             sql.Append("insert into pagingreleasedetail(prd_id,prd_prid,PRD_RECIPIENTID,PRD_RECIPIENT) ");
             sql.Append("values(PAGINGRELEASEDETAIL_SEQ.NEXTVAL, " + id + ", " + iUserID + ", '" + iUserName + "')");
             dh.ExecuteSql(sql.ToString(), "insert");
-            sql.Clear();
-            sql.Append("insert into pagingreleasedetail(prd_id,prd_prid,PRD_RECIPIENTID,PRD_RECIPIENT) ");
-            sql.Append("values(PAGINGRELEASEDETAIL_SEQ.NEXTVAL, " + id + ", " + iUserID + ", '" + iUserName + "')");
-            dh.ExecuteSql(sql.ToString(), "insert");
             string id1 = dh.GetSEQ("ICQHISTORY_seq");
             sql.Clear();
             sql.Append("Insert into ICQHISTORY (IH_ID,IH_CALL,IH_CALLID,IH_DATE,IH_CONTEXT,IH_ATTACH,IH_FROM,IH_CODEVALUE,IH_CALLER,IH_TITLE,IH_KEYVALUE,IH_PRID) ");

+ 4 - 4
UAS-出货标签管理(吉利通)/PublicMethod/DataHelper.cs

@@ -12,15 +12,15 @@ namespace UAS_LabelMachine
     {
 
         //吉利通外网地址
-        private readonly string ConnectionStrings = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=T_DATACENTER;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=www.jeelyton.net)(PORT=1522)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
+        private readonly string ConnectionStrings = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=T_JEELYTON_WMS;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=www.jeelyton.net)(PORT=1522)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
         //吉利通ERP地址
-        public static readonly string ERPAddesss = "http://www.jeelyton.net:8099/ERP/";
+        public static readonly string ERPAddesss = "http://www.jeelyton.net:8099/WMS/";
         //吉利通FTP
-        public static readonly string FTPAdress = "ftp://218.18.115.198:21|Print|Administrator1@#";
+        public static readonly string FTPAdress = "ftp://www.jeelyton.net:21|JLTFTP|Admin1@#";
         //Oracle端口
         public static readonly string OraclePort = "1522";
         //需要显示的账套
-        public static readonly string Masters = "T_DATACENTER,T_JEELYTON";
+        public static readonly string Masters = "T_JEELYTON_WMS,JEELYTON_WMS";
 
         ////怡海能达外网地址
         //private readonly string ConnectionStrings = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=DATACENTER;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=sz.hi-mantech.com)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";

+ 1022 - 1012
UAS-出货标签管理(吉利通)/UAS_出货标签管理.Designer.cs

@@ -29,6 +29,7 @@
         private void InitializeComponent()
         {
             this.components = new System.ComponentModel.Container();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(UAS_出货标签打印));
             this.ExportData = new System.Windows.Forms.Button();
             this.dataGridViewTextBoxColumn28 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -150,43 +151,6 @@
             this.BackCheck = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.MessageLog = new UAS_LabelMachine.CustomControl.RichText.RichTextAutoBottom();
             this.LabelInf = new UAS_LabelMachine.CustomControl.DataGridViewWithSerialNum();
-            this.Choose = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_autoset = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pd_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_id1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.rownum = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_pdno = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_prodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_ifmodify = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_ifupload = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pr_vendprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_brand = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.sd_brand = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_madein = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_orispeccode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_barcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_zxbzs = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_unit = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_lotno = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_datecode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_year = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_month = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_day = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_ifpick = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_ifprint = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_ifrecheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_datecode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_qty = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_barcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_custbarcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_custmidboxcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_custoutboxcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pd_pocode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pd_custprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pd_custprodspec = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_outboxcode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_outboxcode2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.pi_inoutno = new UAS_LabelMachine.CustomControl.BlurSearch();
             this.SingleLabel = new UAS_LabelMachine.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
             this.SingleDocRefresh = new System.Windows.Forms.LinkLabel();
@@ -261,6 +225,43 @@
             this.FrontendCheck = new UAS_LabelMachine.CustomControl.SerialPortWithTag();
             this.PLC1 = new UAS_LabelMachine.CustomControl.SerialPortWithTag();
             this.ManBackendCheck = new UAS_LabelMachine.CustomControl.SerialPortWithTag();
+            this.Choose = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_autoset = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pd_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_id1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.rownum = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_pdno = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_prodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_ifmodify = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_ifupload = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pr_vendprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_brand = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.sd_brand = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_madein = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_orispeccode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_barcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_zxbzs = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_unit = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_lotno = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_datecode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_year = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_month = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_day = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_ifpick = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_ifprint = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_ifrecheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_datecode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_qty = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_barcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_custbarcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_custmidboxcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_custoutboxcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pd_pocode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pd_custprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pd_custprodspec = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_outboxcode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_outboxcode2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.LogMenu.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.PageSizeNum)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.cu_print_limiteddate)).BeginInit();
@@ -1171,7 +1172,7 @@
             this.outboxProcess.AutoSize = true;
             this.outboxProcess.Font = new System.Drawing.Font("微软雅黑", 12F);
             this.outboxProcess.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
-            this.outboxProcess.Location = new System.Drawing.Point(240, 88);
+            this.outboxProcess.Location = new System.Drawing.Point(239, 87);
             this.outboxProcess.Name = "outboxProcess";
             this.outboxProcess.Size = new System.Drawing.Size(35, 21);
             this.outboxProcess.TabIndex = 114;
@@ -1182,7 +1183,7 @@
             this.midboxProcess.AutoSize = true;
             this.midboxProcess.Font = new System.Drawing.Font("微软雅黑", 12F);
             this.midboxProcess.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
-            this.midboxProcess.Location = new System.Drawing.Point(240, 40);
+            this.midboxProcess.Location = new System.Drawing.Point(239, 39);
             this.midboxProcess.Name = "midboxProcess";
             this.midboxProcess.Size = new System.Drawing.Size(35, 21);
             this.midboxProcess.TabIndex = 113;
@@ -1192,7 +1193,7 @@
             // 
             this.label25.AutoSize = true;
             this.label25.Font = new System.Drawing.Font("微软雅黑", 12F);
-            this.label25.Location = new System.Drawing.Point(240, 64);
+            this.label25.Location = new System.Drawing.Point(239, 63);
             this.label25.Name = "label25";
             this.label25.Size = new System.Drawing.Size(42, 21);
             this.label25.TabIndex = 112;
@@ -1202,7 +1203,7 @@
             // 
             this.label24.AutoSize = true;
             this.label24.Font = new System.Drawing.Font("微软雅黑", 12F);
-            this.label24.Location = new System.Drawing.Point(240, 14);
+            this.label24.Location = new System.Drawing.Point(239, 13);
             this.label24.Name = "label24";
             this.label24.Size = new System.Drawing.Size(42, 21);
             this.label24.TabIndex = 111;
@@ -1334,7 +1335,7 @@
             // 
             this.checkBox2.AutoSize = true;
             this.checkBox2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.checkBox2.Location = new System.Drawing.Point(14, 150);
+            this.checkBox2.Location = new System.Drawing.Point(13, 149);
             this.checkBox2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.checkBox2.Name = "checkBox2";
             this.checkBox2.Size = new System.Drawing.Size(87, 21);
@@ -1346,7 +1347,7 @@
             // 
             this.label23.AutoSize = true;
             this.label23.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label23.Location = new System.Drawing.Point(8, 180);
+            this.label23.Location = new System.Drawing.Point(7, 179);
             this.label23.Name = "label23";
             this.label23.Size = new System.Drawing.Size(68, 17);
             this.label23.TabIndex = 98;
@@ -1356,7 +1357,7 @@
             // 
             this.label22.AutoSize = true;
             this.label22.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label22.Location = new System.Drawing.Point(10, 242);
+            this.label22.Location = new System.Drawing.Point(9, 241);
             this.label22.Name = "label22";
             this.label22.Size = new System.Drawing.Size(56, 17);
             this.label22.TabIndex = 95;
@@ -1366,7 +1367,7 @@
             // 
             this.RecheckBarcode.AutoSize = true;
             this.RecheckBarcode.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.RecheckBarcode.Location = new System.Drawing.Point(184, 240);
+            this.RecheckBarcode.Location = new System.Drawing.Point(183, 239);
             this.RecheckBarcode.Name = "RecheckBarcode";
             this.RecheckBarcode.Size = new System.Drawing.Size(95, 21);
             this.RecheckBarcode.TabIndex = 94;
@@ -1378,7 +1379,7 @@
             // 
             this.RecheckCuprodcode.AutoSize = true;
             this.RecheckCuprodcode.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.RecheckCuprodcode.Location = new System.Drawing.Point(72, 240);
+            this.RecheckCuprodcode.Location = new System.Drawing.Point(71, 239);
             this.RecheckCuprodcode.Name = "RecheckCuprodcode";
             this.RecheckCuprodcode.Size = new System.Drawing.Size(107, 21);
             this.RecheckCuprodcode.TabIndex = 93;
@@ -1390,7 +1391,7 @@
             // 
             this.DetailRange.AutoSize = true;
             this.DetailRange.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.DetailRange.Location = new System.Drawing.Point(12, 216);
+            this.DetailRange.Location = new System.Drawing.Point(11, 215);
             this.DetailRange.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.DetailRange.Name = "DetailRange";
             this.DetailRange.Size = new System.Drawing.Size(138, 21);
@@ -1403,7 +1404,7 @@
             // 
             this.label21.AutoSize = true;
             this.label21.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label21.Location = new System.Drawing.Point(208, 218);
+            this.label21.Location = new System.Drawing.Point(207, 217);
             this.label21.Name = "label21";
             this.label21.Size = new System.Drawing.Size(13, 17);
             this.label21.TabIndex = 90;
@@ -1414,7 +1415,7 @@
             this.Process_midboxcode.AutoSize = true;
             this.Process_midboxcode.Font = new System.Drawing.Font("微软雅黑", 12F);
             this.Process_midboxcode.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
-            this.Process_midboxcode.Location = new System.Drawing.Point(140, 40);
+            this.Process_midboxcode.Location = new System.Drawing.Point(139, 39);
             this.Process_midboxcode.Name = "Process_midboxcode";
             this.Process_midboxcode.Size = new System.Drawing.Size(19, 21);
             this.Process_midboxcode.TabIndex = 74;
@@ -1426,7 +1427,7 @@
             this.Process_outboxcode.AutoSize = true;
             this.Process_outboxcode.Font = new System.Drawing.Font("微软雅黑", 12F);
             this.Process_outboxcode.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192)))));
-            this.Process_outboxcode.Location = new System.Drawing.Point(140, 88);
+            this.Process_outboxcode.Location = new System.Drawing.Point(139, 87);
             this.Process_outboxcode.Name = "Process_outboxcode";
             this.Process_outboxcode.Size = new System.Drawing.Size(19, 21);
             this.Process_outboxcode.TabIndex = 73;
@@ -1438,7 +1439,7 @@
             this.CollectedCount.AutoSize = true;
             this.CollectedCount.Font = new System.Drawing.Font("微软雅黑", 12F);
             this.CollectedCount.ForeColor = System.Drawing.Color.DarkGreen;
-            this.CollectedCount.Location = new System.Drawing.Point(16, 58);
+            this.CollectedCount.Location = new System.Drawing.Point(15, 57);
             this.CollectedCount.Name = "CollectedCount";
             this.CollectedCount.Size = new System.Drawing.Size(35, 21);
             this.CollectedCount.TabIndex = 70;
@@ -1448,7 +1449,7 @@
             // 
             this.label14.AutoSize = true;
             this.label14.Font = new System.Drawing.Font("微软雅黑", 12F);
-            this.label14.Location = new System.Drawing.Point(134, 64);
+            this.label14.Location = new System.Drawing.Point(133, 63);
             this.label14.Name = "label14";
             this.label14.Size = new System.Drawing.Size(74, 21);
             this.label14.TabIndex = 69;
@@ -1458,7 +1459,7 @@
             // 
             this.label11.AutoSize = true;
             this.label11.Font = new System.Drawing.Font("微软雅黑", 12F);
-            this.label11.Location = new System.Drawing.Point(134, 16);
+            this.label11.Location = new System.Drawing.Point(133, 15);
             this.label11.Name = "label11";
             this.label11.Size = new System.Drawing.Size(74, 21);
             this.label11.TabIndex = 68;
@@ -1468,7 +1469,7 @@
             // 
             this.Process.AutoSize = true;
             this.Process.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.Process.Location = new System.Drawing.Point(16, 30);
+            this.Process.Location = new System.Drawing.Point(15, 29);
             this.Process.Name = "Process";
             this.Process.Size = new System.Drawing.Size(44, 17);
             this.Process.TabIndex = 65;
@@ -1556,6 +1557,14 @@
             this.pr_spec,
             this.pib_outboxcode1,
             this.pib_outboxcode2});
+            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window;
+            dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 12.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText;
+            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.LabelInf.DefaultCellStyle = dataGridViewCellStyle1;
             this.LabelInf.Location = new System.Drawing.Point(2, 279);
             this.LabelInf.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.LabelInf.Name = "LabelInf";
@@ -1567,1183 +1576,1184 @@
             this.LabelInf.CellPainting += new System.Windows.Forms.DataGridViewCellPaintingEventHandler(this.LabelInf_CellPainting);
             this.LabelInf.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.LabelInf_DataError);
             // 
-            // Choose
+            // pi_inoutno
             // 
-            this.Choose.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.Choose.HeaderText = "勾选";
-            this.Choose.Name = "Choose";
-            this.Choose.Resizable = System.Windows.Forms.DataGridViewTriState.True;
-            this.Choose.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
-            this.Choose.Visible = false;
-            this.Choose.Width = 55;
+            this.pi_inoutno.Condition = null;
+            this.pi_inoutno.Field = null;
+            this.pi_inoutno.Location = new System.Drawing.Point(76, 10);
+            this.pi_inoutno.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.pi_inoutno.Name = "pi_inoutno";
+            this.pi_inoutno.Size = new System.Drawing.Size(150, 21);
+            this.pi_inoutno.TabIndex = 2;
+            this.pi_inoutno.TableName = null;
+            this.pi_inoutno.Value = null;
+            this.pi_inoutno.ValueField = null;
+            this.pi_inoutno.UserKeyDown += new UAS_LabelMachine.CustomControl.BlurSearch.OnKeyDown(this.pi_inoutno_KeyDown);
             // 
-            // pib_autoset
+            // SingleLabel
             // 
-            this.pib_autoset.HeaderText = "pib_autoset";
-            this.pib_autoset.Name = "pib_autoset";
-            this.pib_autoset.Visible = false;
-            this.pib_autoset.Width = 96;
+            this.SingleLabel.Controls.Add(this.SingleDocRefresh);
+            this.SingleLabel.Controls.Add(this.label17);
+            this.SingleLabel.Controls.Add(this.groupBoxWithBorder4);
+            this.SingleLabel.Controls.Add(this.label7);
+            this.SingleLabel.Controls.Add(this.label16);
+            this.SingleLabel.Controls.Add(this.SingleLabelPrinter);
+            this.SingleLabel.Controls.Add(this.SingleBoxEnd);
+            this.SingleLabel.Controls.Add(this.SingleBoxBegin);
+            this.SingleLabel.Controls.Add(this.SingleLabelPrint);
+            this.SingleLabel.Controls.Add(this.SingleLabelAutoPrint);
+            this.SingleLabel.Controls.Add(this.SingleLabelCombox);
+            this.SingleLabel.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.SingleLabel.Location = new System.Drawing.Point(638, 6);
+            this.SingleLabel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.SingleLabel.Name = "SingleLabel";
+            this.SingleLabel.Padding = new System.Windows.Forms.Padding(2);
+            this.SingleLabel.Size = new System.Drawing.Size(180, 269);
+            this.SingleLabel.TabIndex = 77;
+            this.SingleLabel.TabStop = false;
+            this.SingleLabel.Text = "单盘标签";
             // 
-            // pd_id
+            // SingleDocRefresh
             // 
-            this.pd_id.DataPropertyName = "pd_id";
-            this.pd_id.HeaderText = "pd_id";
-            this.pd_id.Name = "pd_id";
-            this.pd_id.Visible = false;
-            this.pd_id.Width = 60;
+            this.SingleDocRefresh.AutoSize = true;
+            this.SingleDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.SingleDocRefresh.Location = new System.Drawing.Point(69, 25);
+            this.SingleDocRefresh.Name = "SingleDocRefresh";
+            this.SingleDocRefresh.Size = new System.Drawing.Size(37, 20);
+            this.SingleDocRefresh.TabIndex = 118;
+            this.SingleDocRefresh.TabStop = true;
+            this.SingleDocRefresh.Text = "刷新";
+            this.SingleDocRefresh.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.DocRefresh_LinkClicked);
             // 
-            // pib_id1
+            // label17
             // 
-            this.pib_id1.DataPropertyName = "pib_id";
-            this.pib_id1.HeaderText = "pib_id";
-            this.pib_id1.Name = "pib_id1";
-            this.pib_id1.Visible = false;
-            this.pib_id1.Width = 66;
+            this.label17.AutoSize = true;
+            this.label17.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.label17.Location = new System.Drawing.Point(11, 25);
+            this.label17.Name = "label17";
+            this.label17.Size = new System.Drawing.Size(55, 20);
+            this.label17.TabIndex = 115;
+            this.label17.Text = "格式(T)";
             // 
-            // rownum
+            // groupBoxWithBorder4
             // 
-            this.rownum.DataPropertyName = "rownum";
-            this.rownum.HeaderText = "行号";
-            this.rownum.Name = "rownum";
-            this.rownum.Width = 54;
+            this.groupBoxWithBorder4.Controls.Add(this.label20);
+            this.groupBoxWithBorder4.Controls.Add(this.BackCombo);
+            this.groupBoxWithBorder4.Controls.Add(this.label19);
+            this.groupBoxWithBorder4.Controls.Add(this.FrontCombo);
+            this.groupBoxWithBorder4.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.groupBoxWithBorder4.Location = new System.Drawing.Point(7, 186);
+            this.groupBoxWithBorder4.Name = "groupBoxWithBorder4";
+            this.groupBoxWithBorder4.Size = new System.Drawing.Size(165, 78);
+            this.groupBoxWithBorder4.TabIndex = 41;
+            this.groupBoxWithBorder4.TabStop = false;
+            this.groupBoxWithBorder4.Text = "扫描区域";
             // 
-            // pib_pdno
+            // label20
             // 
-            this.pib_pdno.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
-            this.pib_pdno.DataPropertyName = "pib_pdno";
-            this.pib_pdno.HeaderText = "明细序号";
-            this.pib_pdno.Name = "pib_pdno";
-            this.pib_pdno.ReadOnly = true;
-            this.pib_pdno.Width = 78;
+            this.label20.AutoSize = true;
+            this.label20.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.label20.Location = new System.Drawing.Point(8, 48);
+            this.label20.Name = "label20";
+            this.label20.Size = new System.Drawing.Size(37, 20);
+            this.label20.TabIndex = 94;
+            this.label20.Text = "后端";
             // 
-            // pib_prodcode
+            // BackCombo
             // 
-            this.pib_prodcode.DataPropertyName = "pib_prodcode";
-            this.pib_prodcode.HeaderText = "物料编号";
-            this.pib_prodcode.Name = "pib_prodcode";
-            this.pib_prodcode.ReadOnly = true;
-            this.pib_prodcode.Width = 78;
+            this.BackCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.BackCombo.Font = new System.Drawing.Font("微软雅黑", 8F);
+            this.BackCombo.FormattingEnabled = true;
+            this.BackCombo.Location = new System.Drawing.Point(52, 48);
+            this.BackCombo.Name = "BackCombo";
+            this.BackCombo.Size = new System.Drawing.Size(105, 24);
+            this.BackCombo.TabIndex = 93;
             // 
-            // pib_ifmodify
+            // label19
             // 
-            this.pib_ifmodify.DataPropertyName = "pib_ifmodify";
-            this.pib_ifmodify.HeaderText = "已修改";
-            this.pib_ifmodify.Name = "pib_ifmodify";
-            this.pib_ifmodify.Resizable = System.Windows.Forms.DataGridViewTriState.True;
-            this.pib_ifmodify.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
-            this.pib_ifmodify.Width = 66;
+            this.label19.AutoSize = true;
+            this.label19.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.label19.Location = new System.Drawing.Point(8, 24);
+            this.label19.Name = "label19";
+            this.label19.Size = new System.Drawing.Size(37, 20);
+            this.label19.TabIndex = 92;
+            this.label19.Text = "前端";
             // 
-            // pib_ifupload
+            // FrontCombo
             // 
-            this.pib_ifupload.DataPropertyName = "pib_ifupload";
-            this.pib_ifupload.HeaderText = "已上传";
-            this.pib_ifupload.Name = "pib_ifupload";
-            this.pib_ifupload.Resizable = System.Windows.Forms.DataGridViewTriState.True;
-            this.pib_ifupload.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
-            this.pib_ifupload.Width = 66;
+            this.FrontCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.FrontCombo.Font = new System.Drawing.Font("微软雅黑", 8F);
+            this.FrontCombo.FormattingEnabled = true;
+            this.FrontCombo.Location = new System.Drawing.Point(52, 22);
+            this.FrontCombo.Name = "FrontCombo";
+            this.FrontCombo.Size = new System.Drawing.Size(105, 24);
+            this.FrontCombo.TabIndex = 0;
             // 
-            // pr_vendprodcode
+            // label7
             // 
-            this.pr_vendprodcode.DataPropertyName = "pr_vendprodcode";
-            this.pr_vendprodcode.HeaderText = "MPN";
-            this.pr_vendprodcode.Name = "pr_vendprodcode";
-            this.pr_vendprodcode.ReadOnly = true;
-            this.pr_vendprodcode.Visible = false;
-            this.pr_vendprodcode.Width = 48;
+            this.label7.AutoSize = true;
+            this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label7.Location = new System.Drawing.Point(9, 141);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(56, 17);
+            this.label7.TabIndex = 76;
+            this.label7.Text = "单盘范围";
             // 
-            // pib_brand
+            // label16
             // 
-            this.pib_brand.DataPropertyName = "pib_brand";
-            this.pib_brand.HeaderText = "品牌";
-            this.pib_brand.Name = "pib_brand";
-            this.pib_brand.ReadOnly = true;
-            this.pib_brand.Width = 54;
+            this.label16.AutoSize = true;
+            this.label16.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label16.Location = new System.Drawing.Point(67, 165);
+            this.label16.Name = "label16";
+            this.label16.Size = new System.Drawing.Size(13, 17);
+            this.label16.TabIndex = 87;
+            this.label16.Text = "-";
             // 
-            // sd_brand
+            // SingleLabelPrinter
             // 
-            this.sd_brand.DataPropertyName = "sd_brand";
-            this.sd_brand.HeaderText = "出货品牌";
-            this.sd_brand.Name = "sd_brand";
-            this.sd_brand.Width = 78;
-            // 
-            // pib_madein
+            this.SingleLabelPrinter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.SingleLabelPrinter.Location = new System.Drawing.Point(6, 81);
+            this.SingleLabelPrinter.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
+            this.SingleLabelPrinter.Name = "SingleLabelPrinter";
+            this.SingleLabelPrinter.Size = new System.Drawing.Size(169, 25);
+            this.SingleLabelPrinter.TabIndex = 40;
+            this.SingleLabelPrinter.UserOnSelectIndexChange += new UAS_LabelMachine.CustomControl.PrinterCombox.OnSelectIndexChange(this.LabelPrinter_UserOnSelectIndexChange);
             // 
-            this.pib_madein.DataPropertyName = "pib_madein";
-            this.pib_madein.HeaderText = "产地";
-            this.pib_madein.Name = "pib_madein";
-            this.pib_madein.Visible = false;
-            this.pib_madein.Width = 54;
+            // SingleBoxEnd
             // 
-            // pr_orispeccode
+            this.SingleBoxEnd.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.SingleBoxEnd.ID = null;
+            this.SingleBoxEnd.Location = new System.Drawing.Point(85, 162);
+            this.SingleBoxEnd.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.SingleBoxEnd.Name = "SingleBoxEnd";
+            this.SingleBoxEnd.Size = new System.Drawing.Size(50, 23);
+            this.SingleBoxEnd.Str = null;
+            this.SingleBoxEnd.Str1 = null;
+            this.SingleBoxEnd.Str2 = null;
+            this.SingleBoxEnd.TabIndex = 86;
             // 
-            this.pr_orispeccode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
-            this.pr_orispeccode.DataPropertyName = "pr_orispeccode";
-            this.pr_orispeccode.HeaderText = "原厂型号";
-            this.pr_orispeccode.Name = "pr_orispeccode";
-            this.pr_orispeccode.Width = 78;
+            // SingleBoxBegin
             // 
-            // pr_barcode
+            this.SingleBoxBegin.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.SingleBoxBegin.ID = null;
+            this.SingleBoxBegin.Location = new System.Drawing.Point(12, 162);
+            this.SingleBoxBegin.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.SingleBoxBegin.Name = "SingleBoxBegin";
+            this.SingleBoxBegin.Size = new System.Drawing.Size(50, 23);
+            this.SingleBoxBegin.Str = null;
+            this.SingleBoxBegin.Str1 = null;
+            this.SingleBoxBegin.Str2 = null;
+            this.SingleBoxBegin.TabIndex = 85;
             // 
-            this.pr_barcode.DataPropertyName = "pr_barcode";
-            this.pr_barcode.HeaderText = "型号条码";
-            this.pr_barcode.Name = "pr_barcode";
-            this.pr_barcode.Width = 78;
+            // SingleLabelPrint
             // 
-            // pr_zxbzs
+            this.SingleLabelPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.SingleLabelPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.SingleLabelPrint.Location = new System.Drawing.Point(82, 111);
+            this.SingleLabelPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.SingleLabelPrint.Name = "SingleLabelPrint";
+            this.SingleLabelPrint.Size = new System.Drawing.Size(66, 26);
+            this.SingleLabelPrint.TabIndex = 36;
+            this.SingleLabelPrint.Text = "打印盘标";
+            this.SingleLabelPrint.UseVisualStyleBackColor = true;
+            this.SingleLabelPrint.Click += new System.EventHandler(this.SingleLabelPrint_Click);
             // 
-            this.pr_zxbzs.DataPropertyName = "pr_zxbzs";
-            this.pr_zxbzs.HeaderText = "最小包装数";
-            this.pr_zxbzs.Name = "pr_zxbzs";
-            this.pr_zxbzs.Visible = false;
-            this.pr_zxbzs.Width = 90;
+            // SingleLabelAutoPrint
             // 
-            // pr_unit
+            this.SingleLabelAutoPrint.AutoSize = true;
+            this.SingleLabelAutoPrint.Checked = true;
+            this.SingleLabelAutoPrint.CheckState = System.Windows.Forms.CheckState.Checked;
+            this.SingleLabelAutoPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.SingleLabelAutoPrint.Location = new System.Drawing.Point(11, 113);
+            this.SingleLabelAutoPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.SingleLabelAutoPrint.Name = "SingleLabelAutoPrint";
+            this.SingleLabelAutoPrint.Size = new System.Drawing.Size(75, 21);
+            this.SingleLabelAutoPrint.TabIndex = 30;
+            this.SingleLabelAutoPrint.Text = "自动打印";
+            this.SingleLabelAutoPrint.UseVisualStyleBackColor = true;
             // 
-            this.pr_unit.DataPropertyName = "pr_unit";
-            this.pr_unit.HeaderText = "单位";
-            this.pr_unit.Name = "pr_unit";
-            this.pr_unit.Width = 54;
+            // SingleLabelCombox
             // 
-            // pib_lotno
+            this.SingleLabelCombox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.SingleLabelCombox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.SingleLabelCombox.FormattingEnabled = true;
+            this.SingleLabelCombox.Location = new System.Drawing.Point(7, 49);
+            this.SingleLabelCombox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.SingleLabelCombox.Name = "SingleLabelCombox";
+            this.SingleLabelCombox.Size = new System.Drawing.Size(168, 25);
+            this.SingleLabelCombox.TabIndex = 0;
+            this.SingleLabelCombox.SelectedIndexChanged += new System.EventHandler(this.SingleLabelCombox_SelectedIndexChanged);
             // 
-            this.pib_lotno.DataPropertyName = "pib_lotno";
-            this.pib_lotno.HeaderText = "LotNo";
-            this.pib_lotno.Name = "pib_lotno";
-            this.pib_lotno.Width = 60;
+            // MidLabel
             // 
-            // pib_datecode
+            this.MidLabel.Controls.Add(this.MidDocRefresh);
+            this.MidLabel.Controls.Add(this.label26);
+            this.MidLabel.Controls.Add(this.groupBoxWithBorder5);
+            this.MidLabel.Controls.Add(this.label2);
+            this.MidLabel.Controls.Add(this.label1);
+            this.MidLabel.Controls.Add(this.LeastPrintNum);
+            this.MidLabel.Controls.Add(this.OnlyPrint);
+            this.MidLabel.Controls.Add(this.groupBoxWithBorder2);
+            this.MidLabel.Controls.Add(this.label18);
+            this.MidLabel.Controls.Add(this.MidLabelNum);
+            this.MidLabel.Controls.Add(this.MidBoxEnd);
+            this.MidLabel.Controls.Add(this.label12);
+            this.MidLabel.Controls.Add(this.label5);
+            this.MidLabel.Controls.Add(this.MidBoxBegin);
+            this.MidLabel.Controls.Add(this.label4);
+            this.MidLabel.Controls.Add(this.MidLabelPrinter);
+            this.MidLabel.Controls.Add(this.label15);
+            this.MidLabel.Controls.Add(this.MidBoxCapacity);
+            this.MidLabel.Controls.Add(this.MidLabelPrint);
+            this.MidLabel.Controls.Add(this.MidLabelAutoPrint);
+            this.MidLabel.Controls.Add(this.MidLabelCombox);
+            this.MidLabel.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.MidLabel.Location = new System.Drawing.Point(823, 6);
+            this.MidLabel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidLabel.Name = "MidLabel";
+            this.MidLabel.Padding = new System.Windows.Forms.Padding(2);
+            this.MidLabel.Size = new System.Drawing.Size(279, 269);
+            this.MidLabel.TabIndex = 78;
+            this.MidLabel.TabStop = false;
+            this.MidLabel.Text = "中盒标签";
             // 
-            this.pib_datecode.DataPropertyName = "pib_datecode";
-            this.pib_datecode.HeaderText = "DateCode";
-            this.pib_datecode.Name = "pib_datecode";
-            this.pib_datecode.Width = 78;
+            // MidDocRefresh
             // 
-            // pib_year
+            this.MidDocRefresh.AutoSize = true;
+            this.MidDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.MidDocRefresh.Location = new System.Drawing.Point(69, 27);
+            this.MidDocRefresh.Name = "MidDocRefresh";
+            this.MidDocRefresh.Size = new System.Drawing.Size(37, 20);
+            this.MidDocRefresh.TabIndex = 120;
+            this.MidDocRefresh.TabStop = true;
+            this.MidDocRefresh.Text = "刷新";
             // 
-            this.pib_year.DataPropertyName = "pib_year";
-            this.pib_year.HeaderText = "年";
-            this.pib_year.Name = "pib_year";
-            this.pib_year.Width = 42;
+            // label26
             // 
-            // pib_month
+            this.label26.AutoSize = true;
+            this.label26.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.label26.Location = new System.Drawing.Point(11, 27);
+            this.label26.Name = "label26";
+            this.label26.Size = new System.Drawing.Size(55, 20);
+            this.label26.TabIndex = 116;
+            this.label26.Text = "格式(T)";
             // 
-            this.pib_month.DataPropertyName = "pib_month";
-            this.pib_month.HeaderText = "月";
-            this.pib_month.Name = "pib_month";
-            this.pib_month.Width = 42;
+            // groupBoxWithBorder5
             // 
-            // pib_day
+            this.groupBoxWithBorder5.Controls.Add(this.Expression);
+            this.groupBoxWithBorder5.Controls.Add(this.Equal);
+            this.groupBoxWithBorder5.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.groupBoxWithBorder5.Location = new System.Drawing.Point(9, 198);
+            this.groupBoxWithBorder5.Name = "groupBoxWithBorder5";
+            this.groupBoxWithBorder5.Size = new System.Drawing.Size(158, 64);
+            this.groupBoxWithBorder5.TabIndex = 95;
+            this.groupBoxWithBorder5.TabStop = false;
+            this.groupBoxWithBorder5.Text = "客户料号匹配模式";
             // 
-            this.pib_day.DataPropertyName = "pib_day";
-            this.pib_day.HeaderText = "日";
-            this.pib_day.Name = "pib_day";
-            this.pib_day.Width = 42;
+            // Expression
             // 
-            // pib_ifpick
+            this.Expression.AutoSize = true;
+            this.Expression.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.Expression.Location = new System.Drawing.Point(86, 38);
+            this.Expression.Name = "Expression";
+            this.Expression.Size = new System.Drawing.Size(62, 21);
+            this.Expression.TabIndex = 1;
+            this.Expression.TabStop = true;
+            this.Expression.Text = "表达式";
+            this.Expression.UseVisualStyleBackColor = true;
             // 
-            this.pib_ifpick.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.pib_ifpick.DataPropertyName = "pib_ifpick";
-            this.pib_ifpick.HeaderText = "已扫描";
-            this.pib_ifpick.Name = "pib_ifpick";
-            this.pib_ifpick.Width = 60;
+            // Equal
             // 
-            // pib_ifprint
+            this.Equal.AutoSize = true;
+            this.Equal.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.Equal.Location = new System.Drawing.Point(20, 38);
+            this.Equal.Name = "Equal";
+            this.Equal.Size = new System.Drawing.Size(50, 21);
+            this.Equal.TabIndex = 0;
+            this.Equal.TabStop = true;
+            this.Equal.Text = "相等";
+            this.Equal.UseVisualStyleBackColor = true;
             // 
-            this.pib_ifprint.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.pib_ifprint.DataPropertyName = "pib_ifprint";
-            this.pib_ifprint.HeaderText = "已打标";
-            this.pib_ifprint.Name = "pib_ifprint";
-            this.pib_ifprint.Width = 60;
+            // label2
             // 
-            // pib_ifrecheck
+            this.label2.AutoSize = true;
+            this.label2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label2.Location = new System.Drawing.Point(169, 101);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(32, 17);
+            this.label2.TabIndex = 94;
+            this.label2.Text = "至少";
             // 
-            this.pib_ifrecheck.DataPropertyName = "pib_ifrecheck";
-            this.pib_ifrecheck.HeaderText = "已复核";
-            this.pib_ifrecheck.Name = "pib_ifrecheck";
-            this.pib_ifrecheck.Width = 47;
+            // label1
             // 
-            // pib_datecode1
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label1.Location = new System.Drawing.Point(251, 101);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(20, 17);
+            this.label1.TabIndex = 93;
+            this.label1.Text = "盘";
             // 
-            this.pib_datecode1.DataPropertyName = "pib_datecode1";
-            this.pib_datecode1.HeaderText = "DateCode1";
-            this.pib_datecode1.Name = "pib_datecode1";
-            this.pib_datecode1.Visible = false;
-            this.pib_datecode1.Width = 84;
+            // LeastPrintNum
             // 
-            // pib_qty
+            this.LeastPrintNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.LeastPrintNum.Location = new System.Drawing.Point(201, 96);
+            this.LeastPrintNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.LeastPrintNum.Name = "LeastPrintNum";
+            this.LeastPrintNum.Size = new System.Drawing.Size(44, 23);
+            this.LeastPrintNum.TabIndex = 92;
             // 
-            this.pib_qty.DataPropertyName = "pib_qty";
-            this.pib_qty.HeaderText = "数量";
-            this.pib_qty.Name = "pib_qty";
-            this.pib_qty.ReadOnly = true;
-            this.pib_qty.Width = 54;
+            // OnlyPrint
             // 
-            // pib_barcode
+            this.OnlyPrint.AutoSize = true;
+            this.OnlyPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OnlyPrint.Location = new System.Drawing.Point(173, 73);
+            this.OnlyPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.OnlyPrint.Name = "OnlyPrint";
+            this.OnlyPrint.Size = new System.Drawing.Size(63, 21);
+            this.OnlyPrint.TabIndex = 91;
+            this.OnlyPrint.Text = "仅打印";
+            this.OnlyPrint.UseVisualStyleBackColor = true;
             // 
-            this.pib_barcode.DataPropertyName = "pib_barcode";
-            this.pib_barcode.HeaderText = "唯一条码";
-            this.pib_barcode.Name = "pib_barcode";
-            this.pib_barcode.ReadOnly = true;
-            this.pib_barcode.Width = 78;
+            // groupBoxWithBorder2
             // 
-            // pib_custbarcode
-            // 
-            this.pib_custbarcode.DataPropertyName = "pib_custbarcode";
-            this.pib_custbarcode.HeaderText = "唯一条码";
-            this.pib_custbarcode.Name = "pib_custbarcode";
-            this.pib_custbarcode.ReadOnly = true;
-            this.pib_custbarcode.Visible = false;
-            this.pib_custbarcode.Width = 78;
+            this.groupBoxWithBorder2.Controls.Add(this.cu_print_middc);
+            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midprod);
+            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midpo);
+            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midspec);
+            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midlotno);
+            this.groupBoxWithBorder2.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.groupBoxWithBorder2.Location = new System.Drawing.Point(172, 121);
+            this.groupBoxWithBorder2.Margin = new System.Windows.Forms.Padding(2);
+            this.groupBoxWithBorder2.Name = "groupBoxWithBorder2";
+            this.groupBoxWithBorder2.Padding = new System.Windows.Forms.Padding(2);
+            this.groupBoxWithBorder2.Size = new System.Drawing.Size(101, 145);
+            this.groupBoxWithBorder2.TabIndex = 81;
+            this.groupBoxWithBorder2.TabStop = false;
+            this.groupBoxWithBorder2.Text = "流水合并条件";
             // 
-            // pib_custmidboxcode
+            // cu_print_middc
             // 
-            this.pib_custmidboxcode.DataPropertyName = "pib_custmidboxcode";
-            this.pib_custmidboxcode.HeaderText = "中盒条码";
-            this.pib_custmidboxcode.Name = "pib_custmidboxcode";
-            this.pib_custmidboxcode.Visible = false;
-            this.pib_custmidboxcode.Width = 78;
+            this.cu_print_middc.AutoSize = true;
+            this.cu_print_middc.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_middc.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_middc.Location = new System.Drawing.Point(15, 117);
+            this.cu_print_middc.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_middc.Name = "cu_print_middc";
+            this.cu_print_middc.Size = new System.Drawing.Size(68, 21);
+            this.cu_print_middc.TabIndex = 97;
+            this.cu_print_middc.Text = "合并DC";
+            this.cu_print_middc.UseVisualStyleBackColor = true;
             // 
-            // pib_custoutboxcode
+            // cu_print_midprod
             // 
-            this.pib_custoutboxcode.DataPropertyName = "pib_custoutboxcode";
-            this.pib_custoutboxcode.HeaderText = "外箱条码";
-            this.pib_custoutboxcode.Name = "pib_custoutboxcode";
-            this.pib_custoutboxcode.Visible = false;
-            this.pib_custoutboxcode.Width = 78;
+            this.cu_print_midprod.AutoSize = true;
+            this.cu_print_midprod.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_midprod.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_midprod.Location = new System.Drawing.Point(15, 95);
+            this.cu_print_midprod.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_midprod.Name = "cu_print_midprod";
+            this.cu_print_midprod.Size = new System.Drawing.Size(75, 21);
+            this.cu_print_midprod.TabIndex = 92;
+            this.cu_print_midprod.Text = "客户料号";
+            this.cu_print_midprod.UseVisualStyleBackColor = true;
             // 
-            // pd_pocode
+            // cu_print_midpo
             // 
-            this.pd_pocode.DataPropertyName = "pd_pocode";
-            this.pd_pocode.HeaderText = "客户PO";
-            this.pd_pocode.Name = "pd_pocode";
-            this.pd_pocode.ReadOnly = true;
-            this.pd_pocode.Width = 66;
+            this.cu_print_midpo.AutoSize = true;
+            this.cu_print_midpo.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_midpo.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_midpo.Location = new System.Drawing.Point(15, 71);
+            this.cu_print_midpo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_midpo.Name = "cu_print_midpo";
+            this.cu_print_midpo.Size = new System.Drawing.Size(75, 21);
+            this.cu_print_midpo.TabIndex = 93;
+            this.cu_print_midpo.Text = "客户合同";
+            this.cu_print_midpo.UseVisualStyleBackColor = true;
             // 
-            // pd_custprodcode
+            // cu_print_midspec
             // 
-            this.pd_custprodcode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
-            this.pd_custprodcode.DataPropertyName = "pd_custprodcode";
-            this.pd_custprodcode.HeaderText = "客户料号";
-            this.pd_custprodcode.Name = "pd_custprodcode";
-            this.pd_custprodcode.ReadOnly = true;
-            this.pd_custprodcode.Width = 78;
+            this.cu_print_midspec.AutoSize = true;
+            this.cu_print_midspec.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_midspec.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_midspec.Location = new System.Drawing.Point(15, 47);
+            this.cu_print_midspec.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_midspec.Name = "cu_print_midspec";
+            this.cu_print_midspec.Size = new System.Drawing.Size(75, 21);
+            this.cu_print_midspec.TabIndex = 94;
+            this.cu_print_midspec.Text = "出库型号";
+            this.cu_print_midspec.UseVisualStyleBackColor = true;
             // 
-            // pd_custprodspec
+            // cu_print_midlotno
             // 
-            this.pd_custprodspec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
-            this.pd_custprodspec.DataPropertyName = "pd_custprodspec";
-            this.pd_custprodspec.HeaderText = "客户型号";
-            this.pd_custprodspec.Name = "pd_custprodspec";
-            this.pd_custprodspec.ReadOnly = true;
-            this.pd_custprodspec.Width = 78;
+            this.cu_print_midlotno.AutoSize = true;
+            this.cu_print_midlotno.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_midlotno.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_midlotno.Location = new System.Drawing.Point(15, 23);
+            this.cu_print_midlotno.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_midlotno.Name = "cu_print_midlotno";
+            this.cu_print_midlotno.Size = new System.Drawing.Size(63, 21);
+            this.cu_print_midlotno.TabIndex = 95;
+            this.cu_print_midlotno.Text = "LotNo";
+            this.cu_print_midlotno.UseVisualStyleBackColor = true;
             // 
-            // pr_spec
+            // label18
             // 
-            this.pr_spec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
-            this.pr_spec.DataPropertyName = "pr_spec";
-            this.pr_spec.HeaderText = "规格";
-            this.pr_spec.Name = "pr_spec";
-            this.pr_spec.Width = 54;
+            this.label18.AutoSize = true;
+            this.label18.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label18.Location = new System.Drawing.Point(65, 167);
+            this.label18.Name = "label18";
+            this.label18.Size = new System.Drawing.Size(13, 17);
+            this.label18.TabIndex = 90;
+            this.label18.Text = "-";
             // 
-            // pib_outboxcode1
+            // MidLabelNum
             // 
-            this.pib_outboxcode1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
-            this.pib_outboxcode1.DataPropertyName = "pib_outboxcode1";
-            this.pib_outboxcode1.HeaderText = "中盒号";
-            this.pib_outboxcode1.Name = "pib_outboxcode1";
-            this.pib_outboxcode1.Width = 66;
+            this.MidLabelNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.MidLabelNum.ID = null;
+            this.MidLabelNum.Location = new System.Drawing.Point(201, 44);
+            this.MidLabelNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidLabelNum.Name = "MidLabelNum";
+            this.MidLabelNum.Size = new System.Drawing.Size(44, 23);
+            this.MidLabelNum.Str = null;
+            this.MidLabelNum.Str1 = null;
+            this.MidLabelNum.Str2 = null;
+            this.MidLabelNum.TabIndex = 56;
             // 
-            // pib_outboxcode2
+            // MidBoxEnd
             // 
-            this.pib_outboxcode2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
-            this.pib_outboxcode2.DataPropertyName = "pib_outboxcode2";
-            this.pib_outboxcode2.HeaderText = "外箱号";
-            this.pib_outboxcode2.Name = "pib_outboxcode2";
-            this.pib_outboxcode2.Width = 66;
+            this.MidBoxEnd.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.MidBoxEnd.ID = null;
+            this.MidBoxEnd.Location = new System.Drawing.Point(83, 163);
+            this.MidBoxEnd.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidBoxEnd.Name = "MidBoxEnd";
+            this.MidBoxEnd.Size = new System.Drawing.Size(50, 23);
+            this.MidBoxEnd.Str = null;
+            this.MidBoxEnd.Str1 = null;
+            this.MidBoxEnd.Str2 = null;
+            this.MidBoxEnd.TabIndex = 89;
             // 
-            // pi_inoutno
+            // label12
             // 
-            this.pi_inoutno.Condition = null;
-            this.pi_inoutno.Field = null;
-            this.pi_inoutno.Location = new System.Drawing.Point(76, 10);
-            this.pi_inoutno.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.pi_inoutno.Name = "pi_inoutno";
-            this.pi_inoutno.Size = new System.Drawing.Size(150, 21);
-            this.pi_inoutno.TabIndex = 2;
-            this.pi_inoutno.TableName = null;
-            this.pi_inoutno.Value = null;
-            this.pi_inoutno.ValueField = null;
-            this.pi_inoutno.UserKeyDown += new UAS_LabelMachine.CustomControl.BlurSearch.OnKeyDown(this.pi_inoutno_KeyDown);
+            this.label12.AutoSize = true;
+            this.label12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label12.Location = new System.Drawing.Point(9, 143);
+            this.label12.Name = "label12";
+            this.label12.Size = new System.Drawing.Size(56, 17);
+            this.label12.TabIndex = 77;
+            this.label12.Text = "中盒范围";
             // 
-            // SingleLabel
+            // label5
             // 
-            this.SingleLabel.Controls.Add(this.SingleDocRefresh);
-            this.SingleLabel.Controls.Add(this.label17);
-            this.SingleLabel.Controls.Add(this.groupBoxWithBorder4);
-            this.SingleLabel.Controls.Add(this.label7);
-            this.SingleLabel.Controls.Add(this.label16);
-            this.SingleLabel.Controls.Add(this.SingleLabelPrinter);
-            this.SingleLabel.Controls.Add(this.SingleBoxEnd);
-            this.SingleLabel.Controls.Add(this.SingleBoxBegin);
-            this.SingleLabel.Controls.Add(this.SingleLabelPrint);
-            this.SingleLabel.Controls.Add(this.SingleLabelAutoPrint);
-            this.SingleLabel.Controls.Add(this.SingleLabelCombox);
-            this.SingleLabel.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SingleLabel.Location = new System.Drawing.Point(638, 6);
-            this.SingleLabel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.SingleLabel.Name = "SingleLabel";
-            this.SingleLabel.Padding = new System.Windows.Forms.Padding(2);
-            this.SingleLabel.Size = new System.Drawing.Size(180, 269);
-            this.SingleLabel.TabIndex = 77;
-            this.SingleLabel.TabStop = false;
-            this.SingleLabel.Text = "单盘标签";
+            this.label5.AutoSize = true;
+            this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label5.Location = new System.Drawing.Point(169, 49);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(32, 17);
+            this.label5.TabIndex = 50;
+            this.label5.Text = "盒号";
             // 
-            // SingleDocRefresh
+            // MidBoxBegin
             // 
-            this.SingleDocRefresh.AutoSize = true;
-            this.SingleDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.SingleDocRefresh.Location = new System.Drawing.Point(70, 26);
-            this.SingleDocRefresh.Name = "SingleDocRefresh";
-            this.SingleDocRefresh.Size = new System.Drawing.Size(37, 20);
-            this.SingleDocRefresh.TabIndex = 118;
-            this.SingleDocRefresh.TabStop = true;
-            this.SingleDocRefresh.Text = "刷新";
-            this.SingleDocRefresh.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.DocRefresh_LinkClicked);
+            this.MidBoxBegin.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.MidBoxBegin.ID = null;
+            this.MidBoxBegin.Location = new System.Drawing.Point(10, 163);
+            this.MidBoxBegin.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidBoxBegin.Name = "MidBoxBegin";
+            this.MidBoxBegin.Size = new System.Drawing.Size(50, 23);
+            this.MidBoxBegin.Str = null;
+            this.MidBoxBegin.Str1 = null;
+            this.MidBoxBegin.Str2 = null;
+            this.MidBoxBegin.TabIndex = 88;
             // 
-            // label17
+            // label4
             // 
-            this.label17.AutoSize = true;
-            this.label17.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.label17.Location = new System.Drawing.Point(12, 26);
-            this.label17.Name = "label17";
-            this.label17.Size = new System.Drawing.Size(55, 20);
-            this.label17.TabIndex = 115;
-            this.label17.Text = "格式(T)";
+            this.label4.AutoSize = true;
+            this.label4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label4.Location = new System.Drawing.Point(171, 23);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(32, 17);
+            this.label4.TabIndex = 49;
+            this.label4.Text = "容量";
             // 
-            // groupBoxWithBorder4
+            // MidLabelPrinter
             // 
-            this.groupBoxWithBorder4.Controls.Add(this.label20);
-            this.groupBoxWithBorder4.Controls.Add(this.BackCombo);
-            this.groupBoxWithBorder4.Controls.Add(this.label19);
-            this.groupBoxWithBorder4.Controls.Add(this.FrontCombo);
-            this.groupBoxWithBorder4.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.groupBoxWithBorder4.Location = new System.Drawing.Point(7, 186);
-            this.groupBoxWithBorder4.Name = "groupBoxWithBorder4";
-            this.groupBoxWithBorder4.Size = new System.Drawing.Size(165, 78);
-            this.groupBoxWithBorder4.TabIndex = 41;
-            this.groupBoxWithBorder4.TabStop = false;
-            this.groupBoxWithBorder4.Text = "扫描区域";
+            this.MidLabelPrinter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.MidLabelPrinter.Location = new System.Drawing.Point(9, 82);
+            this.MidLabelPrinter.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
+            this.MidLabelPrinter.Name = "MidLabelPrinter";
+            this.MidLabelPrinter.Size = new System.Drawing.Size(150, 25);
+            this.MidLabelPrinter.TabIndex = 41;
+            this.MidLabelPrinter.UserOnSelectIndexChange += new UAS_LabelMachine.CustomControl.PrinterCombox.OnSelectIndexChange(this.LabelPrinter_UserOnSelectIndexChange);
             // 
-            // label20
+            // label15
             // 
-            this.label20.AutoSize = true;
-            this.label20.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.label20.Location = new System.Drawing.Point(8, 48);
-            this.label20.Name = "label20";
-            this.label20.Size = new System.Drawing.Size(37, 20);
-            this.label20.TabIndex = 94;
-            this.label20.Text = "后端";
+            this.label15.AutoSize = true;
+            this.label15.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label15.Location = new System.Drawing.Point(251, 21);
+            this.label15.Name = "label15";
+            this.label15.Size = new System.Drawing.Size(20, 17);
+            this.label15.TabIndex = 40;
+            this.label15.Text = "盘";
             // 
-            // BackCombo
+            // MidBoxCapacity
             // 
-            this.BackCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.BackCombo.Font = new System.Drawing.Font("微软雅黑", 8F);
-            this.BackCombo.FormattingEnabled = true;
-            this.BackCombo.Location = new System.Drawing.Point(52, 48);
-            this.BackCombo.Name = "BackCombo";
-            this.BackCombo.Size = new System.Drawing.Size(105, 24);
-            this.BackCombo.TabIndex = 93;
+            this.MidBoxCapacity.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.MidBoxCapacity.Location = new System.Drawing.Point(201, 18);
+            this.MidBoxCapacity.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidBoxCapacity.Name = "MidBoxCapacity";
+            this.MidBoxCapacity.Size = new System.Drawing.Size(44, 23);
+            this.MidBoxCapacity.TabIndex = 30;
+            this.MidBoxCapacity.Leave += new System.EventHandler(this.MidBoxCapacity_Leave);
             // 
-            // label19
+            // MidLabelPrint
             // 
-            this.label19.AutoSize = true;
-            this.label19.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.label19.Location = new System.Drawing.Point(8, 24);
-            this.label19.Name = "label19";
-            this.label19.Size = new System.Drawing.Size(37, 20);
-            this.label19.TabIndex = 92;
-            this.label19.Text = "前端";
+            this.MidLabelPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.MidLabelPrint.Location = new System.Drawing.Point(93, 111);
+            this.MidLabelPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidLabelPrint.Name = "MidLabelPrint";
+            this.MidLabelPrint.Size = new System.Drawing.Size(68, 26);
+            this.MidLabelPrint.TabIndex = 42;
+            this.MidLabelPrint.Text = "打印盒签";
+            this.MidLabelPrint.UseVisualStyleBackColor = true;
+            this.MidLabelPrint.Click += new System.EventHandler(this.MidLabelPrint_Click);
             // 
-            // FrontCombo
+            // MidLabelAutoPrint
             // 
-            this.FrontCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.FrontCombo.Font = new System.Drawing.Font("微软雅黑", 8F);
-            this.FrontCombo.FormattingEnabled = true;
-            this.FrontCombo.Location = new System.Drawing.Point(52, 22);
-            this.FrontCombo.Name = "FrontCombo";
-            this.FrontCombo.Size = new System.Drawing.Size(105, 24);
-            this.FrontCombo.TabIndex = 0;
+            this.MidLabelAutoPrint.AutoSize = true;
+            this.MidLabelAutoPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.MidLabelAutoPrint.Location = new System.Drawing.Point(11, 115);
+            this.MidLabelAutoPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidLabelAutoPrint.Name = "MidLabelAutoPrint";
+            this.MidLabelAutoPrint.Size = new System.Drawing.Size(75, 21);
+            this.MidLabelAutoPrint.TabIndex = 41;
+            this.MidLabelAutoPrint.Text = "自动打印";
+            this.MidLabelAutoPrint.UseVisualStyleBackColor = true;
             // 
-            // label7
+            // MidLabelCombox
             // 
-            this.label7.AutoSize = true;
-            this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label7.Location = new System.Drawing.Point(10, 142);
-            this.label7.Name = "label7";
-            this.label7.Size = new System.Drawing.Size(56, 17);
-            this.label7.TabIndex = 76;
-            this.label7.Text = "单盘范围";
+            this.MidLabelCombox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.MidLabelCombox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.MidLabelCombox.FormattingEnabled = true;
+            this.MidLabelCombox.Location = new System.Drawing.Point(10, 50);
+            this.MidLabelCombox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidLabelCombox.Name = "MidLabelCombox";
+            this.MidLabelCombox.Size = new System.Drawing.Size(149, 25);
+            this.MidLabelCombox.TabIndex = 40;
+            this.MidLabelCombox.SelectedIndexChanged += new System.EventHandler(this.MidLabelCombox_SelectedIndexChanged);
             // 
-            // label16
+            // OutBoxLabel
             // 
-            this.label16.AutoSize = true;
-            this.label16.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label16.Location = new System.Drawing.Point(68, 166);
-            this.label16.Name = "label16";
-            this.label16.Size = new System.Drawing.Size(13, 17);
-            this.label16.TabIndex = 87;
-            this.label16.Text = "-";
+            this.OutBoxLabel.Controls.Add(this.primarydata);
+            this.OutBoxLabel.Controls.Add(this.guestlabeldata);
+            this.OutBoxLabel.Controls.Add(this.prodcodeback);
+            this.OutBoxLabel.Controls.Add(this.prodcodefront);
+            this.OutBoxLabel.Controls.Add(this.OutDocRefresh);
+            this.OutBoxLabel.Controls.Add(this.label27);
+            this.OutBoxLabel.Controls.Add(this.label9);
+            this.OutBoxLabel.Controls.Add(this.cu_print_papercount);
+            this.OutBoxLabel.Controls.Add(this.groupBoxWithBorder3);
+            this.OutBoxLabel.Controls.Add(this.LogingOut);
+            this.OutBoxLabel.Controls.Add(this.OutBoxNum);
+            this.OutBoxLabel.Controls.Add(this.label10);
+            this.OutBoxLabel.Controls.Add(this.label6);
+            this.OutBoxLabel.Controls.Add(this.OutBoxPrinter);
+            this.OutBoxLabel.Controls.Add(this.OutBoxCapacity);
+            this.OutBoxLabel.Controls.Add(this.OutBoxLabelPrint);
+            this.OutBoxLabel.Controls.Add(this.OutBoxLabelAutoPrint);
+            this.OutBoxLabel.Controls.Add(this.OutBoxCombox);
+            this.OutBoxLabel.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OutBoxLabel.Location = new System.Drawing.Point(1106, 6);
+            this.OutBoxLabel.Margin = new System.Windows.Forms.Padding(2);
+            this.OutBoxLabel.Name = "OutBoxLabel";
+            this.OutBoxLabel.Padding = new System.Windows.Forms.Padding(2);
+            this.OutBoxLabel.Size = new System.Drawing.Size(278, 269);
+            this.OutBoxLabel.TabIndex = 79;
+            this.OutBoxLabel.TabStop = false;
+            this.OutBoxLabel.Text = "外箱标签";
             // 
-            // SingleLabelPrinter
+            // primarydata
             // 
-            this.SingleLabelPrinter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SingleLabelPrinter.Location = new System.Drawing.Point(6, 81);
-            this.SingleLabelPrinter.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
-            this.SingleLabelPrinter.Name = "SingleLabelPrinter";
-            this.SingleLabelPrinter.Size = new System.Drawing.Size(169, 25);
-            this.SingleLabelPrinter.TabIndex = 40;
-            this.SingleLabelPrinter.UserOnSelectIndexChange += new UAS_LabelMachine.CustomControl.PrinterCombox.OnSelectIndexChange(this.LabelPrinter_UserOnSelectIndexChange);
+            this.primarydata.AutoSize = true;
+            this.primarydata.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.primarydata.Location = new System.Drawing.Point(21, 241);
+            this.primarydata.Name = "primarydata";
+            this.primarydata.Size = new System.Drawing.Size(0, 20);
+            this.primarydata.TabIndex = 122;
+            this.primarydata.Visible = false;
             // 
-            // SingleBoxEnd
+            // guestlabeldata
             // 
-            this.SingleBoxEnd.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.SingleBoxEnd.ID = null;
-            this.SingleBoxEnd.Location = new System.Drawing.Point(85, 162);
-            this.SingleBoxEnd.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.SingleBoxEnd.Name = "SingleBoxEnd";
-            this.SingleBoxEnd.Size = new System.Drawing.Size(50, 23);
-            this.SingleBoxEnd.Str = null;
-            this.SingleBoxEnd.Str1 = null;
-            this.SingleBoxEnd.Str2 = null;
-            this.SingleBoxEnd.TabIndex = 86;
+            this.guestlabeldata.AutoSize = true;
+            this.guestlabeldata.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.guestlabeldata.Location = new System.Drawing.Point(21, 215);
+            this.guestlabeldata.Name = "guestlabeldata";
+            this.guestlabeldata.Size = new System.Drawing.Size(0, 20);
+            this.guestlabeldata.TabIndex = 121;
+            this.guestlabeldata.Visible = false;
             // 
-            // SingleBoxBegin
+            // prodcodeback
             // 
-            this.SingleBoxBegin.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.SingleBoxBegin.ID = null;
-            this.SingleBoxBegin.Location = new System.Drawing.Point(12, 162);
-            this.SingleBoxBegin.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.SingleBoxBegin.Name = "SingleBoxBegin";
-            this.SingleBoxBegin.Size = new System.Drawing.Size(50, 23);
-            this.SingleBoxBegin.Str = null;
-            this.SingleBoxBegin.Str1 = null;
-            this.SingleBoxBegin.Str2 = null;
-            this.SingleBoxBegin.TabIndex = 85;
+            this.prodcodeback.AutoSize = true;
+            this.prodcodeback.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.prodcodeback.Location = new System.Drawing.Point(21, 191);
+            this.prodcodeback.Name = "prodcodeback";
+            this.prodcodeback.Size = new System.Drawing.Size(0, 20);
+            this.prodcodeback.TabIndex = 120;
+            this.prodcodeback.Visible = false;
             // 
-            // SingleLabelPrint
+            // prodcodefront
             // 
-            this.SingleLabelPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.SingleLabelPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SingleLabelPrint.Location = new System.Drawing.Point(186, 112);
-            this.SingleLabelPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.SingleLabelPrint.Name = "SingleLabelPrint";
-            this.SingleLabelPrint.Size = new System.Drawing.Size(66, 26);
-            this.SingleLabelPrint.TabIndex = 36;
-            this.SingleLabelPrint.Text = "打印盘标";
-            this.SingleLabelPrint.UseVisualStyleBackColor = true;
-            this.SingleLabelPrint.Click += new System.EventHandler(this.SingleLabelPrint_Click);
+            this.prodcodefront.AutoSize = true;
+            this.prodcodefront.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.prodcodefront.Location = new System.Drawing.Point(21, 163);
+            this.prodcodefront.Name = "prodcodefront";
+            this.prodcodefront.Size = new System.Drawing.Size(0, 20);
+            this.prodcodefront.TabIndex = 113;
+            this.prodcodefront.Visible = false;
             // 
-            // SingleLabelAutoPrint
+            // OutDocRefresh
             // 
-            this.SingleLabelAutoPrint.AutoSize = true;
-            this.SingleLabelAutoPrint.Checked = true;
-            this.SingleLabelAutoPrint.CheckState = System.Windows.Forms.CheckState.Checked;
-            this.SingleLabelAutoPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SingleLabelAutoPrint.Location = new System.Drawing.Point(12, 114);
-            this.SingleLabelAutoPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.SingleLabelAutoPrint.Name = "SingleLabelAutoPrint";
-            this.SingleLabelAutoPrint.Size = new System.Drawing.Size(75, 21);
-            this.SingleLabelAutoPrint.TabIndex = 30;
-            this.SingleLabelAutoPrint.Text = "自动打印";
-            this.SingleLabelAutoPrint.UseVisualStyleBackColor = true;
+            this.OutDocRefresh.AutoSize = true;
+            this.OutDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.OutDocRefresh.Location = new System.Drawing.Point(65, 27);
+            this.OutDocRefresh.Name = "OutDocRefresh";
+            this.OutDocRefresh.Size = new System.Drawing.Size(37, 20);
+            this.OutDocRefresh.TabIndex = 119;
+            this.OutDocRefresh.TabStop = true;
+            this.OutDocRefresh.Text = "刷新";
             // 
-            // SingleLabelCombox
+            // label27
             // 
-            this.SingleLabelCombox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.SingleLabelCombox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SingleLabelCombox.FormattingEnabled = true;
-            this.SingleLabelCombox.Location = new System.Drawing.Point(7, 49);
-            this.SingleLabelCombox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.SingleLabelCombox.Name = "SingleLabelCombox";
-            this.SingleLabelCombox.Size = new System.Drawing.Size(168, 25);
-            this.SingleLabelCombox.TabIndex = 0;
-            this.SingleLabelCombox.SelectedIndexChanged += new System.EventHandler(this.SingleLabelCombox_SelectedIndexChanged);
+            this.label27.AutoSize = true;
+            this.label27.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.label27.Location = new System.Drawing.Point(7, 27);
+            this.label27.Name = "label27";
+            this.label27.Size = new System.Drawing.Size(55, 20);
+            this.label27.TabIndex = 117;
+            this.label27.Text = "格式(T)";
             // 
-            // MidLabel
+            // label9
             // 
-            this.MidLabel.Controls.Add(this.MidDocRefresh);
-            this.MidLabel.Controls.Add(this.label26);
-            this.MidLabel.Controls.Add(this.groupBoxWithBorder5);
-            this.MidLabel.Controls.Add(this.label2);
-            this.MidLabel.Controls.Add(this.label1);
-            this.MidLabel.Controls.Add(this.LeastPrintNum);
-            this.MidLabel.Controls.Add(this.OnlyPrint);
-            this.MidLabel.Controls.Add(this.groupBoxWithBorder2);
-            this.MidLabel.Controls.Add(this.label18);
-            this.MidLabel.Controls.Add(this.MidLabelNum);
-            this.MidLabel.Controls.Add(this.MidBoxEnd);
-            this.MidLabel.Controls.Add(this.label12);
-            this.MidLabel.Controls.Add(this.label5);
-            this.MidLabel.Controls.Add(this.MidBoxBegin);
-            this.MidLabel.Controls.Add(this.label4);
-            this.MidLabel.Controls.Add(this.MidLabelPrinter);
-            this.MidLabel.Controls.Add(this.label15);
-            this.MidLabel.Controls.Add(this.MidBoxCapacity);
-            this.MidLabel.Controls.Add(this.MidLabelPrint);
-            this.MidLabel.Controls.Add(this.MidLabelAutoPrint);
-            this.MidLabel.Controls.Add(this.MidLabelCombox);
-            this.MidLabel.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.MidLabel.Location = new System.Drawing.Point(823, 6);
-            this.MidLabel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidLabel.Name = "MidLabel";
-            this.MidLabel.Padding = new System.Windows.Forms.Padding(2);
-            this.MidLabel.Size = new System.Drawing.Size(279, 269);
-            this.MidLabel.TabIndex = 78;
-            this.MidLabel.TabStop = false;
-            this.MidLabel.Text = "中盒标签";
+            this.label9.AutoSize = true;
+            this.label9.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label9.Location = new System.Drawing.Point(171, 43);
+            this.label9.Name = "label9";
+            this.label9.Size = new System.Drawing.Size(32, 17);
+            this.label9.TabIndex = 98;
+            this.label9.Text = "纸型";
             // 
-            // MidDocRefresh
+            // cu_print_papercount
             // 
-            this.MidDocRefresh.AutoSize = true;
-            this.MidDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.MidDocRefresh.Location = new System.Drawing.Point(70, 28);
-            this.MidDocRefresh.Name = "MidDocRefresh";
-            this.MidDocRefresh.Size = new System.Drawing.Size(37, 20);
-            this.MidDocRefresh.TabIndex = 120;
-            this.MidDocRefresh.TabStop = true;
-            this.MidDocRefresh.Text = "刷新";
+            this.cu_print_papercount.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.cu_print_papercount.Location = new System.Drawing.Point(211, 39);
+            this.cu_print_papercount.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_papercount.Name = "cu_print_papercount";
+            this.cu_print_papercount.Size = new System.Drawing.Size(38, 23);
+            this.cu_print_papercount.TabIndex = 97;
             // 
-            // label26
+            // groupBoxWithBorder3
             // 
-            this.label26.AutoSize = true;
-            this.label26.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.label26.Location = new System.Drawing.Point(12, 28);
-            this.label26.Name = "label26";
-            this.label26.Size = new System.Drawing.Size(55, 20);
-            this.label26.TabIndex = 116;
-            this.label26.Text = "格式(T)";
+            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outdc);
+            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outprod);
+            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outpo);
+            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outspec);
+            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outlotno);
+            this.groupBoxWithBorder3.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.groupBoxWithBorder3.Location = new System.Drawing.Point(172, 121);
+            this.groupBoxWithBorder3.Margin = new System.Windows.Forms.Padding(2);
+            this.groupBoxWithBorder3.Name = "groupBoxWithBorder3";
+            this.groupBoxWithBorder3.Padding = new System.Windows.Forms.Padding(2);
+            this.groupBoxWithBorder3.Size = new System.Drawing.Size(101, 145);
+            this.groupBoxWithBorder3.TabIndex = 96;
+            this.groupBoxWithBorder3.TabStop = false;
+            this.groupBoxWithBorder3.Text = "流水合并条件";
             // 
-            // groupBoxWithBorder5
+            // cu_print_outdc
             // 
-            this.groupBoxWithBorder5.Controls.Add(this.Expression);
-            this.groupBoxWithBorder5.Controls.Add(this.Equal);
-            this.groupBoxWithBorder5.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.groupBoxWithBorder5.Location = new System.Drawing.Point(9, 198);
-            this.groupBoxWithBorder5.Name = "groupBoxWithBorder5";
-            this.groupBoxWithBorder5.Size = new System.Drawing.Size(158, 64);
-            this.groupBoxWithBorder5.TabIndex = 95;
-            this.groupBoxWithBorder5.TabStop = false;
-            this.groupBoxWithBorder5.Text = "客户料号匹配模式";
+            this.cu_print_outdc.AutoSize = true;
+            this.cu_print_outdc.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_outdc.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_outdc.Location = new System.Drawing.Point(15, 117);
+            this.cu_print_outdc.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_outdc.Name = "cu_print_outdc";
+            this.cu_print_outdc.Size = new System.Drawing.Size(68, 21);
+            this.cu_print_outdc.TabIndex = 96;
+            this.cu_print_outdc.Text = "合并DC";
+            this.cu_print_outdc.UseVisualStyleBackColor = true;
             // 
-            // Expression
+            // cu_print_outprod
             // 
-            this.Expression.AutoSize = true;
-            this.Expression.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.Expression.Location = new System.Drawing.Point(86, 38);
-            this.Expression.Name = "Expression";
-            this.Expression.Size = new System.Drawing.Size(62, 21);
-            this.Expression.TabIndex = 1;
-            this.Expression.TabStop = true;
-            this.Expression.Text = "表达式";
-            this.Expression.UseVisualStyleBackColor = true;
+            this.cu_print_outprod.AutoSize = true;
+            this.cu_print_outprod.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_outprod.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_outprod.Location = new System.Drawing.Point(15, 95);
+            this.cu_print_outprod.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_outprod.Name = "cu_print_outprod";
+            this.cu_print_outprod.Size = new System.Drawing.Size(75, 21);
+            this.cu_print_outprod.TabIndex = 92;
+            this.cu_print_outprod.Text = "客户料号";
+            this.cu_print_outprod.UseVisualStyleBackColor = true;
             // 
-            // Equal
+            // cu_print_outpo
             // 
-            this.Equal.AutoSize = true;
-            this.Equal.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.Equal.Location = new System.Drawing.Point(20, 38);
-            this.Equal.Name = "Equal";
-            this.Equal.Size = new System.Drawing.Size(50, 21);
-            this.Equal.TabIndex = 0;
-            this.Equal.TabStop = true;
-            this.Equal.Text = "相等";
-            this.Equal.UseVisualStyleBackColor = true;
+            this.cu_print_outpo.AutoSize = true;
+            this.cu_print_outpo.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_outpo.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_outpo.Location = new System.Drawing.Point(15, 71);
+            this.cu_print_outpo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_outpo.Name = "cu_print_outpo";
+            this.cu_print_outpo.Size = new System.Drawing.Size(75, 21);
+            this.cu_print_outpo.TabIndex = 93;
+            this.cu_print_outpo.Text = "客户合同";
+            this.cu_print_outpo.UseVisualStyleBackColor = true;
             // 
-            // label2
+            // cu_print_outspec
             // 
-            this.label2.AutoSize = true;
-            this.label2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label2.Location = new System.Drawing.Point(170, 102);
-            this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(32, 17);
-            this.label2.TabIndex = 94;
-            this.label2.Text = "至少";
+            this.cu_print_outspec.AutoSize = true;
+            this.cu_print_outspec.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_outspec.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_outspec.Location = new System.Drawing.Point(15, 47);
+            this.cu_print_outspec.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_outspec.Name = "cu_print_outspec";
+            this.cu_print_outspec.Size = new System.Drawing.Size(75, 21);
+            this.cu_print_outspec.TabIndex = 94;
+            this.cu_print_outspec.Text = "出库型号";
+            this.cu_print_outspec.UseVisualStyleBackColor = true;
+            // 
+            // cu_print_outlotno
+            // 
+            this.cu_print_outlotno.AutoSize = true;
+            this.cu_print_outlotno.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_outlotno.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_outlotno.Location = new System.Drawing.Point(15, 23);
+            this.cu_print_outlotno.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_outlotno.Name = "cu_print_outlotno";
+            this.cu_print_outlotno.Size = new System.Drawing.Size(63, 21);
+            this.cu_print_outlotno.TabIndex = 95;
+            this.cu_print_outlotno.Text = "LotNo";
+            this.cu_print_outlotno.UseVisualStyleBackColor = true;
             // 
-            // label1
+            // LogingOut
             // 
-            this.label1.AutoSize = true;
-            this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label1.Location = new System.Drawing.Point(252, 102);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(20, 17);
-            this.label1.TabIndex = 93;
-            this.label1.Text = "盘";
+            this.LogingOut.AutoSize = true;
+            this.LogingOut.Location = new System.Drawing.Point(233, 13);
+            this.LogingOut.Name = "LogingOut";
+            this.LogingOut.Size = new System.Drawing.Size(42, 21);
+            this.LogingOut.TabIndex = 77;
+            this.LogingOut.TabStop = true;
+            this.LogingOut.Text = "注销";
+            this.LogingOut.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LogingOut_LinkClicked);
             // 
-            // LeastPrintNum
+            // OutBoxNum
             // 
-            this.LeastPrintNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.LeastPrintNum.Location = new System.Drawing.Point(201, 96);
-            this.LeastPrintNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.LeastPrintNum.Name = "LeastPrintNum";
-            this.LeastPrintNum.Size = new System.Drawing.Size(44, 23);
-            this.LeastPrintNum.TabIndex = 92;
+            this.OutBoxNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OutBoxNum.ID = null;
+            this.OutBoxNum.Location = new System.Drawing.Point(211, 98);
+            this.OutBoxNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.OutBoxNum.Name = "OutBoxNum";
+            this.OutBoxNum.Size = new System.Drawing.Size(38, 23);
+            this.OutBoxNum.Str = null;
+            this.OutBoxNum.Str1 = null;
+            this.OutBoxNum.Str2 = null;
+            this.OutBoxNum.TabIndex = 91;
             // 
-            // OnlyPrint
+            // label10
             // 
-            this.OnlyPrint.AutoSize = true;
-            this.OnlyPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OnlyPrint.Location = new System.Drawing.Point(174, 74);
-            this.OnlyPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.OnlyPrint.Name = "OnlyPrint";
-            this.OnlyPrint.Size = new System.Drawing.Size(63, 21);
-            this.OnlyPrint.TabIndex = 91;
-            this.OnlyPrint.Text = "仅打印";
-            this.OnlyPrint.UseVisualStyleBackColor = true;
+            this.label10.AutoSize = true;
+            this.label10.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label10.Location = new System.Drawing.Point(171, 103);
+            this.label10.Name = "label10";
+            this.label10.Size = new System.Drawing.Size(32, 17);
+            this.label10.TabIndex = 90;
+            this.label10.Text = "箱号";
             // 
-            // groupBoxWithBorder2
+            // label6
             // 
-            this.groupBoxWithBorder2.Controls.Add(this.cu_print_middc);
-            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midprod);
-            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midpo);
-            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midspec);
-            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midlotno);
-            this.groupBoxWithBorder2.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.groupBoxWithBorder2.Location = new System.Drawing.Point(172, 121);
-            this.groupBoxWithBorder2.Margin = new System.Windows.Forms.Padding(2);
-            this.groupBoxWithBorder2.Name = "groupBoxWithBorder2";
-            this.groupBoxWithBorder2.Padding = new System.Windows.Forms.Padding(2);
-            this.groupBoxWithBorder2.Size = new System.Drawing.Size(101, 145);
-            this.groupBoxWithBorder2.TabIndex = 81;
-            this.groupBoxWithBorder2.TabStop = false;
-            this.groupBoxWithBorder2.Text = "流水合并条件";
+            this.label6.AutoSize = true;
+            this.label6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label6.Location = new System.Drawing.Point(171, 73);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(32, 17);
+            this.label6.TabIndex = 87;
+            this.label6.Text = "容量";
             // 
-            // cu_print_middc
+            // OutBoxPrinter
             // 
-            this.cu_print_middc.AutoSize = true;
-            this.cu_print_middc.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_middc.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_middc.Location = new System.Drawing.Point(16, 118);
-            this.cu_print_middc.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_middc.Name = "cu_print_middc";
-            this.cu_print_middc.Size = new System.Drawing.Size(68, 21);
-            this.cu_print_middc.TabIndex = 97;
-            this.cu_print_middc.Text = "合并DC";
-            this.cu_print_middc.UseVisualStyleBackColor = true;
+            this.OutBoxPrinter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OutBoxPrinter.Location = new System.Drawing.Point(8, 82);
+            this.OutBoxPrinter.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
+            this.OutBoxPrinter.Name = "OutBoxPrinter";
+            this.OutBoxPrinter.Size = new System.Drawing.Size(158, 25);
+            this.OutBoxPrinter.TabIndex = 82;
+            this.OutBoxPrinter.UserOnSelectIndexChange += new UAS_LabelMachine.CustomControl.PrinterCombox.OnSelectIndexChange(this.LabelPrinter_UserOnSelectIndexChange);
             // 
-            // cu_print_midprod
+            // OutBoxCapacity
             // 
-            this.cu_print_midprod.AutoSize = true;
-            this.cu_print_midprod.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_midprod.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_midprod.Location = new System.Drawing.Point(16, 96);
-            this.cu_print_midprod.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_midprod.Name = "cu_print_midprod";
-            this.cu_print_midprod.Size = new System.Drawing.Size(75, 21);
-            this.cu_print_midprod.TabIndex = 92;
-            this.cu_print_midprod.Text = "客户料号";
-            this.cu_print_midprod.UseVisualStyleBackColor = true;
+            this.OutBoxCapacity.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OutBoxCapacity.Location = new System.Drawing.Point(211, 68);
+            this.OutBoxCapacity.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.OutBoxCapacity.Name = "OutBoxCapacity";
+            this.OutBoxCapacity.Size = new System.Drawing.Size(38, 23);
+            this.OutBoxCapacity.TabIndex = 84;
+            this.OutBoxCapacity.Value = new decimal(new int[] {
+            1,
+            0,
+            0,
+            0});
+            this.OutBoxCapacity.Leave += new System.EventHandler(this.MidBoxCapacity_Leave);
             // 
-            // cu_print_midpo
+            // OutBoxLabelPrint
             // 
-            this.cu_print_midpo.AutoSize = true;
-            this.cu_print_midpo.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_midpo.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_midpo.Location = new System.Drawing.Point(16, 72);
-            this.cu_print_midpo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_midpo.Name = "cu_print_midpo";
-            this.cu_print_midpo.Size = new System.Drawing.Size(75, 21);
-            this.cu_print_midpo.TabIndex = 93;
-            this.cu_print_midpo.Text = "客户合同";
-            this.cu_print_midpo.UseVisualStyleBackColor = true;
+            this.OutBoxLabelPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OutBoxLabelPrint.Location = new System.Drawing.Point(90, 111);
+            this.OutBoxLabelPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.OutBoxLabelPrint.Name = "OutBoxLabelPrint";
+            this.OutBoxLabelPrint.Size = new System.Drawing.Size(76, 26);
+            this.OutBoxLabelPrint.TabIndex = 80;
+            this.OutBoxLabelPrint.Text = "打印箱标";
+            this.OutBoxLabelPrint.UseVisualStyleBackColor = true;
+            this.OutBoxLabelPrint.Click += new System.EventHandler(this.OutBoxLabelPrint_Click);
             // 
-            // cu_print_midspec
+            // OutBoxLabelAutoPrint
             // 
-            this.cu_print_midspec.AutoSize = true;
-            this.cu_print_midspec.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_midspec.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_midspec.Location = new System.Drawing.Point(16, 48);
-            this.cu_print_midspec.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_midspec.Name = "cu_print_midspec";
-            this.cu_print_midspec.Size = new System.Drawing.Size(75, 21);
-            this.cu_print_midspec.TabIndex = 94;
-            this.cu_print_midspec.Text = "出库型号";
-            this.cu_print_midspec.UseVisualStyleBackColor = true;
+            this.OutBoxLabelAutoPrint.AutoSize = true;
+            this.OutBoxLabelAutoPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OutBoxLabelAutoPrint.Location = new System.Drawing.Point(11, 115);
+            this.OutBoxLabelAutoPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.OutBoxLabelAutoPrint.Name = "OutBoxLabelAutoPrint";
+            this.OutBoxLabelAutoPrint.Size = new System.Drawing.Size(75, 21);
+            this.OutBoxLabelAutoPrint.TabIndex = 79;
+            this.OutBoxLabelAutoPrint.Text = "自动打印";
+            this.OutBoxLabelAutoPrint.UseVisualStyleBackColor = true;
+            this.OutBoxLabelAutoPrint.Visible = false;
             // 
-            // cu_print_midlotno
+            // OutBoxCombox
             // 
-            this.cu_print_midlotno.AutoSize = true;
-            this.cu_print_midlotno.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_midlotno.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_midlotno.Location = new System.Drawing.Point(16, 24);
-            this.cu_print_midlotno.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_midlotno.Name = "cu_print_midlotno";
-            this.cu_print_midlotno.Size = new System.Drawing.Size(63, 21);
-            this.cu_print_midlotno.TabIndex = 95;
-            this.cu_print_midlotno.Text = "LotNo";
-            this.cu_print_midlotno.UseVisualStyleBackColor = true;
+            this.OutBoxCombox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.OutBoxCombox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OutBoxCombox.FormattingEnabled = true;
+            this.OutBoxCombox.Location = new System.Drawing.Point(9, 51);
+            this.OutBoxCombox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.OutBoxCombox.Name = "OutBoxCombox";
+            this.OutBoxCombox.Size = new System.Drawing.Size(157, 25);
+            this.OutBoxCombox.TabIndex = 78;
+            this.OutBoxCombox.SelectedIndexChanged += new System.EventHandler(this.OutBoxCombox_SelectedIndexChanged);
             // 
-            // label18
+            // BackendCheck
             // 
-            this.label18.AutoSize = true;
-            this.label18.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label18.Location = new System.Drawing.Point(66, 168);
-            this.label18.Name = "label18";
-            this.label18.Size = new System.Drawing.Size(13, 17);
-            this.label18.TabIndex = 90;
-            this.label18.Text = "-";
+            this.BackendCheck.SleepTime = 0;
+            this.BackendCheck.Tag = "BackendCheck";
             // 
-            // MidLabelNum
+            // FrontendCheck
             // 
-            this.MidLabelNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.MidLabelNum.ID = null;
-            this.MidLabelNum.Location = new System.Drawing.Point(201, 44);
-            this.MidLabelNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidLabelNum.Name = "MidLabelNum";
-            this.MidLabelNum.Size = new System.Drawing.Size(44, 23);
-            this.MidLabelNum.Str = null;
-            this.MidLabelNum.Str1 = null;
-            this.MidLabelNum.Str2 = null;
-            this.MidLabelNum.TabIndex = 56;
+            this.FrontendCheck.SleepTime = 0;
+            this.FrontendCheck.Tag = "FrontendCheck";
             // 
-            // MidBoxEnd
+            // PLC1
             // 
-            this.MidBoxEnd.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.MidBoxEnd.ID = null;
-            this.MidBoxEnd.Location = new System.Drawing.Point(83, 163);
-            this.MidBoxEnd.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidBoxEnd.Name = "MidBoxEnd";
-            this.MidBoxEnd.Size = new System.Drawing.Size(50, 23);
-            this.MidBoxEnd.Str = null;
-            this.MidBoxEnd.Str1 = null;
-            this.MidBoxEnd.Str2 = null;
-            this.MidBoxEnd.TabIndex = 89;
+            this.PLC1.SleepTime = 0;
+            this.PLC1.Tag = "PLC1";
             // 
-            // label12
+            // ManBackendCheck
             // 
-            this.label12.AutoSize = true;
-            this.label12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label12.Location = new System.Drawing.Point(10, 144);
-            this.label12.Name = "label12";
-            this.label12.Size = new System.Drawing.Size(56, 17);
-            this.label12.TabIndex = 77;
-            this.label12.Text = "中盒范围";
+            this.ManBackendCheck.SleepTime = 0;
+            this.ManBackendCheck.Tag = "ManBackendCheck";
             // 
-            // label5
+            // Choose
             // 
-            this.label5.AutoSize = true;
-            this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label5.Location = new System.Drawing.Point(170, 50);
-            this.label5.Name = "label5";
-            this.label5.Size = new System.Drawing.Size(32, 17);
-            this.label5.TabIndex = 50;
-            this.label5.Text = "盒号";
+            this.Choose.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.Choose.HeaderText = "勾选";
+            this.Choose.Name = "Choose";
+            this.Choose.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+            this.Choose.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+            this.Choose.Visible = false;
+            this.Choose.Width = 55;
             // 
-            // MidBoxBegin
+            // pib_autoset
             // 
-            this.MidBoxBegin.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.MidBoxBegin.ID = null;
-            this.MidBoxBegin.Location = new System.Drawing.Point(10, 163);
-            this.MidBoxBegin.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidBoxBegin.Name = "MidBoxBegin";
-            this.MidBoxBegin.Size = new System.Drawing.Size(50, 23);
-            this.MidBoxBegin.Str = null;
-            this.MidBoxBegin.Str1 = null;
-            this.MidBoxBegin.Str2 = null;
-            this.MidBoxBegin.TabIndex = 88;
+            this.pib_autoset.HeaderText = "pib_autoset";
+            this.pib_autoset.Name = "pib_autoset";
+            this.pib_autoset.Visible = false;
+            this.pib_autoset.Width = 96;
             // 
-            // label4
+            // pd_id
             // 
-            this.label4.AutoSize = true;
-            this.label4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label4.Location = new System.Drawing.Point(172, 24);
-            this.label4.Name = "label4";
-            this.label4.Size = new System.Drawing.Size(32, 17);
-            this.label4.TabIndex = 49;
-            this.label4.Text = "容量";
+            this.pd_id.DataPropertyName = "pd_id";
+            this.pd_id.HeaderText = "pd_id";
+            this.pd_id.Name = "pd_id";
+            this.pd_id.Visible = false;
+            this.pd_id.Width = 60;
             // 
-            // MidLabelPrinter
+            // pib_id1
             // 
-            this.MidLabelPrinter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.MidLabelPrinter.Location = new System.Drawing.Point(9, 82);
-            this.MidLabelPrinter.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
-            this.MidLabelPrinter.Name = "MidLabelPrinter";
-            this.MidLabelPrinter.Size = new System.Drawing.Size(150, 25);
-            this.MidLabelPrinter.TabIndex = 41;
-            this.MidLabelPrinter.UserOnSelectIndexChange += new UAS_LabelMachine.CustomControl.PrinterCombox.OnSelectIndexChange(this.LabelPrinter_UserOnSelectIndexChange);
+            this.pib_id1.DataPropertyName = "pib_id";
+            this.pib_id1.HeaderText = "pib_id";
+            this.pib_id1.Name = "pib_id1";
+            this.pib_id1.Visible = false;
+            this.pib_id1.Width = 66;
             // 
-            // label15
+            // rownum
             // 
-            this.label15.AutoSize = true;
-            this.label15.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label15.Location = new System.Drawing.Point(252, 22);
-            this.label15.Name = "label15";
-            this.label15.Size = new System.Drawing.Size(20, 17);
-            this.label15.TabIndex = 40;
-            this.label15.Text = "盘";
+            this.rownum.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.rownum.DataPropertyName = "rownum";
+            this.rownum.HeaderText = "行号";
+            this.rownum.Name = "rownum";
+            this.rownum.Width = 58;
             // 
-            // MidBoxCapacity
+            // pib_pdno
             // 
-            this.MidBoxCapacity.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.MidBoxCapacity.Location = new System.Drawing.Point(201, 18);
-            this.MidBoxCapacity.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidBoxCapacity.Name = "MidBoxCapacity";
-            this.MidBoxCapacity.Size = new System.Drawing.Size(44, 23);
-            this.MidBoxCapacity.TabIndex = 30;
-            this.MidBoxCapacity.Leave += new System.EventHandler(this.MidBoxCapacity_Leave);
+            this.pib_pdno.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
+            this.pib_pdno.DataPropertyName = "pib_pdno";
+            this.pib_pdno.HeaderText = "明细序号";
+            this.pib_pdno.Name = "pib_pdno";
+            this.pib_pdno.ReadOnly = true;
+            this.pib_pdno.Width = 78;
             // 
-            // MidLabelPrint
+            // pib_prodcode
             // 
-            this.MidLabelPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.MidLabelPrint.Location = new System.Drawing.Point(93, 111);
-            this.MidLabelPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidLabelPrint.Name = "MidLabelPrint";
-            this.MidLabelPrint.Size = new System.Drawing.Size(68, 26);
-            this.MidLabelPrint.TabIndex = 42;
-            this.MidLabelPrint.Text = "打印盒签";
-            this.MidLabelPrint.UseVisualStyleBackColor = true;
-            this.MidLabelPrint.Click += new System.EventHandler(this.MidLabelPrint_Click);
+            this.pib_prodcode.DataPropertyName = "pib_prodcode";
+            this.pib_prodcode.HeaderText = "物料编号";
+            this.pib_prodcode.Name = "pib_prodcode";
+            this.pib_prodcode.ReadOnly = true;
+            this.pib_prodcode.Width = 78;
             // 
-            // MidLabelAutoPrint
+            // pib_ifmodify
             // 
-            this.MidLabelAutoPrint.AutoSize = true;
-            this.MidLabelAutoPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.MidLabelAutoPrint.Location = new System.Drawing.Point(12, 116);
-            this.MidLabelAutoPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidLabelAutoPrint.Name = "MidLabelAutoPrint";
-            this.MidLabelAutoPrint.Size = new System.Drawing.Size(75, 21);
-            this.MidLabelAutoPrint.TabIndex = 41;
-            this.MidLabelAutoPrint.Text = "自动打印";
-            this.MidLabelAutoPrint.UseVisualStyleBackColor = true;
+            this.pib_ifmodify.DataPropertyName = "pib_ifmodify";
+            this.pib_ifmodify.HeaderText = "已修改";
+            this.pib_ifmodify.Name = "pib_ifmodify";
+            this.pib_ifmodify.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+            this.pib_ifmodify.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+            this.pib_ifmodify.Width = 66;
             // 
-            // MidLabelCombox
+            // pib_ifupload
             // 
-            this.MidLabelCombox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.MidLabelCombox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.MidLabelCombox.FormattingEnabled = true;
-            this.MidLabelCombox.Location = new System.Drawing.Point(10, 50);
-            this.MidLabelCombox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidLabelCombox.Name = "MidLabelCombox";
-            this.MidLabelCombox.Size = new System.Drawing.Size(149, 25);
-            this.MidLabelCombox.TabIndex = 40;
-            this.MidLabelCombox.SelectedIndexChanged += new System.EventHandler(this.MidLabelCombox_SelectedIndexChanged);
+            this.pib_ifupload.DataPropertyName = "pib_ifupload";
+            this.pib_ifupload.HeaderText = "已上传";
+            this.pib_ifupload.Name = "pib_ifupload";
+            this.pib_ifupload.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+            this.pib_ifupload.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+            this.pib_ifupload.Width = 66;
             // 
-            // OutBoxLabel
+            // pr_vendprodcode
             // 
-            this.OutBoxLabel.Controls.Add(this.primarydata);
-            this.OutBoxLabel.Controls.Add(this.guestlabeldata);
-            this.OutBoxLabel.Controls.Add(this.prodcodeback);
-            this.OutBoxLabel.Controls.Add(this.prodcodefront);
-            this.OutBoxLabel.Controls.Add(this.OutDocRefresh);
-            this.OutBoxLabel.Controls.Add(this.label27);
-            this.OutBoxLabel.Controls.Add(this.label9);
-            this.OutBoxLabel.Controls.Add(this.cu_print_papercount);
-            this.OutBoxLabel.Controls.Add(this.groupBoxWithBorder3);
-            this.OutBoxLabel.Controls.Add(this.LogingOut);
-            this.OutBoxLabel.Controls.Add(this.OutBoxNum);
-            this.OutBoxLabel.Controls.Add(this.label10);
-            this.OutBoxLabel.Controls.Add(this.label6);
-            this.OutBoxLabel.Controls.Add(this.OutBoxPrinter);
-            this.OutBoxLabel.Controls.Add(this.OutBoxCapacity);
-            this.OutBoxLabel.Controls.Add(this.OutBoxLabelPrint);
-            this.OutBoxLabel.Controls.Add(this.OutBoxLabelAutoPrint);
-            this.OutBoxLabel.Controls.Add(this.OutBoxCombox);
-            this.OutBoxLabel.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OutBoxLabel.Location = new System.Drawing.Point(1106, 6);
-            this.OutBoxLabel.Margin = new System.Windows.Forms.Padding(2);
-            this.OutBoxLabel.Name = "OutBoxLabel";
-            this.OutBoxLabel.Padding = new System.Windows.Forms.Padding(2);
-            this.OutBoxLabel.Size = new System.Drawing.Size(278, 269);
-            this.OutBoxLabel.TabIndex = 79;
-            this.OutBoxLabel.TabStop = false;
-            this.OutBoxLabel.Text = "外箱标签";
+            this.pr_vendprodcode.DataPropertyName = "pr_vendprodcode";
+            this.pr_vendprodcode.HeaderText = "MPN";
+            this.pr_vendprodcode.Name = "pr_vendprodcode";
+            this.pr_vendprodcode.ReadOnly = true;
+            this.pr_vendprodcode.Visible = false;
+            this.pr_vendprodcode.Width = 48;
             // 
-            // primarydata
+            // pib_brand
             // 
-            this.primarydata.AutoSize = true;
-            this.primarydata.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.primarydata.Location = new System.Drawing.Point(22, 242);
-            this.primarydata.Name = "primarydata";
-            this.primarydata.Size = new System.Drawing.Size(0, 20);
-            this.primarydata.TabIndex = 122;
-            this.primarydata.Visible = false;
+            this.pib_brand.DataPropertyName = "pib_brand";
+            this.pib_brand.HeaderText = "品牌";
+            this.pib_brand.Name = "pib_brand";
+            this.pib_brand.ReadOnly = true;
+            this.pib_brand.Width = 54;
             // 
-            // guestlabeldata
+            // sd_brand
             // 
-            this.guestlabeldata.AutoSize = true;
-            this.guestlabeldata.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.guestlabeldata.Location = new System.Drawing.Point(22, 216);
-            this.guestlabeldata.Name = "guestlabeldata";
-            this.guestlabeldata.Size = new System.Drawing.Size(0, 20);
-            this.guestlabeldata.TabIndex = 121;
-            this.guestlabeldata.Visible = false;
+            this.sd_brand.DataPropertyName = "sd_brand";
+            this.sd_brand.HeaderText = "出货品牌";
+            this.sd_brand.Name = "sd_brand";
+            this.sd_brand.Width = 78;
             // 
-            // prodcodeback
+            // pib_madein
             // 
-            this.prodcodeback.AutoSize = true;
-            this.prodcodeback.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.prodcodeback.Location = new System.Drawing.Point(22, 192);
-            this.prodcodeback.Name = "prodcodeback";
-            this.prodcodeback.Size = new System.Drawing.Size(0, 20);
-            this.prodcodeback.TabIndex = 120;
-            this.prodcodeback.Visible = false;
+            this.pib_madein.DataPropertyName = "pib_madein";
+            this.pib_madein.HeaderText = "产地";
+            this.pib_madein.Name = "pib_madein";
+            this.pib_madein.Visible = false;
+            this.pib_madein.Width = 54;
             // 
-            // prodcodefront
+            // pr_orispeccode
             // 
-            this.prodcodefront.AutoSize = true;
-            this.prodcodefront.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.prodcodefront.Location = new System.Drawing.Point(22, 164);
-            this.prodcodefront.Name = "prodcodefront";
-            this.prodcodefront.Size = new System.Drawing.Size(0, 20);
-            this.prodcodefront.TabIndex = 113;
-            this.prodcodefront.Visible = false;
+            this.pr_orispeccode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
+            this.pr_orispeccode.DataPropertyName = "pr_orispeccode";
+            this.pr_orispeccode.HeaderText = "原厂型号";
+            this.pr_orispeccode.Name = "pr_orispeccode";
+            this.pr_orispeccode.Width = 78;
             // 
-            // OutDocRefresh
+            // pr_barcode
             // 
-            this.OutDocRefresh.AutoSize = true;
-            this.OutDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.OutDocRefresh.Location = new System.Drawing.Point(66, 28);
-            this.OutDocRefresh.Name = "OutDocRefresh";
-            this.OutDocRefresh.Size = new System.Drawing.Size(37, 20);
-            this.OutDocRefresh.TabIndex = 119;
-            this.OutDocRefresh.TabStop = true;
-            this.OutDocRefresh.Text = "刷新";
+            this.pr_barcode.DataPropertyName = "pr_barcode";
+            this.pr_barcode.HeaderText = "型号条码";
+            this.pr_barcode.Name = "pr_barcode";
+            this.pr_barcode.Width = 78;
             // 
-            // label27
+            // pr_zxbzs
             // 
-            this.label27.AutoSize = true;
-            this.label27.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.label27.Location = new System.Drawing.Point(8, 28);
-            this.label27.Name = "label27";
-            this.label27.Size = new System.Drawing.Size(55, 20);
-            this.label27.TabIndex = 117;
-            this.label27.Text = "格式(T)";
+            this.pr_zxbzs.DataPropertyName = "pr_zxbzs";
+            this.pr_zxbzs.HeaderText = "最小包装数";
+            this.pr_zxbzs.Name = "pr_zxbzs";
+            this.pr_zxbzs.Visible = false;
+            this.pr_zxbzs.Width = 90;
             // 
-            // label9
+            // pr_unit
             // 
-            this.label9.AutoSize = true;
-            this.label9.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label9.Location = new System.Drawing.Point(172, 44);
-            this.label9.Name = "label9";
-            this.label9.Size = new System.Drawing.Size(32, 17);
-            this.label9.TabIndex = 98;
-            this.label9.Text = "纸型";
+            this.pr_unit.DataPropertyName = "pr_unit";
+            this.pr_unit.HeaderText = "单位";
+            this.pr_unit.Name = "pr_unit";
+            this.pr_unit.Width = 54;
             // 
-            // cu_print_papercount
+            // pib_lotno
             // 
-            this.cu_print_papercount.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.cu_print_papercount.Location = new System.Drawing.Point(211, 39);
-            this.cu_print_papercount.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_papercount.Name = "cu_print_papercount";
-            this.cu_print_papercount.Size = new System.Drawing.Size(38, 23);
-            this.cu_print_papercount.TabIndex = 97;
+            this.pib_lotno.DataPropertyName = "pib_lotno";
+            this.pib_lotno.HeaderText = "LotNo";
+            this.pib_lotno.Name = "pib_lotno";
+            this.pib_lotno.Width = 60;
             // 
-            // groupBoxWithBorder3
+            // pib_datecode
             // 
-            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outdc);
-            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outprod);
-            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outpo);
-            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outspec);
-            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outlotno);
-            this.groupBoxWithBorder3.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.groupBoxWithBorder3.Location = new System.Drawing.Point(172, 121);
-            this.groupBoxWithBorder3.Margin = new System.Windows.Forms.Padding(2);
-            this.groupBoxWithBorder3.Name = "groupBoxWithBorder3";
-            this.groupBoxWithBorder3.Padding = new System.Windows.Forms.Padding(2);
-            this.groupBoxWithBorder3.Size = new System.Drawing.Size(101, 145);
-            this.groupBoxWithBorder3.TabIndex = 96;
-            this.groupBoxWithBorder3.TabStop = false;
-            this.groupBoxWithBorder3.Text = "流水合并条件";
+            this.pib_datecode.DataPropertyName = "pib_datecode";
+            this.pib_datecode.HeaderText = "DateCode";
+            this.pib_datecode.Name = "pib_datecode";
+            this.pib_datecode.Width = 78;
             // 
-            // cu_print_outdc
+            // pib_year
             // 
-            this.cu_print_outdc.AutoSize = true;
-            this.cu_print_outdc.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_outdc.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_outdc.Location = new System.Drawing.Point(16, 118);
-            this.cu_print_outdc.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_outdc.Name = "cu_print_outdc";
-            this.cu_print_outdc.Size = new System.Drawing.Size(68, 21);
-            this.cu_print_outdc.TabIndex = 96;
-            this.cu_print_outdc.Text = "合并DC";
-            this.cu_print_outdc.UseVisualStyleBackColor = true;
+            this.pib_year.DataPropertyName = "pib_year";
+            this.pib_year.HeaderText = "年";
+            this.pib_year.Name = "pib_year";
+            this.pib_year.Width = 42;
             // 
-            // cu_print_outprod
+            // pib_month
             // 
-            this.cu_print_outprod.AutoSize = true;
-            this.cu_print_outprod.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_outprod.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_outprod.Location = new System.Drawing.Point(16, 96);
-            this.cu_print_outprod.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_outprod.Name = "cu_print_outprod";
-            this.cu_print_outprod.Size = new System.Drawing.Size(75, 21);
-            this.cu_print_outprod.TabIndex = 92;
-            this.cu_print_outprod.Text = "客户料号";
-            this.cu_print_outprod.UseVisualStyleBackColor = true;
+            this.pib_month.DataPropertyName = "pib_month";
+            this.pib_month.HeaderText = "月";
+            this.pib_month.Name = "pib_month";
+            this.pib_month.Width = 42;
             // 
-            // cu_print_outpo
+            // pib_day
             // 
-            this.cu_print_outpo.AutoSize = true;
-            this.cu_print_outpo.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_outpo.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_outpo.Location = new System.Drawing.Point(16, 72);
-            this.cu_print_outpo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_outpo.Name = "cu_print_outpo";
-            this.cu_print_outpo.Size = new System.Drawing.Size(75, 21);
-            this.cu_print_outpo.TabIndex = 93;
-            this.cu_print_outpo.Text = "客户合同";
-            this.cu_print_outpo.UseVisualStyleBackColor = true;
+            this.pib_day.DataPropertyName = "pib_day";
+            this.pib_day.HeaderText = "日";
+            this.pib_day.Name = "pib_day";
+            this.pib_day.Width = 42;
             // 
-            // cu_print_outspec
+            // pib_ifpick
             // 
-            this.cu_print_outspec.AutoSize = true;
-            this.cu_print_outspec.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_outspec.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_outspec.Location = new System.Drawing.Point(16, 48);
-            this.cu_print_outspec.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_outspec.Name = "cu_print_outspec";
-            this.cu_print_outspec.Size = new System.Drawing.Size(75, 21);
-            this.cu_print_outspec.TabIndex = 94;
-            this.cu_print_outspec.Text = "出库型号";
-            this.cu_print_outspec.UseVisualStyleBackColor = true;
+            this.pib_ifpick.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.pib_ifpick.DataPropertyName = "pib_ifpick";
+            this.pib_ifpick.HeaderText = "已扫描";
+            this.pib_ifpick.Name = "pib_ifpick";
+            this.pib_ifpick.Width = 60;
             // 
-            // cu_print_outlotno
+            // pib_ifprint
             // 
-            this.cu_print_outlotno.AutoSize = true;
-            this.cu_print_outlotno.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_outlotno.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_outlotno.Location = new System.Drawing.Point(16, 24);
-            this.cu_print_outlotno.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_outlotno.Name = "cu_print_outlotno";
-            this.cu_print_outlotno.Size = new System.Drawing.Size(63, 21);
-            this.cu_print_outlotno.TabIndex = 95;
-            this.cu_print_outlotno.Text = "LotNo";
-            this.cu_print_outlotno.UseVisualStyleBackColor = true;
+            this.pib_ifprint.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.pib_ifprint.DataPropertyName = "pib_ifprint";
+            this.pib_ifprint.HeaderText = "已打标";
+            this.pib_ifprint.Name = "pib_ifprint";
+            this.pib_ifprint.Width = 60;
             // 
-            // LogingOut
+            // pib_ifrecheck
             // 
-            this.LogingOut.AutoSize = true;
-            this.LogingOut.Location = new System.Drawing.Point(234, 14);
-            this.LogingOut.Name = "LogingOut";
-            this.LogingOut.Size = new System.Drawing.Size(42, 21);
-            this.LogingOut.TabIndex = 77;
-            this.LogingOut.TabStop = true;
-            this.LogingOut.Text = "注销";
-            this.LogingOut.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LogingOut_LinkClicked);
+            this.pib_ifrecheck.DataPropertyName = "pib_ifrecheck";
+            this.pib_ifrecheck.HeaderText = "已复核";
+            this.pib_ifrecheck.Name = "pib_ifrecheck";
+            this.pib_ifrecheck.Width = 47;
             // 
-            // OutBoxNum
+            // pib_datecode1
             // 
-            this.OutBoxNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OutBoxNum.ID = null;
-            this.OutBoxNum.Location = new System.Drawing.Point(211, 98);
-            this.OutBoxNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.OutBoxNum.Name = "OutBoxNum";
-            this.OutBoxNum.Size = new System.Drawing.Size(38, 23);
-            this.OutBoxNum.Str = null;
-            this.OutBoxNum.Str1 = null;
-            this.OutBoxNum.Str2 = null;
-            this.OutBoxNum.TabIndex = 91;
+            this.pib_datecode1.DataPropertyName = "pib_datecode1";
+            this.pib_datecode1.HeaderText = "DateCode1";
+            this.pib_datecode1.Name = "pib_datecode1";
+            this.pib_datecode1.Visible = false;
+            this.pib_datecode1.Width = 84;
             // 
-            // label10
+            // pib_qty
             // 
-            this.label10.AutoSize = true;
-            this.label10.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label10.Location = new System.Drawing.Point(172, 104);
-            this.label10.Name = "label10";
-            this.label10.Size = new System.Drawing.Size(32, 17);
-            this.label10.TabIndex = 90;
-            this.label10.Text = "箱号";
+            this.pib_qty.DataPropertyName = "pib_qty";
+            this.pib_qty.HeaderText = "数量";
+            this.pib_qty.Name = "pib_qty";
+            this.pib_qty.ReadOnly = true;
+            this.pib_qty.Width = 54;
             // 
-            // label6
+            // pib_barcode
             // 
-            this.label6.AutoSize = true;
-            this.label6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label6.Location = new System.Drawing.Point(172, 74);
-            this.label6.Name = "label6";
-            this.label6.Size = new System.Drawing.Size(32, 17);
-            this.label6.TabIndex = 87;
-            this.label6.Text = "容量";
+            this.pib_barcode.DataPropertyName = "pib_barcode";
+            this.pib_barcode.HeaderText = "唯一条码";
+            this.pib_barcode.Name = "pib_barcode";
+            this.pib_barcode.ReadOnly = true;
+            this.pib_barcode.Width = 78;
             // 
-            // OutBoxPrinter
+            // pib_custbarcode
             // 
-            this.OutBoxPrinter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OutBoxPrinter.Location = new System.Drawing.Point(8, 82);
-            this.OutBoxPrinter.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
-            this.OutBoxPrinter.Name = "OutBoxPrinter";
-            this.OutBoxPrinter.Size = new System.Drawing.Size(158, 25);
-            this.OutBoxPrinter.TabIndex = 82;
-            this.OutBoxPrinter.UserOnSelectIndexChange += new UAS_LabelMachine.CustomControl.PrinterCombox.OnSelectIndexChange(this.LabelPrinter_UserOnSelectIndexChange);
+            this.pib_custbarcode.DataPropertyName = "pib_custbarcode";
+            this.pib_custbarcode.HeaderText = "唯一条码";
+            this.pib_custbarcode.Name = "pib_custbarcode";
+            this.pib_custbarcode.ReadOnly = true;
+            this.pib_custbarcode.Visible = false;
+            this.pib_custbarcode.Width = 78;
             // 
-            // OutBoxCapacity
+            // pib_custmidboxcode
             // 
-            this.OutBoxCapacity.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OutBoxCapacity.Location = new System.Drawing.Point(211, 68);
-            this.OutBoxCapacity.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.OutBoxCapacity.Name = "OutBoxCapacity";
-            this.OutBoxCapacity.Size = new System.Drawing.Size(38, 23);
-            this.OutBoxCapacity.TabIndex = 84;
-            this.OutBoxCapacity.Value = new decimal(new int[] {
-            1,
-            0,
-            0,
-            0});
-            this.OutBoxCapacity.Leave += new System.EventHandler(this.MidBoxCapacity_Leave);
+            this.pib_custmidboxcode.DataPropertyName = "pib_custmidboxcode";
+            this.pib_custmidboxcode.HeaderText = "中盒条码";
+            this.pib_custmidboxcode.Name = "pib_custmidboxcode";
+            this.pib_custmidboxcode.Visible = false;
+            this.pib_custmidboxcode.Width = 78;
             // 
-            // OutBoxLabelPrint
+            // pib_custoutboxcode
             // 
-            this.OutBoxLabelPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OutBoxLabelPrint.Location = new System.Drawing.Point(90, 111);
-            this.OutBoxLabelPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.OutBoxLabelPrint.Name = "OutBoxLabelPrint";
-            this.OutBoxLabelPrint.Size = new System.Drawing.Size(76, 26);
-            this.OutBoxLabelPrint.TabIndex = 80;
-            this.OutBoxLabelPrint.Text = "打印箱标";
-            this.OutBoxLabelPrint.UseVisualStyleBackColor = true;
-            this.OutBoxLabelPrint.Click += new System.EventHandler(this.OutBoxLabelPrint_Click);
+            this.pib_custoutboxcode.DataPropertyName = "pib_custoutboxcode";
+            this.pib_custoutboxcode.HeaderText = "外箱条码";
+            this.pib_custoutboxcode.Name = "pib_custoutboxcode";
+            this.pib_custoutboxcode.Visible = false;
+            this.pib_custoutboxcode.Width = 78;
             // 
-            // OutBoxLabelAutoPrint
+            // pd_pocode
             // 
-            this.OutBoxLabelAutoPrint.AutoSize = true;
-            this.OutBoxLabelAutoPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OutBoxLabelAutoPrint.Location = new System.Drawing.Point(12, 116);
-            this.OutBoxLabelAutoPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.OutBoxLabelAutoPrint.Name = "OutBoxLabelAutoPrint";
-            this.OutBoxLabelAutoPrint.Size = new System.Drawing.Size(75, 21);
-            this.OutBoxLabelAutoPrint.TabIndex = 79;
-            this.OutBoxLabelAutoPrint.Text = "自动打印";
-            this.OutBoxLabelAutoPrint.UseVisualStyleBackColor = true;
-            this.OutBoxLabelAutoPrint.Visible = false;
+            this.pd_pocode.DataPropertyName = "pd_pocode";
+            this.pd_pocode.HeaderText = "客户PO";
+            this.pd_pocode.Name = "pd_pocode";
+            this.pd_pocode.ReadOnly = true;
+            this.pd_pocode.Width = 66;
             // 
-            // OutBoxCombox
+            // pd_custprodcode
             // 
-            this.OutBoxCombox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.OutBoxCombox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OutBoxCombox.FormattingEnabled = true;
-            this.OutBoxCombox.Location = new System.Drawing.Point(9, 51);
-            this.OutBoxCombox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.OutBoxCombox.Name = "OutBoxCombox";
-            this.OutBoxCombox.Size = new System.Drawing.Size(157, 25);
-            this.OutBoxCombox.TabIndex = 78;
-            this.OutBoxCombox.SelectedIndexChanged += new System.EventHandler(this.OutBoxCombox_SelectedIndexChanged);
+            this.pd_custprodcode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
+            this.pd_custprodcode.DataPropertyName = "pd_custprodcode";
+            this.pd_custprodcode.HeaderText = "客户料号";
+            this.pd_custprodcode.Name = "pd_custprodcode";
+            this.pd_custprodcode.ReadOnly = true;
+            this.pd_custprodcode.Width = 78;
             // 
-            // BackendCheck
+            // pd_custprodspec
             // 
-            this.BackendCheck.SleepTime = 0;
-            this.BackendCheck.Tag = "BackendCheck";
+            this.pd_custprodspec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
+            this.pd_custprodspec.DataPropertyName = "pd_custprodspec";
+            this.pd_custprodspec.HeaderText = "客户型号";
+            this.pd_custprodspec.Name = "pd_custprodspec";
+            this.pd_custprodspec.ReadOnly = true;
+            this.pd_custprodspec.Width = 78;
             // 
-            // FrontendCheck
+            // pr_spec
             // 
-            this.FrontendCheck.SleepTime = 0;
-            this.FrontendCheck.Tag = "FrontendCheck";
+            this.pr_spec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
+            this.pr_spec.DataPropertyName = "pr_spec";
+            this.pr_spec.HeaderText = "规格";
+            this.pr_spec.Name = "pr_spec";
+            this.pr_spec.Width = 54;
             // 
-            // PLC1
+            // pib_outboxcode1
             // 
-            this.PLC1.SleepTime = 0;
-            this.PLC1.Tag = "PLC1";
+            this.pib_outboxcode1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
+            this.pib_outboxcode1.DataPropertyName = "pib_outboxcode1";
+            this.pib_outboxcode1.HeaderText = "中盒号";
+            this.pib_outboxcode1.Name = "pib_outboxcode1";
+            this.pib_outboxcode1.Width = 66;
             // 
-            // ManBackendCheck
+            // pib_outboxcode2
             // 
-            this.ManBackendCheck.SleepTime = 0;
-            this.ManBackendCheck.Tag = "ManBackendCheck";
+            this.pib_outboxcode2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
+            this.pib_outboxcode2.DataPropertyName = "pib_outboxcode2";
+            this.pib_outboxcode2.HeaderText = "外箱号";
+            this.pib_outboxcode2.Name = "pib_outboxcode2";
+            this.pib_outboxcode2.Width = 66;
             // 
             // UAS_出货标签打印
             // 

+ 2 - 2
UAS-出货标签管理(贸易版)/PublicMethod/DataHelper.cs

@@ -27,8 +27,8 @@ namespace UAS_LabelMachine
         //高登ERP地址
         public static readonly string ERPAddesss = "http://183.238.39.179:8099/ERP/";
         //高登TP
-        //public static readonly string FTPAdress = "ftp://192.168.0.158:21|GOLDENFTP|Admin1@#";
-        public static readonly string FTPAdress = "ftp://183.238.39.179:21|GOLDENFTP|Admin1@#";
+        //public static readonly string FTPAdress = "ftp://192.168.0.158:21|GOLDENMES|Admin1@#";
+        public static readonly string FTPAdress = "ftp://183.238.39.179:21|GOLDENMES|Admin1@#";
         //Oracle端口
         public static readonly string OraclePort = "1521";
         //需要显示的账套

+ 9 - 4
UAS-出货标签管理(贸易版)/UAS-出货标签管理(贸易版).csproj

@@ -100,10 +100,6 @@
     <Reference Include="Analysis">
       <HintPath>tool\Analysis.dll</HintPath>
     </Reference>
-    <Reference Include="Interop.LabelManager2">
-      <HintPath>..\..\..\UAS_WinForm\UAS-出货标签管理\bin\Debug\Interop.LabelManager2.dll</HintPath>
-      <EmbedInteropTypes>False</EmbedInteropTypes>
-    </Reference>
     <Reference Include="NPOI">
       <HintPath>tool\NPOI.dll</HintPath>
     </Reference>
@@ -692,6 +688,15 @@
       <Isolated>False</Isolated>
       <EmbedInteropTypes>False</EmbedInteropTypes>
     </COMReference>
+    <COMReference Include="LabelManager2">
+      <Guid>{3624B9C2-9E5D-11D3-A896-00C04F324E22}</Guid>
+      <VersionMajor>6</VersionMajor>
+      <VersionMinor>0</VersionMinor>
+      <Lcid>0</Lcid>
+      <WrapperTool>tlbimp</WrapperTool>
+      <Isolated>False</Isolated>
+      <EmbedInteropTypes>False</EmbedInteropTypes>
+    </COMReference>
     <COMReference Include="stdole">
       <Guid>{00020430-0000-0000-C000-000000000046}</Guid>
       <VersionMajor>2</VersionMajor>

+ 263 - 270
UAS-出货标签管理(贸易版)/UAS_出货标签管理.Designer.cs

@@ -40,10 +40,8 @@
             this.CollectionUnit = new System.Windows.Forms.ComboBox();
             this.CollectionUnit_label = new System.Windows.Forms.Label();
             this.GenerateBarCode = new System.Windows.Forms.Button();
-            this.LabelMainTain = new System.Windows.Forms.Button();
             this.SaveGrid = new System.Windows.Forms.Button();
             this.sg_separator_label = new System.Windows.Forms.Label();
-            this.CollectionSetting = new System.Windows.Forms.Button();
             this.Si_ItemDGV = new System.Windows.Forms.DataGridView();
             this.si_detno = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.si_index = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -90,16 +88,13 @@
             this.MidSource = new System.Windows.Forms.BindingSource(this.components);
             this.ChooseAll = new System.Windows.Forms.Button();
             this.ExportFileDialog = new System.Windows.Forms.FolderBrowserDialog();
-            this.AttachInfo = new System.Windows.Forms.Button();
             this.pi_date = new System.Windows.Forms.Label();
             this.CleanBarCode = new System.Windows.Forms.Button();
             this.groupBoxWithBorder1 = new UAS_LabelMachine.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
-            this.ExportData = new System.Windows.Forms.Button();
             this.label18 = new System.Windows.Forms.Label();
             this.MidBoxEnd = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.MidBoxBegin = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.label16 = new System.Windows.Forms.Label();
-            this.PowerSetting = new System.Windows.Forms.Button();
             this.SingleBoxEnd = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.SingleBoxBegin = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.label12 = new System.Windows.Forms.Label();
@@ -123,6 +118,29 @@
             this.sg_code = new UAS_LabelMachine.CustomControl.SearchTextBox();
             this.MessageLog = new UAS_LabelMachine.CustomControl.RichText.RichTextAutoBottom();
             this.LabelInf = new UAS_LabelMachine.CustomControl.DataGridViewWithSerialNum();
+            this.Choose = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_ifpick = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_ifprint = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_id1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_pdno = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_prodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_vendprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_brand = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_madein = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_zxbzs = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_unit = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_lotno = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_datecode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_datecode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_qty = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_barcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_custbarcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pd_pocode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pd_custprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pd_custprodspec = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_outboxcode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_outboxcode2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.pi_inoutno = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.SingleLabel = new UAS_LabelMachine.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
             this.label8 = new System.Windows.Forms.Label();
@@ -157,29 +175,13 @@
             this.OutBoxLabelAutoPrint = new System.Windows.Forms.CheckBox();
             this.OutBoxCombox = new System.Windows.Forms.ComboBox();
             this.cu_code = new UAS_LabelMachine.CustomControl.SearchTextBox();
-            this.Choose = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_ifpick = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_ifprint = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_id1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_pdno = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_prodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_vendprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_brand = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_madein = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_zxbzs = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_unit = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_lotno = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_datecode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_datecode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_qty = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_barcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_custbarcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pd_pocode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pd_custprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pd_custprodspec = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_outboxcode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_outboxcode2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.MenuSetting = new System.Windows.Forms.Button();
+            this.Menu = new System.Windows.Forms.ContextMenuStrip(this.components);
+            this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
+            this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
+            this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem();
+            this.toolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem();
+            this.toolStripMenuItem5 = new System.Windows.Forms.ToolStripMenuItem();
             ((System.ComponentModel.ISupportInitialize)(this.Si_ItemDGV)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.MidSource)).BeginInit();
             this.groupBoxWithBorder1.SuspendLayout();
@@ -190,6 +192,7 @@
             ((System.ComponentModel.ISupportInitialize)(this.MidBoxCapacity)).BeginInit();
             this.OutBoxLabel.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.OutboxCapacity)).BeginInit();
+            this.Menu.SuspendLayout();
             this.SuspendLayout();
             // 
             // pi_inoutno_label
@@ -301,18 +304,6 @@
             this.GenerateBarCode.UseVisualStyleBackColor = true;
             this.GenerateBarCode.Click += new System.EventHandler(this.GenerateBarCode_Click);
             // 
-            // LabelMainTain
-            // 
-            this.LabelMainTain.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.LabelMainTain.Location = new System.Drawing.Point(448, 178);
-            this.LabelMainTain.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.LabelMainTain.Name = "LabelMainTain";
-            this.LabelMainTain.Size = new System.Drawing.Size(68, 26);
-            this.LabelMainTain.TabIndex = 57;
-            this.LabelMainTain.Text = "标签维护";
-            this.LabelMainTain.UseVisualStyleBackColor = true;
-            this.LabelMainTain.Click += new System.EventHandler(this.LabelMaintain_Click);
-            // 
             // SaveGrid
             // 
             this.SaveGrid.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -335,18 +326,6 @@
             this.sg_separator_label.TabIndex = 61;
             this.sg_separator_label.Text = "分隔符";
             // 
-            // CollectionSetting
-            // 
-            this.CollectionSetting.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.CollectionSetting.Location = new System.Drawing.Point(230, 104);
-            this.CollectionSetting.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.CollectionSetting.Name = "CollectionSetting";
-            this.CollectionSetting.Size = new System.Drawing.Size(88, 26);
-            this.CollectionSetting.TabIndex = 63;
-            this.CollectionSetting.Text = "采集策略设置";
-            this.CollectionSetting.UseVisualStyleBackColor = true;
-            this.CollectionSetting.Click += new System.EventHandler(this.CollectionSetting_Click);
-            // 
             // Si_ItemDGV
             // 
             this.Si_ItemDGV.AllowUserToAddRows = false;
@@ -736,19 +715,6 @@
             this.ChooseAll.UseVisualStyleBackColor = true;
             this.ChooseAll.Click += new System.EventHandler(this.ChooseAll_Click);
             // 
-            // AttachInfo
-            // 
-            this.AttachInfo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.AttachInfo.Location = new System.Drawing.Point(230, 141);
-            this.AttachInfo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.AttachInfo.Name = "AttachInfo";
-            this.AttachInfo.Size = new System.Drawing.Size(88, 26);
-            this.AttachInfo.TabIndex = 85;
-            this.AttachInfo.Text = "附加信息设置";
-            this.AttachInfo.UseVisualStyleBackColor = true;
-            this.AttachInfo.Visible = false;
-            this.AttachInfo.Click += new System.EventHandler(this.AttachInfo_Click);
-            // 
             // pi_date
             // 
             this.pi_date.AutoSize = true;
@@ -762,7 +728,7 @@
             // CleanBarCode
             // 
             this.CleanBarCode.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.CleanBarCode.Location = new System.Drawing.Point(522, 178);
+            this.CleanBarCode.Location = new System.Drawing.Point(449, 178);
             this.CleanBarCode.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.CleanBarCode.Name = "CleanBarCode";
             this.CleanBarCode.Size = new System.Drawing.Size(68, 26);
@@ -773,12 +739,10 @@
             // 
             // groupBoxWithBorder1
             // 
-            this.groupBoxWithBorder1.Controls.Add(this.ExportData);
             this.groupBoxWithBorder1.Controls.Add(this.label18);
             this.groupBoxWithBorder1.Controls.Add(this.MidBoxEnd);
             this.groupBoxWithBorder1.Controls.Add(this.MidBoxBegin);
             this.groupBoxWithBorder1.Controls.Add(this.label16);
-            this.groupBoxWithBorder1.Controls.Add(this.PowerSetting);
             this.groupBoxWithBorder1.Controls.Add(this.SingleBoxEnd);
             this.groupBoxWithBorder1.Controls.Add(this.SingleBoxBegin);
             this.groupBoxWithBorder1.Controls.Add(this.label12);
@@ -792,19 +756,6 @@
             this.groupBoxWithBorder1.TabStop = false;
             this.groupBoxWithBorder1.Text = " 打印参数设置";
             // 
-            // ExportData
-            // 
-            this.ExportData.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.ExportData.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.ExportData.Location = new System.Drawing.Point(69, 164);
-            this.ExportData.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.ExportData.Name = "ExportData";
-            this.ExportData.Size = new System.Drawing.Size(68, 26);
-            this.ExportData.TabIndex = 91;
-            this.ExportData.Text = "导出数据";
-            this.ExportData.UseVisualStyleBackColor = true;
-            this.ExportData.Click += new System.EventHandler(this.ExportData_Click);
-            // 
             // label18
             // 
             this.label18.AutoSize = true;
@@ -849,18 +800,6 @@
             this.label16.TabIndex = 87;
             this.label16.Text = "-";
             // 
-            // PowerSetting
-            // 
-            this.PowerSetting.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.PowerSetting.Location = new System.Drawing.Point(69, 202);
-            this.PowerSetting.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.PowerSetting.Name = "PowerSetting";
-            this.PowerSetting.Size = new System.Drawing.Size(68, 26);
-            this.PowerSetting.TabIndex = 76;
-            this.PowerSetting.Text = "权限设置";
-            this.PowerSetting.UseVisualStyleBackColor = true;
-            this.PowerSetting.Click += new System.EventHandler(this.PowerSetting_Click);
-            // 
             // SingleBoxEnd
             // 
             this.SingleBoxEnd.ID = null;
@@ -1168,6 +1107,189 @@
             this.LabelInf.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.LabelInf_CellValueChanged);
             this.LabelInf.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.LabelInf_DataError);
             // 
+            // Choose
+            // 
+            this.Choose.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.Choose.HeaderText = "勾选";
+            this.Choose.Name = "Choose";
+            this.Choose.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+            this.Choose.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+            this.Choose.Width = 55;
+            // 
+            // pib_ifpick
+            // 
+            this.pib_ifpick.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.pib_ifpick.DataPropertyName = "pib_ifpick";
+            this.pib_ifpick.HeaderText = "已采集";
+            this.pib_ifpick.Name = "pib_ifpick";
+            this.pib_ifpick.Width = 60;
+            // 
+            // pib_ifprint
+            // 
+            this.pib_ifprint.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.pib_ifprint.DataPropertyName = "pib_ifprint";
+            this.pib_ifprint.HeaderText = "已打印";
+            this.pib_ifprint.Name = "pib_ifprint";
+            this.pib_ifprint.Width = 60;
+            // 
+            // pib_id1
+            // 
+            this.pib_id1.DataPropertyName = "pib_id";
+            this.pib_id1.HeaderText = "pib_id";
+            this.pib_id1.Name = "pib_id1";
+            this.pib_id1.Visible = false;
+            this.pib_id1.Width = 66;
+            // 
+            // pib_pdno
+            // 
+            this.pib_pdno.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.pib_pdno.DataPropertyName = "pib_pdno";
+            this.pib_pdno.HeaderText = "明细序号";
+            this.pib_pdno.Name = "pib_pdno";
+            this.pib_pdno.ReadOnly = true;
+            this.pib_pdno.Width = 96;
+            // 
+            // pib_prodcode
+            // 
+            this.pib_prodcode.DataPropertyName = "pib_prodcode";
+            this.pib_prodcode.HeaderText = "物料编号";
+            this.pib_prodcode.Name = "pib_prodcode";
+            this.pib_prodcode.ReadOnly = true;
+            this.pib_prodcode.Width = 78;
+            // 
+            // pr_vendprodcode
+            // 
+            this.pr_vendprodcode.DataPropertyName = "pr_vendprodcode";
+            this.pr_vendprodcode.HeaderText = "MPN";
+            this.pr_vendprodcode.Name = "pr_vendprodcode";
+            this.pr_vendprodcode.ReadOnly = true;
+            this.pr_vendprodcode.Width = 48;
+            // 
+            // pib_brand
+            // 
+            this.pib_brand.DataPropertyName = "pib_brand";
+            this.pib_brand.HeaderText = "品牌";
+            this.pib_brand.Name = "pib_brand";
+            this.pib_brand.ReadOnly = true;
+            this.pib_brand.Width = 54;
+            // 
+            // pib_madein
+            // 
+            this.pib_madein.DataPropertyName = "pib_madein";
+            this.pib_madein.HeaderText = "产地";
+            this.pib_madein.Name = "pib_madein";
+            this.pib_madein.Width = 54;
+            // 
+            // pr_zxbzs
+            // 
+            this.pr_zxbzs.DataPropertyName = "pr_zxbzs";
+            this.pr_zxbzs.HeaderText = "最小包装数";
+            this.pr_zxbzs.Name = "pr_zxbzs";
+            this.pr_zxbzs.Visible = false;
+            this.pr_zxbzs.Width = 90;
+            // 
+            // pr_unit
+            // 
+            this.pr_unit.DataPropertyName = "pr_unit";
+            this.pr_unit.HeaderText = "单位";
+            this.pr_unit.Name = "pr_unit";
+            this.pr_unit.Visible = false;
+            this.pr_unit.Width = 54;
+            // 
+            // pib_lotno
+            // 
+            this.pib_lotno.DataPropertyName = "pib_lotno";
+            this.pib_lotno.HeaderText = "LotNo";
+            this.pib_lotno.Name = "pib_lotno";
+            this.pib_lotno.Width = 60;
+            // 
+            // pib_datecode
+            // 
+            this.pib_datecode.DataPropertyName = "pib_datecode";
+            this.pib_datecode.HeaderText = "DateCode";
+            this.pib_datecode.Name = "pib_datecode";
+            this.pib_datecode.Width = 78;
+            // 
+            // pib_datecode1
+            // 
+            this.pib_datecode1.DataPropertyName = "pib_datecode1";
+            this.pib_datecode1.HeaderText = "DateCode1";
+            this.pib_datecode1.Name = "pib_datecode1";
+            this.pib_datecode1.Visible = false;
+            this.pib_datecode1.Width = 84;
+            // 
+            // pib_qty
+            // 
+            this.pib_qty.DataPropertyName = "pib_qty";
+            this.pib_qty.HeaderText = "数量";
+            this.pib_qty.Name = "pib_qty";
+            this.pib_qty.ReadOnly = true;
+            this.pib_qty.Width = 54;
+            // 
+            // pib_barcode
+            // 
+            this.pib_barcode.DataPropertyName = "pib_barcode";
+            this.pib_barcode.HeaderText = "唯一条码";
+            this.pib_barcode.Name = "pib_barcode";
+            this.pib_barcode.ReadOnly = true;
+            this.pib_barcode.Width = 78;
+            // 
+            // pib_custbarcode
+            // 
+            this.pib_custbarcode.DataPropertyName = "pib_custbarcode";
+            this.pib_custbarcode.HeaderText = "客户条码";
+            this.pib_custbarcode.Name = "pib_custbarcode";
+            this.pib_custbarcode.ReadOnly = true;
+            this.pib_custbarcode.Width = 78;
+            // 
+            // pd_pocode
+            // 
+            this.pd_pocode.DataPropertyName = "pd_pocode";
+            this.pd_pocode.HeaderText = "客户PO";
+            this.pd_pocode.Name = "pd_pocode";
+            this.pd_pocode.ReadOnly = true;
+            this.pd_pocode.Width = 66;
+            // 
+            // pd_custprodcode
+            // 
+            this.pd_custprodcode.DataPropertyName = "pd_custprodcode";
+            this.pd_custprodcode.HeaderText = "客户料号";
+            this.pd_custprodcode.Name = "pd_custprodcode";
+            this.pd_custprodcode.ReadOnly = true;
+            this.pd_custprodcode.Width = 78;
+            // 
+            // pd_custprodspec
+            // 
+            this.pd_custprodspec.DataPropertyName = "pd_custprodspec";
+            this.pd_custprodspec.HeaderText = "客户型号";
+            this.pd_custprodspec.Name = "pd_custprodspec";
+            this.pd_custprodspec.ReadOnly = true;
+            this.pd_custprodspec.Width = 78;
+            // 
+            // pr_spec
+            // 
+            this.pr_spec.DataPropertyName = "pr_spec";
+            this.pr_spec.HeaderText = "规格";
+            this.pr_spec.Name = "pr_spec";
+            this.pr_spec.Visible = false;
+            this.pr_spec.Width = 54;
+            // 
+            // pib_outboxcode1
+            // 
+            this.pib_outboxcode1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.pib_outboxcode1.DataPropertyName = "pib_outboxcode1";
+            this.pib_outboxcode1.HeaderText = "中盒号";
+            this.pib_outboxcode1.Name = "pib_outboxcode1";
+            this.pib_outboxcode1.Width = 90;
+            // 
+            // pib_outboxcode2
+            // 
+            this.pib_outboxcode2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.pib_outboxcode2.DataPropertyName = "pib_outboxcode2";
+            this.pib_outboxcode2.HeaderText = "外箱号";
+            this.pib_outboxcode2.Name = "pib_outboxcode2";
+            this.pib_outboxcode2.Width = 90;
+            // 
             // pi_inoutno
             // 
             this.pi_inoutno.ID = null;
@@ -1592,188 +1714,58 @@
             this.cu_code.TextBoxEnable = false;
             this.cu_code.UserControlTextChanged += new UAS_LabelMachine.CustomControl.SearchTextBox.OnTextChange(this.cu_code_UserControlTextChanged);
             // 
-            // Choose
-            // 
-            this.Choose.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.Choose.HeaderText = "勾选";
-            this.Choose.Name = "Choose";
-            this.Choose.Resizable = System.Windows.Forms.DataGridViewTriState.True;
-            this.Choose.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
-            this.Choose.Width = 55;
-            // 
-            // pib_ifpick
-            // 
-            this.pib_ifpick.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.pib_ifpick.DataPropertyName = "pib_ifpick";
-            this.pib_ifpick.HeaderText = "已采集";
-            this.pib_ifpick.Name = "pib_ifpick";
-            this.pib_ifpick.Width = 60;
-            // 
-            // pib_ifprint
-            // 
-            this.pib_ifprint.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.pib_ifprint.DataPropertyName = "pib_ifprint";
-            this.pib_ifprint.HeaderText = "已打印";
-            this.pib_ifprint.Name = "pib_ifprint";
-            this.pib_ifprint.Width = 60;
-            // 
-            // pib_id1
-            // 
-            this.pib_id1.DataPropertyName = "pib_id";
-            this.pib_id1.HeaderText = "pib_id";
-            this.pib_id1.Name = "pib_id1";
-            this.pib_id1.Visible = false;
-            this.pib_id1.Width = 66;
-            // 
-            // pib_pdno
-            // 
-            this.pib_pdno.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.pib_pdno.DataPropertyName = "pib_pdno";
-            this.pib_pdno.HeaderText = "明细序号";
-            this.pib_pdno.Name = "pib_pdno";
-            this.pib_pdno.ReadOnly = true;
-            this.pib_pdno.Width = 96;
-            // 
-            // pib_prodcode
-            // 
-            this.pib_prodcode.DataPropertyName = "pib_prodcode";
-            this.pib_prodcode.HeaderText = "物料编号";
-            this.pib_prodcode.Name = "pib_prodcode";
-            this.pib_prodcode.ReadOnly = true;
-            this.pib_prodcode.Width = 78;
-            // 
-            // pr_vendprodcode
-            // 
-            this.pr_vendprodcode.DataPropertyName = "pr_vendprodcode";
-            this.pr_vendprodcode.HeaderText = "MPN";
-            this.pr_vendprodcode.Name = "pr_vendprodcode";
-            this.pr_vendprodcode.ReadOnly = true;
-            this.pr_vendprodcode.Width = 48;
-            // 
-            // pib_brand
-            // 
-            this.pib_brand.DataPropertyName = "pib_brand";
-            this.pib_brand.HeaderText = "品牌";
-            this.pib_brand.Name = "pib_brand";
-            this.pib_brand.ReadOnly = true;
-            this.pib_brand.Width = 54;
-            // 
-            // pib_madein
-            // 
-            this.pib_madein.DataPropertyName = "pib_madein";
-            this.pib_madein.HeaderText = "产地";
-            this.pib_madein.Name = "pib_madein";
-            this.pib_madein.Width = 54;
-            // 
-            // pr_zxbzs
-            // 
-            this.pr_zxbzs.DataPropertyName = "pr_zxbzs";
-            this.pr_zxbzs.HeaderText = "最小包装数";
-            this.pr_zxbzs.Name = "pr_zxbzs";
-            this.pr_zxbzs.Visible = false;
-            this.pr_zxbzs.Width = 90;
-            // 
-            // pr_unit
-            // 
-            this.pr_unit.DataPropertyName = "pr_unit";
-            this.pr_unit.HeaderText = "单位";
-            this.pr_unit.Name = "pr_unit";
-            this.pr_unit.Visible = false;
-            this.pr_unit.Width = 54;
-            // 
-            // pib_lotno
-            // 
-            this.pib_lotno.DataPropertyName = "pib_lotno";
-            this.pib_lotno.HeaderText = "LotNo";
-            this.pib_lotno.Name = "pib_lotno";
-            this.pib_lotno.Width = 60;
-            // 
-            // pib_datecode
-            // 
-            this.pib_datecode.DataPropertyName = "pib_datecode";
-            this.pib_datecode.HeaderText = "DateCode";
-            this.pib_datecode.Name = "pib_datecode";
-            this.pib_datecode.Width = 78;
-            // 
-            // pib_datecode1
-            // 
-            this.pib_datecode1.DataPropertyName = "pib_datecode1";
-            this.pib_datecode1.HeaderText = "DateCode1";
-            this.pib_datecode1.Name = "pib_datecode1";
-            this.pib_datecode1.Visible = false;
-            this.pib_datecode1.Width = 84;
-            // 
-            // pib_qty
-            // 
-            this.pib_qty.DataPropertyName = "pib_qty";
-            this.pib_qty.HeaderText = "数量";
-            this.pib_qty.Name = "pib_qty";
-            this.pib_qty.ReadOnly = true;
-            this.pib_qty.Width = 54;
-            // 
-            // pib_barcode
+            // MenuSetting
             // 
-            this.pib_barcode.DataPropertyName = "pib_barcode";
-            this.pib_barcode.HeaderText = "唯一条码";
-            this.pib_barcode.Name = "pib_barcode";
-            this.pib_barcode.ReadOnly = true;
-            this.pib_barcode.Width = 78;
+            this.MenuSetting.Location = new System.Drawing.Point(230, 112);
+            this.MenuSetting.Name = "MenuSetting";
+            this.MenuSetting.Size = new System.Drawing.Size(88, 23);
+            this.MenuSetting.TabIndex = 89;
+            this.MenuSetting.Text = "后台管理";
+            this.MenuSetting.UseVisualStyleBackColor = true;
+            this.MenuSetting.Click += new System.EventHandler(this.MenuSetting_Click);
             // 
-            // pib_custbarcode
+            // Menu
             // 
-            this.pib_custbarcode.DataPropertyName = "pib_custbarcode";
-            this.pib_custbarcode.HeaderText = "客户条码";
-            this.pib_custbarcode.Name = "pib_custbarcode";
-            this.pib_custbarcode.ReadOnly = true;
-            this.pib_custbarcode.Width = 78;
+            this.Menu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+            this.toolStripMenuItem1,
+            this.toolStripMenuItem2,
+            this.toolStripMenuItem3,
+            this.toolStripMenuItem4,
+            this.toolStripMenuItem5});
+            this.Menu.Name = "Menu";
+            this.Menu.RenderMode = System.Windows.Forms.ToolStripRenderMode.System;
+            this.Menu.Size = new System.Drawing.Size(149, 114);
+            this.Menu.ItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.Menu_ItemClicked);
             // 
-            // pd_pocode
+            // toolStripMenuItem1
             // 
-            this.pd_pocode.DataPropertyName = "pd_pocode";
-            this.pd_pocode.HeaderText = "客户PO";
-            this.pd_pocode.Name = "pd_pocode";
-            this.pd_pocode.ReadOnly = true;
-            this.pd_pocode.Width = 66;
+            this.toolStripMenuItem1.Name = "toolStripMenuItem1";
+            this.toolStripMenuItem1.Size = new System.Drawing.Size(148, 22);
+            this.toolStripMenuItem1.Text = "采集策略设置";
             // 
-            // pd_custprodcode
+            // toolStripMenuItem2
             // 
-            this.pd_custprodcode.DataPropertyName = "pd_custprodcode";
-            this.pd_custprodcode.HeaderText = "客户料号";
-            this.pd_custprodcode.Name = "pd_custprodcode";
-            this.pd_custprodcode.ReadOnly = true;
-            this.pd_custprodcode.Width = 78;
+            this.toolStripMenuItem2.Name = "toolStripMenuItem2";
+            this.toolStripMenuItem2.Size = new System.Drawing.Size(148, 22);
+            this.toolStripMenuItem2.Text = "附加信息设置";
             // 
-            // pd_custprodspec
+            // toolStripMenuItem3
             // 
-            this.pd_custprodspec.DataPropertyName = "pd_custprodspec";
-            this.pd_custprodspec.HeaderText = "客户型号";
-            this.pd_custprodspec.Name = "pd_custprodspec";
-            this.pd_custprodspec.ReadOnly = true;
-            this.pd_custprodspec.Width = 78;
+            this.toolStripMenuItem3.Name = "toolStripMenuItem3";
+            this.toolStripMenuItem3.Size = new System.Drawing.Size(148, 22);
+            this.toolStripMenuItem3.Text = "导出数据";
             // 
-            // pr_spec
+            // toolStripMenuItem4
             // 
-            this.pr_spec.DataPropertyName = "pr_spec";
-            this.pr_spec.HeaderText = "规格";
-            this.pr_spec.Name = "pr_spec";
-            this.pr_spec.Visible = false;
-            this.pr_spec.Width = 54;
+            this.toolStripMenuItem4.Name = "toolStripMenuItem4";
+            this.toolStripMenuItem4.Size = new System.Drawing.Size(148, 22);
+            this.toolStripMenuItem4.Text = "权限设置";
             // 
-            // pib_outboxcode1
+            // toolStripMenuItem5
             // 
-            this.pib_outboxcode1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.pib_outboxcode1.DataPropertyName = "pib_outboxcode1";
-            this.pib_outboxcode1.HeaderText = "中盒号";
-            this.pib_outboxcode1.Name = "pib_outboxcode1";
-            this.pib_outboxcode1.Width = 90;
-            // 
-            // pib_outboxcode2
-            // 
-            this.pib_outboxcode2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.pib_outboxcode2.DataPropertyName = "pib_outboxcode2";
-            this.pib_outboxcode2.HeaderText = "外箱号";
-            this.pib_outboxcode2.Name = "pib_outboxcode2";
-            this.pib_outboxcode2.Width = 90;
+            this.toolStripMenuItem5.Name = "toolStripMenuItem5";
+            this.toolStripMenuItem5.Size = new System.Drawing.Size(148, 22);
+            this.toolStripMenuItem5.Text = "标签维护";
             // 
             // UAS_出货标签打印
             // 
@@ -1781,10 +1773,10 @@
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(233)))), ((int)(((byte)(206)))));
             this.ClientSize = new System.Drawing.Size(1257, 711);
+            this.Controls.Add(this.MenuSetting);
             this.Controls.Add(this.cu_code);
             this.Controls.Add(this.CleanBarCode);
             this.Controls.Add(this.pi_date);
-            this.Controls.Add(this.AttachInfo);
             this.Controls.Add(this.groupBoxWithBorder1);
             this.Controls.Add(this.ChooseAll);
             this.Controls.Add(this.GetGridOnly);
@@ -1797,11 +1789,9 @@
             this.Controls.Add(this.CleanDetail);
             this.Controls.Add(this.Si_ItemDGV);
             this.Controls.Add(this.CollectionProcess);
-            this.Controls.Add(this.CollectionSetting);
             this.Controls.Add(this.sg_separator);
             this.Controls.Add(this.sg_separator_label);
             this.Controls.Add(this.SaveGrid);
-            this.Controls.Add(this.LabelMainTain);
             this.Controls.Add(this.GenerateBarCode);
             this.Controls.Add(this.CollectionUnit_label);
             this.Controls.Add(this.CollectionUnit);
@@ -1846,6 +1836,7 @@
             this.OutBoxLabel.ResumeLayout(false);
             this.OutBoxLabel.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.OutboxCapacity)).EndInit();
+            this.Menu.ResumeLayout(false);
             this.ResumeLayout(false);
             this.PerformLayout();
 
@@ -1909,11 +1900,9 @@
         private System.Windows.Forms.ComboBox CollectionUnit;
         private System.Windows.Forms.Label CollectionUnit_label;
         private System.Windows.Forms.Button GenerateBarCode;
-        private System.Windows.Forms.Button LabelMainTain;
         private System.Windows.Forms.Button SaveGrid;
         private System.Windows.Forms.Label sg_separator_label;
         private CustomControl.EnterTextBox sg_separator;
-        private System.Windows.Forms.Button CollectionSetting;
         private System.Windows.Forms.Label Process;
         private System.Windows.Forms.Label Installed;
         private System.Windows.Forms.Label label13;
@@ -1936,7 +1925,6 @@
         private System.Windows.Forms.Label label3;
         private System.Windows.Forms.CheckBox CleanInputAfterCollect;
         private System.Windows.Forms.Button AllCollected;
-        private System.Windows.Forms.Button PowerSetting;
         private System.Windows.Forms.Button GetOutBoxCode;
         private System.Windows.Forms.LinkLabel LogingOut;
         private System.Windows.Forms.CheckBox GetGridOnly;
@@ -1959,7 +1947,6 @@
         private System.Windows.Forms.Label label18;
         private CustomControl.EnterTextBox MidBoxEnd;
         private CustomControl.EnterTextBox MidBoxBegin;
-        private System.Windows.Forms.Button ExportData;
         private System.Windows.Forms.FolderBrowserDialog ExportFileDialog;
         private System.Windows.Forms.DataGridViewTextBoxColumn si_detno;
         private System.Windows.Forms.DataGridViewTextBoxColumn si_index;
@@ -1969,7 +1956,6 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn si_expression;
         private System.Windows.Forms.DataGridViewTextBoxColumn si_item;
         private System.Windows.Forms.DataGridViewTextBoxColumn si_expressionitem;
-        private System.Windows.Forms.Button AttachInfo;
         private System.Windows.Forms.Label pi_date;
         private System.Windows.Forms.Button CleanBarCode;
         private CustomControl.SearchTextBox cu_code;
@@ -2002,5 +1988,12 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn pr_spec;
         private System.Windows.Forms.DataGridViewTextBoxColumn pib_outboxcode1;
         private System.Windows.Forms.DataGridViewTextBoxColumn pib_outboxcode2;
+        private System.Windows.Forms.Button MenuSetting;
+        private System.Windows.Forms.ContextMenuStrip Menu;
+        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1;
+        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem2;
+        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem3;
+        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem4;
+        private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem5;
     }
 }

+ 96 - 82
UAS-出货标签管理(贸易版)/UAS_出货标签管理.cs

@@ -283,37 +283,13 @@ namespace UAS_LabelMachine
             form.ShowDialog();
         }
 
-        private void CollectionSetting_Click(object sender, EventArgs e)
-        {
-            采集策略 form = new 采集策略(sg_code.Text);
-            form.FormClosed += sg_code_UserControlTextChanged;
-            BaseUtil.SetFormCenter(form);
-            form.ShowDialog();
-        }
-
-        private void LabelMaintain_Click(object sender, EventArgs e)
-        {
-            客户标签维护 form = new 客户标签维护();
-            BaseUtil.SetFormCenter(form);
-            if (SingleDoc != null)
-                SingleDoc.Close();
-            if (MidDoc != null)
-                MidDoc.Close();
-            if (OutBoxDoc != null)
-                OutBoxDoc.Close();
-            form.FormClosed += LabelFormClose;
-            form.ShowDialog();
-        }
-
         private void LabelFormClose(object sender, EventArgs e)
         {
             if (GetGridOnly.Checked)
                 GetInOutInfAndLabelFile();
             else
             {
-                GetGridOnly.Checked = true;
                 GetInOutInfAndLabelFile();
-                GetGridOnly.Checked = false;
             }
         }
 
@@ -1801,13 +1777,6 @@ namespace UAS_LabelMachine
             }
         }
 
-        private void PowerSetting_Click(object sender, EventArgs e)
-        {
-            PowerSetting pw = new PowerSetting();
-            BaseUtil.SetFormCenter(pw);
-            pw.ShowDialog();
-        }
-
         private void GetOutBoxCode_Click(object sender, EventArgs e)
         {
             if (dh.GetConfig("UsingPacking", "ProdInOut!Sale").ToString() != "")
@@ -2016,58 +1985,7 @@ namespace UAS_LabelMachine
 
         private void ExportData_Click(object sender, EventArgs e)
         {
-            ExportFileDialog.Description = "选择导出的路径";
-            DialogResult result = ExportFileDialog.ShowDialog();
-            if (result == DialogResult.OK)
-            {
-                ExcelHandler eh = new ExcelHandler();
-                DataTable dt = ((DataTable)LabelInf.DataSource).Copy();
-                for (int i = dt.Columns.Count - 1; i >= 0; i--)
-                {
-                    for (int j = 0; j < LabelInf.Columns.Count; j++)
-                    {
-                        //去除ID列
-                        if (dt.Columns[i].ColumnName.ToLower().Contains("id") || dt.Columns[i].ColumnName.ToLower() == "pib_barcode" || dt.Columns[i].ColumnName.ToLower() == "pib_pdno" || dt.Columns[i].ColumnName.ToLower() == "pib_ifpick" || dt.Columns[i].ColumnName.ToLower() == "pib_ifprint" || dt.Columns[i].ColumnName.ToLower() == "pib_datecode1" || dt.Columns[i].ColumnName.ToLower() == "pr_vendprodcode")
-                        {
-                            dt.Columns.RemoveAt(i);
-                            break;
-                        }
-                        switch (dt.Columns[i].ColumnName.ToLower())
-                        {
-                            case "pib_lotno":
-                                dt.Columns[i].ColumnName = "批次号";
-                                break;
-                            case "pib_datecode":
-                                dt.Columns[i].ColumnName = "生产日期";
-                                break;
-                            case "pib_custbarcode":
-                                dt.Columns[i].ColumnName = "最小产品包装条码";
-                                break;
-                            default:
-                                break;
-                        }
-                        if (dt.Columns[i].ColumnName.ToLower() == LabelInf.Columns[j].DataPropertyName.ToLower())
-                        {
-                            dt.Columns[i].ColumnName = LabelInf.Columns[j].HeaderText;
-                            break;
-                        }
-                    }
-                }
-                eh.ExportExcel(dt, ExportFileDialog.SelectedPath, pi_date.Text + "-" + pi_inoutno.Text);
-                string close = MessageBox.Show(this.ParentForm, "导出成功,是否打开文件", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
-                if (close.ToString() == "Yes")
-                    System.Diagnostics.Process.Start(ExportFileDialog.SelectedPath + "\\" + pi_date.Text + "-" + pi_inoutno.Text + ".xls");
-            }
-        }
 
-        private void AttachInfo_Click(object sender, EventArgs e)
-        {
-            if (cu_code.Text != "")
-            {
-                附件内容打印 att = new 附件内容打印(cu_code.Text);
-                att.ShowDialog();
-            }
-            else MessageBox.Show("请先获取出库单信息");
         }
 
         private void MidBoxCapacity_Leave(object sender, EventArgs e)
@@ -2093,6 +2011,7 @@ namespace UAS_LabelMachine
             string close = MessageBox.Show(this.ParentForm, "是否清除该出货单条码", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
             if (close.ToString() == "Yes")
             {
+                sdh.ExecuteSql("delete from prodiobarcode where pib_inoutno='" + pi_inoutno.Text + "'", "delete");
                 dh.ExecuteSql("delete from prodiobarcode where pib_inoutno='" + pi_inoutno.Text + "'", "delete");
                 LoadGridData(sender, e);
             }
@@ -2184,5 +2103,100 @@ namespace UAS_LabelMachine
             if (!InitGetLabel)
                 GetInOutInfAndLabelFile();
         }
+
+        private void MenuSetting_Click(object sender, EventArgs e)
+        {
+            Menu.Show(new Point(MenuSetting.Location.X, MenuSetting.Location.Y + 20));
+        }
+
+        private void Menu_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
+        {
+            switch (e.ClickedItem.Text)
+            {
+                case "采集策略设置":
+                    采集策略 form = new 采集策略(sg_code.Text);
+                    form.FormClosed += sg_code_UserControlTextChanged;
+                    BaseUtil.SetFormCenter(form);
+                    form.ShowDialog();
+                    break;
+                case "附件信息设置":
+                    if (cu_code.Text != "")
+                    {
+                        附件内容打印 att = new 附件内容打印(cu_code.Text);
+                        att.ShowDialog();
+                    }
+                    else MessageBox.Show("请先获取出库单信息");
+                    break;
+                case "标签维护":
+                    客户标签维护 form1 = new 客户标签维护();
+                    BaseUtil.SetFormCenter(form1);
+                    if (SingleDoc != null)
+                        SingleDoc.Close();
+                    if (MidDoc != null)
+                        MidDoc.Close();
+                    if (OutBoxDoc != null)
+                        OutBoxDoc.Close();
+                    if (SingleFormat != null)
+                        SingleFormat.Close(SaveOptions.DoNotSaveChanges);
+                    if (MidFormat != null)
+                        MidFormat.Close(SaveOptions.DoNotSaveChanges);
+                    if (OutFormat != null)
+                        OutFormat.Close(SaveOptions.DoNotSaveChanges);
+                    form1.FormClosed += LabelFormClose;
+                    form1.ShowDialog();
+                    break;
+                case "导出数据":
+                    ExportFileDialog.Description = "选择导出的路径";
+                    DialogResult result = ExportFileDialog.ShowDialog();
+                    if (result == DialogResult.OK)
+                    {
+                        ExcelHandler eh = new ExcelHandler();
+                        DataTable dt = ((DataTable)LabelInf.DataSource).Copy();
+                        for (int i = dt.Columns.Count - 1; i >= 0; i--)
+                        {
+                            for (int j = 0; j < LabelInf.Columns.Count; j++)
+                            {
+                                //去除ID列
+                                if (dt.Columns[i].ColumnName.ToLower().Contains("id") || dt.Columns[i].ColumnName.ToLower() == "pib_barcode" || dt.Columns[i].ColumnName.ToLower() == "pib_pdno" || dt.Columns[i].ColumnName.ToLower() == "pib_ifpick" || dt.Columns[i].ColumnName.ToLower() == "pib_ifprint" || dt.Columns[i].ColumnName.ToLower() == "pib_datecode1" || dt.Columns[i].ColumnName.ToLower() == "pr_vendprodcode")
+                                {
+                                    dt.Columns.RemoveAt(i);
+                                    break;
+                                }
+                                switch (dt.Columns[i].ColumnName.ToLower())
+                                {
+                                    case "pib_lotno":
+                                        dt.Columns[i].ColumnName = "批次号";
+                                        break;
+                                    case "pib_datecode":
+                                        dt.Columns[i].ColumnName = "生产日期";
+                                        break;
+                                    case "pib_custbarcode":
+                                        dt.Columns[i].ColumnName = "最小产品包装条码";
+                                        break;
+                                    default:
+                                        break;
+                                }
+                                if (dt.Columns[i].ColumnName.ToLower() == LabelInf.Columns[j].DataPropertyName.ToLower())
+                                {
+                                    dt.Columns[i].ColumnName = LabelInf.Columns[j].HeaderText;
+                                    break;
+                                }
+                            }
+                        }
+                        eh.ExportExcel(dt, ExportFileDialog.SelectedPath, pi_date.Text + "-" + pi_inoutno.Text);
+                        string close = MessageBox.Show(this.ParentForm, "导出成功,是否打开文件", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
+                        if (close.ToString() == "Yes")
+                            System.Diagnostics.Process.Start(ExportFileDialog.SelectedPath + "\\" + pi_date.Text + "-" + pi_inoutno.Text + ".xls");
+                    }
+                    break;
+                case "权限设置":
+                    PowerSetting pw = new PowerSetting();
+                    BaseUtil.SetFormCenter(pw);
+                    pw.ShowDialog();
+                    break;
+                default:
+                    break;
+            }
+        }
     }
 }

+ 3 - 0
UAS-出货标签管理(贸易版)/UAS_出货标签管理.resx

@@ -171,6 +171,9 @@
   <metadata name="pr_spec.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
+  <metadata name="Menu.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>442, 17</value>
+  </metadata>
   <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
   <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
     <value>

+ 1 - 2
UAS-出货标签管理(贸易版)/客户标签维护.cs

@@ -60,7 +60,6 @@ namespace UAS_LabelMachine
         public 客户标签维护()
         {
             InitializeComponent();
-
             cu_code.FormName = Name;
             cu_code.SetValueField = new string[] { "cu_code", "cu_name" };
             cu_code.TableName = "(select distinct cu_code,cu_name from customer left join customerlabel on cu_code=cl_custcode)";
@@ -77,7 +76,7 @@ namespace UAS_LabelMachine
             la_code.SelectField = "la_code # 模板编号,la_name # 模板名称";
             NetURL.Text = Settings.Default.ShareUrl;
         }
-        
+
         private void 条码维护_Load(object sender, EventArgs e)
         {
             dh = SystemInf.dh;

+ 18 - 18
UAS-出货标签管理/PublicMethod/DataHelper.cs

@@ -11,28 +11,28 @@ namespace UAS_LabelMachine
     public class DataHelper
     {
 
-        ////富为外网地址
-        //private readonly string ConnectionStrings = "Data Source=richwellgroup.com.cn/orcl;User ID=DATACENTER;PassWord=select!#%*(";
-        ////富为ERP地址
-        //public static readonly string ERPAddesss = "http://richwellgroup.com.cn:8099/ERP/";
-        ////富为FTP
-        //public static readonly string FTPAdress = "ftp://richwellgroup.com.cn|printuser|printuser";
-        ////Oracle端口
-        //public static readonly string OraclePort = "1521";
-        ////需要显示的账套
-        //public static readonly string Masters = "JDTSY,FW_JDT,N_DATACENTER,FY_TEST,JD_TEST,XY_TEST,FW_TEST,DATACENTER,FW,XY,FY";
-
-        //高登地址
-        private readonly string ConnectionStrings = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=DATACENTER;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=183.238.39.179)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
-        //高登ERP地址
-        public static readonly string ERPAddesss = "http://183.238.39.179:8099/ERP/";
-        //高登TP
-        public static readonly string FTPAdress = "ftp://183.238.39.179|GOLDENFTP|Admin1@#";
+        //富为外网地址
+        private readonly string ConnectionStrings = "Data Source=richwellgroup.com.cn/orcl;User ID=DATACENTER;PassWord=select!#%*(";
+        //富为ERP地址
+        public static readonly string ERPAddesss = "http://richwellgroup.com.cn:8099/ERP/";
+        //富为FTP
+        public static readonly string FTPAdress = "ftp://richwellgroup.com.cn|printuser|printuser";
         //Oracle端口
         public static readonly string OraclePort = "1521";
         //需要显示的账套
-        public static readonly string Masters = "GOLDEN";
+        public static readonly string Masters = "JDTSY,FW_JDT,N_DATACENTER,FY_TEST,JD_TEST,XY_TEST,FW_TEST,DATACENTER,FW,XY,FY";
 
+        ////高登地址
+        //private readonly string ConnectionStrings = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=DATACENTER;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=183.238.39.179)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
+        ////高登ERP地址
+        //public static readonly string ERPAddesss = "http://183.238.39.179:8099/ERP/";
+        ////高登TP
+        ////public static readonly string FTPAdress = "ftp://192.168.0.158:21|GOLDENFTP|Admin1@#";
+        //public static readonly string FTPAdress = "ftp://183.238.39.179:21|GOLDENFTP|Admin1@#";
+        ////Oracle端口
+        //public static readonly string OraclePort = "1521";
+        ////需要显示的账套
+        //public static readonly string Masters = "GOLDEN";
 
         ////怡海能达外网地址
         //private readonly string ConnectionStrings = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=DATACENTER;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=sz.hi-mantech.com)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";