Explorar el Código

参数更改后刷新

callm hace 7 años
padre
commit
3a689e5622

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

@@ -12,9 +12,9 @@ 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_DATACENTER;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=113.116.74.6)(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://113.116.74.6:8099/ERP/";
         //吉利通FTP
         public static readonly string FTPAdress = "ftp://218.18.115.198:21|Print|Administrator1@#";
         //Oracle端口

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

@@ -143,6 +143,41 @@
             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.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.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.EnterTextBox();
             this.SingleLabel = new UAS_LabelMachine.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
             this.SingleDocRefresh = new System.Windows.Forms.LinkLabel();
@@ -219,41 +254,6 @@
             this.ManBackendCheck = new UAS_LabelMachine.CustomControl.SerialPortWithTag();
             this.label30 = new System.Windows.Forms.Label();
             this.cu_print_limiteddate = new System.Windows.Forms.NumericUpDown();
-            this.Choose = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            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.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();
             this.CollectionProcess.SuspendLayout();
@@ -279,7 +279,7 @@
             // ExportData
             // 
             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(468, 494);
+            this.ExportData.Location = new System.Drawing.Point(508, 494);
             this.ExportData.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.ExportData.Name = "ExportData";
             this.ExportData.Size = new System.Drawing.Size(136, 52);
@@ -592,7 +592,7 @@
             // ButtonSetting
             // 
             this.ButtonSetting.Location = new System.Drawing.Point(464, 206);
-            this.ButtonSetting.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
+            this.ButtonSetting.Margin = new System.Windows.Forms.Padding(6);
             this.ButtonSetting.Name = "ButtonSetting";
             this.ButtonSetting.Size = new System.Drawing.Size(180, 46);
             this.ButtonSetting.TabIndex = 89;
@@ -614,7 +614,7 @@
             "参数配置",
             "权限管理"});
             this.ListButtonMenu.Location = new System.Drawing.Point(464, 178);
-            this.ListButtonMenu.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
+            this.ListButtonMenu.Margin = new System.Windows.Forms.Padding(6);
             this.ListButtonMenu.Name = "ListButtonMenu";
             this.ListButtonMenu.Size = new System.Drawing.Size(190, 118);
             this.ListButtonMenu.TabIndex = 88;
@@ -859,7 +859,7 @@
             // UploadData
             // 
             this.UploadData.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.UploadData.Location = new System.Drawing.Point(468, 372);
+            this.UploadData.Location = new System.Drawing.Point(508, 372);
             this.UploadData.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.UploadData.Name = "UploadData";
             this.UploadData.Size = new System.Drawing.Size(136, 52);
@@ -871,7 +871,7 @@
             // PageSizeNum
             // 
             this.PageSizeNum.Location = new System.Drawing.Point(840, 1218);
-            this.PageSizeNum.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
+            this.PageSizeNum.Margin = new System.Windows.Forms.Padding(6);
             this.PageSizeNum.Name = "PageSizeNum";
             this.PageSizeNum.Size = new System.Drawing.Size(126, 35);
             this.PageSizeNum.TabIndex = 104;
@@ -893,7 +893,7 @@
             // DownloadBarcode
             // 
             this.DownloadBarcode.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.DownloadBarcode.Location = new System.Drawing.Point(468, 310);
+            this.DownloadBarcode.Location = new System.Drawing.Point(508, 310);
             this.DownloadBarcode.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.DownloadBarcode.Name = "DownloadBarcode";
             this.DownloadBarcode.Size = new System.Drawing.Size(136, 52);
@@ -933,7 +933,7 @@
             // ResetBarcode
             // 
             this.ResetBarcode.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.ResetBarcode.Location = new System.Drawing.Point(468, 434);
+            this.ResetBarcode.Location = new System.Drawing.Point(508, 434);
             this.ResetBarcode.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.ResetBarcode.Name = "ResetBarcode";
             this.ResetBarcode.Size = new System.Drawing.Size(136, 52);
@@ -957,7 +957,7 @@
             // 
             this.cu_print_dateformat.AutoSize = true;
             this.cu_print_dateformat.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.cu_print_dateformat.Location = new System.Drawing.Point(308, 374);
+            this.cu_print_dateformat.Location = new System.Drawing.Point(308, 370);
             this.cu_print_dateformat.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.cu_print_dateformat.Name = "cu_print_dateformat";
             this.cu_print_dateformat.Size = new System.Drawing.Size(0, 36);
@@ -1024,9 +1024,9 @@
             this.CollectionProcess.Controls.Add(this.Process);
             this.CollectionProcess.Font = new System.Drawing.Font("微软雅黑", 12F);
             this.CollectionProcess.Location = new System.Drawing.Point(668, 12);
-            this.CollectionProcess.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.CollectionProcess.Margin = new System.Windows.Forms.Padding(4);
             this.CollectionProcess.Name = "CollectionProcess";
-            this.CollectionProcess.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.CollectionProcess.Padding = new System.Windows.Forms.Padding(4);
             this.CollectionProcess.Size = new System.Drawing.Size(598, 536);
             this.CollectionProcess.TabIndex = 80;
             this.CollectionProcess.TabStop = false;
@@ -1038,9 +1038,9 @@
             this.groupBox2.Controls.Add(this.ManualFrontCheck);
             this.groupBox2.Controls.Add(this.ManualBackCheck);
             this.groupBox2.Location = new System.Drawing.Point(154, 354);
-            this.groupBox2.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
+            this.groupBox2.Margin = new System.Windows.Forms.Padding(6);
             this.groupBox2.Name = "groupBox2";
-            this.groupBox2.Padding = new System.Windows.Forms.Padding(6, 6, 6, 6);
+            this.groupBox2.Padding = new System.Windows.Forms.Padding(6);
             this.groupBox2.Size = new System.Drawing.Size(430, 44);
             this.groupBox2.TabIndex = 97;
             this.groupBox2.TabStop = false;
@@ -1049,8 +1049,8 @@
             // 
             this.ManualAutoCheck.AutoSize = true;
             this.ManualAutoCheck.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.ManualAutoCheck.Location = new System.Drawing.Point(330, 8);
-            this.ManualAutoCheck.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
+            this.ManualAutoCheck.Location = new System.Drawing.Point(336, 14);
+            this.ManualAutoCheck.Margin = new System.Windows.Forms.Padding(6);
             this.ManualAutoCheck.Name = "ManualAutoCheck";
             this.ManualAutoCheck.Size = new System.Drawing.Size(93, 35);
             this.ManualAutoCheck.TabIndex = 99;
@@ -1063,8 +1063,8 @@
             // 
             this.ManualFrontCheck.AutoSize = true;
             this.ManualFrontCheck.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.ManualFrontCheck.Location = new System.Drawing.Point(18, 8);
-            this.ManualFrontCheck.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
+            this.ManualFrontCheck.Location = new System.Drawing.Point(24, 14);
+            this.ManualFrontCheck.Margin = new System.Windows.Forms.Padding(6);
             this.ManualFrontCheck.Name = "ManualFrontCheck";
             this.ManualFrontCheck.Size = new System.Drawing.Size(141, 35);
             this.ManualFrontCheck.TabIndex = 96;
@@ -1077,8 +1077,8 @@
             // 
             this.ManualBackCheck.AutoSize = true;
             this.ManualBackCheck.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.ManualBackCheck.Location = new System.Drawing.Point(178, 8);
-            this.ManualBackCheck.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
+            this.ManualBackCheck.Location = new System.Drawing.Point(184, 14);
+            this.ManualBackCheck.Margin = new System.Windows.Forms.Padding(6);
             this.ManualBackCheck.Name = "ManualBackCheck";
             this.ManualBackCheck.Size = new System.Drawing.Size(141, 35);
             this.ManualBackCheck.TabIndex = 97;
@@ -1093,9 +1093,9 @@
             this.groupBox1.Controls.Add(this.AutoCollection);
             this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 10F);
             this.groupBox1.Location = new System.Drawing.Point(10, 230);
-            this.groupBox1.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
+            this.groupBox1.Margin = new System.Windows.Forms.Padding(6);
             this.groupBox1.Name = "groupBox1";
-            this.groupBox1.Padding = new System.Windows.Forms.Padding(6, 6, 6, 6);
+            this.groupBox1.Padding = new System.Windows.Forms.Padding(6);
             this.groupBox1.Size = new System.Drawing.Size(220, 44);
             this.groupBox1.TabIndex = 97;
             this.groupBox1.TabStop = false;
@@ -1104,8 +1104,8 @@
             // 
             this.ManualCollection.AutoSize = true;
             this.ManualCollection.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.ManualCollection.Location = new System.Drawing.Point(126, 6);
-            this.ManualCollection.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
+            this.ManualCollection.Location = new System.Drawing.Point(132, 12);
+            this.ManualCollection.Margin = new System.Windows.Forms.Padding(6);
             this.ManualCollection.Name = "ManualCollection";
             this.ManualCollection.Size = new System.Drawing.Size(93, 35);
             this.ManualCollection.TabIndex = 77;
@@ -1118,8 +1118,8 @@
             // 
             this.AutoCollection.AutoSize = true;
             this.AutoCollection.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.AutoCollection.Location = new System.Drawing.Point(18, 6);
-            this.AutoCollection.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
+            this.AutoCollection.Location = new System.Drawing.Point(24, 12);
+            this.AutoCollection.Margin = new System.Windows.Forms.Padding(6);
             this.AutoCollection.Name = "AutoCollection";
             this.AutoCollection.Size = new System.Drawing.Size(93, 35);
             this.AutoCollection.TabIndex = 76;
@@ -1151,7 +1151,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(478, 174);
+            this.outboxProcess.Location = new System.Drawing.Point(480, 176);
             this.outboxProcess.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.outboxProcess.Name = "outboxProcess";
             this.outboxProcess.Size = new System.Drawing.Size(70, 41);
@@ -1163,7 +1163,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(478, 78);
+            this.midboxProcess.Location = new System.Drawing.Point(480, 80);
             this.midboxProcess.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.midboxProcess.Name = "midboxProcess";
             this.midboxProcess.Size = new System.Drawing.Size(70, 41);
@@ -1174,7 +1174,7 @@
             // 
             this.label25.AutoSize = true;
             this.label25.Font = new System.Drawing.Font("微软雅黑", 12F);
-            this.label25.Location = new System.Drawing.Point(478, 126);
+            this.label25.Location = new System.Drawing.Point(480, 128);
             this.label25.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label25.Name = "label25";
             this.label25.Size = new System.Drawing.Size(82, 41);
@@ -1185,7 +1185,7 @@
             // 
             this.label24.AutoSize = true;
             this.label24.Font = new System.Drawing.Font("微软雅黑", 12F);
-            this.label24.Location = new System.Drawing.Point(478, 26);
+            this.label24.Location = new System.Drawing.Point(480, 28);
             this.label24.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label24.Name = "label24";
             this.label24.Size = new System.Drawing.Size(82, 41);
@@ -1318,7 +1318,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(26, 298);
+            this.checkBox2.Location = new System.Drawing.Point(28, 300);
             this.checkBox2.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.checkBox2.Name = "checkBox2";
             this.checkBox2.Size = new System.Drawing.Size(166, 35);
@@ -1330,7 +1330,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(10, 366);
+            this.label23.Location = new System.Drawing.Point(12, 368);
             this.label23.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label23.Name = "label23";
             this.label23.Size = new System.Drawing.Size(134, 31);
@@ -1341,7 +1341,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(18, 482);
+            this.label22.Location = new System.Drawing.Point(20, 484);
             this.label22.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label22.Name = "label22";
             this.label22.Size = new System.Drawing.Size(110, 31);
@@ -1352,8 +1352,8 @@
             // 
             this.RecheckBarcode.AutoSize = true;
             this.RecheckBarcode.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.RecheckBarcode.Location = new System.Drawing.Point(366, 478);
-            this.RecheckBarcode.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
+            this.RecheckBarcode.Location = new System.Drawing.Point(368, 480);
+            this.RecheckBarcode.Margin = new System.Windows.Forms.Padding(6);
             this.RecheckBarcode.Name = "RecheckBarcode";
             this.RecheckBarcode.Size = new System.Drawing.Size(183, 35);
             this.RecheckBarcode.TabIndex = 94;
@@ -1365,8 +1365,8 @@
             // 
             this.RecheckCuprodcode.AutoSize = true;
             this.RecheckCuprodcode.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.RecheckCuprodcode.Location = new System.Drawing.Point(142, 478);
-            this.RecheckCuprodcode.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
+            this.RecheckCuprodcode.Location = new System.Drawing.Point(144, 480);
+            this.RecheckCuprodcode.Margin = new System.Windows.Forms.Padding(6);
             this.RecheckCuprodcode.Name = "RecheckCuprodcode";
             this.RecheckCuprodcode.Size = new System.Drawing.Size(207, 35);
             this.RecheckCuprodcode.TabIndex = 93;
@@ -1378,7 +1378,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(22, 430);
+            this.DetailRange.Location = new System.Drawing.Point(24, 432);
             this.DetailRange.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.DetailRange.Name = "DetailRange";
             this.DetailRange.Size = new System.Drawing.Size(268, 35);
@@ -1391,7 +1391,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(414, 434);
+            this.label21.Location = new System.Drawing.Point(416, 436);
             this.label21.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label21.Name = "label21";
             this.label21.Size = new System.Drawing.Size(24, 31);
@@ -1403,7 +1403,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(278, 78);
+            this.Process_midboxcode.Location = new System.Drawing.Point(280, 80);
             this.Process_midboxcode.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.Process_midboxcode.Name = "Process_midboxcode";
             this.Process_midboxcode.Size = new System.Drawing.Size(37, 41);
@@ -1415,7 +1415,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(278, 174);
+            this.Process_outboxcode.Location = new System.Drawing.Point(280, 176);
             this.Process_outboxcode.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.Process_outboxcode.Name = "Process_outboxcode";
             this.Process_outboxcode.Size = new System.Drawing.Size(37, 41);
@@ -1427,7 +1427,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(30, 114);
+            this.CollectedCount.Location = new System.Drawing.Point(32, 116);
             this.CollectedCount.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.CollectedCount.Name = "CollectedCount";
             this.CollectedCount.Size = new System.Drawing.Size(70, 41);
@@ -1438,7 +1438,7 @@
             // 
             this.label14.AutoSize = true;
             this.label14.Font = new System.Drawing.Font("微软雅黑", 12F);
-            this.label14.Location = new System.Drawing.Point(266, 126);
+            this.label14.Location = new System.Drawing.Point(268, 128);
             this.label14.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label14.Name = "label14";
             this.label14.Size = new System.Drawing.Size(146, 41);
@@ -1449,7 +1449,7 @@
             // 
             this.label11.AutoSize = true;
             this.label11.Font = new System.Drawing.Font("微软雅黑", 12F);
-            this.label11.Location = new System.Drawing.Point(266, 30);
+            this.label11.Location = new System.Drawing.Point(268, 32);
             this.label11.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label11.Name = "label11";
             this.label11.Size = new System.Drawing.Size(146, 41);
@@ -1460,7 +1460,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(30, 58);
+            this.Process.Location = new System.Drawing.Point(32, 60);
             this.Process.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.Process.Name = "Process";
             this.Process.Size = new System.Drawing.Size(86, 31);
@@ -1557,1219 +1557,1218 @@
             this.LabelInf.CellPainting += new System.Windows.Forms.DataGridViewCellPaintingEventHandler(this.LabelInf_CellPainting);
             this.LabelInf.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.LabelInf_DataError);
             // 
-            // pi_inoutno
+            // Choose
             // 
-            this.pi_inoutno.ID = null;
-            this.pi_inoutno.Location = new System.Drawing.Point(152, 20);
-            this.pi_inoutno.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.pi_inoutno.Name = "pi_inoutno";
-            this.pi_inoutno.Size = new System.Drawing.Size(296, 35);
-            this.pi_inoutno.Str = null;
-            this.pi_inoutno.Str1 = null;
-            this.pi_inoutno.Str2 = null;
-            this.pi_inoutno.TabIndex = 2;
-            this.pi_inoutno.KeyDown += new System.Windows.Forms.KeyEventHandler(this.pi_inoutno_KeyDown);
+            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;
             // 
-            // SingleLabel
+            // pd_id
             // 
-            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(1276, 12);
-            this.SingleLabel.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.SingleLabel.Name = "SingleLabel";
-            this.SingleLabel.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
-            this.SingleLabel.Size = new System.Drawing.Size(360, 538);
-            this.SingleLabel.TabIndex = 77;
-            this.SingleLabel.TabStop = false;
-            this.SingleLabel.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 = 76;
             // 
-            // SingleDocRefresh
+            // pib_id1
             // 
-            this.SingleDocRefresh.AutoSize = true;
-            this.SingleDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.SingleDocRefresh.Location = new System.Drawing.Point(138, 50);
-            this.SingleDocRefresh.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.SingleDocRefresh.Name = "SingleDocRefresh";
-            this.SingleDocRefresh.Size = new System.Drawing.Size(69, 35);
-            this.SingleDocRefresh.TabIndex = 118;
-            this.SingleDocRefresh.TabStop = true;
-            this.SingleDocRefresh.Text = "刷新";
-            this.SingleDocRefresh.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.DocRefresh_LinkClicked);
+            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 = 88;
             // 
-            // label17
+            // rownum
             // 
-            this.label17.AutoSize = true;
-            this.label17.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.label17.Location = new System.Drawing.Point(22, 50);
-            this.label17.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label17.Name = "label17";
-            this.label17.Size = new System.Drawing.Size(102, 35);
-            this.label17.TabIndex = 115;
-            this.label17.Text = "格式(T)";
+            this.rownum.DataPropertyName = "rownum";
+            this.rownum.HeaderText = "行号";
+            this.rownum.Name = "rownum";
+            this.rownum.Width = 103;
             // 
-            // groupBoxWithBorder4
+            // pib_pdno
             // 
-            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(14, 372);
-            this.groupBoxWithBorder4.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
-            this.groupBoxWithBorder4.Name = "groupBoxWithBorder4";
-            this.groupBoxWithBorder4.Padding = new System.Windows.Forms.Padding(6, 6, 6, 6);
-            this.groupBoxWithBorder4.Size = new System.Drawing.Size(330, 156);
-            this.groupBoxWithBorder4.TabIndex = 41;
-            this.groupBoxWithBorder4.TabStop = false;
-            this.groupBoxWithBorder4.Text = "扫描区域";
+            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 = 151;
             // 
-            // label20
+            // pib_prodcode
             // 
-            this.label20.AutoSize = true;
-            this.label20.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.label20.Location = new System.Drawing.Point(26, 106);
-            this.label20.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label20.Name = "label20";
-            this.label20.Size = new System.Drawing.Size(69, 35);
-            this.label20.TabIndex = 94;
-            this.label20.Text = "后端";
+            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 = 151;
             // 
-            // BackCombo
+            // pib_ifmodify
             // 
-            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(104, 96);
-            this.BackCombo.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
-            this.BackCombo.Name = "BackCombo";
-            this.BackCombo.Size = new System.Drawing.Size(206, 36);
-            this.BackCombo.TabIndex = 93;
+            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 = 127;
             // 
-            // label19
+            // pib_ifupload
             // 
-            this.label19.AutoSize = true;
-            this.label19.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.label19.Location = new System.Drawing.Point(26, 58);
-            this.label19.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label19.Name = "label19";
-            this.label19.Size = new System.Drawing.Size(69, 35);
-            this.label19.TabIndex = 92;
-            this.label19.Text = "前端";
+            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 = 127;
             // 
-            // FrontCombo
+            // pr_vendprodcode
             // 
-            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(104, 44);
-            this.FrontCombo.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
-            this.FrontCombo.Name = "FrontCombo";
-            this.FrontCombo.Size = new System.Drawing.Size(206, 36);
-            this.FrontCombo.TabIndex = 0;
+            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 = 91;
             // 
-            // label7
+            // pib_brand
             // 
-            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(18, 282);
-            this.label7.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label7.Name = "label7";
-            this.label7.Size = new System.Drawing.Size(110, 31);
-            this.label7.TabIndex = 76;
-            this.label7.Text = "单盘范围";
+            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 = 103;
             // 
-            // label16
+            // pib_madein
             // 
-            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(134, 330);
-            this.label16.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label16.Name = "label16";
-            this.label16.Size = new System.Drawing.Size(24, 31);
-            this.label16.TabIndex = 87;
-            this.label16.Text = "-";
+            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 = 103;
             // 
-            // SingleLabelPrinter
+            // pr_orispeccode
             // 
-            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(12, 162);
-            this.SingleLabelPrinter.Margin = new System.Windows.Forms.Padding(10, 12, 10, 12);
-            this.SingleLabelPrinter.Name = "SingleLabelPrinter";
-            this.SingleLabelPrinter.Size = new System.Drawing.Size(338, 50);
-            this.SingleLabelPrinter.TabIndex = 40;
+            this.pr_orispeccode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+            this.pr_orispeccode.DataPropertyName = "pr_orispeccode";
+            this.pr_orispeccode.HeaderText = "原厂型号";
+            this.pr_orispeccode.Name = "pr_orispeccode";
+            this.pr_orispeccode.Width = 151;
             // 
-            // SingleBoxEnd
+            // pr_barcode
             // 
-            this.SingleBoxEnd.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.SingleBoxEnd.ID = null;
-            this.SingleBoxEnd.Location = new System.Drawing.Point(170, 324);
-            this.SingleBoxEnd.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.SingleBoxEnd.Name = "SingleBoxEnd";
-            this.SingleBoxEnd.Size = new System.Drawing.Size(96, 39);
-            this.SingleBoxEnd.Str = null;
-            this.SingleBoxEnd.Str1 = null;
-            this.SingleBoxEnd.Str2 = null;
-            this.SingleBoxEnd.TabIndex = 86;
+            this.pr_barcode.DataPropertyName = "pr_barcode";
+            this.pr_barcode.HeaderText = "型号条码";
+            this.pr_barcode.Name = "pr_barcode";
+            this.pr_barcode.Width = 151;
             // 
-            // SingleBoxBegin
+            // pr_zxbzs
             // 
-            this.SingleBoxBegin.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.SingleBoxBegin.ID = null;
-            this.SingleBoxBegin.Location = new System.Drawing.Point(24, 324);
-            this.SingleBoxBegin.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.SingleBoxBegin.Name = "SingleBoxBegin";
-            this.SingleBoxBegin.Size = new System.Drawing.Size(96, 39);
-            this.SingleBoxBegin.Str = null;
-            this.SingleBoxBegin.Str1 = null;
-            this.SingleBoxBegin.Str2 = null;
-            this.SingleBoxBegin.TabIndex = 85;
+            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 = 175;
             // 
-            // SingleLabelPrint
+            // pr_unit
             // 
-            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(218, 222);
-            this.SingleLabelPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.SingleLabelPrint.Name = "SingleLabelPrint";
-            this.SingleLabelPrint.Size = new System.Drawing.Size(132, 52);
-            this.SingleLabelPrint.TabIndex = 36;
-            this.SingleLabelPrint.Text = "打印盘标";
-            this.SingleLabelPrint.UseVisualStyleBackColor = true;
-            this.SingleLabelPrint.Click += new System.EventHandler(this.SingleLabelPrint_Click);
+            this.pr_unit.DataPropertyName = "pr_unit";
+            this.pr_unit.HeaderText = "单位";
+            this.pr_unit.Name = "pr_unit";
+            this.pr_unit.Width = 103;
             // 
-            // SingleLabelAutoPrint
+            // pib_lotno
             // 
-            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(22, 226);
-            this.SingleLabelAutoPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.SingleLabelAutoPrint.Name = "SingleLabelAutoPrint";
-            this.SingleLabelAutoPrint.Size = new System.Drawing.Size(142, 35);
-            this.SingleLabelAutoPrint.TabIndex = 30;
-            this.SingleLabelAutoPrint.Text = "自动打印";
-            this.SingleLabelAutoPrint.UseVisualStyleBackColor = true;
+            this.pib_lotno.DataPropertyName = "pib_lotno";
+            this.pib_lotno.HeaderText = "LotNo";
+            this.pib_lotno.Name = "pib_lotno";
+            this.pib_lotno.Width = 115;
             // 
-            // SingleLabelCombox
+            // pib_datecode
             // 
-            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(14, 98);
-            this.SingleLabelCombox.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.SingleLabelCombox.Name = "SingleLabelCombox";
-            this.SingleLabelCombox.Size = new System.Drawing.Size(332, 39);
-            this.SingleLabelCombox.TabIndex = 0;
-            this.SingleLabelCombox.SelectedIndexChanged += new System.EventHandler(this.SingleLabelCombox_SelectedIndexChanged);
+            this.pib_datecode.DataPropertyName = "pib_datecode";
+            this.pib_datecode.HeaderText = "DateCode";
+            this.pib_datecode.Name = "pib_datecode";
+            this.pib_datecode.Width = 151;
             // 
-            // MidLabel
+            // pib_year
             // 
-            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(1646, 12);
-            this.MidLabel.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.MidLabel.Name = "MidLabel";
-            this.MidLabel.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
-            this.MidLabel.Size = new System.Drawing.Size(558, 538);
-            this.MidLabel.TabIndex = 78;
-            this.MidLabel.TabStop = false;
-            this.MidLabel.Text = "中盒标签";
+            this.pib_year.DataPropertyName = "pib_year";
+            this.pib_year.HeaderText = "年";
+            this.pib_year.Name = "pib_year";
+            this.pib_year.Width = 79;
             // 
-            // MidDocRefresh
+            // pib_month
             // 
-            this.MidDocRefresh.AutoSize = true;
-            this.MidDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.MidDocRefresh.Location = new System.Drawing.Point(138, 54);
-            this.MidDocRefresh.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.MidDocRefresh.Name = "MidDocRefresh";
-            this.MidDocRefresh.Size = new System.Drawing.Size(69, 35);
-            this.MidDocRefresh.TabIndex = 120;
-            this.MidDocRefresh.TabStop = true;
-            this.MidDocRefresh.Text = "刷新";
+            this.pib_month.DataPropertyName = "pib_month";
+            this.pib_month.HeaderText = "月";
+            this.pib_month.Name = "pib_month";
+            this.pib_month.Width = 79;
             // 
-            // label26
+            // pib_day
             // 
-            this.label26.AutoSize = true;
-            this.label26.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.label26.Location = new System.Drawing.Point(22, 54);
-            this.label26.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label26.Name = "label26";
-            this.label26.Size = new System.Drawing.Size(102, 35);
-            this.label26.TabIndex = 116;
-            this.label26.Text = "格式(T)";
+            this.pib_day.DataPropertyName = "pib_day";
+            this.pib_day.HeaderText = "日";
+            this.pib_day.Name = "pib_day";
+            this.pib_day.Width = 79;
             // 
-            // groupBoxWithBorder5
+            // pib_ifpick
             // 
-            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(18, 396);
-            this.groupBoxWithBorder5.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
-            this.groupBoxWithBorder5.Name = "groupBoxWithBorder5";
-            this.groupBoxWithBorder5.Padding = new System.Windows.Forms.Padding(6, 6, 6, 6);
-            this.groupBoxWithBorder5.Size = new System.Drawing.Size(316, 128);
-            this.groupBoxWithBorder5.TabIndex = 95;
-            this.groupBoxWithBorder5.TabStop = false;
-            this.groupBoxWithBorder5.Text = "客户料号匹配模式";
+            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;
             // 
-            // Expression
+            // pib_ifprint
             // 
-            this.Expression.AutoSize = true;
-            this.Expression.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.Expression.Location = new System.Drawing.Point(158, 62);
-            this.Expression.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
-            this.Expression.Name = "Expression";
-            this.Expression.Size = new System.Drawing.Size(117, 35);
-            this.Expression.TabIndex = 1;
-            this.Expression.TabStop = true;
-            this.Expression.Text = "表达式";
-            this.Expression.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;
             // 
-            // Equal
+            // pib_ifrecheck
             // 
-            this.Equal.AutoSize = true;
-            this.Equal.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.Equal.Location = new System.Drawing.Point(26, 62);
-            this.Equal.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
-            this.Equal.Name = "Equal";
-            this.Equal.Size = new System.Drawing.Size(93, 35);
-            this.Equal.TabIndex = 0;
-            this.Equal.TabStop = true;
-            this.Equal.Text = "相等";
-            this.Equal.UseVisualStyleBackColor = true;
+            this.pib_ifrecheck.DataPropertyName = "pib_ifrecheck";
+            this.pib_ifrecheck.HeaderText = "已复核";
+            this.pib_ifrecheck.Name = "pib_ifrecheck";
+            this.pib_ifrecheck.Width = 88;
             // 
-            // label2
+            // pib_datecode1
             // 
-            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(338, 202);
-            this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(62, 31);
-            this.label2.TabIndex = 94;
-            this.label2.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 = 163;
             // 
-            // label1
+            // pib_qty
             // 
-            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(502, 202);
-            this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(38, 31);
-            this.label1.TabIndex = 93;
-            this.label1.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 = 103;
             // 
-            // LeastPrintNum
+            // pib_barcode
             // 
-            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(402, 192);
-            this.LeastPrintNum.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.LeastPrintNum.Name = "LeastPrintNum";
-            this.LeastPrintNum.Size = new System.Drawing.Size(88, 39);
-            this.LeastPrintNum.TabIndex = 92;
+            this.pib_barcode.DataPropertyName = "pib_barcode";
+            this.pib_barcode.HeaderText = "唯一条码";
+            this.pib_barcode.Name = "pib_barcode";
+            this.pib_barcode.ReadOnly = true;
+            this.pib_barcode.Visible = false;
+            this.pib_barcode.Width = 118;
             // 
-            // OnlyPrint
+            // pib_custbarcode
             // 
-            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(346, 146);
-            this.OnlyPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.OnlyPrint.Name = "OnlyPrint";
-            this.OnlyPrint.Size = new System.Drawing.Size(118, 35);
-            this.OnlyPrint.TabIndex = 91;
-            this.OnlyPrint.Text = "仅打印";
-            this.OnlyPrint.UseVisualStyleBackColor = true;
+            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 = 151;
             // 
-            // groupBoxWithBorder2
+            // pib_custmidboxcode
             // 
-            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(344, 242);
-            this.groupBoxWithBorder2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
-            this.groupBoxWithBorder2.Name = "groupBoxWithBorder2";
-            this.groupBoxWithBorder2.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
-            this.groupBoxWithBorder2.Size = new System.Drawing.Size(202, 290);
-            this.groupBoxWithBorder2.TabIndex = 81;
-            this.groupBoxWithBorder2.TabStop = false;
-            this.groupBoxWithBorder2.Text = "流水合并条件";
+            this.pib_custmidboxcode.DataPropertyName = "pib_custmidboxcode";
+            this.pib_custmidboxcode.HeaderText = "中盒条码";
+            this.pib_custmidboxcode.Name = "pib_custmidboxcode";
+            this.pib_custmidboxcode.Width = 151;
             // 
-            // cu_print_middc
+            // pib_custoutboxcode
             // 
-            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(30, 234);
-            this.cu_print_middc.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.cu_print_middc.Name = "cu_print_middc";
-            this.cu_print_middc.Size = new System.Drawing.Size(128, 35);
-            this.cu_print_middc.TabIndex = 97;
-            this.cu_print_middc.Text = "合并DC";
-            this.cu_print_middc.UseVisualStyleBackColor = true;
+            this.pib_custoutboxcode.DataPropertyName = "pib_custoutboxcode";
+            this.pib_custoutboxcode.HeaderText = "外箱条码";
+            this.pib_custoutboxcode.Name = "pib_custoutboxcode";
+            this.pib_custoutboxcode.Width = 151;
             // 
-            // cu_print_midprod
+            // pd_pocode
             // 
-            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(30, 190);
-            this.cu_print_midprod.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.cu_print_midprod.Name = "cu_print_midprod";
-            this.cu_print_midprod.Size = new System.Drawing.Size(142, 35);
-            this.cu_print_midprod.TabIndex = 92;
-            this.cu_print_midprod.Text = "客户料号";
-            this.cu_print_midprod.UseVisualStyleBackColor = true;
+            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 = 127;
             // 
-            // cu_print_midpo
+            // pd_custprodcode
             // 
-            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(30, 142);
-            this.cu_print_midpo.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.cu_print_midpo.Name = "cu_print_midpo";
-            this.cu_print_midpo.Size = new System.Drawing.Size(142, 35);
-            this.cu_print_midpo.TabIndex = 93;
-            this.cu_print_midpo.Text = "客户合同";
-            this.cu_print_midpo.UseVisualStyleBackColor = true;
+            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 = 151;
             // 
-            // cu_print_midspec
+            // pd_custprodspec
             // 
-            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(30, 94);
-            this.cu_print_midspec.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.cu_print_midspec.Name = "cu_print_midspec";
-            this.cu_print_midspec.Size = new System.Drawing.Size(142, 35);
-            this.cu_print_midspec.TabIndex = 94;
-            this.cu_print_midspec.Text = "出库型号";
-            this.cu_print_midspec.UseVisualStyleBackColor = true;
+            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 = 151;
             // 
-            // cu_print_midlotno
+            // pr_spec
             // 
-            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(30, 46);
-            this.cu_print_midlotno.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.cu_print_midlotno.Name = "cu_print_midlotno";
-            this.cu_print_midlotno.Size = new System.Drawing.Size(117, 35);
-            this.cu_print_midlotno.TabIndex = 95;
-            this.cu_print_midlotno.Text = "LotNo";
-            this.cu_print_midlotno.UseVisualStyleBackColor = true;
+            this.pr_spec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.pr_spec.DataPropertyName = "pr_spec";
+            this.pr_spec.HeaderText = "规格";
+            this.pr_spec.Name = "pr_spec";
+            this.pr_spec.Width = 54;
             // 
-            // label18
+            // pib_outboxcode1
             // 
-            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(130, 332);
-            this.label18.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label18.Name = "label18";
-            this.label18.Size = new System.Drawing.Size(24, 31);
-            this.label18.TabIndex = 90;
-            this.label18.Text = "-";
+            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 = 127;
             // 
-            // MidLabelNum
+            // pib_outboxcode2
             // 
-            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(402, 88);
-            this.MidLabelNum.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.MidLabelNum.Name = "MidLabelNum";
-            this.MidLabelNum.Size = new System.Drawing.Size(84, 39);
-            this.MidLabelNum.Str = null;
-            this.MidLabelNum.Str1 = null;
-            this.MidLabelNum.Str2 = null;
-            this.MidLabelNum.TabIndex = 56;
+            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 = 127;
             // 
-            // MidBoxEnd
+            // pi_inoutno
             // 
-            this.MidBoxEnd.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.MidBoxEnd.ID = null;
-            this.MidBoxEnd.Location = new System.Drawing.Point(166, 326);
-            this.MidBoxEnd.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.MidBoxEnd.Name = "MidBoxEnd";
-            this.MidBoxEnd.Size = new System.Drawing.Size(96, 39);
-            this.MidBoxEnd.Str = null;
-            this.MidBoxEnd.Str1 = null;
-            this.MidBoxEnd.Str2 = null;
-            this.MidBoxEnd.TabIndex = 89;
+            this.pi_inoutno.ID = null;
+            this.pi_inoutno.Location = new System.Drawing.Point(152, 20);
+            this.pi_inoutno.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.pi_inoutno.Name = "pi_inoutno";
+            this.pi_inoutno.Size = new System.Drawing.Size(296, 35);
+            this.pi_inoutno.Str = null;
+            this.pi_inoutno.Str1 = null;
+            this.pi_inoutno.Str2 = null;
+            this.pi_inoutno.TabIndex = 2;
+            this.pi_inoutno.KeyDown += new System.Windows.Forms.KeyEventHandler(this.pi_inoutno_KeyDown);
             // 
-            // label12
+            // SingleLabel
             // 
-            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(18, 286);
-            this.label12.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label12.Name = "label12";
-            this.label12.Size = new System.Drawing.Size(110, 31);
-            this.label12.TabIndex = 77;
-            this.label12.Text = "中盒范围";
+            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(1276, 12);
+            this.SingleLabel.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.SingleLabel.Name = "SingleLabel";
+            this.SingleLabel.Padding = new System.Windows.Forms.Padding(4);
+            this.SingleLabel.Size = new System.Drawing.Size(360, 538);
+            this.SingleLabel.TabIndex = 77;
+            this.SingleLabel.TabStop = false;
+            this.SingleLabel.Text = "单盘标签";
             // 
-            // label5
+            // SingleDocRefresh
             // 
-            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(338, 98);
-            this.label5.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label5.Name = "label5";
-            this.label5.Size = new System.Drawing.Size(62, 31);
-            this.label5.TabIndex = 50;
-            this.label5.Text = "盒号";
+            this.SingleDocRefresh.AutoSize = true;
+            this.SingleDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.SingleDocRefresh.Location = new System.Drawing.Point(140, 52);
+            this.SingleDocRefresh.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.SingleDocRefresh.Name = "SingleDocRefresh";
+            this.SingleDocRefresh.Size = new System.Drawing.Size(69, 35);
+            this.SingleDocRefresh.TabIndex = 118;
+            this.SingleDocRefresh.TabStop = true;
+            this.SingleDocRefresh.Text = "刷新";
+            this.SingleDocRefresh.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.DocRefresh_LinkClicked);
             // 
-            // MidBoxBegin
+            // label17
             // 
-            this.MidBoxBegin.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.MidBoxBegin.ID = null;
-            this.MidBoxBegin.Location = new System.Drawing.Point(20, 326);
-            this.MidBoxBegin.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.MidBoxBegin.Name = "MidBoxBegin";
-            this.MidBoxBegin.Size = new System.Drawing.Size(96, 39);
-            this.MidBoxBegin.Str = null;
-            this.MidBoxBegin.Str1 = null;
-            this.MidBoxBegin.Str2 = null;
-            this.MidBoxBegin.TabIndex = 88;
+            this.label17.AutoSize = true;
+            this.label17.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.label17.Location = new System.Drawing.Point(24, 52);
+            this.label17.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label17.Name = "label17";
+            this.label17.Size = new System.Drawing.Size(102, 35);
+            this.label17.TabIndex = 115;
+            this.label17.Text = "格式(T)";
             // 
-            // label4
+            // groupBoxWithBorder4
             // 
-            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(342, 44);
-            this.label4.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label4.Name = "label4";
-            this.label4.Size = new System.Drawing.Size(62, 31);
-            this.label4.TabIndex = 49;
-            this.label4.Text = "容量";
+            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(14, 372);
+            this.groupBoxWithBorder4.Margin = new System.Windows.Forms.Padding(6);
+            this.groupBoxWithBorder4.Name = "groupBoxWithBorder4";
+            this.groupBoxWithBorder4.Padding = new System.Windows.Forms.Padding(6);
+            this.groupBoxWithBorder4.Size = new System.Drawing.Size(330, 156);
+            this.groupBoxWithBorder4.TabIndex = 41;
+            this.groupBoxWithBorder4.TabStop = false;
+            this.groupBoxWithBorder4.Text = "扫描区域";
             // 
-            // MidLabelPrinter
+            // label20
             // 
-            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(18, 164);
-            this.MidLabelPrinter.Margin = new System.Windows.Forms.Padding(10, 12, 10, 12);
-            this.MidLabelPrinter.Name = "MidLabelPrinter";
-            this.MidLabelPrinter.Size = new System.Drawing.Size(300, 50);
-            this.MidLabelPrinter.TabIndex = 41;
+            this.label20.AutoSize = true;
+            this.label20.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.label20.Location = new System.Drawing.Point(32, 112);
+            this.label20.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label20.Name = "label20";
+            this.label20.Size = new System.Drawing.Size(69, 35);
+            this.label20.TabIndex = 94;
+            this.label20.Text = "后端";
             // 
-            // label15
+            // BackCombo
             // 
-            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(502, 40);
-            this.label15.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label15.Name = "label15";
-            this.label15.Size = new System.Drawing.Size(38, 31);
-            this.label15.TabIndex = 40;
-            this.label15.Text = "盘";
+            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(104, 96);
+            this.BackCombo.Margin = new System.Windows.Forms.Padding(6);
+            this.BackCombo.Name = "BackCombo";
+            this.BackCombo.Size = new System.Drawing.Size(206, 36);
+            this.BackCombo.TabIndex = 93;
             // 
-            // MidBoxCapacity
+            // label19
             // 
-            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(402, 36);
-            this.MidBoxCapacity.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.MidBoxCapacity.Name = "MidBoxCapacity";
-            this.MidBoxCapacity.Size = new System.Drawing.Size(88, 39);
-            this.MidBoxCapacity.TabIndex = 30;
-            this.MidBoxCapacity.Leave += new System.EventHandler(this.MidBoxCapacity_Leave);
+            this.label19.AutoSize = true;
+            this.label19.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.label19.Location = new System.Drawing.Point(32, 64);
+            this.label19.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label19.Name = "label19";
+            this.label19.Size = new System.Drawing.Size(69, 35);
+            this.label19.TabIndex = 92;
+            this.label19.Text = "前端";
             // 
-            // MidLabelPrint
+            // FrontCombo
             // 
-            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(186, 222);
-            this.MidLabelPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.MidLabelPrint.Name = "MidLabelPrint";
-            this.MidLabelPrint.Size = new System.Drawing.Size(136, 52);
-            this.MidLabelPrint.TabIndex = 42;
-            this.MidLabelPrint.Text = "打印盒签";
-            this.MidLabelPrint.UseVisualStyleBackColor = true;
-            this.MidLabelPrint.Click += new System.EventHandler(this.MidLabelPrint_Click);
+            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(104, 44);
+            this.FrontCombo.Margin = new System.Windows.Forms.Padding(6);
+            this.FrontCombo.Name = "FrontCombo";
+            this.FrontCombo.Size = new System.Drawing.Size(206, 36);
+            this.FrontCombo.TabIndex = 0;
             // 
-            // MidLabelAutoPrint
+            // label7
             // 
-            this.MidLabelAutoPrint.AutoSize = true;
-            this.MidLabelAutoPrint.Checked = false;
-            this.MidLabelAutoPrint.CheckState = System.Windows.Forms.CheckState.Unchecked;
-            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(22, 230);
-            this.MidLabelAutoPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.MidLabelAutoPrint.Name = "MidLabelAutoPrint";
-            this.MidLabelAutoPrint.Size = new System.Drawing.Size(142, 35);
-            this.MidLabelAutoPrint.TabIndex = 41;
-            this.MidLabelAutoPrint.Text = "自动打印";
-            this.MidLabelAutoPrint.UseVisualStyleBackColor = true;
+            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(20, 284);
+            this.label7.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(110, 31);
+            this.label7.TabIndex = 76;
+            this.label7.Text = "单盘范围";
             // 
-            // MidLabelCombox
+            // label16
             // 
-            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(20, 100);
-            this.MidLabelCombox.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.MidLabelCombox.Name = "MidLabelCombox";
-            this.MidLabelCombox.Size = new System.Drawing.Size(294, 39);
-            this.MidLabelCombox.TabIndex = 40;
-            this.MidLabelCombox.SelectedIndexChanged += new System.EventHandler(this.MidLabelCombox_SelectedIndexChanged);
+            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(136, 332);
+            this.label16.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label16.Name = "label16";
+            this.label16.Size = new System.Drawing.Size(24, 31);
+            this.label16.TabIndex = 87;
+            this.label16.Text = "-";
             // 
-            // OutBoxLabel
+            // SingleLabelPrinter
             // 
-            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(2212, 12);
-            this.OutBoxLabel.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
-            this.OutBoxLabel.Name = "OutBoxLabel";
-            this.OutBoxLabel.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
-            this.OutBoxLabel.Size = new System.Drawing.Size(556, 538);
-            this.OutBoxLabel.TabIndex = 79;
-            this.OutBoxLabel.TabStop = false;
-            this.OutBoxLabel.Text = "外箱标签";
+            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(12, 162);
+            this.SingleLabelPrinter.Margin = new System.Windows.Forms.Padding(10, 12, 10, 12);
+            this.SingleLabelPrinter.Name = "SingleLabelPrinter";
+            this.SingleLabelPrinter.Size = new System.Drawing.Size(338, 50);
+            this.SingleLabelPrinter.TabIndex = 40;
             // 
-            // primarydata
+            // SingleBoxEnd
             // 
-            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(42, 482);
-            this.primarydata.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.primarydata.Name = "primarydata";
-            this.primarydata.Size = new System.Drawing.Size(0, 36);
-            this.primarydata.TabIndex = 122;
-            this.primarydata.Visible = false;
+            this.SingleBoxEnd.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.SingleBoxEnd.ID = null;
+            this.SingleBoxEnd.Location = new System.Drawing.Point(170, 324);
+            this.SingleBoxEnd.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.SingleBoxEnd.Name = "SingleBoxEnd";
+            this.SingleBoxEnd.Size = new System.Drawing.Size(96, 39);
+            this.SingleBoxEnd.Str = null;
+            this.SingleBoxEnd.Str1 = null;
+            this.SingleBoxEnd.Str2 = null;
+            this.SingleBoxEnd.TabIndex = 86;
             // 
-            // guestlabeldata
+            // SingleBoxBegin
             // 
-            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(42, 430);
-            this.guestlabeldata.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.guestlabeldata.Name = "guestlabeldata";
-            this.guestlabeldata.Size = new System.Drawing.Size(0, 36);
-            this.guestlabeldata.TabIndex = 121;
-            this.guestlabeldata.Visible = false;
+            this.SingleBoxBegin.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.SingleBoxBegin.ID = null;
+            this.SingleBoxBegin.Location = new System.Drawing.Point(24, 324);
+            this.SingleBoxBegin.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.SingleBoxBegin.Name = "SingleBoxBegin";
+            this.SingleBoxBegin.Size = new System.Drawing.Size(96, 39);
+            this.SingleBoxBegin.Str = null;
+            this.SingleBoxBegin.Str1 = null;
+            this.SingleBoxBegin.Str2 = null;
+            this.SingleBoxBegin.TabIndex = 85;
             // 
-            // prodcodeback
+            // SingleLabelPrint
             // 
-            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(42, 380);
-            this.prodcodeback.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.prodcodeback.Name = "prodcodeback";
-            this.prodcodeback.Size = new System.Drawing.Size(0, 36);
-            this.prodcodeback.TabIndex = 120;
-            this.prodcodeback.Visible = false;
+            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(536, 224);
+            this.SingleLabelPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.SingleLabelPrint.Name = "SingleLabelPrint";
+            this.SingleLabelPrint.Size = new System.Drawing.Size(132, 52);
+            this.SingleLabelPrint.TabIndex = 36;
+            this.SingleLabelPrint.Text = "打印盘标";
+            this.SingleLabelPrint.UseVisualStyleBackColor = true;
+            this.SingleLabelPrint.Click += new System.EventHandler(this.SingleLabelPrint_Click);
             // 
-            // prodcodefront
+            // SingleLabelAutoPrint
             // 
-            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(42, 326);
-            this.prodcodefront.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.prodcodefront.Name = "prodcodefront";
-            this.prodcodefront.Size = new System.Drawing.Size(0, 36);
-            this.prodcodefront.TabIndex = 113;
-            this.prodcodefront.Visible = false;
+            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(24, 228);
+            this.SingleLabelAutoPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.SingleLabelAutoPrint.Name = "SingleLabelAutoPrint";
+            this.SingleLabelAutoPrint.Size = new System.Drawing.Size(142, 35);
+            this.SingleLabelAutoPrint.TabIndex = 30;
+            this.SingleLabelAutoPrint.Text = "自动打印";
+            this.SingleLabelAutoPrint.UseVisualStyleBackColor = true;
             // 
-            // OutDocRefresh
+            // SingleLabelCombox
             // 
-            this.OutDocRefresh.AutoSize = true;
-            this.OutDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.OutDocRefresh.Location = new System.Drawing.Point(130, 54);
-            this.OutDocRefresh.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.OutDocRefresh.Name = "OutDocRefresh";
-            this.OutDocRefresh.Size = new System.Drawing.Size(69, 35);
-            this.OutDocRefresh.TabIndex = 119;
-            this.OutDocRefresh.TabStop = true;
-            this.OutDocRefresh.Text = "刷新";
+            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(14, 98);
+            this.SingleLabelCombox.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.SingleLabelCombox.Name = "SingleLabelCombox";
+            this.SingleLabelCombox.Size = new System.Drawing.Size(332, 39);
+            this.SingleLabelCombox.TabIndex = 0;
+            this.SingleLabelCombox.SelectedIndexChanged += new System.EventHandler(this.SingleLabelCombox_SelectedIndexChanged);
             // 
-            // label27
+            // MidLabel
             // 
-            this.label27.AutoSize = true;
-            this.label27.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.label27.Location = new System.Drawing.Point(14, 54);
-            this.label27.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label27.Name = "label27";
-            this.label27.Size = new System.Drawing.Size(102, 35);
-            this.label27.TabIndex = 117;
-            this.label27.Text = "格式(T)";
+            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(1646, 12);
+            this.MidLabel.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.MidLabel.Name = "MidLabel";
+            this.MidLabel.Padding = new System.Windows.Forms.Padding(4);
+            this.MidLabel.Size = new System.Drawing.Size(558, 538);
+            this.MidLabel.TabIndex = 78;
+            this.MidLabel.TabStop = false;
+            this.MidLabel.Text = "中盒标签";
             // 
-            // label9
+            // MidDocRefresh
             // 
-            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(342, 86);
-            this.label9.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label9.Name = "label9";
-            this.label9.Size = new System.Drawing.Size(62, 31);
-            this.label9.TabIndex = 98;
-            this.label9.Text = "纸型";
+            this.MidDocRefresh.AutoSize = true;
+            this.MidDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.MidDocRefresh.Location = new System.Drawing.Point(140, 56);
+            this.MidDocRefresh.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.MidDocRefresh.Name = "MidDocRefresh";
+            this.MidDocRefresh.Size = new System.Drawing.Size(69, 35);
+            this.MidDocRefresh.TabIndex = 120;
+            this.MidDocRefresh.TabStop = true;
+            this.MidDocRefresh.Text = "刷新";
             // 
-            // cu_print_papercount
+            // label26
             // 
-            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(422, 78);
-            this.cu_print_papercount.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.cu_print_papercount.Name = "cu_print_papercount";
-            this.cu_print_papercount.Size = new System.Drawing.Size(76, 39);
-            this.cu_print_papercount.TabIndex = 97;
+            this.label26.AutoSize = true;
+            this.label26.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.label26.Location = new System.Drawing.Point(24, 56);
+            this.label26.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label26.Name = "label26";
+            this.label26.Size = new System.Drawing.Size(102, 35);
+            this.label26.TabIndex = 116;
+            this.label26.Text = "格式(T)";
             // 
-            // groupBoxWithBorder3
+            // groupBoxWithBorder5
             // 
-            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(344, 242);
-            this.groupBoxWithBorder3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
-            this.groupBoxWithBorder3.Name = "groupBoxWithBorder3";
-            this.groupBoxWithBorder3.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
-            this.groupBoxWithBorder3.Size = new System.Drawing.Size(202, 290);
-            this.groupBoxWithBorder3.TabIndex = 96;
-            this.groupBoxWithBorder3.TabStop = false;
-            this.groupBoxWithBorder3.Text = "流水合并条件";
+            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(18, 396);
+            this.groupBoxWithBorder5.Margin = new System.Windows.Forms.Padding(6);
+            this.groupBoxWithBorder5.Name = "groupBoxWithBorder5";
+            this.groupBoxWithBorder5.Padding = new System.Windows.Forms.Padding(6);
+            this.groupBoxWithBorder5.Size = new System.Drawing.Size(316, 128);
+            this.groupBoxWithBorder5.TabIndex = 95;
+            this.groupBoxWithBorder5.TabStop = false;
+            this.groupBoxWithBorder5.Text = "客户料号匹配模式";
             // 
-            // cu_print_outdc
+            // Expression
             // 
-            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(30, 234);
-            this.cu_print_outdc.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.cu_print_outdc.Name = "cu_print_outdc";
-            this.cu_print_outdc.Size = new System.Drawing.Size(128, 35);
-            this.cu_print_outdc.TabIndex = 96;
-            this.cu_print_outdc.Text = "合并DC";
-            this.cu_print_outdc.UseVisualStyleBackColor = true;
+            this.Expression.AutoSize = true;
+            this.Expression.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.Expression.Location = new System.Drawing.Point(164, 68);
+            this.Expression.Margin = new System.Windows.Forms.Padding(6);
+            this.Expression.Name = "Expression";
+            this.Expression.Size = new System.Drawing.Size(117, 35);
+            this.Expression.TabIndex = 1;
+            this.Expression.TabStop = true;
+            this.Expression.Text = "表达式";
+            this.Expression.UseVisualStyleBackColor = true;
             // 
-            // cu_print_outprod
+            // Equal
             // 
-            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(30, 190);
-            this.cu_print_outprod.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.cu_print_outprod.Name = "cu_print_outprod";
-            this.cu_print_outprod.Size = new System.Drawing.Size(142, 35);
-            this.cu_print_outprod.TabIndex = 92;
-            this.cu_print_outprod.Text = "客户料号";
-            this.cu_print_outprod.UseVisualStyleBackColor = true;
+            this.Equal.AutoSize = true;
+            this.Equal.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.Equal.Location = new System.Drawing.Point(32, 68);
+            this.Equal.Margin = new System.Windows.Forms.Padding(6);
+            this.Equal.Name = "Equal";
+            this.Equal.Size = new System.Drawing.Size(93, 35);
+            this.Equal.TabIndex = 0;
+            this.Equal.TabStop = true;
+            this.Equal.Text = "相等";
+            this.Equal.UseVisualStyleBackColor = true;
             // 
-            // cu_print_outpo
+            // label2
             // 
-            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(30, 142);
-            this.cu_print_outpo.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.cu_print_outpo.Name = "cu_print_outpo";
-            this.cu_print_outpo.Size = new System.Drawing.Size(142, 35);
-            this.cu_print_outpo.TabIndex = 93;
-            this.cu_print_outpo.Text = "客户合同";
-            this.cu_print_outpo.UseVisualStyleBackColor = true;
+            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(340, 204);
+            this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(62, 31);
+            this.label2.TabIndex = 94;
+            this.label2.Text = "至少";
             // 
-            // cu_print_outspec
+            // label1
             // 
-            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(30, 94);
-            this.cu_print_outspec.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.cu_print_outspec.Name = "cu_print_outspec";
-            this.cu_print_outspec.Size = new System.Drawing.Size(142, 35);
-            this.cu_print_outspec.TabIndex = 94;
-            this.cu_print_outspec.Text = "出库型号";
-            this.cu_print_outspec.UseVisualStyleBackColor = true;
+            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(504, 204);
+            this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(38, 31);
+            this.label1.TabIndex = 93;
+            this.label1.Text = "盘";
             // 
-            // cu_print_outlotno
+            // LeastPrintNum
             // 
-            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(30, 46);
-            this.cu_print_outlotno.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.cu_print_outlotno.Name = "cu_print_outlotno";
-            this.cu_print_outlotno.Size = new System.Drawing.Size(117, 35);
-            this.cu_print_outlotno.TabIndex = 95;
-            this.cu_print_outlotno.Text = "LotNo";
-            this.cu_print_outlotno.UseVisualStyleBackColor = true;
+            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(402, 192);
+            this.LeastPrintNum.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.LeastPrintNum.Name = "LeastPrintNum";
+            this.LeastPrintNum.Size = new System.Drawing.Size(88, 39);
+            this.LeastPrintNum.TabIndex = 92;
             // 
-            // LogingOut
+            // OnlyPrint
             // 
-            this.LogingOut.AutoSize = true;
-            this.LogingOut.Location = new System.Drawing.Point(466, 26);
-            this.LogingOut.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.LogingOut.Name = "LogingOut";
-            this.LogingOut.Size = new System.Drawing.Size(82, 41);
-            this.LogingOut.TabIndex = 77;
-            this.LogingOut.TabStop = true;
-            this.LogingOut.Text = "注销";
-            this.LogingOut.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LogingOut_LinkClicked);
+            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(348, 148);
+            this.OnlyPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.OnlyPrint.Name = "OnlyPrint";
+            this.OnlyPrint.Size = new System.Drawing.Size(118, 35);
+            this.OnlyPrint.TabIndex = 91;
+            this.OnlyPrint.Text = "仅打印";
+            this.OnlyPrint.UseVisualStyleBackColor = true;
             // 
-            // OutBoxNum
+            // groupBoxWithBorder2
             // 
-            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(422, 196);
-            this.OutBoxNum.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.OutBoxNum.Name = "OutBoxNum";
-            this.OutBoxNum.Size = new System.Drawing.Size(72, 39);
-            this.OutBoxNum.Str = null;
-            this.OutBoxNum.Str1 = null;
-            this.OutBoxNum.Str2 = null;
-            this.OutBoxNum.TabIndex = 91;
+            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(344, 242);
+            this.groupBoxWithBorder2.Margin = new System.Windows.Forms.Padding(4);
+            this.groupBoxWithBorder2.Name = "groupBoxWithBorder2";
+            this.groupBoxWithBorder2.Padding = new System.Windows.Forms.Padding(4);
+            this.groupBoxWithBorder2.Size = new System.Drawing.Size(202, 290);
+            this.groupBoxWithBorder2.TabIndex = 81;
+            this.groupBoxWithBorder2.TabStop = false;
+            this.groupBoxWithBorder2.Text = "流水合并条件";
             // 
-            // label10
+            // cu_print_middc
             // 
-            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(342, 204);
-            this.label10.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label10.Name = "label10";
-            this.label10.Size = new System.Drawing.Size(62, 31);
-            this.label10.TabIndex = 90;
-            this.label10.Text = "箱号";
+            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(32, 236);
+            this.cu_print_middc.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.cu_print_middc.Name = "cu_print_middc";
+            this.cu_print_middc.Size = new System.Drawing.Size(128, 35);
+            this.cu_print_middc.TabIndex = 97;
+            this.cu_print_middc.Text = "合并DC";
+            this.cu_print_middc.UseVisualStyleBackColor = true;
             // 
-            // label6
+            // cu_print_midprod
             // 
-            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(342, 146);
-            this.label6.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label6.Name = "label6";
-            this.label6.Size = new System.Drawing.Size(62, 31);
-            this.label6.TabIndex = 87;
-            this.label6.Text = "容量";
+            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(32, 192);
+            this.cu_print_midprod.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.cu_print_midprod.Name = "cu_print_midprod";
+            this.cu_print_midprod.Size = new System.Drawing.Size(142, 35);
+            this.cu_print_midprod.TabIndex = 92;
+            this.cu_print_midprod.Text = "客户料号";
+            this.cu_print_midprod.UseVisualStyleBackColor = true;
             // 
-            // OutBoxPrinter
+            // cu_print_midpo
             // 
-            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(16, 164);
-            this.OutBoxPrinter.Margin = new System.Windows.Forms.Padding(10, 12, 10, 12);
-            this.OutBoxPrinter.Name = "OutBoxPrinter";
-            this.OutBoxPrinter.Size = new System.Drawing.Size(316, 50);
-            this.OutBoxPrinter.TabIndex = 82;
+            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(32, 144);
+            this.cu_print_midpo.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.cu_print_midpo.Name = "cu_print_midpo";
+            this.cu_print_midpo.Size = new System.Drawing.Size(142, 35);
+            this.cu_print_midpo.TabIndex = 93;
+            this.cu_print_midpo.Text = "客户合同";
+            this.cu_print_midpo.UseVisualStyleBackColor = true;
             // 
-            // OutBoxCapacity
+            // cu_print_midspec
             // 
-            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(422, 136);
-            this.OutBoxCapacity.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.OutBoxCapacity.Name = "OutBoxCapacity";
-            this.OutBoxCapacity.Size = new System.Drawing.Size(76, 39);
-            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.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(32, 96);
+            this.cu_print_midspec.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.cu_print_midspec.Name = "cu_print_midspec";
+            this.cu_print_midspec.Size = new System.Drawing.Size(142, 35);
+            this.cu_print_midspec.TabIndex = 94;
+            this.cu_print_midspec.Text = "出库型号";
+            this.cu_print_midspec.UseVisualStyleBackColor = true;
             // 
-            // OutBoxLabelPrint
+            // cu_print_midlotno
             // 
-            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(180, 222);
-            this.OutBoxLabelPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.OutBoxLabelPrint.Name = "OutBoxLabelPrint";
-            this.OutBoxLabelPrint.Size = new System.Drawing.Size(152, 52);
-            this.OutBoxLabelPrint.TabIndex = 80;
-            this.OutBoxLabelPrint.Text = "打印箱标";
-            this.OutBoxLabelPrint.UseVisualStyleBackColor = true;
-            this.OutBoxLabelPrint.Click += new System.EventHandler(this.OutBoxLabelPrint_Click);
+            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(32, 48);
+            this.cu_print_midlotno.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.cu_print_midlotno.Name = "cu_print_midlotno";
+            this.cu_print_midlotno.Size = new System.Drawing.Size(117, 35);
+            this.cu_print_midlotno.TabIndex = 95;
+            this.cu_print_midlotno.Text = "LotNo";
+            this.cu_print_midlotno.UseVisualStyleBackColor = true;
             // 
-            // OutBoxLabelAutoPrint
+            // label18
             // 
-            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(22, 230);
-            this.OutBoxLabelAutoPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.OutBoxLabelAutoPrint.Name = "OutBoxLabelAutoPrint";
-            this.OutBoxLabelAutoPrint.Size = new System.Drawing.Size(142, 35);
-            this.OutBoxLabelAutoPrint.TabIndex = 79;
-            this.OutBoxLabelAutoPrint.Text = "自动打印";
-            this.OutBoxLabelAutoPrint.UseVisualStyleBackColor = true;
-            this.OutBoxLabelAutoPrint.Visible = false;
+            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(132, 334);
+            this.label18.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label18.Name = "label18";
+            this.label18.Size = new System.Drawing.Size(24, 31);
+            this.label18.TabIndex = 90;
+            this.label18.Text = "-";
             // 
-            // OutBoxCombox
+            // MidLabelNum
             // 
-            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(18, 102);
-            this.OutBoxCombox.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.OutBoxCombox.Name = "OutBoxCombox";
-            this.OutBoxCombox.Size = new System.Drawing.Size(310, 39);
-            this.OutBoxCombox.TabIndex = 78;
-            this.OutBoxCombox.SelectedIndexChanged += new System.EventHandler(this.OutBoxCombox_SelectedIndexChanged);
+            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(402, 88);
+            this.MidLabelNum.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.MidLabelNum.Name = "MidLabelNum";
+            this.MidLabelNum.Size = new System.Drawing.Size(84, 39);
+            this.MidLabelNum.Str = null;
+            this.MidLabelNum.Str1 = null;
+            this.MidLabelNum.Str2 = null;
+            this.MidLabelNum.TabIndex = 56;
             // 
-            // BackendCheck
+            // MidBoxEnd
             // 
-            this.BackendCheck.SleepTime = 0;
-            this.BackendCheck.Tag = "BackendCheck";
+            this.MidBoxEnd.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.MidBoxEnd.ID = null;
+            this.MidBoxEnd.Location = new System.Drawing.Point(166, 326);
+            this.MidBoxEnd.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.MidBoxEnd.Name = "MidBoxEnd";
+            this.MidBoxEnd.Size = new System.Drawing.Size(96, 39);
+            this.MidBoxEnd.Str = null;
+            this.MidBoxEnd.Str1 = null;
+            this.MidBoxEnd.Str2 = null;
+            this.MidBoxEnd.TabIndex = 89;
             // 
-            // FrontendCheck
+            // label12
             // 
-            this.FrontendCheck.SleepTime = 0;
-            this.FrontendCheck.Tag = "FrontendCheck";
+            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(20, 288);
+            this.label12.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label12.Name = "label12";
+            this.label12.Size = new System.Drawing.Size(110, 31);
+            this.label12.TabIndex = 77;
+            this.label12.Text = "中盒范围";
             // 
-            // PLC1
+            // label5
             // 
-            this.PLC1.SleepTime = 0;
-            this.PLC1.Tag = "PLC1";
+            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(340, 100);
+            this.label5.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(62, 31);
+            this.label5.TabIndex = 50;
+            this.label5.Text = "盒号";
             // 
-            // ManBackendCheck
+            // MidBoxBegin
             // 
-            this.ManBackendCheck.SleepTime = 0;
-            this.ManBackendCheck.Tag = "ManBackendCheck";
+            this.MidBoxBegin.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.MidBoxBegin.ID = null;
+            this.MidBoxBegin.Location = new System.Drawing.Point(20, 326);
+            this.MidBoxBegin.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.MidBoxBegin.Name = "MidBoxBegin";
+            this.MidBoxBegin.Size = new System.Drawing.Size(96, 39);
+            this.MidBoxBegin.Str = null;
+            this.MidBoxBegin.Str1 = null;
+            this.MidBoxBegin.Str2 = null;
+            this.MidBoxBegin.TabIndex = 88;
             // 
-            // label30
+            // label4
             // 
-            this.label30.AutoSize = true;
-            this.label30.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label30.Location = new System.Drawing.Point(170, 310);
-            this.label30.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
-            this.label30.Name = "label30";
-            this.label30.Size = new System.Drawing.Size(127, 36);
-            this.label30.TabIndex = 111;
-            this.label30.Text = "有效日期";
+            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(344, 46);
+            this.label4.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(62, 31);
+            this.label4.TabIndex = 49;
+            this.label4.Text = "容量";
             // 
-            // cu_print_limiteddate
+            // MidLabelPrinter
             // 
-            this.cu_print_limiteddate.Location = new System.Drawing.Point(306, 316);
-            this.cu_print_limiteddate.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
-            this.cu_print_limiteddate.Maximum = new decimal(new int[] {
-            10000,
-            0,
-            0,
-            0});
-            this.cu_print_limiteddate.Name = "cu_print_limiteddate";
-            this.cu_print_limiteddate.Size = new System.Drawing.Size(122, 35);
-            this.cu_print_limiteddate.TabIndex = 112;
+            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(18, 164);
+            this.MidLabelPrinter.Margin = new System.Windows.Forms.Padding(10, 12, 10, 12);
+            this.MidLabelPrinter.Name = "MidLabelPrinter";
+            this.MidLabelPrinter.Size = new System.Drawing.Size(300, 50);
+            this.MidLabelPrinter.TabIndex = 41;
             // 
-            // Choose
+            // label15
             // 
-            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.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(504, 42);
+            this.label15.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label15.Name = "label15";
+            this.label15.Size = new System.Drawing.Size(38, 31);
+            this.label15.TabIndex = 40;
+            this.label15.Text = "盘";
             // 
-            // pd_id
+            // MidBoxCapacity
             // 
-            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 = 76;
+            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(402, 36);
+            this.MidBoxCapacity.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.MidBoxCapacity.Name = "MidBoxCapacity";
+            this.MidBoxCapacity.Size = new System.Drawing.Size(88, 39);
+            this.MidBoxCapacity.TabIndex = 30;
+            this.MidBoxCapacity.Leave += new System.EventHandler(this.MidBoxCapacity_Leave);
             // 
-            // pib_id1
+            // MidLabelPrint
             // 
-            this.pib_id1.DataPropertyName = "pib_id";
-            this.pib_id1.HeaderText = "pib_id";
-            this.pib_id1.Name = "pib_id1";
-            this.pib_id1.Width = 127;
+            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(186, 222);
+            this.MidLabelPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.MidLabelPrint.Name = "MidLabelPrint";
+            this.MidLabelPrint.Size = new System.Drawing.Size(136, 52);
+            this.MidLabelPrint.TabIndex = 42;
+            this.MidLabelPrint.Text = "打印盒签";
+            this.MidLabelPrint.UseVisualStyleBackColor = true;
+            this.MidLabelPrint.Click += new System.EventHandler(this.MidLabelPrint_Click);
             // 
-            // rownum
+            // MidLabelAutoPrint
             // 
-            this.rownum.DataPropertyName = "rownum";
-            this.rownum.HeaderText = "行号";
-            this.rownum.Name = "rownum";
-            this.rownum.Width = 103;
+            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(24, 232);
+            this.MidLabelAutoPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.MidLabelAutoPrint.Name = "MidLabelAutoPrint";
+            this.MidLabelAutoPrint.Size = new System.Drawing.Size(142, 35);
+            this.MidLabelAutoPrint.TabIndex = 41;
+            this.MidLabelAutoPrint.Text = "自动打印";
+            this.MidLabelAutoPrint.UseVisualStyleBackColor = true;
             // 
-            // pib_pdno
+            // MidLabelCombox
             // 
-            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 = 151;
+            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(20, 100);
+            this.MidLabelCombox.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.MidLabelCombox.Name = "MidLabelCombox";
+            this.MidLabelCombox.Size = new System.Drawing.Size(294, 39);
+            this.MidLabelCombox.TabIndex = 40;
+            this.MidLabelCombox.SelectedIndexChanged += new System.EventHandler(this.MidLabelCombox_SelectedIndexChanged);
             // 
-            // pib_prodcode
+            // OutBoxLabel
             // 
-            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 = 151;
+            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(2212, 12);
+            this.OutBoxLabel.Margin = new System.Windows.Forms.Padding(4);
+            this.OutBoxLabel.Name = "OutBoxLabel";
+            this.OutBoxLabel.Padding = new System.Windows.Forms.Padding(4);
+            this.OutBoxLabel.Size = new System.Drawing.Size(556, 538);
+            this.OutBoxLabel.TabIndex = 79;
+            this.OutBoxLabel.TabStop = false;
+            this.OutBoxLabel.Text = "外箱标签";
             // 
-            // pib_ifmodify
+            // primarydata
             // 
-            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 = 127;
+            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(44, 484);
+            this.primarydata.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.primarydata.Name = "primarydata";
+            this.primarydata.Size = new System.Drawing.Size(0, 36);
+            this.primarydata.TabIndex = 122;
+            this.primarydata.Visible = false;
             // 
-            // pib_ifupload
+            // guestlabeldata
             // 
-            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 = 127;
+            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(44, 432);
+            this.guestlabeldata.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.guestlabeldata.Name = "guestlabeldata";
+            this.guestlabeldata.Size = new System.Drawing.Size(0, 36);
+            this.guestlabeldata.TabIndex = 121;
+            this.guestlabeldata.Visible = false;
             // 
-            // pr_vendprodcode
+            // prodcodeback
             // 
-            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 = 91;
+            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(44, 382);
+            this.prodcodeback.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.prodcodeback.Name = "prodcodeback";
+            this.prodcodeback.Size = new System.Drawing.Size(0, 36);
+            this.prodcodeback.TabIndex = 120;
+            this.prodcodeback.Visible = false;
             // 
-            // pib_brand
+            // prodcodefront
             // 
-            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 = 103;
+            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(44, 328);
+            this.prodcodefront.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.prodcodefront.Name = "prodcodefront";
+            this.prodcodefront.Size = new System.Drawing.Size(0, 36);
+            this.prodcodefront.TabIndex = 113;
+            this.prodcodefront.Visible = false;
             // 
-            // pib_madein
+            // OutDocRefresh
             // 
-            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 = 103;
+            this.OutDocRefresh.AutoSize = true;
+            this.OutDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.OutDocRefresh.Location = new System.Drawing.Point(132, 56);
+            this.OutDocRefresh.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.OutDocRefresh.Name = "OutDocRefresh";
+            this.OutDocRefresh.Size = new System.Drawing.Size(69, 35);
+            this.OutDocRefresh.TabIndex = 119;
+            this.OutDocRefresh.TabStop = true;
+            this.OutDocRefresh.Text = "刷新";
             // 
-            // pr_orispeccode
+            // label27
             // 
-            this.pr_orispeccode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
-            this.pr_orispeccode.DataPropertyName = "pr_orispeccode";
-            this.pr_orispeccode.HeaderText = "原厂型号";
-            this.pr_orispeccode.Name = "pr_orispeccode";
-            this.pr_orispeccode.Width = 151;
+            this.label27.AutoSize = true;
+            this.label27.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.label27.Location = new System.Drawing.Point(16, 56);
+            this.label27.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label27.Name = "label27";
+            this.label27.Size = new System.Drawing.Size(102, 35);
+            this.label27.TabIndex = 117;
+            this.label27.Text = "格式(T)";
             // 
-            // pr_barcode
+            // label9
             // 
-            this.pr_barcode.DataPropertyName = "pr_barcode";
-            this.pr_barcode.HeaderText = "型号条码";
-            this.pr_barcode.Name = "pr_barcode";
-            this.pr_barcode.Width = 151;
+            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(344, 88);
+            this.label9.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label9.Name = "label9";
+            this.label9.Size = new System.Drawing.Size(62, 31);
+            this.label9.TabIndex = 98;
+            this.label9.Text = "纸型";
             // 
-            // pr_zxbzs
+            // cu_print_papercount
             // 
-            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 = 175;
+            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(422, 78);
+            this.cu_print_papercount.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.cu_print_papercount.Name = "cu_print_papercount";
+            this.cu_print_papercount.Size = new System.Drawing.Size(76, 39);
+            this.cu_print_papercount.TabIndex = 97;
             // 
-            // pr_unit
+            // groupBoxWithBorder3
             // 
-            this.pr_unit.DataPropertyName = "pr_unit";
-            this.pr_unit.HeaderText = "单位";
-            this.pr_unit.Name = "pr_unit";
-            this.pr_unit.Width = 103;
+            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(344, 242);
+            this.groupBoxWithBorder3.Margin = new System.Windows.Forms.Padding(4);
+            this.groupBoxWithBorder3.Name = "groupBoxWithBorder3";
+            this.groupBoxWithBorder3.Padding = new System.Windows.Forms.Padding(4);
+            this.groupBoxWithBorder3.Size = new System.Drawing.Size(202, 290);
+            this.groupBoxWithBorder3.TabIndex = 96;
+            this.groupBoxWithBorder3.TabStop = false;
+            this.groupBoxWithBorder3.Text = "流水合并条件";
             // 
-            // pib_lotno
+            // cu_print_outdc
             // 
-            this.pib_lotno.DataPropertyName = "pib_lotno";
-            this.pib_lotno.HeaderText = "LotNo";
-            this.pib_lotno.Name = "pib_lotno";
-            this.pib_lotno.Width = 115;
+            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(32, 236);
+            this.cu_print_outdc.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.cu_print_outdc.Name = "cu_print_outdc";
+            this.cu_print_outdc.Size = new System.Drawing.Size(128, 35);
+            this.cu_print_outdc.TabIndex = 96;
+            this.cu_print_outdc.Text = "合并DC";
+            this.cu_print_outdc.UseVisualStyleBackColor = true;
             // 
-            // pib_datecode
+            // cu_print_outprod
             // 
-            this.pib_datecode.DataPropertyName = "pib_datecode";
-            this.pib_datecode.HeaderText = "DateCode";
-            this.pib_datecode.Name = "pib_datecode";
-            this.pib_datecode.Width = 151;
+            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(32, 192);
+            this.cu_print_outprod.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.cu_print_outprod.Name = "cu_print_outprod";
+            this.cu_print_outprod.Size = new System.Drawing.Size(142, 35);
+            this.cu_print_outprod.TabIndex = 92;
+            this.cu_print_outprod.Text = "客户料号";
+            this.cu_print_outprod.UseVisualStyleBackColor = true;
             // 
-            // pib_year
+            // cu_print_outpo
             // 
-            this.pib_year.DataPropertyName = "pib_year";
-            this.pib_year.HeaderText = "年";
-            this.pib_year.Name = "pib_year";
-            this.pib_year.Width = 79;
+            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(32, 144);
+            this.cu_print_outpo.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.cu_print_outpo.Name = "cu_print_outpo";
+            this.cu_print_outpo.Size = new System.Drawing.Size(142, 35);
+            this.cu_print_outpo.TabIndex = 93;
+            this.cu_print_outpo.Text = "客户合同";
+            this.cu_print_outpo.UseVisualStyleBackColor = true;
             // 
-            // pib_month
+            // cu_print_outspec
             // 
-            this.pib_month.DataPropertyName = "pib_month";
-            this.pib_month.HeaderText = "月";
-            this.pib_month.Name = "pib_month";
-            this.pib_month.Width = 79;
+            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(32, 96);
+            this.cu_print_outspec.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.cu_print_outspec.Name = "cu_print_outspec";
+            this.cu_print_outspec.Size = new System.Drawing.Size(142, 35);
+            this.cu_print_outspec.TabIndex = 94;
+            this.cu_print_outspec.Text = "出库型号";
+            this.cu_print_outspec.UseVisualStyleBackColor = true;
             // 
-            // pib_day
+            // cu_print_outlotno
             // 
-            this.pib_day.DataPropertyName = "pib_day";
-            this.pib_day.HeaderText = "日";
-            this.pib_day.Name = "pib_day";
-            this.pib_day.Width = 79;
+            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(32, 48);
+            this.cu_print_outlotno.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.cu_print_outlotno.Name = "cu_print_outlotno";
+            this.cu_print_outlotno.Size = new System.Drawing.Size(117, 35);
+            this.cu_print_outlotno.TabIndex = 95;
+            this.cu_print_outlotno.Text = "LotNo";
+            this.cu_print_outlotno.UseVisualStyleBackColor = true;
             // 
-            // pib_ifpick
+            // LogingOut
             // 
-            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;
+            this.LogingOut.AutoSize = true;
+            this.LogingOut.Location = new System.Drawing.Point(468, 28);
+            this.LogingOut.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.LogingOut.Name = "LogingOut";
+            this.LogingOut.Size = new System.Drawing.Size(82, 41);
+            this.LogingOut.TabIndex = 77;
+            this.LogingOut.TabStop = true;
+            this.LogingOut.Text = "注销";
+            this.LogingOut.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LogingOut_LinkClicked);
             // 
-            // pib_ifprint
+            // OutBoxNum
             // 
-            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;
+            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(422, 196);
+            this.OutBoxNum.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.OutBoxNum.Name = "OutBoxNum";
+            this.OutBoxNum.Size = new System.Drawing.Size(72, 39);
+            this.OutBoxNum.Str = null;
+            this.OutBoxNum.Str1 = null;
+            this.OutBoxNum.Str2 = null;
+            this.OutBoxNum.TabIndex = 91;
             // 
-            // pib_ifrecheck
+            // label10
             // 
-            this.pib_ifrecheck.DataPropertyName = "pib_ifrecheck";
-            this.pib_ifrecheck.HeaderText = "已复核";
-            this.pib_ifrecheck.Name = "pib_ifrecheck";
-            this.pib_ifrecheck.Width = 58;
+            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(344, 206);
+            this.label10.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label10.Name = "label10";
+            this.label10.Size = new System.Drawing.Size(62, 31);
+            this.label10.TabIndex = 90;
+            this.label10.Text = "箱号";
             // 
-            // pib_datecode1
+            // label6
             // 
-            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 = 163;
+            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(344, 148);
+            this.label6.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(62, 31);
+            this.label6.TabIndex = 87;
+            this.label6.Text = "容量";
             // 
-            // pib_qty
+            // OutBoxPrinter
             // 
-            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 = 97;
+            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(16, 164);
+            this.OutBoxPrinter.Margin = new System.Windows.Forms.Padding(10, 12, 10, 12);
+            this.OutBoxPrinter.Name = "OutBoxPrinter";
+            this.OutBoxPrinter.Size = new System.Drawing.Size(316, 50);
+            this.OutBoxPrinter.TabIndex = 82;
             // 
-            // pib_barcode
+            // OutBoxCapacity
             // 
-            this.pib_barcode.DataPropertyName = "pib_barcode";
-            this.pib_barcode.HeaderText = "唯一条码";
-            this.pib_barcode.Name = "pib_barcode";
-            this.pib_barcode.ReadOnly = true;
-            this.pib_barcode.Visible = false;
-            this.pib_barcode.Width = 118;
+            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(422, 136);
+            this.OutBoxCapacity.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.OutBoxCapacity.Name = "OutBoxCapacity";
+            this.OutBoxCapacity.Size = new System.Drawing.Size(76, 39);
+            this.OutBoxCapacity.TabIndex = 84;
+            this.OutBoxCapacity.Value = new decimal(new int[] {
+            1,
+            0,
+            0,
+            0});
+            this.OutBoxCapacity.Leave += new System.EventHandler(this.MidBoxCapacity_Leave);
             // 
-            // pib_custbarcode
+            // OutBoxLabelPrint
             // 
-            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 = 118;
+            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(180, 222);
+            this.OutBoxLabelPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.OutBoxLabelPrint.Name = "OutBoxLabelPrint";
+            this.OutBoxLabelPrint.Size = new System.Drawing.Size(152, 52);
+            this.OutBoxLabelPrint.TabIndex = 80;
+            this.OutBoxLabelPrint.Text = "打印箱标";
+            this.OutBoxLabelPrint.UseVisualStyleBackColor = true;
+            this.OutBoxLabelPrint.Click += new System.EventHandler(this.OutBoxLabelPrint_Click);
             // 
-            // pib_custmidboxcode
+            // OutBoxLabelAutoPrint
             // 
-            this.pib_custmidboxcode.DataPropertyName = "pib_custmidboxcode";
-            this.pib_custmidboxcode.HeaderText = "中盒条码";
-            this.pib_custmidboxcode.Name = "pib_custmidboxcode";
-            this.pib_custmidboxcode.Width = 118;
+            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(24, 232);
+            this.OutBoxLabelAutoPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.OutBoxLabelAutoPrint.Name = "OutBoxLabelAutoPrint";
+            this.OutBoxLabelAutoPrint.Size = new System.Drawing.Size(142, 35);
+            this.OutBoxLabelAutoPrint.TabIndex = 79;
+            this.OutBoxLabelAutoPrint.Text = "自动打印";
+            this.OutBoxLabelAutoPrint.UseVisualStyleBackColor = true;
+            this.OutBoxLabelAutoPrint.Visible = false;
             // 
-            // pib_custoutboxcode
+            // OutBoxCombox
             // 
-            this.pib_custoutboxcode.DataPropertyName = "pib_custoutboxcode";
-            this.pib_custoutboxcode.HeaderText = "外箱条码";
-            this.pib_custoutboxcode.Name = "pib_custoutboxcode";
-            this.pib_custoutboxcode.Width = 118;
+            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(18, 102);
+            this.OutBoxCombox.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.OutBoxCombox.Name = "OutBoxCombox";
+            this.OutBoxCombox.Size = new System.Drawing.Size(310, 39);
+            this.OutBoxCombox.TabIndex = 78;
+            this.OutBoxCombox.SelectedIndexChanged += new System.EventHandler(this.OutBoxCombox_SelectedIndexChanged);
             // 
-            // pd_pocode
+            // BackendCheck
             // 
-            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 = 97;
+            this.BackendCheck.SleepTime = 0;
+            this.BackendCheck.Tag = "BackendCheck";
             // 
-            // pd_custprodcode
+            // FrontendCheck
             // 
-            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 = 118;
+            this.FrontendCheck.SleepTime = 0;
+            this.FrontendCheck.Tag = "FrontendCheck";
             // 
-            // pd_custprodspec
+            // PLC1
             // 
-            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 = 118;
+            this.PLC1.SleepTime = 0;
+            this.PLC1.Tag = "PLC1";
             // 
-            // pr_spec
+            // ManBackendCheck
             // 
-            this.pr_spec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.pr_spec.DataPropertyName = "pr_spec";
-            this.pr_spec.HeaderText = "规格";
-            this.pr_spec.Name = "pr_spec";
-            this.pr_spec.Width = 54;
+            this.ManBackendCheck.SleepTime = 0;
+            this.ManBackendCheck.Tag = "ManBackendCheck";
             // 
-            // pib_outboxcode1
+            // label30
             // 
-            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 = 97;
+            this.label30.AutoSize = true;
+            this.label30.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label30.Location = new System.Drawing.Point(170, 310);
+            this.label30.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label30.Name = "label30";
+            this.label30.Size = new System.Drawing.Size(127, 36);
+            this.label30.TabIndex = 111;
+            this.label30.Text = "有效日期";
             // 
-            // pib_outboxcode2
+            // cu_print_limiteddate
             // 
-            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 = 97;
+            this.cu_print_limiteddate.Location = new System.Drawing.Point(306, 313);
+            this.cu_print_limiteddate.Margin = new System.Windows.Forms.Padding(6);
+            this.cu_print_limiteddate.Maximum = new decimal(new int[] {
+            10000,
+            0,
+            0,
+            0});
+            this.cu_print_limiteddate.Name = "cu_print_limiteddate";
+            this.cu_print_limiteddate.Size = new System.Drawing.Size(122, 35);
+            this.cu_print_limiteddate.TabIndex = 112;
             // 
             // UAS_出货标签打印
             // 

+ 68 - 43
UAS-出货标签管理(吉利通)/UAS_出货标签管理.cs

@@ -138,7 +138,6 @@ namespace UAS_LabelMachine
             dh = SystemInf.dh;
             adh = SystemInf.adh;
             back_adh = SystemInf.back_adh;
-            adh.ExecuteSql("delete from prodiobarcode", "delete");
             CheckForIllegalCrossThreadCalls = false;
             pi_inoutno.Focus();
 
@@ -969,39 +968,7 @@ namespace UAS_LabelMachine
                     string[] param = new string[] { PI_ID, "" };
                     dh.CallProcedure("GetCustBarcode", ref param);
                     //}
-                    //获取客户自定义设置
-                    sql.Clear();
-                    sql.Append("select cu_print_middc,cu_print_limiteddate,cu_print_outdc,cu_print_dateformat,cu_print_checkdatecode,cu_print_midlotno,nvl(cu_print_custprodmatchmodel,'Equal')cu_print_custprodmatchmodel,cu_print_midspec,cu_print_midpo,cu_print_midprod,cu_print_outlotno,cu_print_outspec,cu_print_outpo");
-                    sql.Append(",cu_print_outprod,cu_print_checkonly,nvl(cu_print_papercount,0)cu_print_papercount,cu_print_regexpression,cu_print_recheck from customer where cu_code='" + pi_cardcode.Text + "'");
-                    dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
-                    if (dt.Rows.Count > 0)
-                    {
-                        BaseUtil.SetFormValue(this.Controls, dt);
-                        switch (dt.Rows[0]["cu_print_custprodmatchmodel"].ToString())
-                        {
-                            case "Equal":
-                                Equal.Checked = true;
-                                break;
-                            case "Expression":
-                                Expression.Checked = true;
-                                break;
-                            default:
-                                Equal.Checked = true;
-                                break;
-                        }
-                        switch (dt.Rows[0]["cu_print_recheck"].ToString())
-                        {
-                            case "CP":
-                                RecheckCuprodcode.Checked = true;
-                                break;
-                            case "BR":
-                                RecheckBarcode.Checked = true;
-                                break;
-                            default:
-                                RecheckCuprodcode.Checked = true;
-                                break;
-                        }
-                    }
+                    RefreshParamData();
                     //查询所有的采集策略
                     sql.Clear();
                     sql.Append("select sg_id,sg_brand,si_item ,sg_script,max(si_expression)si_expression,instr(sg_name,si_name)itemindex,sg_name,si_name,sg_step from prodiodetail left join ");
@@ -1585,6 +1552,14 @@ namespace UAS_LabelMachine
         }
 
         private void LoadGridData()
+        {
+            thread = new Thread(LoadGridData1);
+            stw = new SetLoadingWindow(thread, "正在获取条码");
+            BaseUtil.SetFormCenter(stw);
+            stw.ShowDialog();
+        }
+
+        private void LoadGridData1()
         {
             LoadGridData(new object(), new EventArgs());
         }
@@ -1915,7 +1890,7 @@ namespace UAS_LabelMachine
                     Properties.Settings.Default.MidBoxCapacity = nup.Value;
                     Properties.Settings.Default.Save();
                     break;
-                case "OutboxCapacity":
+                case "OutBoxCapacity":
                     Properties.Settings.Default.OutboxCapacity = nup.Value;
                     Properties.Settings.Default.Save();
                     break;
@@ -1942,11 +1917,13 @@ namespace UAS_LabelMachine
             {
                 case "采集策略设置":
                     采集策略_NEW form = new 采集策略_NEW();
+                    form.FormClosed += Form_FormClosed;
                     BaseUtil.SetFormCenter(form);
                     form.ShowDialog();
                     break;
                 case "生成条码":
                     生成条码 form3 = new 生成条码(pi_inoutno.Text);
+                    form3.FormClosed += Form_FormClosed;
                     BaseUtil.SetFormCenter(form3);
                     form3.ShowDialog();
                     break;
@@ -1954,12 +1931,14 @@ namespace UAS_LabelMachine
                     if (pi_cardcode.Text != "")
                     {
                         附件内容打印 att = new 附件内容打印(pi_cardcode.Text);
+                        att.FormClosed += Attach_Closed;
                         att.ShowDialog();
                     }
                     else MessageBox.Show("请先获取出库单信息");
                     break;
                 case "客户标签维护":
                     客户标签维护 form1 = new 客户标签维护();
+                    form1.FormClosed += Form_FormClosed;
                     BaseUtil.SetFormCenter(form1);
                     if (SingleDoc != null)
                         SingleDoc.Close();
@@ -1972,12 +1951,13 @@ namespace UAS_LabelMachine
                     break;
                 case "客户采集规则":
                     CustomerRule cust = new CustomerRule();
+                    cust.FormClosed += Form_FormClosed;
                     BaseUtil.SetFormCenter(cust);
                     cust.ShowDialog();
                     break;
                 case "参数配置":
                     ParamSetting form2 = new ParamSetting();
-                    form2.FormClosed += Form2_FormClosed;
+                    form2.FormClosed += Form_FormClosed;
                     BaseUtil.SetFormCenter(form2);
                     form2.ShowDialog();
                     break;
@@ -1991,9 +1971,14 @@ namespace UAS_LabelMachine
             }
         }
 
-        private void Form2_FormClosed(object sender, FormClosedEventArgs e)
+        private void Form_FormClosed(object sender, FormClosedEventArgs e)
         {
-            RefreshPLCInstruct();
+            RefreshParamData();
+        }
+
+        private void Attach_Closed(object sender, FormClosedEventArgs e)
+        {
+            RefreshAttachData();
         }
 
         private void DetailRange_CheckedChanged(object sender, EventArgs e)
@@ -2331,7 +2316,7 @@ namespace UAS_LabelMachine
             string month = "0";
             string day = "0";
             string date = "";
-            LogicHandler.GetTimeFromDatecode(DateCode, pi_cardcode.Text, out year, out month, out day, out date);
+            LogicHandler.GetTimeFromDatecode(datecode, pi_cardcode.Text, out year, out month, out day, out date);
             adh.ExecuteSql("update prodiobarcode set pib_ifpick=-1,pib_ifmodify=-1,pib_lotno='" + lotno + "',pib_datecode='" + datecode + "',pib_year='" + year + "',pib_month='" + month + "',pib_day='" + day + "' where pib_inoutno='" + pi_inoutno.Text + "' and pib_pdno=" + pdno, "update");
             LoadGridData();
             setvalue.FindForm().Close();
@@ -2347,19 +2332,17 @@ namespace UAS_LabelMachine
             string month = "0";
             string day = "0";
             string date = "";
-            LogicHandler.GetTimeFromDatecode(DateCode, pi_cardcode.Text, out year, out month, out day, out date);
+            LogicHandler.GetTimeFromDatecode(datecode, pi_cardcode.Text, out year, out month, out day, out date);
             adh.ExecuteSql("update prodiobarcode set pib_ifpick=-1,pib_ifmodify=-1,pib_ifprint=-1,pib_lotno='" + lotno + "',pib_datecode='" + datecode + "',pib_year='" + year + "',pib_month='" + month + "',pib_day='" + day + "' where pib_inoutno='" + pi_inoutno.Text + "' and pib_pdno=" + pdno, "update");
             LoadGridData();
             DataTable pibid_dt = (DataTable)adh.ExecuteSql("select pib_id from prodiobarcode where pib_inoutno='" + pi_inoutno.Text + "' and pib_pdno=" + pdno, "select");
             for (int i = 0; i < pibid_dt.Rows.Count; i++)
             {
-                SinglePrint(pibid_dt.Rows[i]["pib_id1"].ToString());
+                SinglePrint(pibid_dt.Rows[i]["pib_id"].ToString());
             }
             setvalueandprint.FindForm().Close();
         }
 
-
-
         private void ResetBarcode_Click(object sender, EventArgs e)
         {
             string close = MessageBox.Show(this.ParentForm, "是否重置本单据条码", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
@@ -2607,5 +2590,47 @@ namespace UAS_LabelMachine
             SingleDoc.PrintDocument();
             LogicHandler.UpdateRowPrinted(pib_id);
         }
+
+        private void RefreshAttachData()
+        {
+
+        }
+
+        private void RefreshParamData()
+        {
+            //获取客户自定义设置
+            sql.Clear();
+            sql.Append("select cu_print_middc,cu_print_limiteddate,cu_print_outdc,cu_print_dateformat,cu_print_checkdatecode,cu_print_midlotno,nvl(cu_print_custprodmatchmodel,'Equal')cu_print_custprodmatchmodel,cu_print_midspec,cu_print_midpo,cu_print_midprod,cu_print_outlotno,cu_print_outspec,cu_print_outpo");
+            sql.Append(",cu_print_outprod,cu_print_checkonly,nvl(cu_print_papercount,0)cu_print_papercount,cu_print_regexpression,cu_print_recheck from customer where cu_code='" + pi_cardcode.Text + "'");
+            DataTable dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
+            if (dt.Rows.Count > 0)
+            {
+                BaseUtil.SetFormValue(this.Controls, dt);
+                switch (dt.Rows[0]["cu_print_custprodmatchmodel"].ToString())
+                {
+                    case "Equal":
+                        Equal.Checked = true;
+                        break;
+                    case "Expression":
+                        Expression.Checked = true;
+                        break;
+                    default:
+                        Equal.Checked = true;
+                        break;
+                }
+                switch (dt.Rows[0]["cu_print_recheck"].ToString())
+                {
+                    case "CP":
+                        RecheckCuprodcode.Checked = true;
+                        break;
+                    case "BR":
+                        RecheckBarcode.Checked = true;
+                        break;
+                    default:
+                        RecheckCuprodcode.Checked = true;
+                        break;
+                }
+            }
+        }
     }
 }