Browse Source

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

caosy 6 years ago
parent
commit
52df2a88aa

+ 60 - 11
UAS-出货标签管理(吉利通)/DateCodeSetAndPrint.Designer.cs

@@ -35,12 +35,15 @@
             this.label2 = new System.Windows.Forms.Label();
             this.lotno = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.datecode = new UAS_LabelMachine.CustomControl.EnterTextBox();
+            this.Nums = new UAS_LabelMachine.CustomControl.EnterTextBox();
+            this.label1 = new System.Windows.Forms.Label();
+            this.loadingCircle2 = new UAS_LabelMachine.CustomControl.SetLoading.LoadingCircle();
             this.SuspendLayout();
             // 
             // SetValueAndPrint
             // 
             this.SetValueAndPrint.Location = new System.Drawing.Point(191, 168);
-            this.SetValueAndPrint.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
+            this.SetValueAndPrint.Margin = new System.Windows.Forms.Padding(2);
             this.SetValueAndPrint.Name = "SetValueAndPrint";
             this.SetValueAndPrint.Size = new System.Drawing.Size(77, 20);
             this.SetValueAndPrint.TabIndex = 0;
@@ -52,8 +55,8 @@
             this.loadingCircle1.Active = false;
             this.loadingCircle1.Color = System.Drawing.Color.DarkGray;
             this.loadingCircle1.InnerCircleRadius = 5;
-            this.loadingCircle1.Location = new System.Drawing.Point(205, 106);
-            this.loadingCircle1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
+            this.loadingCircle1.Location = new System.Drawing.Point(205, 80);
+            this.loadingCircle1.Margin = new System.Windows.Forms.Padding(2);
             this.loadingCircle1.Name = "loadingCircle1";
             this.loadingCircle1.NumberSpoke = 12;
             this.loadingCircle1.OuterCircleRadius = 11;
@@ -67,7 +70,7 @@
             // SetValue
             // 
             this.SetValue.Location = new System.Drawing.Point(106, 168);
-            this.SetValue.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
+            this.SetValue.Margin = new System.Windows.Forms.Padding(2);
             this.SetValue.Name = "SetValue";
             this.SetValue.Size = new System.Drawing.Size(71, 20);
             this.SetValue.TabIndex = 3;
@@ -77,7 +80,7 @@
             // lotno_label
             // 
             this.lotno_label.AutoSize = true;
-            this.lotno_label.Location = new System.Drawing.Point(68, 66);
+            this.lotno_label.Location = new System.Drawing.Point(68, 46);
             this.lotno_label.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.lotno_label.Name = "lotno_label";
             this.lotno_label.Size = new System.Drawing.Size(35, 12);
@@ -87,7 +90,7 @@
             // label2
             // 
             this.label2.AutoSize = true;
-            this.label2.Location = new System.Drawing.Point(68, 110);
+            this.label2.Location = new System.Drawing.Point(68, 88);
             this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
             this.label2.Name = "label2";
             this.label2.Size = new System.Drawing.Size(53, 12);
@@ -97,8 +100,8 @@
             // lotno
             // 
             this.lotno.ID = null;
-            this.lotno.Location = new System.Drawing.Point(134, 64);
-            this.lotno.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
+            this.lotno.Location = new System.Drawing.Point(134, 44);
+            this.lotno.Margin = new System.Windows.Forms.Padding(2);
             this.lotno.Name = "lotno";
             this.lotno.Size = new System.Drawing.Size(152, 21);
             this.lotno.Str = null;
@@ -109,8 +112,8 @@
             // datecode
             // 
             this.datecode.ID = null;
-            this.datecode.Location = new System.Drawing.Point(134, 109);
-            this.datecode.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
+            this.datecode.Location = new System.Drawing.Point(134, 83);
+            this.datecode.Margin = new System.Windows.Forms.Padding(2);
             this.datecode.Name = "datecode";
             this.datecode.Size = new System.Drawing.Size(152, 21);
             this.datecode.Str = null;
@@ -118,11 +121,53 @@
             this.datecode.Str2 = null;
             this.datecode.TabIndex = 7;
             // 
+            // Nums
+            // 
+            this.Nums.ID = null;
+            this.Nums.Location = new System.Drawing.Point(134, 123);
+            this.Nums.Margin = new System.Windows.Forms.Padding(2);
+            this.Nums.Name = "Nums";
+            this.Nums.Size = new System.Drawing.Size(152, 21);
+            this.Nums.Str = null;
+            this.Nums.Str1 = null;
+            this.Nums.Str2 = null;
+            this.Nums.TabIndex = 10;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Location = new System.Drawing.Point(68, 128);
+            this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(29, 12);
+            this.label1.TabIndex = 9;
+            this.label1.Text = "数量";
+            // 
+            // loadingCircle2
+            // 
+            this.loadingCircle2.Active = false;
+            this.loadingCircle2.Color = System.Drawing.Color.DarkGray;
+            this.loadingCircle2.InnerCircleRadius = 5;
+            this.loadingCircle2.Location = new System.Drawing.Point(205, 120);
+            this.loadingCircle2.Margin = new System.Windows.Forms.Padding(2);
+            this.loadingCircle2.Name = "loadingCircle2";
+            this.loadingCircle2.NumberSpoke = 12;
+            this.loadingCircle2.OuterCircleRadius = 11;
+            this.loadingCircle2.RotationSpeed = 100;
+            this.loadingCircle2.Size = new System.Drawing.Size(0, 0);
+            this.loadingCircle2.SpokeThickness = 2;
+            this.loadingCircle2.StylePreset = UAS_LabelMachine.CustomControl.SetLoading.LoadingCircle.StylePresets.MacOSX;
+            this.loadingCircle2.TabIndex = 8;
+            this.loadingCircle2.Text = "loadingCircle2";
+            // 
             // DateCodeSetAndPrint
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.ClientSize = new System.Drawing.Size(365, 212);
+            this.Controls.Add(this.Nums);
+            this.Controls.Add(this.label1);
+            this.Controls.Add(this.loadingCircle2);
             this.Controls.Add(this.datecode);
             this.Controls.Add(this.lotno);
             this.Controls.Add(this.label2);
@@ -130,10 +175,11 @@
             this.Controls.Add(this.SetValue);
             this.Controls.Add(this.loadingCircle1);
             this.Controls.Add(this.SetValueAndPrint);
-            this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
+            this.Margin = new System.Windows.Forms.Padding(2);
             this.Name = "DateCodeSetAndPrint";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             this.Text = "DateCodeSetAndPrint";
+            this.Load += new System.EventHandler(this.DateCodeSetAndPrint_Load);
             this.ResumeLayout(false);
             this.PerformLayout();
 
@@ -148,5 +194,8 @@
         private System.Windows.Forms.Label label2;
         private CustomControl.EnterTextBox lotno;
         private CustomControl.EnterTextBox datecode;
+        private CustomControl.EnterTextBox Nums;
+        private System.Windows.Forms.Label label1;
+        private CustomControl.SetLoading.LoadingCircle loadingCircle2;
     }
 }

+ 5 - 0
UAS-出货标签管理(吉利通)/DateCodeSetAndPrint.cs

@@ -15,5 +15,10 @@ namespace UAS_LabelMachine
         {
             InitializeComponent();
         }
+
+        private void DateCodeSetAndPrint_Load(object sender, EventArgs e)
+        {
+
+        }
     }
 }

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

@@ -150,6 +150,43 @@
             this.BackCheck = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.MessageLog = new UAS_LabelMachine.CustomControl.RichText.RichTextAutoBottom();
             this.LabelInf = new UAS_LabelMachine.CustomControl.DataGridViewWithSerialNum();
+            this.Choose = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_autoset = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pd_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_id1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.rownum = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_pdno = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_prodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_ifmodify = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_ifupload = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pr_vendprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_brand = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.sd_brand = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_madein = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_orispeccode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_barcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_zxbzs = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_unit = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_lotno = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_datecode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_year = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_month = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_day = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_ifpick = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_ifprint = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_ifrecheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_datecode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_qty = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_barcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_custbarcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_custmidboxcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_custoutboxcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pd_pocode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pd_custprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pd_custprodspec = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_outboxcode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_outboxcode2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.pi_inoutno = new UAS_LabelMachine.CustomControl.BlurSearch();
             this.SingleLabel = new UAS_LabelMachine.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
             this.SingleDocRefresh = new System.Windows.Forms.LinkLabel();
@@ -224,43 +261,6 @@
             this.FrontendCheck = new UAS_LabelMachine.CustomControl.SerialPortWithTag();
             this.PLC1 = new UAS_LabelMachine.CustomControl.SerialPortWithTag();
             this.ManBackendCheck = new UAS_LabelMachine.CustomControl.SerialPortWithTag();
-            this.Choose = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_autoset = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pd_id = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_id1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.rownum = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_pdno = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_prodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_ifmodify = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_ifupload = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pr_vendprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_brand = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.sd_brand = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_madein = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_orispeccode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_barcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_zxbzs = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_unit = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_lotno = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_datecode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_year = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_month = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_day = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_ifpick = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_ifprint = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_ifrecheck = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_datecode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_qty = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_barcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_custbarcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_custmidboxcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_custoutboxcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pd_pocode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pd_custprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pd_custprodspec = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_outboxcode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_outboxcode2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.LogMenu.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.PageSizeNum)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.cu_print_limiteddate)).BeginInit();
@@ -1509,6 +1509,7 @@
             this.MessageLog.Size = new System.Drawing.Size(1383, 97);
             this.MessageLog.TabIndex = 28;
             this.MessageLog.Text = "";
+            this.MessageLog.KeyDown += new System.Windows.Forms.KeyEventHandler(this.MessageLog_KeyDown);
             this.MessageLog.MouseUp += new System.Windows.Forms.MouseEventHandler(this.MessageLog_MouseUp);
             // 
             // LabelInf
@@ -1566,1183 +1567,1183 @@
             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.Condition = null;
-            this.pi_inoutno.Field = null;
-            this.pi_inoutno.Location = new System.Drawing.Point(76, 10);
-            this.pi_inoutno.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.pi_inoutno.Name = "pi_inoutno";
-            this.pi_inoutno.Size = new System.Drawing.Size(150, 21);
-            this.pi_inoutno.TabIndex = 2;
-            this.pi_inoutno.TableName = null;
-            this.pi_inoutno.Value = null;
-            this.pi_inoutno.ValueField = null;
-            this.pi_inoutno.UserKeyDown += new UAS_LabelMachine.CustomControl.BlurSearch.OnKeyDown(this.pi_inoutno_KeyDown);
+            this.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
+            // pib_autoset
             // 
-            this.SingleLabel.Controls.Add(this.SingleDocRefresh);
-            this.SingleLabel.Controls.Add(this.label17);
-            this.SingleLabel.Controls.Add(this.groupBoxWithBorder4);
-            this.SingleLabel.Controls.Add(this.label7);
-            this.SingleLabel.Controls.Add(this.label16);
-            this.SingleLabel.Controls.Add(this.SingleLabelPrinter);
-            this.SingleLabel.Controls.Add(this.SingleBoxEnd);
-            this.SingleLabel.Controls.Add(this.SingleBoxBegin);
-            this.SingleLabel.Controls.Add(this.SingleLabelPrint);
-            this.SingleLabel.Controls.Add(this.SingleLabelAutoPrint);
-            this.SingleLabel.Controls.Add(this.SingleLabelCombox);
-            this.SingleLabel.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SingleLabel.Location = new System.Drawing.Point(638, 6);
-            this.SingleLabel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.SingleLabel.Name = "SingleLabel";
-            this.SingleLabel.Padding = new System.Windows.Forms.Padding(2);
-            this.SingleLabel.Size = new System.Drawing.Size(180, 269);
-            this.SingleLabel.TabIndex = 77;
-            this.SingleLabel.TabStop = false;
-            this.SingleLabel.Text = "单盘标签";
+            this.pib_autoset.HeaderText = "pib_autoset";
+            this.pib_autoset.Name = "pib_autoset";
+            this.pib_autoset.Visible = false;
+            this.pib_autoset.Width = 96;
             // 
-            // SingleDocRefresh
+            // pd_id
             // 
-            this.SingleDocRefresh.AutoSize = true;
-            this.SingleDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.SingleDocRefresh.Location = new System.Drawing.Point(70, 26);
-            this.SingleDocRefresh.Name = "SingleDocRefresh";
-            this.SingleDocRefresh.Size = new System.Drawing.Size(37, 20);
-            this.SingleDocRefresh.TabIndex = 118;
-            this.SingleDocRefresh.TabStop = true;
-            this.SingleDocRefresh.Text = "刷新";
-            this.SingleDocRefresh.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.DocRefresh_LinkClicked);
+            this.pd_id.DataPropertyName = "pd_id";
+            this.pd_id.HeaderText = "pd_id";
+            this.pd_id.Name = "pd_id";
+            this.pd_id.Visible = false;
+            this.pd_id.Width = 60;
             // 
-            // label17
+            // pib_id1
             // 
-            this.label17.AutoSize = true;
-            this.label17.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.label17.Location = new System.Drawing.Point(12, 26);
-            this.label17.Name = "label17";
-            this.label17.Size = new System.Drawing.Size(55, 20);
-            this.label17.TabIndex = 115;
-            this.label17.Text = "格式(T)";
+            this.pib_id1.DataPropertyName = "pib_id";
+            this.pib_id1.HeaderText = "pib_id";
+            this.pib_id1.Name = "pib_id1";
+            this.pib_id1.Visible = false;
+            this.pib_id1.Width = 66;
             // 
-            // groupBoxWithBorder4
+            // rownum
             // 
-            this.groupBoxWithBorder4.Controls.Add(this.label20);
-            this.groupBoxWithBorder4.Controls.Add(this.BackCombo);
-            this.groupBoxWithBorder4.Controls.Add(this.label19);
-            this.groupBoxWithBorder4.Controls.Add(this.FrontCombo);
-            this.groupBoxWithBorder4.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.groupBoxWithBorder4.Location = new System.Drawing.Point(7, 186);
-            this.groupBoxWithBorder4.Name = "groupBoxWithBorder4";
-            this.groupBoxWithBorder4.Size = new System.Drawing.Size(165, 78);
-            this.groupBoxWithBorder4.TabIndex = 41;
-            this.groupBoxWithBorder4.TabStop = false;
-            this.groupBoxWithBorder4.Text = "扫描区域";
+            this.rownum.DataPropertyName = "rownum";
+            this.rownum.HeaderText = "行号";
+            this.rownum.Name = "rownum";
+            this.rownum.Width = 54;
             // 
-            // label20
+            // pib_pdno
             // 
-            this.label20.AutoSize = true;
-            this.label20.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.label20.Location = new System.Drawing.Point(8, 48);
-            this.label20.Name = "label20";
-            this.label20.Size = new System.Drawing.Size(37, 20);
-            this.label20.TabIndex = 94;
-            this.label20.Text = "后端";
+            this.pib_pdno.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
+            this.pib_pdno.DataPropertyName = "pib_pdno";
+            this.pib_pdno.HeaderText = "明细序号";
+            this.pib_pdno.Name = "pib_pdno";
+            this.pib_pdno.ReadOnly = true;
+            this.pib_pdno.Width = 78;
             // 
-            // BackCombo
+            // pib_prodcode
             // 
-            this.BackCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.BackCombo.Font = new System.Drawing.Font("微软雅黑", 8F);
-            this.BackCombo.FormattingEnabled = true;
-            this.BackCombo.Location = new System.Drawing.Point(52, 48);
-            this.BackCombo.Name = "BackCombo";
-            this.BackCombo.Size = new System.Drawing.Size(105, 24);
-            this.BackCombo.TabIndex = 93;
+            this.pib_prodcode.DataPropertyName = "pib_prodcode";
+            this.pib_prodcode.HeaderText = "物料编号";
+            this.pib_prodcode.Name = "pib_prodcode";
+            this.pib_prodcode.ReadOnly = true;
+            this.pib_prodcode.Width = 78;
             // 
-            // label19
+            // pib_ifmodify
             // 
-            this.label19.AutoSize = true;
-            this.label19.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.label19.Location = new System.Drawing.Point(8, 24);
-            this.label19.Name = "label19";
-            this.label19.Size = new System.Drawing.Size(37, 20);
-            this.label19.TabIndex = 92;
-            this.label19.Text = "前端";
+            this.pib_ifmodify.DataPropertyName = "pib_ifmodify";
+            this.pib_ifmodify.HeaderText = "已修改";
+            this.pib_ifmodify.Name = "pib_ifmodify";
+            this.pib_ifmodify.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+            this.pib_ifmodify.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+            this.pib_ifmodify.Width = 66;
             // 
-            // FrontCombo
+            // pib_ifupload
             // 
-            this.FrontCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.FrontCombo.Font = new System.Drawing.Font("微软雅黑", 8F);
-            this.FrontCombo.FormattingEnabled = true;
-            this.FrontCombo.Location = new System.Drawing.Point(52, 22);
-            this.FrontCombo.Name = "FrontCombo";
-            this.FrontCombo.Size = new System.Drawing.Size(105, 24);
-            this.FrontCombo.TabIndex = 0;
+            this.pib_ifupload.DataPropertyName = "pib_ifupload";
+            this.pib_ifupload.HeaderText = "已上传";
+            this.pib_ifupload.Name = "pib_ifupload";
+            this.pib_ifupload.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+            this.pib_ifupload.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+            this.pib_ifupload.Width = 66;
             // 
-            // label7
+            // pr_vendprodcode
             // 
-            this.label7.AutoSize = true;
-            this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label7.Location = new System.Drawing.Point(10, 142);
-            this.label7.Name = "label7";
-            this.label7.Size = new System.Drawing.Size(56, 17);
-            this.label7.TabIndex = 76;
-            this.label7.Text = "单盘范围";
+            this.pr_vendprodcode.DataPropertyName = "pr_vendprodcode";
+            this.pr_vendprodcode.HeaderText = "MPN";
+            this.pr_vendprodcode.Name = "pr_vendprodcode";
+            this.pr_vendprodcode.ReadOnly = true;
+            this.pr_vendprodcode.Visible = false;
+            this.pr_vendprodcode.Width = 48;
             // 
-            // label16
+            // pib_brand
             // 
-            this.label16.AutoSize = true;
-            this.label16.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label16.Location = new System.Drawing.Point(68, 166);
-            this.label16.Name = "label16";
-            this.label16.Size = new System.Drawing.Size(13, 17);
-            this.label16.TabIndex = 87;
-            this.label16.Text = "-";
+            this.pib_brand.DataPropertyName = "pib_brand";
+            this.pib_brand.HeaderText = "品牌";
+            this.pib_brand.Name = "pib_brand";
+            this.pib_brand.ReadOnly = true;
+            this.pib_brand.Width = 54;
             // 
-            // SingleLabelPrinter
-            // 
-            this.SingleLabelPrinter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SingleLabelPrinter.Location = new System.Drawing.Point(6, 81);
-            this.SingleLabelPrinter.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
-            this.SingleLabelPrinter.Name = "SingleLabelPrinter";
-            this.SingleLabelPrinter.Size = new System.Drawing.Size(169, 25);
-            this.SingleLabelPrinter.TabIndex = 40;
-            this.SingleLabelPrinter.UserOnSelectIndexChange += new UAS_LabelMachine.CustomControl.PrinterCombox.OnSelectIndexChange(this.LabelPrinter_UserOnSelectIndexChange);
+            // sd_brand
             // 
-            // SingleBoxEnd
+            this.sd_brand.DataPropertyName = "sd_brand";
+            this.sd_brand.HeaderText = "出货品牌";
+            this.sd_brand.Name = "sd_brand";
+            this.sd_brand.Width = 78;
             // 
-            this.SingleBoxEnd.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.SingleBoxEnd.ID = null;
-            this.SingleBoxEnd.Location = new System.Drawing.Point(85, 162);
-            this.SingleBoxEnd.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.SingleBoxEnd.Name = "SingleBoxEnd";
-            this.SingleBoxEnd.Size = new System.Drawing.Size(50, 23);
-            this.SingleBoxEnd.Str = null;
-            this.SingleBoxEnd.Str1 = null;
-            this.SingleBoxEnd.Str2 = null;
-            this.SingleBoxEnd.TabIndex = 86;
+            // pib_madein
             // 
-            // SingleBoxBegin
+            this.pib_madein.DataPropertyName = "pib_madein";
+            this.pib_madein.HeaderText = "产地";
+            this.pib_madein.Name = "pib_madein";
+            this.pib_madein.Visible = false;
+            this.pib_madein.Width = 54;
             // 
-            this.SingleBoxBegin.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.SingleBoxBegin.ID = null;
-            this.SingleBoxBegin.Location = new System.Drawing.Point(12, 162);
-            this.SingleBoxBegin.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.SingleBoxBegin.Name = "SingleBoxBegin";
-            this.SingleBoxBegin.Size = new System.Drawing.Size(50, 23);
-            this.SingleBoxBegin.Str = null;
-            this.SingleBoxBegin.Str1 = null;
-            this.SingleBoxBegin.Str2 = null;
-            this.SingleBoxBegin.TabIndex = 85;
+            // pr_orispeccode
             // 
-            // SingleLabelPrint
+            this.pr_orispeccode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
+            this.pr_orispeccode.DataPropertyName = "pr_orispeccode";
+            this.pr_orispeccode.HeaderText = "原厂型号";
+            this.pr_orispeccode.Name = "pr_orispeccode";
+            this.pr_orispeccode.Width = 78;
             // 
-            this.SingleLabelPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
-            this.SingleLabelPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SingleLabelPrint.Location = new System.Drawing.Point(186, 112);
-            this.SingleLabelPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.SingleLabelPrint.Name = "SingleLabelPrint";
-            this.SingleLabelPrint.Size = new System.Drawing.Size(66, 26);
-            this.SingleLabelPrint.TabIndex = 36;
-            this.SingleLabelPrint.Text = "打印盘标";
-            this.SingleLabelPrint.UseVisualStyleBackColor = true;
-            this.SingleLabelPrint.Click += new System.EventHandler(this.SingleLabelPrint_Click);
+            // pr_barcode
             // 
-            // SingleLabelAutoPrint
+            this.pr_barcode.DataPropertyName = "pr_barcode";
+            this.pr_barcode.HeaderText = "型号条码";
+            this.pr_barcode.Name = "pr_barcode";
+            this.pr_barcode.Width = 78;
             // 
-            this.SingleLabelAutoPrint.AutoSize = true;
-            this.SingleLabelAutoPrint.Checked = true;
-            this.SingleLabelAutoPrint.CheckState = System.Windows.Forms.CheckState.Checked;
-            this.SingleLabelAutoPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SingleLabelAutoPrint.Location = new System.Drawing.Point(12, 114);
-            this.SingleLabelAutoPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.SingleLabelAutoPrint.Name = "SingleLabelAutoPrint";
-            this.SingleLabelAutoPrint.Size = new System.Drawing.Size(75, 21);
-            this.SingleLabelAutoPrint.TabIndex = 30;
-            this.SingleLabelAutoPrint.Text = "自动打印";
-            this.SingleLabelAutoPrint.UseVisualStyleBackColor = true;
+            // pr_zxbzs
             // 
-            // SingleLabelCombox
+            this.pr_zxbzs.DataPropertyName = "pr_zxbzs";
+            this.pr_zxbzs.HeaderText = "最小包装数";
+            this.pr_zxbzs.Name = "pr_zxbzs";
+            this.pr_zxbzs.Visible = false;
+            this.pr_zxbzs.Width = 90;
             // 
-            this.SingleLabelCombox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.SingleLabelCombox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SingleLabelCombox.FormattingEnabled = true;
-            this.SingleLabelCombox.Location = new System.Drawing.Point(7, 49);
-            this.SingleLabelCombox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.SingleLabelCombox.Name = "SingleLabelCombox";
-            this.SingleLabelCombox.Size = new System.Drawing.Size(168, 25);
-            this.SingleLabelCombox.TabIndex = 0;
-            this.SingleLabelCombox.SelectedIndexChanged += new System.EventHandler(this.SingleLabelCombox_SelectedIndexChanged);
+            // pr_unit
             // 
-            // MidLabel
+            this.pr_unit.DataPropertyName = "pr_unit";
+            this.pr_unit.HeaderText = "单位";
+            this.pr_unit.Name = "pr_unit";
+            this.pr_unit.Width = 54;
             // 
-            this.MidLabel.Controls.Add(this.MidDocRefresh);
-            this.MidLabel.Controls.Add(this.label26);
-            this.MidLabel.Controls.Add(this.groupBoxWithBorder5);
-            this.MidLabel.Controls.Add(this.label2);
-            this.MidLabel.Controls.Add(this.label1);
-            this.MidLabel.Controls.Add(this.LeastPrintNum);
-            this.MidLabel.Controls.Add(this.OnlyPrint);
-            this.MidLabel.Controls.Add(this.groupBoxWithBorder2);
-            this.MidLabel.Controls.Add(this.label18);
-            this.MidLabel.Controls.Add(this.MidLabelNum);
-            this.MidLabel.Controls.Add(this.MidBoxEnd);
-            this.MidLabel.Controls.Add(this.label12);
-            this.MidLabel.Controls.Add(this.label5);
-            this.MidLabel.Controls.Add(this.MidBoxBegin);
-            this.MidLabel.Controls.Add(this.label4);
-            this.MidLabel.Controls.Add(this.MidLabelPrinter);
-            this.MidLabel.Controls.Add(this.label15);
-            this.MidLabel.Controls.Add(this.MidBoxCapacity);
-            this.MidLabel.Controls.Add(this.MidLabelPrint);
-            this.MidLabel.Controls.Add(this.MidLabelAutoPrint);
-            this.MidLabel.Controls.Add(this.MidLabelCombox);
-            this.MidLabel.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.MidLabel.Location = new System.Drawing.Point(823, 6);
-            this.MidLabel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidLabel.Name = "MidLabel";
-            this.MidLabel.Padding = new System.Windows.Forms.Padding(2);
-            this.MidLabel.Size = new System.Drawing.Size(279, 269);
-            this.MidLabel.TabIndex = 78;
-            this.MidLabel.TabStop = false;
-            this.MidLabel.Text = "中盒标签";
+            // pib_lotno
             // 
-            // MidDocRefresh
+            this.pib_lotno.DataPropertyName = "pib_lotno";
+            this.pib_lotno.HeaderText = "LotNo";
+            this.pib_lotno.Name = "pib_lotno";
+            this.pib_lotno.Width = 60;
             // 
-            this.MidDocRefresh.AutoSize = true;
-            this.MidDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.MidDocRefresh.Location = new System.Drawing.Point(70, 28);
-            this.MidDocRefresh.Name = "MidDocRefresh";
-            this.MidDocRefresh.Size = new System.Drawing.Size(37, 20);
-            this.MidDocRefresh.TabIndex = 120;
-            this.MidDocRefresh.TabStop = true;
-            this.MidDocRefresh.Text = "刷新";
+            // pib_datecode
             // 
-            // label26
+            this.pib_datecode.DataPropertyName = "pib_datecode";
+            this.pib_datecode.HeaderText = "DateCode";
+            this.pib_datecode.Name = "pib_datecode";
+            this.pib_datecode.Width = 78;
             // 
-            this.label26.AutoSize = true;
-            this.label26.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.label26.Location = new System.Drawing.Point(12, 28);
-            this.label26.Name = "label26";
-            this.label26.Size = new System.Drawing.Size(55, 20);
-            this.label26.TabIndex = 116;
-            this.label26.Text = "格式(T)";
+            // pib_year
             // 
-            // groupBoxWithBorder5
+            this.pib_year.DataPropertyName = "pib_year";
+            this.pib_year.HeaderText = "年";
+            this.pib_year.Name = "pib_year";
+            this.pib_year.Width = 42;
             // 
-            this.groupBoxWithBorder5.Controls.Add(this.Expression);
-            this.groupBoxWithBorder5.Controls.Add(this.Equal);
-            this.groupBoxWithBorder5.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.groupBoxWithBorder5.Location = new System.Drawing.Point(9, 198);
-            this.groupBoxWithBorder5.Name = "groupBoxWithBorder5";
-            this.groupBoxWithBorder5.Size = new System.Drawing.Size(158, 64);
-            this.groupBoxWithBorder5.TabIndex = 95;
-            this.groupBoxWithBorder5.TabStop = false;
-            this.groupBoxWithBorder5.Text = "客户料号匹配模式";
+            // pib_month
             // 
-            // Expression
+            this.pib_month.DataPropertyName = "pib_month";
+            this.pib_month.HeaderText = "月";
+            this.pib_month.Name = "pib_month";
+            this.pib_month.Width = 42;
             // 
-            this.Expression.AutoSize = true;
-            this.Expression.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.Expression.Location = new System.Drawing.Point(86, 38);
-            this.Expression.Name = "Expression";
-            this.Expression.Size = new System.Drawing.Size(62, 21);
-            this.Expression.TabIndex = 1;
-            this.Expression.TabStop = true;
-            this.Expression.Text = "表达式";
-            this.Expression.UseVisualStyleBackColor = true;
+            // pib_day
             // 
-            // Equal
+            this.pib_day.DataPropertyName = "pib_day";
+            this.pib_day.HeaderText = "日";
+            this.pib_day.Name = "pib_day";
+            this.pib_day.Width = 42;
             // 
-            this.Equal.AutoSize = true;
-            this.Equal.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.Equal.Location = new System.Drawing.Point(20, 38);
-            this.Equal.Name = "Equal";
-            this.Equal.Size = new System.Drawing.Size(50, 21);
-            this.Equal.TabIndex = 0;
-            this.Equal.TabStop = true;
-            this.Equal.Text = "相等";
-            this.Equal.UseVisualStyleBackColor = true;
+            // pib_ifpick
             // 
-            // label2
+            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.label2.AutoSize = true;
-            this.label2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label2.Location = new System.Drawing.Point(170, 102);
-            this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(32, 17);
-            this.label2.TabIndex = 94;
-            this.label2.Text = "至少";
+            // pib_ifprint
             // 
-            // label1
+            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.label1.AutoSize = true;
-            this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label1.Location = new System.Drawing.Point(252, 102);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(20, 17);
-            this.label1.TabIndex = 93;
-            this.label1.Text = "盘";
+            // pib_ifrecheck
             // 
-            // LeastPrintNum
+            this.pib_ifrecheck.DataPropertyName = "pib_ifrecheck";
+            this.pib_ifrecheck.HeaderText = "已复核";
+            this.pib_ifrecheck.Name = "pib_ifrecheck";
+            this.pib_ifrecheck.Width = 47;
             // 
-            this.LeastPrintNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.LeastPrintNum.Location = new System.Drawing.Point(201, 96);
-            this.LeastPrintNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.LeastPrintNum.Name = "LeastPrintNum";
-            this.LeastPrintNum.Size = new System.Drawing.Size(44, 23);
-            this.LeastPrintNum.TabIndex = 92;
+            // pib_datecode1
             // 
-            // OnlyPrint
+            this.pib_datecode1.DataPropertyName = "pib_datecode1";
+            this.pib_datecode1.HeaderText = "DateCode1";
+            this.pib_datecode1.Name = "pib_datecode1";
+            this.pib_datecode1.Visible = false;
+            this.pib_datecode1.Width = 84;
             // 
-            this.OnlyPrint.AutoSize = true;
-            this.OnlyPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OnlyPrint.Location = new System.Drawing.Point(174, 74);
-            this.OnlyPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.OnlyPrint.Name = "OnlyPrint";
-            this.OnlyPrint.Size = new System.Drawing.Size(63, 21);
-            this.OnlyPrint.TabIndex = 91;
-            this.OnlyPrint.Text = "仅打印";
-            this.OnlyPrint.UseVisualStyleBackColor = true;
+            // pib_qty
             // 
-            // groupBoxWithBorder2
+            this.pib_qty.DataPropertyName = "pib_qty";
+            this.pib_qty.HeaderText = "数量";
+            this.pib_qty.Name = "pib_qty";
+            this.pib_qty.ReadOnly = true;
+            this.pib_qty.Width = 54;
             // 
-            this.groupBoxWithBorder2.Controls.Add(this.cu_print_middc);
-            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midprod);
-            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midpo);
-            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midspec);
-            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midlotno);
-            this.groupBoxWithBorder2.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.groupBoxWithBorder2.Location = new System.Drawing.Point(172, 121);
-            this.groupBoxWithBorder2.Margin = new System.Windows.Forms.Padding(2);
-            this.groupBoxWithBorder2.Name = "groupBoxWithBorder2";
-            this.groupBoxWithBorder2.Padding = new System.Windows.Forms.Padding(2);
-            this.groupBoxWithBorder2.Size = new System.Drawing.Size(101, 145);
-            this.groupBoxWithBorder2.TabIndex = 81;
-            this.groupBoxWithBorder2.TabStop = false;
-            this.groupBoxWithBorder2.Text = "流水合并条件";
+            // pib_barcode
             // 
-            // cu_print_middc
+            this.pib_barcode.DataPropertyName = "pib_barcode";
+            this.pib_barcode.HeaderText = "唯一条码";
+            this.pib_barcode.Name = "pib_barcode";
+            this.pib_barcode.ReadOnly = true;
+            this.pib_barcode.Width = 78;
             // 
-            this.cu_print_middc.AutoSize = true;
-            this.cu_print_middc.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_middc.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_middc.Location = new System.Drawing.Point(16, 118);
-            this.cu_print_middc.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_middc.Name = "cu_print_middc";
-            this.cu_print_middc.Size = new System.Drawing.Size(68, 21);
-            this.cu_print_middc.TabIndex = 97;
-            this.cu_print_middc.Text = "合并DC";
-            this.cu_print_middc.UseVisualStyleBackColor = true;
+            // pib_custbarcode
             // 
-            // cu_print_midprod
+            this.pib_custbarcode.DataPropertyName = "pib_custbarcode";
+            this.pib_custbarcode.HeaderText = "唯一条码";
+            this.pib_custbarcode.Name = "pib_custbarcode";
+            this.pib_custbarcode.ReadOnly = true;
+            this.pib_custbarcode.Visible = false;
+            this.pib_custbarcode.Width = 78;
             // 
-            this.cu_print_midprod.AutoSize = true;
-            this.cu_print_midprod.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_midprod.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_midprod.Location = new System.Drawing.Point(16, 96);
-            this.cu_print_midprod.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_midprod.Name = "cu_print_midprod";
-            this.cu_print_midprod.Size = new System.Drawing.Size(75, 21);
-            this.cu_print_midprod.TabIndex = 92;
-            this.cu_print_midprod.Text = "客户料号";
-            this.cu_print_midprod.UseVisualStyleBackColor = true;
+            // pib_custmidboxcode
             // 
-            // cu_print_midpo
+            this.pib_custmidboxcode.DataPropertyName = "pib_custmidboxcode";
+            this.pib_custmidboxcode.HeaderText = "中盒条码";
+            this.pib_custmidboxcode.Name = "pib_custmidboxcode";
+            this.pib_custmidboxcode.Visible = false;
+            this.pib_custmidboxcode.Width = 78;
             // 
-            this.cu_print_midpo.AutoSize = true;
-            this.cu_print_midpo.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_midpo.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_midpo.Location = new System.Drawing.Point(16, 72);
-            this.cu_print_midpo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_midpo.Name = "cu_print_midpo";
-            this.cu_print_midpo.Size = new System.Drawing.Size(75, 21);
-            this.cu_print_midpo.TabIndex = 93;
-            this.cu_print_midpo.Text = "客户合同";
-            this.cu_print_midpo.UseVisualStyleBackColor = true;
+            // pib_custoutboxcode
             // 
-            // cu_print_midspec
+            this.pib_custoutboxcode.DataPropertyName = "pib_custoutboxcode";
+            this.pib_custoutboxcode.HeaderText = "外箱条码";
+            this.pib_custoutboxcode.Name = "pib_custoutboxcode";
+            this.pib_custoutboxcode.Visible = false;
+            this.pib_custoutboxcode.Width = 78;
             // 
-            this.cu_print_midspec.AutoSize = true;
-            this.cu_print_midspec.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_midspec.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_midspec.Location = new System.Drawing.Point(16, 48);
-            this.cu_print_midspec.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_midspec.Name = "cu_print_midspec";
-            this.cu_print_midspec.Size = new System.Drawing.Size(75, 21);
-            this.cu_print_midspec.TabIndex = 94;
-            this.cu_print_midspec.Text = "出库型号";
-            this.cu_print_midspec.UseVisualStyleBackColor = true;
+            // pd_pocode
             // 
-            // cu_print_midlotno
+            this.pd_pocode.DataPropertyName = "pd_pocode";
+            this.pd_pocode.HeaderText = "客户PO";
+            this.pd_pocode.Name = "pd_pocode";
+            this.pd_pocode.ReadOnly = true;
+            this.pd_pocode.Width = 66;
             // 
-            this.cu_print_midlotno.AutoSize = true;
-            this.cu_print_midlotno.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_midlotno.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_midlotno.Location = new System.Drawing.Point(16, 24);
-            this.cu_print_midlotno.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_midlotno.Name = "cu_print_midlotno";
-            this.cu_print_midlotno.Size = new System.Drawing.Size(63, 21);
-            this.cu_print_midlotno.TabIndex = 95;
-            this.cu_print_midlotno.Text = "LotNo";
-            this.cu_print_midlotno.UseVisualStyleBackColor = true;
+            // pd_custprodcode
             // 
-            // label18
+            this.pd_custprodcode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
+            this.pd_custprodcode.DataPropertyName = "pd_custprodcode";
+            this.pd_custprodcode.HeaderText = "客户料号";
+            this.pd_custprodcode.Name = "pd_custprodcode";
+            this.pd_custprodcode.ReadOnly = true;
+            this.pd_custprodcode.Width = 78;
             // 
-            this.label18.AutoSize = true;
-            this.label18.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label18.Location = new System.Drawing.Point(66, 168);
-            this.label18.Name = "label18";
-            this.label18.Size = new System.Drawing.Size(13, 17);
-            this.label18.TabIndex = 90;
-            this.label18.Text = "-";
+            // pd_custprodspec
             // 
-            // MidLabelNum
+            this.pd_custprodspec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
+            this.pd_custprodspec.DataPropertyName = "pd_custprodspec";
+            this.pd_custprodspec.HeaderText = "客户型号";
+            this.pd_custprodspec.Name = "pd_custprodspec";
+            this.pd_custprodspec.ReadOnly = true;
+            this.pd_custprodspec.Width = 78;
             // 
-            this.MidLabelNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.MidLabelNum.ID = null;
-            this.MidLabelNum.Location = new System.Drawing.Point(201, 44);
-            this.MidLabelNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidLabelNum.Name = "MidLabelNum";
-            this.MidLabelNum.Size = new System.Drawing.Size(44, 23);
-            this.MidLabelNum.Str = null;
-            this.MidLabelNum.Str1 = null;
-            this.MidLabelNum.Str2 = null;
-            this.MidLabelNum.TabIndex = 56;
+            // pr_spec
             // 
-            // MidBoxEnd
+            this.pr_spec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
+            this.pr_spec.DataPropertyName = "pr_spec";
+            this.pr_spec.HeaderText = "规格";
+            this.pr_spec.Name = "pr_spec";
+            this.pr_spec.Width = 54;
             // 
-            this.MidBoxEnd.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.MidBoxEnd.ID = null;
-            this.MidBoxEnd.Location = new System.Drawing.Point(83, 163);
-            this.MidBoxEnd.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidBoxEnd.Name = "MidBoxEnd";
-            this.MidBoxEnd.Size = new System.Drawing.Size(50, 23);
-            this.MidBoxEnd.Str = null;
-            this.MidBoxEnd.Str1 = null;
-            this.MidBoxEnd.Str2 = null;
-            this.MidBoxEnd.TabIndex = 89;
+            // pib_outboxcode1
             // 
-            // label12
+            this.pib_outboxcode1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
+            this.pib_outboxcode1.DataPropertyName = "pib_outboxcode1";
+            this.pib_outboxcode1.HeaderText = "中盒号";
+            this.pib_outboxcode1.Name = "pib_outboxcode1";
+            this.pib_outboxcode1.Width = 66;
             // 
-            this.label12.AutoSize = true;
-            this.label12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label12.Location = new System.Drawing.Point(10, 144);
-            this.label12.Name = "label12";
-            this.label12.Size = new System.Drawing.Size(56, 17);
-            this.label12.TabIndex = 77;
-            this.label12.Text = "中盒范围";
+            // pib_outboxcode2
             // 
-            // label5
+            this.pib_outboxcode2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
+            this.pib_outboxcode2.DataPropertyName = "pib_outboxcode2";
+            this.pib_outboxcode2.HeaderText = "外箱号";
+            this.pib_outboxcode2.Name = "pib_outboxcode2";
+            this.pib_outboxcode2.Width = 66;
             // 
-            this.label5.AutoSize = true;
-            this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label5.Location = new System.Drawing.Point(170, 50);
-            this.label5.Name = "label5";
-            this.label5.Size = new System.Drawing.Size(32, 17);
-            this.label5.TabIndex = 50;
-            this.label5.Text = "盒号";
+            // pi_inoutno
             // 
-            // MidBoxBegin
+            this.pi_inoutno.Condition = null;
+            this.pi_inoutno.Field = null;
+            this.pi_inoutno.Location = new System.Drawing.Point(76, 10);
+            this.pi_inoutno.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.pi_inoutno.Name = "pi_inoutno";
+            this.pi_inoutno.Size = new System.Drawing.Size(150, 21);
+            this.pi_inoutno.TabIndex = 2;
+            this.pi_inoutno.TableName = null;
+            this.pi_inoutno.Value = null;
+            this.pi_inoutno.ValueField = null;
+            this.pi_inoutno.UserKeyDown += new UAS_LabelMachine.CustomControl.BlurSearch.OnKeyDown(this.pi_inoutno_KeyDown);
             // 
-            this.MidBoxBegin.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.MidBoxBegin.ID = null;
-            this.MidBoxBegin.Location = new System.Drawing.Point(10, 163);
-            this.MidBoxBegin.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidBoxBegin.Name = "MidBoxBegin";
-            this.MidBoxBegin.Size = new System.Drawing.Size(50, 23);
-            this.MidBoxBegin.Str = null;
-            this.MidBoxBegin.Str1 = null;
-            this.MidBoxBegin.Str2 = null;
-            this.MidBoxBegin.TabIndex = 88;
+            // SingleLabel
             // 
-            // label4
+            this.SingleLabel.Controls.Add(this.SingleDocRefresh);
+            this.SingleLabel.Controls.Add(this.label17);
+            this.SingleLabel.Controls.Add(this.groupBoxWithBorder4);
+            this.SingleLabel.Controls.Add(this.label7);
+            this.SingleLabel.Controls.Add(this.label16);
+            this.SingleLabel.Controls.Add(this.SingleLabelPrinter);
+            this.SingleLabel.Controls.Add(this.SingleBoxEnd);
+            this.SingleLabel.Controls.Add(this.SingleBoxBegin);
+            this.SingleLabel.Controls.Add(this.SingleLabelPrint);
+            this.SingleLabel.Controls.Add(this.SingleLabelAutoPrint);
+            this.SingleLabel.Controls.Add(this.SingleLabelCombox);
+            this.SingleLabel.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.SingleLabel.Location = new System.Drawing.Point(638, 6);
+            this.SingleLabel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.SingleLabel.Name = "SingleLabel";
+            this.SingleLabel.Padding = new System.Windows.Forms.Padding(2);
+            this.SingleLabel.Size = new System.Drawing.Size(180, 269);
+            this.SingleLabel.TabIndex = 77;
+            this.SingleLabel.TabStop = false;
+            this.SingleLabel.Text = "单盘标签";
             // 
-            this.label4.AutoSize = true;
-            this.label4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label4.Location = new System.Drawing.Point(172, 24);
-            this.label4.Name = "label4";
-            this.label4.Size = new System.Drawing.Size(32, 17);
-            this.label4.TabIndex = 49;
-            this.label4.Text = "容量";
+            // SingleDocRefresh
             // 
-            // MidLabelPrinter
+            this.SingleDocRefresh.AutoSize = true;
+            this.SingleDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.SingleDocRefresh.Location = new System.Drawing.Point(70, 26);
+            this.SingleDocRefresh.Name = "SingleDocRefresh";
+            this.SingleDocRefresh.Size = new System.Drawing.Size(37, 20);
+            this.SingleDocRefresh.TabIndex = 118;
+            this.SingleDocRefresh.TabStop = true;
+            this.SingleDocRefresh.Text = "刷新";
+            this.SingleDocRefresh.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.DocRefresh_LinkClicked);
             // 
-            this.MidLabelPrinter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.MidLabelPrinter.Location = new System.Drawing.Point(9, 82);
-            this.MidLabelPrinter.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
-            this.MidLabelPrinter.Name = "MidLabelPrinter";
-            this.MidLabelPrinter.Size = new System.Drawing.Size(150, 25);
-            this.MidLabelPrinter.TabIndex = 41;
-            this.MidLabelPrinter.UserOnSelectIndexChange += new UAS_LabelMachine.CustomControl.PrinterCombox.OnSelectIndexChange(this.LabelPrinter_UserOnSelectIndexChange);
+            // label17
             // 
-            // label15
+            this.label17.AutoSize = true;
+            this.label17.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.label17.Location = new System.Drawing.Point(12, 26);
+            this.label17.Name = "label17";
+            this.label17.Size = new System.Drawing.Size(55, 20);
+            this.label17.TabIndex = 115;
+            this.label17.Text = "格式(T)";
             // 
-            this.label15.AutoSize = true;
-            this.label15.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label15.Location = new System.Drawing.Point(252, 22);
-            this.label15.Name = "label15";
-            this.label15.Size = new System.Drawing.Size(20, 17);
-            this.label15.TabIndex = 40;
-            this.label15.Text = "盘";
+            // groupBoxWithBorder4
             // 
-            // MidBoxCapacity
+            this.groupBoxWithBorder4.Controls.Add(this.label20);
+            this.groupBoxWithBorder4.Controls.Add(this.BackCombo);
+            this.groupBoxWithBorder4.Controls.Add(this.label19);
+            this.groupBoxWithBorder4.Controls.Add(this.FrontCombo);
+            this.groupBoxWithBorder4.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.groupBoxWithBorder4.Location = new System.Drawing.Point(7, 186);
+            this.groupBoxWithBorder4.Name = "groupBoxWithBorder4";
+            this.groupBoxWithBorder4.Size = new System.Drawing.Size(165, 78);
+            this.groupBoxWithBorder4.TabIndex = 41;
+            this.groupBoxWithBorder4.TabStop = false;
+            this.groupBoxWithBorder4.Text = "扫描区域";
             // 
-            this.MidBoxCapacity.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.MidBoxCapacity.Location = new System.Drawing.Point(201, 18);
-            this.MidBoxCapacity.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidBoxCapacity.Name = "MidBoxCapacity";
-            this.MidBoxCapacity.Size = new System.Drawing.Size(44, 23);
-            this.MidBoxCapacity.TabIndex = 30;
-            this.MidBoxCapacity.Leave += new System.EventHandler(this.MidBoxCapacity_Leave);
+            // label20
             // 
-            // MidLabelPrint
+            this.label20.AutoSize = true;
+            this.label20.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.label20.Location = new System.Drawing.Point(8, 48);
+            this.label20.Name = "label20";
+            this.label20.Size = new System.Drawing.Size(37, 20);
+            this.label20.TabIndex = 94;
+            this.label20.Text = "后端";
             // 
-            this.MidLabelPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.MidLabelPrint.Location = new System.Drawing.Point(93, 111);
-            this.MidLabelPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidLabelPrint.Name = "MidLabelPrint";
-            this.MidLabelPrint.Size = new System.Drawing.Size(68, 26);
-            this.MidLabelPrint.TabIndex = 42;
-            this.MidLabelPrint.Text = "打印盒签";
-            this.MidLabelPrint.UseVisualStyleBackColor = true;
-            this.MidLabelPrint.Click += new System.EventHandler(this.MidLabelPrint_Click);
+            // BackCombo
             // 
-            // MidLabelAutoPrint
+            this.BackCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.BackCombo.Font = new System.Drawing.Font("微软雅黑", 8F);
+            this.BackCombo.FormattingEnabled = true;
+            this.BackCombo.Location = new System.Drawing.Point(52, 48);
+            this.BackCombo.Name = "BackCombo";
+            this.BackCombo.Size = new System.Drawing.Size(105, 24);
+            this.BackCombo.TabIndex = 93;
             // 
-            this.MidLabelAutoPrint.AutoSize = true;
-            this.MidLabelAutoPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.MidLabelAutoPrint.Location = new System.Drawing.Point(12, 116);
-            this.MidLabelAutoPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidLabelAutoPrint.Name = "MidLabelAutoPrint";
-            this.MidLabelAutoPrint.Size = new System.Drawing.Size(75, 21);
-            this.MidLabelAutoPrint.TabIndex = 41;
-            this.MidLabelAutoPrint.Text = "自动打印";
-            this.MidLabelAutoPrint.UseVisualStyleBackColor = true;
+            // label19
             // 
-            // MidLabelCombox
+            this.label19.AutoSize = true;
+            this.label19.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.label19.Location = new System.Drawing.Point(8, 24);
+            this.label19.Name = "label19";
+            this.label19.Size = new System.Drawing.Size(37, 20);
+            this.label19.TabIndex = 92;
+            this.label19.Text = "前端";
             // 
-            this.MidLabelCombox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.MidLabelCombox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.MidLabelCombox.FormattingEnabled = true;
-            this.MidLabelCombox.Location = new System.Drawing.Point(10, 50);
-            this.MidLabelCombox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.MidLabelCombox.Name = "MidLabelCombox";
-            this.MidLabelCombox.Size = new System.Drawing.Size(149, 25);
-            this.MidLabelCombox.TabIndex = 40;
-            this.MidLabelCombox.SelectedIndexChanged += new System.EventHandler(this.MidLabelCombox_SelectedIndexChanged);
+            // FrontCombo
             // 
-            // OutBoxLabel
+            this.FrontCombo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.FrontCombo.Font = new System.Drawing.Font("微软雅黑", 8F);
+            this.FrontCombo.FormattingEnabled = true;
+            this.FrontCombo.Location = new System.Drawing.Point(52, 22);
+            this.FrontCombo.Name = "FrontCombo";
+            this.FrontCombo.Size = new System.Drawing.Size(105, 24);
+            this.FrontCombo.TabIndex = 0;
             // 
-            this.OutBoxLabel.Controls.Add(this.primarydata);
-            this.OutBoxLabel.Controls.Add(this.guestlabeldata);
-            this.OutBoxLabel.Controls.Add(this.prodcodeback);
-            this.OutBoxLabel.Controls.Add(this.prodcodefront);
-            this.OutBoxLabel.Controls.Add(this.OutDocRefresh);
-            this.OutBoxLabel.Controls.Add(this.label27);
-            this.OutBoxLabel.Controls.Add(this.label9);
-            this.OutBoxLabel.Controls.Add(this.cu_print_papercount);
-            this.OutBoxLabel.Controls.Add(this.groupBoxWithBorder3);
-            this.OutBoxLabel.Controls.Add(this.LogingOut);
-            this.OutBoxLabel.Controls.Add(this.OutBoxNum);
-            this.OutBoxLabel.Controls.Add(this.label10);
-            this.OutBoxLabel.Controls.Add(this.label6);
-            this.OutBoxLabel.Controls.Add(this.OutBoxPrinter);
-            this.OutBoxLabel.Controls.Add(this.OutBoxCapacity);
-            this.OutBoxLabel.Controls.Add(this.OutBoxLabelPrint);
-            this.OutBoxLabel.Controls.Add(this.OutBoxLabelAutoPrint);
-            this.OutBoxLabel.Controls.Add(this.OutBoxCombox);
-            this.OutBoxLabel.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OutBoxLabel.Location = new System.Drawing.Point(1106, 6);
-            this.OutBoxLabel.Margin = new System.Windows.Forms.Padding(2);
-            this.OutBoxLabel.Name = "OutBoxLabel";
-            this.OutBoxLabel.Padding = new System.Windows.Forms.Padding(2);
-            this.OutBoxLabel.Size = new System.Drawing.Size(278, 269);
-            this.OutBoxLabel.TabIndex = 79;
-            this.OutBoxLabel.TabStop = false;
-            this.OutBoxLabel.Text = "外箱标签";
+            // label7
             // 
-            // primarydata
+            this.label7.AutoSize = true;
+            this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label7.Location = new System.Drawing.Point(10, 142);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(56, 17);
+            this.label7.TabIndex = 76;
+            this.label7.Text = "单盘范围";
             // 
-            this.primarydata.AutoSize = true;
-            this.primarydata.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.primarydata.Location = new System.Drawing.Point(22, 242);
-            this.primarydata.Name = "primarydata";
-            this.primarydata.Size = new System.Drawing.Size(0, 20);
-            this.primarydata.TabIndex = 122;
-            this.primarydata.Visible = false;
+            // label16
             // 
-            // guestlabeldata
+            this.label16.AutoSize = true;
+            this.label16.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label16.Location = new System.Drawing.Point(68, 166);
+            this.label16.Name = "label16";
+            this.label16.Size = new System.Drawing.Size(13, 17);
+            this.label16.TabIndex = 87;
+            this.label16.Text = "-";
             // 
-            this.guestlabeldata.AutoSize = true;
-            this.guestlabeldata.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.guestlabeldata.Location = new System.Drawing.Point(22, 216);
-            this.guestlabeldata.Name = "guestlabeldata";
-            this.guestlabeldata.Size = new System.Drawing.Size(0, 20);
-            this.guestlabeldata.TabIndex = 121;
-            this.guestlabeldata.Visible = false;
+            // SingleLabelPrinter
             // 
-            // prodcodeback
+            this.SingleLabelPrinter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.SingleLabelPrinter.Location = new System.Drawing.Point(6, 81);
+            this.SingleLabelPrinter.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
+            this.SingleLabelPrinter.Name = "SingleLabelPrinter";
+            this.SingleLabelPrinter.Size = new System.Drawing.Size(169, 25);
+            this.SingleLabelPrinter.TabIndex = 40;
+            this.SingleLabelPrinter.UserOnSelectIndexChange += new UAS_LabelMachine.CustomControl.PrinterCombox.OnSelectIndexChange(this.LabelPrinter_UserOnSelectIndexChange);
             // 
-            this.prodcodeback.AutoSize = true;
-            this.prodcodeback.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.prodcodeback.Location = new System.Drawing.Point(22, 192);
-            this.prodcodeback.Name = "prodcodeback";
-            this.prodcodeback.Size = new System.Drawing.Size(0, 20);
-            this.prodcodeback.TabIndex = 120;
-            this.prodcodeback.Visible = false;
+            // SingleBoxEnd
             // 
-            // prodcodefront
+            this.SingleBoxEnd.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.SingleBoxEnd.ID = null;
+            this.SingleBoxEnd.Location = new System.Drawing.Point(85, 162);
+            this.SingleBoxEnd.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.SingleBoxEnd.Name = "SingleBoxEnd";
+            this.SingleBoxEnd.Size = new System.Drawing.Size(50, 23);
+            this.SingleBoxEnd.Str = null;
+            this.SingleBoxEnd.Str1 = null;
+            this.SingleBoxEnd.Str2 = null;
+            this.SingleBoxEnd.TabIndex = 86;
             // 
-            this.prodcodefront.AutoSize = true;
-            this.prodcodefront.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.prodcodefront.Location = new System.Drawing.Point(22, 164);
-            this.prodcodefront.Name = "prodcodefront";
-            this.prodcodefront.Size = new System.Drawing.Size(0, 20);
-            this.prodcodefront.TabIndex = 113;
-            this.prodcodefront.Visible = false;
+            // SingleBoxBegin
             // 
-            // OutDocRefresh
+            this.SingleBoxBegin.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.SingleBoxBegin.ID = null;
+            this.SingleBoxBegin.Location = new System.Drawing.Point(12, 162);
+            this.SingleBoxBegin.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.SingleBoxBegin.Name = "SingleBoxBegin";
+            this.SingleBoxBegin.Size = new System.Drawing.Size(50, 23);
+            this.SingleBoxBegin.Str = null;
+            this.SingleBoxBegin.Str1 = null;
+            this.SingleBoxBegin.Str2 = null;
+            this.SingleBoxBegin.TabIndex = 85;
             // 
-            this.OutDocRefresh.AutoSize = true;
-            this.OutDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.OutDocRefresh.Location = new System.Drawing.Point(66, 28);
-            this.OutDocRefresh.Name = "OutDocRefresh";
-            this.OutDocRefresh.Size = new System.Drawing.Size(37, 20);
-            this.OutDocRefresh.TabIndex = 119;
-            this.OutDocRefresh.TabStop = true;
-            this.OutDocRefresh.Text = "刷新";
+            // SingleLabelPrint
             // 
-            // label27
+            this.SingleLabelPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.SingleLabelPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.SingleLabelPrint.Location = new System.Drawing.Point(186, 112);
+            this.SingleLabelPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.SingleLabelPrint.Name = "SingleLabelPrint";
+            this.SingleLabelPrint.Size = new System.Drawing.Size(66, 26);
+            this.SingleLabelPrint.TabIndex = 36;
+            this.SingleLabelPrint.Text = "打印盘标";
+            this.SingleLabelPrint.UseVisualStyleBackColor = true;
+            this.SingleLabelPrint.Click += new System.EventHandler(this.SingleLabelPrint_Click);
             // 
-            this.label27.AutoSize = true;
-            this.label27.Font = new System.Drawing.Font("微软雅黑", 10F);
-            this.label27.Location = new System.Drawing.Point(8, 28);
-            this.label27.Name = "label27";
-            this.label27.Size = new System.Drawing.Size(55, 20);
-            this.label27.TabIndex = 117;
-            this.label27.Text = "格式(T)";
+            // SingleLabelAutoPrint
             // 
-            // label9
+            this.SingleLabelAutoPrint.AutoSize = true;
+            this.SingleLabelAutoPrint.Checked = true;
+            this.SingleLabelAutoPrint.CheckState = System.Windows.Forms.CheckState.Checked;
+            this.SingleLabelAutoPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.SingleLabelAutoPrint.Location = new System.Drawing.Point(12, 114);
+            this.SingleLabelAutoPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.SingleLabelAutoPrint.Name = "SingleLabelAutoPrint";
+            this.SingleLabelAutoPrint.Size = new System.Drawing.Size(75, 21);
+            this.SingleLabelAutoPrint.TabIndex = 30;
+            this.SingleLabelAutoPrint.Text = "自动打印";
+            this.SingleLabelAutoPrint.UseVisualStyleBackColor = true;
             // 
-            this.label9.AutoSize = true;
-            this.label9.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label9.Location = new System.Drawing.Point(172, 44);
-            this.label9.Name = "label9";
-            this.label9.Size = new System.Drawing.Size(32, 17);
-            this.label9.TabIndex = 98;
-            this.label9.Text = "纸型";
+            // SingleLabelCombox
             // 
-            // cu_print_papercount
+            this.SingleLabelCombox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.SingleLabelCombox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.SingleLabelCombox.FormattingEnabled = true;
+            this.SingleLabelCombox.Location = new System.Drawing.Point(7, 49);
+            this.SingleLabelCombox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.SingleLabelCombox.Name = "SingleLabelCombox";
+            this.SingleLabelCombox.Size = new System.Drawing.Size(168, 25);
+            this.SingleLabelCombox.TabIndex = 0;
+            this.SingleLabelCombox.SelectedIndexChanged += new System.EventHandler(this.SingleLabelCombox_SelectedIndexChanged);
             // 
-            this.cu_print_papercount.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.cu_print_papercount.Location = new System.Drawing.Point(211, 39);
-            this.cu_print_papercount.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_papercount.Name = "cu_print_papercount";
-            this.cu_print_papercount.Size = new System.Drawing.Size(38, 23);
-            this.cu_print_papercount.TabIndex = 97;
+            // MidLabel
             // 
-            // groupBoxWithBorder3
+            this.MidLabel.Controls.Add(this.MidDocRefresh);
+            this.MidLabel.Controls.Add(this.label26);
+            this.MidLabel.Controls.Add(this.groupBoxWithBorder5);
+            this.MidLabel.Controls.Add(this.label2);
+            this.MidLabel.Controls.Add(this.label1);
+            this.MidLabel.Controls.Add(this.LeastPrintNum);
+            this.MidLabel.Controls.Add(this.OnlyPrint);
+            this.MidLabel.Controls.Add(this.groupBoxWithBorder2);
+            this.MidLabel.Controls.Add(this.label18);
+            this.MidLabel.Controls.Add(this.MidLabelNum);
+            this.MidLabel.Controls.Add(this.MidBoxEnd);
+            this.MidLabel.Controls.Add(this.label12);
+            this.MidLabel.Controls.Add(this.label5);
+            this.MidLabel.Controls.Add(this.MidBoxBegin);
+            this.MidLabel.Controls.Add(this.label4);
+            this.MidLabel.Controls.Add(this.MidLabelPrinter);
+            this.MidLabel.Controls.Add(this.label15);
+            this.MidLabel.Controls.Add(this.MidBoxCapacity);
+            this.MidLabel.Controls.Add(this.MidLabelPrint);
+            this.MidLabel.Controls.Add(this.MidLabelAutoPrint);
+            this.MidLabel.Controls.Add(this.MidLabelCombox);
+            this.MidLabel.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.MidLabel.Location = new System.Drawing.Point(823, 6);
+            this.MidLabel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidLabel.Name = "MidLabel";
+            this.MidLabel.Padding = new System.Windows.Forms.Padding(2);
+            this.MidLabel.Size = new System.Drawing.Size(279, 269);
+            this.MidLabel.TabIndex = 78;
+            this.MidLabel.TabStop = false;
+            this.MidLabel.Text = "中盒标签";
             // 
-            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outdc);
-            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outprod);
-            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outpo);
-            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outspec);
-            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outlotno);
-            this.groupBoxWithBorder3.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.groupBoxWithBorder3.Location = new System.Drawing.Point(172, 121);
-            this.groupBoxWithBorder3.Margin = new System.Windows.Forms.Padding(2);
-            this.groupBoxWithBorder3.Name = "groupBoxWithBorder3";
-            this.groupBoxWithBorder3.Padding = new System.Windows.Forms.Padding(2);
-            this.groupBoxWithBorder3.Size = new System.Drawing.Size(101, 145);
-            this.groupBoxWithBorder3.TabIndex = 96;
-            this.groupBoxWithBorder3.TabStop = false;
-            this.groupBoxWithBorder3.Text = "流水合并条件";
+            // MidDocRefresh
             // 
-            // cu_print_outdc
+            this.MidDocRefresh.AutoSize = true;
+            this.MidDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.MidDocRefresh.Location = new System.Drawing.Point(70, 28);
+            this.MidDocRefresh.Name = "MidDocRefresh";
+            this.MidDocRefresh.Size = new System.Drawing.Size(37, 20);
+            this.MidDocRefresh.TabIndex = 120;
+            this.MidDocRefresh.TabStop = true;
+            this.MidDocRefresh.Text = "刷新";
             // 
-            this.cu_print_outdc.AutoSize = true;
-            this.cu_print_outdc.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_outdc.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_outdc.Location = new System.Drawing.Point(16, 118);
-            this.cu_print_outdc.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_outdc.Name = "cu_print_outdc";
-            this.cu_print_outdc.Size = new System.Drawing.Size(68, 21);
-            this.cu_print_outdc.TabIndex = 96;
-            this.cu_print_outdc.Text = "合并DC";
-            this.cu_print_outdc.UseVisualStyleBackColor = true;
+            // label26
             // 
-            // cu_print_outprod
+            this.label26.AutoSize = true;
+            this.label26.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.label26.Location = new System.Drawing.Point(12, 28);
+            this.label26.Name = "label26";
+            this.label26.Size = new System.Drawing.Size(55, 20);
+            this.label26.TabIndex = 116;
+            this.label26.Text = "格式(T)";
             // 
-            this.cu_print_outprod.AutoSize = true;
-            this.cu_print_outprod.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_outprod.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_outprod.Location = new System.Drawing.Point(16, 96);
-            this.cu_print_outprod.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_outprod.Name = "cu_print_outprod";
-            this.cu_print_outprod.Size = new System.Drawing.Size(75, 21);
-            this.cu_print_outprod.TabIndex = 92;
-            this.cu_print_outprod.Text = "客户料号";
-            this.cu_print_outprod.UseVisualStyleBackColor = true;
+            // groupBoxWithBorder5
             // 
-            // cu_print_outpo
+            this.groupBoxWithBorder5.Controls.Add(this.Expression);
+            this.groupBoxWithBorder5.Controls.Add(this.Equal);
+            this.groupBoxWithBorder5.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.groupBoxWithBorder5.Location = new System.Drawing.Point(9, 198);
+            this.groupBoxWithBorder5.Name = "groupBoxWithBorder5";
+            this.groupBoxWithBorder5.Size = new System.Drawing.Size(158, 64);
+            this.groupBoxWithBorder5.TabIndex = 95;
+            this.groupBoxWithBorder5.TabStop = false;
+            this.groupBoxWithBorder5.Text = "客户料号匹配模式";
             // 
-            this.cu_print_outpo.AutoSize = true;
-            this.cu_print_outpo.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_outpo.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_outpo.Location = new System.Drawing.Point(16, 72);
-            this.cu_print_outpo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_outpo.Name = "cu_print_outpo";
-            this.cu_print_outpo.Size = new System.Drawing.Size(75, 21);
-            this.cu_print_outpo.TabIndex = 93;
-            this.cu_print_outpo.Text = "客户合同";
-            this.cu_print_outpo.UseVisualStyleBackColor = true;
+            // Expression
             // 
-            // cu_print_outspec
+            this.Expression.AutoSize = true;
+            this.Expression.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.Expression.Location = new System.Drawing.Point(86, 38);
+            this.Expression.Name = "Expression";
+            this.Expression.Size = new System.Drawing.Size(62, 21);
+            this.Expression.TabIndex = 1;
+            this.Expression.TabStop = true;
+            this.Expression.Text = "表达式";
+            this.Expression.UseVisualStyleBackColor = true;
             // 
-            this.cu_print_outspec.AutoSize = true;
-            this.cu_print_outspec.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_outspec.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_outspec.Location = new System.Drawing.Point(16, 48);
-            this.cu_print_outspec.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_outspec.Name = "cu_print_outspec";
-            this.cu_print_outspec.Size = new System.Drawing.Size(75, 21);
-            this.cu_print_outspec.TabIndex = 94;
-            this.cu_print_outspec.Text = "出库型号";
-            this.cu_print_outspec.UseVisualStyleBackColor = true;
+            // Equal
             // 
-            // cu_print_outlotno
+            this.Equal.AutoSize = true;
+            this.Equal.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.Equal.Location = new System.Drawing.Point(20, 38);
+            this.Equal.Name = "Equal";
+            this.Equal.Size = new System.Drawing.Size(50, 21);
+            this.Equal.TabIndex = 0;
+            this.Equal.TabStop = true;
+            this.Equal.Text = "相等";
+            this.Equal.UseVisualStyleBackColor = true;
             // 
-            this.cu_print_outlotno.AutoSize = true;
-            this.cu_print_outlotno.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.cu_print_outlotno.ForeColor = System.Drawing.Color.Blue;
-            this.cu_print_outlotno.Location = new System.Drawing.Point(16, 24);
-            this.cu_print_outlotno.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.cu_print_outlotno.Name = "cu_print_outlotno";
-            this.cu_print_outlotno.Size = new System.Drawing.Size(63, 21);
-            this.cu_print_outlotno.TabIndex = 95;
-            this.cu_print_outlotno.Text = "LotNo";
-            this.cu_print_outlotno.UseVisualStyleBackColor = true;
+            // label2
             // 
-            // LogingOut
+            this.label2.AutoSize = true;
+            this.label2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label2.Location = new System.Drawing.Point(170, 102);
+            this.label2.Name = "label2";
+            this.label2.Size = new System.Drawing.Size(32, 17);
+            this.label2.TabIndex = 94;
+            this.label2.Text = "至少";
             // 
-            this.LogingOut.AutoSize = true;
-            this.LogingOut.Location = new System.Drawing.Point(234, 14);
-            this.LogingOut.Name = "LogingOut";
-            this.LogingOut.Size = new System.Drawing.Size(42, 21);
-            this.LogingOut.TabIndex = 77;
-            this.LogingOut.TabStop = true;
-            this.LogingOut.Text = "注销";
-            this.LogingOut.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LogingOut_LinkClicked);
+            // label1
             // 
-            // OutBoxNum
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label1.Location = new System.Drawing.Point(252, 102);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(20, 17);
+            this.label1.TabIndex = 93;
+            this.label1.Text = "盘";
             // 
-            this.OutBoxNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OutBoxNum.ID = null;
-            this.OutBoxNum.Location = new System.Drawing.Point(211, 98);
-            this.OutBoxNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.OutBoxNum.Name = "OutBoxNum";
-            this.OutBoxNum.Size = new System.Drawing.Size(38, 23);
-            this.OutBoxNum.Str = null;
-            this.OutBoxNum.Str1 = null;
-            this.OutBoxNum.Str2 = null;
-            this.OutBoxNum.TabIndex = 91;
+            // LeastPrintNum
             // 
-            // label10
+            this.LeastPrintNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.LeastPrintNum.Location = new System.Drawing.Point(201, 96);
+            this.LeastPrintNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.LeastPrintNum.Name = "LeastPrintNum";
+            this.LeastPrintNum.Size = new System.Drawing.Size(44, 23);
+            this.LeastPrintNum.TabIndex = 92;
             // 
-            this.label10.AutoSize = true;
-            this.label10.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label10.Location = new System.Drawing.Point(172, 104);
-            this.label10.Name = "label10";
-            this.label10.Size = new System.Drawing.Size(32, 17);
-            this.label10.TabIndex = 90;
-            this.label10.Text = "箱号";
+            // OnlyPrint
             // 
-            // label6
+            this.OnlyPrint.AutoSize = true;
+            this.OnlyPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OnlyPrint.Location = new System.Drawing.Point(174, 74);
+            this.OnlyPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.OnlyPrint.Name = "OnlyPrint";
+            this.OnlyPrint.Size = new System.Drawing.Size(63, 21);
+            this.OnlyPrint.TabIndex = 91;
+            this.OnlyPrint.Text = "仅打印";
+            this.OnlyPrint.UseVisualStyleBackColor = true;
             // 
-            this.label6.AutoSize = true;
-            this.label6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label6.Location = new System.Drawing.Point(172, 74);
-            this.label6.Name = "label6";
-            this.label6.Size = new System.Drawing.Size(32, 17);
-            this.label6.TabIndex = 87;
-            this.label6.Text = "容量";
+            // groupBoxWithBorder2
             // 
-            // OutBoxPrinter
+            this.groupBoxWithBorder2.Controls.Add(this.cu_print_middc);
+            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midprod);
+            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midpo);
+            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midspec);
+            this.groupBoxWithBorder2.Controls.Add(this.cu_print_midlotno);
+            this.groupBoxWithBorder2.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.groupBoxWithBorder2.Location = new System.Drawing.Point(172, 121);
+            this.groupBoxWithBorder2.Margin = new System.Windows.Forms.Padding(2);
+            this.groupBoxWithBorder2.Name = "groupBoxWithBorder2";
+            this.groupBoxWithBorder2.Padding = new System.Windows.Forms.Padding(2);
+            this.groupBoxWithBorder2.Size = new System.Drawing.Size(101, 145);
+            this.groupBoxWithBorder2.TabIndex = 81;
+            this.groupBoxWithBorder2.TabStop = false;
+            this.groupBoxWithBorder2.Text = "流水合并条件";
             // 
-            this.OutBoxPrinter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OutBoxPrinter.Location = new System.Drawing.Point(8, 82);
-            this.OutBoxPrinter.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
-            this.OutBoxPrinter.Name = "OutBoxPrinter";
-            this.OutBoxPrinter.Size = new System.Drawing.Size(158, 25);
-            this.OutBoxPrinter.TabIndex = 82;
-            this.OutBoxPrinter.UserOnSelectIndexChange += new UAS_LabelMachine.CustomControl.PrinterCombox.OnSelectIndexChange(this.LabelPrinter_UserOnSelectIndexChange);
+            // cu_print_middc
             // 
-            // OutBoxCapacity
+            this.cu_print_middc.AutoSize = true;
+            this.cu_print_middc.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_middc.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_middc.Location = new System.Drawing.Point(16, 118);
+            this.cu_print_middc.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_middc.Name = "cu_print_middc";
+            this.cu_print_middc.Size = new System.Drawing.Size(68, 21);
+            this.cu_print_middc.TabIndex = 97;
+            this.cu_print_middc.Text = "合并DC";
+            this.cu_print_middc.UseVisualStyleBackColor = true;
             // 
-            this.OutBoxCapacity.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OutBoxCapacity.Location = new System.Drawing.Point(211, 68);
-            this.OutBoxCapacity.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.OutBoxCapacity.Name = "OutBoxCapacity";
-            this.OutBoxCapacity.Size = new System.Drawing.Size(38, 23);
-            this.OutBoxCapacity.TabIndex = 84;
-            this.OutBoxCapacity.Value = new decimal(new int[] {
-            1,
-            0,
-            0,
-            0});
-            this.OutBoxCapacity.Leave += new System.EventHandler(this.MidBoxCapacity_Leave);
+            // cu_print_midprod
             // 
-            // OutBoxLabelPrint
+            this.cu_print_midprod.AutoSize = true;
+            this.cu_print_midprod.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_midprod.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_midprod.Location = new System.Drawing.Point(16, 96);
+            this.cu_print_midprod.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_midprod.Name = "cu_print_midprod";
+            this.cu_print_midprod.Size = new System.Drawing.Size(75, 21);
+            this.cu_print_midprod.TabIndex = 92;
+            this.cu_print_midprod.Text = "客户料号";
+            this.cu_print_midprod.UseVisualStyleBackColor = true;
             // 
-            this.OutBoxLabelPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OutBoxLabelPrint.Location = new System.Drawing.Point(90, 111);
-            this.OutBoxLabelPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.OutBoxLabelPrint.Name = "OutBoxLabelPrint";
-            this.OutBoxLabelPrint.Size = new System.Drawing.Size(76, 26);
-            this.OutBoxLabelPrint.TabIndex = 80;
-            this.OutBoxLabelPrint.Text = "打印箱标";
-            this.OutBoxLabelPrint.UseVisualStyleBackColor = true;
-            this.OutBoxLabelPrint.Click += new System.EventHandler(this.OutBoxLabelPrint_Click);
+            // cu_print_midpo
             // 
-            // OutBoxLabelAutoPrint
+            this.cu_print_midpo.AutoSize = true;
+            this.cu_print_midpo.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_midpo.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_midpo.Location = new System.Drawing.Point(16, 72);
+            this.cu_print_midpo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_midpo.Name = "cu_print_midpo";
+            this.cu_print_midpo.Size = new System.Drawing.Size(75, 21);
+            this.cu_print_midpo.TabIndex = 93;
+            this.cu_print_midpo.Text = "客户合同";
+            this.cu_print_midpo.UseVisualStyleBackColor = true;
             // 
-            this.OutBoxLabelAutoPrint.AutoSize = true;
-            this.OutBoxLabelAutoPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OutBoxLabelAutoPrint.Location = new System.Drawing.Point(12, 116);
-            this.OutBoxLabelAutoPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.OutBoxLabelAutoPrint.Name = "OutBoxLabelAutoPrint";
-            this.OutBoxLabelAutoPrint.Size = new System.Drawing.Size(75, 21);
-            this.OutBoxLabelAutoPrint.TabIndex = 79;
-            this.OutBoxLabelAutoPrint.Text = "自动打印";
-            this.OutBoxLabelAutoPrint.UseVisualStyleBackColor = true;
-            this.OutBoxLabelAutoPrint.Visible = false;
+            // cu_print_midspec
             // 
-            // OutBoxCombox
+            this.cu_print_midspec.AutoSize = true;
+            this.cu_print_midspec.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_midspec.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_midspec.Location = new System.Drawing.Point(16, 48);
+            this.cu_print_midspec.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_midspec.Name = "cu_print_midspec";
+            this.cu_print_midspec.Size = new System.Drawing.Size(75, 21);
+            this.cu_print_midspec.TabIndex = 94;
+            this.cu_print_midspec.Text = "出库型号";
+            this.cu_print_midspec.UseVisualStyleBackColor = true;
             // 
-            this.OutBoxCombox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
-            this.OutBoxCombox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.OutBoxCombox.FormattingEnabled = true;
-            this.OutBoxCombox.Location = new System.Drawing.Point(9, 51);
-            this.OutBoxCombox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
-            this.OutBoxCombox.Name = "OutBoxCombox";
-            this.OutBoxCombox.Size = new System.Drawing.Size(157, 25);
-            this.OutBoxCombox.TabIndex = 78;
-            this.OutBoxCombox.SelectedIndexChanged += new System.EventHandler(this.OutBoxCombox_SelectedIndexChanged);
+            // cu_print_midlotno
             // 
-            // BackendCheck
+            this.cu_print_midlotno.AutoSize = true;
+            this.cu_print_midlotno.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_midlotno.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_midlotno.Location = new System.Drawing.Point(16, 24);
+            this.cu_print_midlotno.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_midlotno.Name = "cu_print_midlotno";
+            this.cu_print_midlotno.Size = new System.Drawing.Size(63, 21);
+            this.cu_print_midlotno.TabIndex = 95;
+            this.cu_print_midlotno.Text = "LotNo";
+            this.cu_print_midlotno.UseVisualStyleBackColor = true;
             // 
-            this.BackendCheck.SleepTime = 0;
-            this.BackendCheck.Tag = "BackendCheck";
+            // label18
             // 
-            // FrontendCheck
+            this.label18.AutoSize = true;
+            this.label18.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label18.Location = new System.Drawing.Point(66, 168);
+            this.label18.Name = "label18";
+            this.label18.Size = new System.Drawing.Size(13, 17);
+            this.label18.TabIndex = 90;
+            this.label18.Text = "-";
             // 
-            this.FrontendCheck.SleepTime = 0;
-            this.FrontendCheck.Tag = "FrontendCheck";
+            // MidLabelNum
             // 
-            // PLC1
+            this.MidLabelNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.MidLabelNum.ID = null;
+            this.MidLabelNum.Location = new System.Drawing.Point(201, 44);
+            this.MidLabelNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidLabelNum.Name = "MidLabelNum";
+            this.MidLabelNum.Size = new System.Drawing.Size(44, 23);
+            this.MidLabelNum.Str = null;
+            this.MidLabelNum.Str1 = null;
+            this.MidLabelNum.Str2 = null;
+            this.MidLabelNum.TabIndex = 56;
             // 
-            this.PLC1.SleepTime = 0;
-            this.PLC1.Tag = "PLC1";
+            // MidBoxEnd
             // 
-            // ManBackendCheck
+            this.MidBoxEnd.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.MidBoxEnd.ID = null;
+            this.MidBoxEnd.Location = new System.Drawing.Point(83, 163);
+            this.MidBoxEnd.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidBoxEnd.Name = "MidBoxEnd";
+            this.MidBoxEnd.Size = new System.Drawing.Size(50, 23);
+            this.MidBoxEnd.Str = null;
+            this.MidBoxEnd.Str1 = null;
+            this.MidBoxEnd.Str2 = null;
+            this.MidBoxEnd.TabIndex = 89;
             // 
-            this.ManBackendCheck.SleepTime = 0;
-            this.ManBackendCheck.Tag = "ManBackendCheck";
+            // label12
             // 
-            // Choose
+            this.label12.AutoSize = true;
+            this.label12.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label12.Location = new System.Drawing.Point(10, 144);
+            this.label12.Name = "label12";
+            this.label12.Size = new System.Drawing.Size(56, 17);
+            this.label12.TabIndex = 77;
+            this.label12.Text = "中盒范围";
             // 
-            this.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;
+            // label5
             // 
-            // pib_autoset
+            this.label5.AutoSize = true;
+            this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label5.Location = new System.Drawing.Point(170, 50);
+            this.label5.Name = "label5";
+            this.label5.Size = new System.Drawing.Size(32, 17);
+            this.label5.TabIndex = 50;
+            this.label5.Text = "盒号";
             // 
-            this.pib_autoset.HeaderText = "pib_autoset";
-            this.pib_autoset.Name = "pib_autoset";
-            this.pib_autoset.Visible = false;
-            this.pib_autoset.Width = 96;
+            // MidBoxBegin
             // 
-            // pd_id
+            this.MidBoxBegin.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.MidBoxBegin.ID = null;
+            this.MidBoxBegin.Location = new System.Drawing.Point(10, 163);
+            this.MidBoxBegin.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidBoxBegin.Name = "MidBoxBegin";
+            this.MidBoxBegin.Size = new System.Drawing.Size(50, 23);
+            this.MidBoxBegin.Str = null;
+            this.MidBoxBegin.Str1 = null;
+            this.MidBoxBegin.Str2 = null;
+            this.MidBoxBegin.TabIndex = 88;
             // 
-            this.pd_id.DataPropertyName = "pd_id";
-            this.pd_id.HeaderText = "pd_id";
-            this.pd_id.Name = "pd_id";
-            this.pd_id.Visible = false;
-            this.pd_id.Width = 60;
+            // label4
             // 
-            // pib_id1
+            this.label4.AutoSize = true;
+            this.label4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label4.Location = new System.Drawing.Point(172, 24);
+            this.label4.Name = "label4";
+            this.label4.Size = new System.Drawing.Size(32, 17);
+            this.label4.TabIndex = 49;
+            this.label4.Text = "容量";
             // 
-            this.pib_id1.DataPropertyName = "pib_id";
-            this.pib_id1.HeaderText = "pib_id";
-            this.pib_id1.Name = "pib_id1";
-            this.pib_id1.Visible = false;
-            this.pib_id1.Width = 66;
+            // MidLabelPrinter
             // 
-            // rownum
+            this.MidLabelPrinter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.MidLabelPrinter.Location = new System.Drawing.Point(9, 82);
+            this.MidLabelPrinter.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
+            this.MidLabelPrinter.Name = "MidLabelPrinter";
+            this.MidLabelPrinter.Size = new System.Drawing.Size(150, 25);
+            this.MidLabelPrinter.TabIndex = 41;
+            this.MidLabelPrinter.UserOnSelectIndexChange += new UAS_LabelMachine.CustomControl.PrinterCombox.OnSelectIndexChange(this.LabelPrinter_UserOnSelectIndexChange);
             // 
-            this.rownum.DataPropertyName = "rownum";
-            this.rownum.HeaderText = "行号";
-            this.rownum.Name = "rownum";
-            this.rownum.Width = 54;
+            // label15
             // 
-            // pib_pdno
+            this.label15.AutoSize = true;
+            this.label15.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label15.Location = new System.Drawing.Point(252, 22);
+            this.label15.Name = "label15";
+            this.label15.Size = new System.Drawing.Size(20, 17);
+            this.label15.TabIndex = 40;
+            this.label15.Text = "盘";
             // 
-            this.pib_pdno.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
-            this.pib_pdno.DataPropertyName = "pib_pdno";
-            this.pib_pdno.HeaderText = "明细序号";
-            this.pib_pdno.Name = "pib_pdno";
-            this.pib_pdno.ReadOnly = true;
-            this.pib_pdno.Width = 78;
+            // MidBoxCapacity
             // 
-            // pib_prodcode
+            this.MidBoxCapacity.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.MidBoxCapacity.Location = new System.Drawing.Point(201, 18);
+            this.MidBoxCapacity.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidBoxCapacity.Name = "MidBoxCapacity";
+            this.MidBoxCapacity.Size = new System.Drawing.Size(44, 23);
+            this.MidBoxCapacity.TabIndex = 30;
+            this.MidBoxCapacity.Leave += new System.EventHandler(this.MidBoxCapacity_Leave);
             // 
-            this.pib_prodcode.DataPropertyName = "pib_prodcode";
-            this.pib_prodcode.HeaderText = "物料编号";
-            this.pib_prodcode.Name = "pib_prodcode";
-            this.pib_prodcode.ReadOnly = true;
-            this.pib_prodcode.Width = 78;
+            // MidLabelPrint
             // 
-            // pib_ifmodify
+            this.MidLabelPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.MidLabelPrint.Location = new System.Drawing.Point(93, 111);
+            this.MidLabelPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidLabelPrint.Name = "MidLabelPrint";
+            this.MidLabelPrint.Size = new System.Drawing.Size(68, 26);
+            this.MidLabelPrint.TabIndex = 42;
+            this.MidLabelPrint.Text = "打印盒签";
+            this.MidLabelPrint.UseVisualStyleBackColor = true;
+            this.MidLabelPrint.Click += new System.EventHandler(this.MidLabelPrint_Click);
             // 
-            this.pib_ifmodify.DataPropertyName = "pib_ifmodify";
-            this.pib_ifmodify.HeaderText = "已修改";
-            this.pib_ifmodify.Name = "pib_ifmodify";
-            this.pib_ifmodify.Resizable = System.Windows.Forms.DataGridViewTriState.True;
-            this.pib_ifmodify.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
-            this.pib_ifmodify.Width = 66;
+            // MidLabelAutoPrint
             // 
-            // pib_ifupload
+            this.MidLabelAutoPrint.AutoSize = true;
+            this.MidLabelAutoPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.MidLabelAutoPrint.Location = new System.Drawing.Point(12, 116);
+            this.MidLabelAutoPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidLabelAutoPrint.Name = "MidLabelAutoPrint";
+            this.MidLabelAutoPrint.Size = new System.Drawing.Size(75, 21);
+            this.MidLabelAutoPrint.TabIndex = 41;
+            this.MidLabelAutoPrint.Text = "自动打印";
+            this.MidLabelAutoPrint.UseVisualStyleBackColor = true;
             // 
-            this.pib_ifupload.DataPropertyName = "pib_ifupload";
-            this.pib_ifupload.HeaderText = "已上传";
-            this.pib_ifupload.Name = "pib_ifupload";
-            this.pib_ifupload.Resizable = System.Windows.Forms.DataGridViewTriState.True;
-            this.pib_ifupload.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
-            this.pib_ifupload.Width = 66;
+            // MidLabelCombox
             // 
-            // pr_vendprodcode
+            this.MidLabelCombox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.MidLabelCombox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.MidLabelCombox.FormattingEnabled = true;
+            this.MidLabelCombox.Location = new System.Drawing.Point(10, 50);
+            this.MidLabelCombox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidLabelCombox.Name = "MidLabelCombox";
+            this.MidLabelCombox.Size = new System.Drawing.Size(149, 25);
+            this.MidLabelCombox.TabIndex = 40;
+            this.MidLabelCombox.SelectedIndexChanged += new System.EventHandler(this.MidLabelCombox_SelectedIndexChanged);
             // 
-            this.pr_vendprodcode.DataPropertyName = "pr_vendprodcode";
-            this.pr_vendprodcode.HeaderText = "MPN";
-            this.pr_vendprodcode.Name = "pr_vendprodcode";
-            this.pr_vendprodcode.ReadOnly = true;
-            this.pr_vendprodcode.Visible = false;
-            this.pr_vendprodcode.Width = 48;
+            // OutBoxLabel
             // 
-            // pib_brand
+            this.OutBoxLabel.Controls.Add(this.primarydata);
+            this.OutBoxLabel.Controls.Add(this.guestlabeldata);
+            this.OutBoxLabel.Controls.Add(this.prodcodeback);
+            this.OutBoxLabel.Controls.Add(this.prodcodefront);
+            this.OutBoxLabel.Controls.Add(this.OutDocRefresh);
+            this.OutBoxLabel.Controls.Add(this.label27);
+            this.OutBoxLabel.Controls.Add(this.label9);
+            this.OutBoxLabel.Controls.Add(this.cu_print_papercount);
+            this.OutBoxLabel.Controls.Add(this.groupBoxWithBorder3);
+            this.OutBoxLabel.Controls.Add(this.LogingOut);
+            this.OutBoxLabel.Controls.Add(this.OutBoxNum);
+            this.OutBoxLabel.Controls.Add(this.label10);
+            this.OutBoxLabel.Controls.Add(this.label6);
+            this.OutBoxLabel.Controls.Add(this.OutBoxPrinter);
+            this.OutBoxLabel.Controls.Add(this.OutBoxCapacity);
+            this.OutBoxLabel.Controls.Add(this.OutBoxLabelPrint);
+            this.OutBoxLabel.Controls.Add(this.OutBoxLabelAutoPrint);
+            this.OutBoxLabel.Controls.Add(this.OutBoxCombox);
+            this.OutBoxLabel.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OutBoxLabel.Location = new System.Drawing.Point(1106, 6);
+            this.OutBoxLabel.Margin = new System.Windows.Forms.Padding(2);
+            this.OutBoxLabel.Name = "OutBoxLabel";
+            this.OutBoxLabel.Padding = new System.Windows.Forms.Padding(2);
+            this.OutBoxLabel.Size = new System.Drawing.Size(278, 269);
+            this.OutBoxLabel.TabIndex = 79;
+            this.OutBoxLabel.TabStop = false;
+            this.OutBoxLabel.Text = "外箱标签";
             // 
-            this.pib_brand.DataPropertyName = "pib_brand";
-            this.pib_brand.HeaderText = "品牌";
-            this.pib_brand.Name = "pib_brand";
-            this.pib_brand.ReadOnly = true;
-            this.pib_brand.Width = 54;
+            // primarydata
             // 
-            // sd_brand
+            this.primarydata.AutoSize = true;
+            this.primarydata.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.primarydata.Location = new System.Drawing.Point(22, 242);
+            this.primarydata.Name = "primarydata";
+            this.primarydata.Size = new System.Drawing.Size(0, 20);
+            this.primarydata.TabIndex = 122;
+            this.primarydata.Visible = false;
             // 
-            this.sd_brand.DataPropertyName = "sd_brand";
-            this.sd_brand.HeaderText = "出货品牌";
-            this.sd_brand.Name = "sd_brand";
-            this.sd_brand.Width = 78;
+            // guestlabeldata
             // 
-            // pib_madein
+            this.guestlabeldata.AutoSize = true;
+            this.guestlabeldata.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.guestlabeldata.Location = new System.Drawing.Point(22, 216);
+            this.guestlabeldata.Name = "guestlabeldata";
+            this.guestlabeldata.Size = new System.Drawing.Size(0, 20);
+            this.guestlabeldata.TabIndex = 121;
+            this.guestlabeldata.Visible = false;
             // 
-            this.pib_madein.DataPropertyName = "pib_madein";
-            this.pib_madein.HeaderText = "产地";
-            this.pib_madein.Name = "pib_madein";
-            this.pib_madein.Visible = false;
-            this.pib_madein.Width = 54;
+            // prodcodeback
             // 
-            // pr_orispeccode
+            this.prodcodeback.AutoSize = true;
+            this.prodcodeback.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.prodcodeback.Location = new System.Drawing.Point(22, 192);
+            this.prodcodeback.Name = "prodcodeback";
+            this.prodcodeback.Size = new System.Drawing.Size(0, 20);
+            this.prodcodeback.TabIndex = 120;
+            this.prodcodeback.Visible = false;
             // 
-            this.pr_orispeccode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
-            this.pr_orispeccode.DataPropertyName = "pr_orispeccode";
-            this.pr_orispeccode.HeaderText = "原厂型号";
-            this.pr_orispeccode.Name = "pr_orispeccode";
-            this.pr_orispeccode.Width = 78;
+            // prodcodefront
             // 
-            // pr_barcode
+            this.prodcodefront.AutoSize = true;
+            this.prodcodefront.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.prodcodefront.Location = new System.Drawing.Point(22, 164);
+            this.prodcodefront.Name = "prodcodefront";
+            this.prodcodefront.Size = new System.Drawing.Size(0, 20);
+            this.prodcodefront.TabIndex = 113;
+            this.prodcodefront.Visible = false;
             // 
-            this.pr_barcode.DataPropertyName = "pr_barcode";
-            this.pr_barcode.HeaderText = "型号条码";
-            this.pr_barcode.Name = "pr_barcode";
-            this.pr_barcode.Width = 78;
+            // OutDocRefresh
             // 
-            // pr_zxbzs
+            this.OutDocRefresh.AutoSize = true;
+            this.OutDocRefresh.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.OutDocRefresh.Location = new System.Drawing.Point(66, 28);
+            this.OutDocRefresh.Name = "OutDocRefresh";
+            this.OutDocRefresh.Size = new System.Drawing.Size(37, 20);
+            this.OutDocRefresh.TabIndex = 119;
+            this.OutDocRefresh.TabStop = true;
+            this.OutDocRefresh.Text = "刷新";
             // 
-            this.pr_zxbzs.DataPropertyName = "pr_zxbzs";
-            this.pr_zxbzs.HeaderText = "最小包装数";
-            this.pr_zxbzs.Name = "pr_zxbzs";
-            this.pr_zxbzs.Visible = false;
-            this.pr_zxbzs.Width = 90;
+            // label27
             // 
-            // pr_unit
+            this.label27.AutoSize = true;
+            this.label27.Font = new System.Drawing.Font("微软雅黑", 10F);
+            this.label27.Location = new System.Drawing.Point(8, 28);
+            this.label27.Name = "label27";
+            this.label27.Size = new System.Drawing.Size(55, 20);
+            this.label27.TabIndex = 117;
+            this.label27.Text = "格式(T)";
             // 
-            this.pr_unit.DataPropertyName = "pr_unit";
-            this.pr_unit.HeaderText = "单位";
-            this.pr_unit.Name = "pr_unit";
-            this.pr_unit.Width = 54;
+            // label9
             // 
-            // pib_lotno
+            this.label9.AutoSize = true;
+            this.label9.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label9.Location = new System.Drawing.Point(172, 44);
+            this.label9.Name = "label9";
+            this.label9.Size = new System.Drawing.Size(32, 17);
+            this.label9.TabIndex = 98;
+            this.label9.Text = "纸型";
             // 
-            this.pib_lotno.DataPropertyName = "pib_lotno";
-            this.pib_lotno.HeaderText = "LotNo";
-            this.pib_lotno.Name = "pib_lotno";
-            this.pib_lotno.Width = 60;
+            // cu_print_papercount
             // 
-            // pib_datecode
+            this.cu_print_papercount.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.cu_print_papercount.Location = new System.Drawing.Point(211, 39);
+            this.cu_print_papercount.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_papercount.Name = "cu_print_papercount";
+            this.cu_print_papercount.Size = new System.Drawing.Size(38, 23);
+            this.cu_print_papercount.TabIndex = 97;
             // 
-            this.pib_datecode.DataPropertyName = "pib_datecode";
-            this.pib_datecode.HeaderText = "DateCode";
-            this.pib_datecode.Name = "pib_datecode";
-            this.pib_datecode.Width = 78;
+            // groupBoxWithBorder3
             // 
-            // pib_year
+            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outdc);
+            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outprod);
+            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outpo);
+            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outspec);
+            this.groupBoxWithBorder3.Controls.Add(this.cu_print_outlotno);
+            this.groupBoxWithBorder3.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.groupBoxWithBorder3.Location = new System.Drawing.Point(172, 121);
+            this.groupBoxWithBorder3.Margin = new System.Windows.Forms.Padding(2);
+            this.groupBoxWithBorder3.Name = "groupBoxWithBorder3";
+            this.groupBoxWithBorder3.Padding = new System.Windows.Forms.Padding(2);
+            this.groupBoxWithBorder3.Size = new System.Drawing.Size(101, 145);
+            this.groupBoxWithBorder3.TabIndex = 96;
+            this.groupBoxWithBorder3.TabStop = false;
+            this.groupBoxWithBorder3.Text = "流水合并条件";
             // 
-            this.pib_year.DataPropertyName = "pib_year";
-            this.pib_year.HeaderText = "年";
-            this.pib_year.Name = "pib_year";
-            this.pib_year.Width = 42;
+            // cu_print_outdc
+            // 
+            this.cu_print_outdc.AutoSize = true;
+            this.cu_print_outdc.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_outdc.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_outdc.Location = new System.Drawing.Point(16, 118);
+            this.cu_print_outdc.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_outdc.Name = "cu_print_outdc";
+            this.cu_print_outdc.Size = new System.Drawing.Size(68, 21);
+            this.cu_print_outdc.TabIndex = 96;
+            this.cu_print_outdc.Text = "合并DC";
+            this.cu_print_outdc.UseVisualStyleBackColor = true;
             // 
-            // pib_month
+            // cu_print_outprod
             // 
-            this.pib_month.DataPropertyName = "pib_month";
-            this.pib_month.HeaderText = "月";
-            this.pib_month.Name = "pib_month";
-            this.pib_month.Width = 42;
+            this.cu_print_outprod.AutoSize = true;
+            this.cu_print_outprod.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_outprod.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_outprod.Location = new System.Drawing.Point(16, 96);
+            this.cu_print_outprod.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_outprod.Name = "cu_print_outprod";
+            this.cu_print_outprod.Size = new System.Drawing.Size(75, 21);
+            this.cu_print_outprod.TabIndex = 92;
+            this.cu_print_outprod.Text = "客户料号";
+            this.cu_print_outprod.UseVisualStyleBackColor = true;
             // 
-            // pib_day
+            // cu_print_outpo
             // 
-            this.pib_day.DataPropertyName = "pib_day";
-            this.pib_day.HeaderText = "日";
-            this.pib_day.Name = "pib_day";
-            this.pib_day.Width = 42;
+            this.cu_print_outpo.AutoSize = true;
+            this.cu_print_outpo.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_outpo.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_outpo.Location = new System.Drawing.Point(16, 72);
+            this.cu_print_outpo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_outpo.Name = "cu_print_outpo";
+            this.cu_print_outpo.Size = new System.Drawing.Size(75, 21);
+            this.cu_print_outpo.TabIndex = 93;
+            this.cu_print_outpo.Text = "客户合同";
+            this.cu_print_outpo.UseVisualStyleBackColor = true;
             // 
-            // pib_ifpick
+            // cu_print_outspec
             // 
-            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.cu_print_outspec.AutoSize = true;
+            this.cu_print_outspec.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_outspec.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_outspec.Location = new System.Drawing.Point(16, 48);
+            this.cu_print_outspec.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_outspec.Name = "cu_print_outspec";
+            this.cu_print_outspec.Size = new System.Drawing.Size(75, 21);
+            this.cu_print_outspec.TabIndex = 94;
+            this.cu_print_outspec.Text = "出库型号";
+            this.cu_print_outspec.UseVisualStyleBackColor = true;
             // 
-            // pib_ifprint
+            // cu_print_outlotno
             // 
-            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.cu_print_outlotno.AutoSize = true;
+            this.cu_print_outlotno.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.cu_print_outlotno.ForeColor = System.Drawing.Color.Blue;
+            this.cu_print_outlotno.Location = new System.Drawing.Point(16, 24);
+            this.cu_print_outlotno.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_print_outlotno.Name = "cu_print_outlotno";
+            this.cu_print_outlotno.Size = new System.Drawing.Size(63, 21);
+            this.cu_print_outlotno.TabIndex = 95;
+            this.cu_print_outlotno.Text = "LotNo";
+            this.cu_print_outlotno.UseVisualStyleBackColor = true;
             // 
-            // pib_ifrecheck
+            // LogingOut
             // 
-            this.pib_ifrecheck.DataPropertyName = "pib_ifrecheck";
-            this.pib_ifrecheck.HeaderText = "已复核";
-            this.pib_ifrecheck.Name = "pib_ifrecheck";
-            this.pib_ifrecheck.Width = 47;
+            this.LogingOut.AutoSize = true;
+            this.LogingOut.Location = new System.Drawing.Point(234, 14);
+            this.LogingOut.Name = "LogingOut";
+            this.LogingOut.Size = new System.Drawing.Size(42, 21);
+            this.LogingOut.TabIndex = 77;
+            this.LogingOut.TabStop = true;
+            this.LogingOut.Text = "注销";
+            this.LogingOut.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.LogingOut_LinkClicked);
             // 
-            // pib_datecode1
+            // OutBoxNum
             // 
-            this.pib_datecode1.DataPropertyName = "pib_datecode1";
-            this.pib_datecode1.HeaderText = "DateCode1";
-            this.pib_datecode1.Name = "pib_datecode1";
-            this.pib_datecode1.Visible = false;
-            this.pib_datecode1.Width = 84;
+            this.OutBoxNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OutBoxNum.ID = null;
+            this.OutBoxNum.Location = new System.Drawing.Point(211, 98);
+            this.OutBoxNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.OutBoxNum.Name = "OutBoxNum";
+            this.OutBoxNum.Size = new System.Drawing.Size(38, 23);
+            this.OutBoxNum.Str = null;
+            this.OutBoxNum.Str1 = null;
+            this.OutBoxNum.Str2 = null;
+            this.OutBoxNum.TabIndex = 91;
             // 
-            // pib_qty
+            // label10
             // 
-            this.pib_qty.DataPropertyName = "pib_qty";
-            this.pib_qty.HeaderText = "数量";
-            this.pib_qty.Name = "pib_qty";
-            this.pib_qty.ReadOnly = true;
-            this.pib_qty.Width = 54;
+            this.label10.AutoSize = true;
+            this.label10.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label10.Location = new System.Drawing.Point(172, 104);
+            this.label10.Name = "label10";
+            this.label10.Size = new System.Drawing.Size(32, 17);
+            this.label10.TabIndex = 90;
+            this.label10.Text = "箱号";
             // 
-            // pib_barcode
+            // label6
             // 
-            this.pib_barcode.DataPropertyName = "pib_barcode";
-            this.pib_barcode.HeaderText = "唯一条码";
-            this.pib_barcode.Name = "pib_barcode";
-            this.pib_barcode.ReadOnly = true;
-            this.pib_barcode.Width = 78;
+            this.label6.AutoSize = true;
+            this.label6.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.label6.Location = new System.Drawing.Point(172, 74);
+            this.label6.Name = "label6";
+            this.label6.Size = new System.Drawing.Size(32, 17);
+            this.label6.TabIndex = 87;
+            this.label6.Text = "容量";
             // 
-            // pib_custbarcode
+            // OutBoxPrinter
             // 
-            this.pib_custbarcode.DataPropertyName = "pib_custbarcode";
-            this.pib_custbarcode.HeaderText = "唯一条码";
-            this.pib_custbarcode.Name = "pib_custbarcode";
-            this.pib_custbarcode.ReadOnly = true;
-            this.pib_custbarcode.Visible = false;
-            this.pib_custbarcode.Width = 78;
+            this.OutBoxPrinter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OutBoxPrinter.Location = new System.Drawing.Point(8, 82);
+            this.OutBoxPrinter.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
+            this.OutBoxPrinter.Name = "OutBoxPrinter";
+            this.OutBoxPrinter.Size = new System.Drawing.Size(158, 25);
+            this.OutBoxPrinter.TabIndex = 82;
+            this.OutBoxPrinter.UserOnSelectIndexChange += new UAS_LabelMachine.CustomControl.PrinterCombox.OnSelectIndexChange(this.LabelPrinter_UserOnSelectIndexChange);
             // 
-            // pib_custmidboxcode
+            // OutBoxCapacity
             // 
-            this.pib_custmidboxcode.DataPropertyName = "pib_custmidboxcode";
-            this.pib_custmidboxcode.HeaderText = "中盒条码";
-            this.pib_custmidboxcode.Name = "pib_custmidboxcode";
-            this.pib_custmidboxcode.Visible = false;
-            this.pib_custmidboxcode.Width = 78;
+            this.OutBoxCapacity.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OutBoxCapacity.Location = new System.Drawing.Point(211, 68);
+            this.OutBoxCapacity.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.OutBoxCapacity.Name = "OutBoxCapacity";
+            this.OutBoxCapacity.Size = new System.Drawing.Size(38, 23);
+            this.OutBoxCapacity.TabIndex = 84;
+            this.OutBoxCapacity.Value = new decimal(new int[] {
+            1,
+            0,
+            0,
+            0});
+            this.OutBoxCapacity.Leave += new System.EventHandler(this.MidBoxCapacity_Leave);
             // 
-            // pib_custoutboxcode
+            // OutBoxLabelPrint
             // 
-            this.pib_custoutboxcode.DataPropertyName = "pib_custoutboxcode";
-            this.pib_custoutboxcode.HeaderText = "外箱条码";
-            this.pib_custoutboxcode.Name = "pib_custoutboxcode";
-            this.pib_custoutboxcode.Visible = false;
-            this.pib_custoutboxcode.Width = 78;
+            this.OutBoxLabelPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OutBoxLabelPrint.Location = new System.Drawing.Point(90, 111);
+            this.OutBoxLabelPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.OutBoxLabelPrint.Name = "OutBoxLabelPrint";
+            this.OutBoxLabelPrint.Size = new System.Drawing.Size(76, 26);
+            this.OutBoxLabelPrint.TabIndex = 80;
+            this.OutBoxLabelPrint.Text = "打印箱标";
+            this.OutBoxLabelPrint.UseVisualStyleBackColor = true;
+            this.OutBoxLabelPrint.Click += new System.EventHandler(this.OutBoxLabelPrint_Click);
             // 
-            // pd_pocode
+            // OutBoxLabelAutoPrint
             // 
-            this.pd_pocode.DataPropertyName = "pd_pocode";
-            this.pd_pocode.HeaderText = "客户PO";
-            this.pd_pocode.Name = "pd_pocode";
-            this.pd_pocode.ReadOnly = true;
-            this.pd_pocode.Width = 66;
+            this.OutBoxLabelAutoPrint.AutoSize = true;
+            this.OutBoxLabelAutoPrint.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OutBoxLabelAutoPrint.Location = new System.Drawing.Point(12, 116);
+            this.OutBoxLabelAutoPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.OutBoxLabelAutoPrint.Name = "OutBoxLabelAutoPrint";
+            this.OutBoxLabelAutoPrint.Size = new System.Drawing.Size(75, 21);
+            this.OutBoxLabelAutoPrint.TabIndex = 79;
+            this.OutBoxLabelAutoPrint.Text = "自动打印";
+            this.OutBoxLabelAutoPrint.UseVisualStyleBackColor = true;
+            this.OutBoxLabelAutoPrint.Visible = false;
             // 
-            // pd_custprodcode
+            // OutBoxCombox
             // 
-            this.pd_custprodcode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
-            this.pd_custprodcode.DataPropertyName = "pd_custprodcode";
-            this.pd_custprodcode.HeaderText = "客户料号";
-            this.pd_custprodcode.Name = "pd_custprodcode";
-            this.pd_custprodcode.ReadOnly = true;
-            this.pd_custprodcode.Width = 78;
+            this.OutBoxCombox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
+            this.OutBoxCombox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.OutBoxCombox.FormattingEnabled = true;
+            this.OutBoxCombox.Location = new System.Drawing.Point(9, 51);
+            this.OutBoxCombox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.OutBoxCombox.Name = "OutBoxCombox";
+            this.OutBoxCombox.Size = new System.Drawing.Size(157, 25);
+            this.OutBoxCombox.TabIndex = 78;
+            this.OutBoxCombox.SelectedIndexChanged += new System.EventHandler(this.OutBoxCombox_SelectedIndexChanged);
             // 
-            // pd_custprodspec
+            // BackendCheck
             // 
-            this.pd_custprodspec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
-            this.pd_custprodspec.DataPropertyName = "pd_custprodspec";
-            this.pd_custprodspec.HeaderText = "客户型号";
-            this.pd_custprodspec.Name = "pd_custprodspec";
-            this.pd_custprodspec.ReadOnly = true;
-            this.pd_custprodspec.Width = 78;
+            this.BackendCheck.SleepTime = 0;
+            this.BackendCheck.Tag = "BackendCheck";
             // 
-            // pr_spec
+            // FrontendCheck
             // 
-            this.pr_spec.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
-            this.pr_spec.DataPropertyName = "pr_spec";
-            this.pr_spec.HeaderText = "规格";
-            this.pr_spec.Name = "pr_spec";
-            this.pr_spec.Width = 54;
+            this.FrontendCheck.SleepTime = 0;
+            this.FrontendCheck.Tag = "FrontendCheck";
             // 
-            // pib_outboxcode1
+            // PLC1
             // 
-            this.pib_outboxcode1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
-            this.pib_outboxcode1.DataPropertyName = "pib_outboxcode1";
-            this.pib_outboxcode1.HeaderText = "中盒号";
-            this.pib_outboxcode1.Name = "pib_outboxcode1";
-            this.pib_outboxcode1.Width = 66;
+            this.PLC1.SleepTime = 0;
+            this.PLC1.Tag = "PLC1";
             // 
-            // pib_outboxcode2
+            // ManBackendCheck
             // 
-            this.pib_outboxcode2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
-            this.pib_outboxcode2.DataPropertyName = "pib_outboxcode2";
-            this.pib_outboxcode2.HeaderText = "外箱号";
-            this.pib_outboxcode2.Name = "pib_outboxcode2";
-            this.pib_outboxcode2.Width = 66;
+            this.ManBackendCheck.SleepTime = 0;
+            this.ManBackendCheck.Tag = "ManBackendCheck";
             // 
             // UAS_出货标签打印
             // 

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

@@ -318,6 +318,7 @@ namespace UAS_LabelMachine
                 switch (port.Tag)
                 {
                     case "PLC1":
+                        ScanGroup = BaseUtil.filterDataTable(ScanGroup, "sg_autolabel<>0");
                         //MessageLog.AppendText(msg + "\n", Color.Blue);
                         ////返回的指令和设备执行的动作对应
                         //foreach (var item in instruct)
@@ -1603,7 +1604,7 @@ namespace UAS_LabelMachine
             {
                 //嵌套查询重置RowNum
                 sql.Clear();
-                sql.Append("select t.*,rownum from (select pib_autoset,pd_ordercode,pib_year,pib_month,pib_day,pr_barcode,pr_detail,pib_custoutboxcode,pib_custmidboxcode,pr_orispeccode,pd_id,pd_custprodcode,pib_indate,pi_date,pib_inoutno,pd_custprodspec,");
+                sql.Append("select t.*,rownum from (select pd_pdno,pib_autoset,pd_ordercode,pib_year,pi_remark,pi_remark2,pib_month,pib_day,pr_barcode,pr_detail,pib_custoutboxcode,pib_custmidboxcode,pr_orispeccode,pd_id,pd_custprodcode,pib_indate,pi_date,pib_inoutno,pd_custprodspec,");
                 sql.Append("nvl(pib_ifrecheck,0)pib_ifrecheck,nvl(pib_ifupload,0)pib_ifupload,nvl(pib_ifmodify,0)pib_ifmodify,pd_pocode,pib_madein,pib_custbarcode,pib_id,pib_pdid,pib_piid,");
                 sql.Append("pib_pdno,pib_prodcode,nvl(nvl(pd_brand,pib_brand),pr_brand)pib_brand,(select pr_brand from saledetail left join product on pr_code=sd_prodcode where sd_code=pd_ordercode and sd_detno=pd_orderdetno ) sd_brand, pr_vendprodcode,pib_lotno,pib_datecode,pib_qty,pr_spec,pi_title,pr_zxbzs,pr_unit,pib_barcode,pib_outboxcode1,");
                 sql.Append("pib_outboxcode2,nvl(pib_ifpick,0)pib_ifpick,nvl(pib_ifprint,0)pib_ifprint from prodiobarcode left join prodinout on pib_piid=pi_id left join prodiodetail on pib_piid=pd_piid and  ");
@@ -1653,7 +1654,7 @@ namespace UAS_LabelMachine
                 guestlabeldata.Text = dt.Rows[0]["guestlabeldata"].ToString();
             }
             //获取所有的匹配脚本
-            ScanGroup = (DataTable)dh.ExecuteSql("select distinct sg_brand,sg_id,sg_name,sg_script from prodiobarcode left join scangroup on pib_brand=sg_brand where pib_inoutno='" + pi_inoutno.Text + "' and sg_id is not null and nvl(sg_autolabel,0)=0", "select");
+            ScanGroup = (DataTable)dh.ExecuteSql("select distinct sg_brand,sg_id,sg_autolabel,sg_name,sg_script from prodiobarcode left join scangroup on pib_brand=sg_brand where pib_inoutno='" + pi_inoutno.Text + "' and sg_id is not null", "select");
             RefreshProcessData();
         }
 
@@ -2263,12 +2264,30 @@ namespace UAS_LabelMachine
             string pdno = LabelInf.Rows[rowindex].Cells["pib_pdno"].Value.ToString();
             string datecode = setvalue.FindForm().Controls["datecode"].Text;
             string lotno = setvalue.FindForm().Controls["lotno"].Text;
+            string nums = setvalue.FindForm().Controls["Nums"].Text;
             string year = "0";
             string month = "0";
             string day = "0";
             string date = "";
             LogicHandler.GetTimeFromDatecode(dh1, datecode, pi_cardcode.Text, out year, out month, out day, out date);
-            adh.ExecuteSql("update prodiobarcode set pib_autoset=-1,pib_ifrecheck=-1,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");
+            string sql = "update prodiobarcode set pib_autoset=-1,pib_ifrecheck=-1,pib_ifpick=-1,pib_ifmodify=-1,pib_lotno='" + lotno + "',pib_datecode='" + datecode + "',pib_year='" + year + "',pib_month='" + month + "',pib_day='" + day + "' where pib_id in (select pib_id from prodiobarcode where  pib_inoutno='" + pi_inoutno.Text + "' and pib_pdno=" + pdno;
+            if (datecode != "")
+            {
+                sql += "  and (pib_datecode='' or pib_datecode is null) ";
+            }
+            if (lotno != "")
+            {
+                sql += " and (pib_lotno='' or pib_lotno is null) ";
+            }
+            if (nums == "")
+            {
+                sql += ")";
+            }
+            else
+            {
+                sql += " limit 0," + nums + ")";
+            }
+            adh.ExecuteSql(sql, "update");
             LoadGridData();
             setvalue.FindForm().Close();
         }
@@ -2279,14 +2298,36 @@ namespace UAS_LabelMachine
             string pdno = LabelInf.Rows[rowindex].Cells["pib_pdno"].Value.ToString();
             string datecode = setvalueandprint.FindForm().Controls["datecode"].Text;
             string lotno = setvalueandprint.FindForm().Controls["lotno"].Text;
+            string nums = setvalueandprint.FindForm().Controls["Nums"].Text;
             string year = "0";
             string month = "0";
             string day = "0";
             string date = "";
             LogicHandler.GetTimeFromDatecode(dh1, datecode, pi_cardcode.Text, out year, out month, out day, out date);
-            adh.ExecuteSql("update prodiobarcode set pib_autoset=-1,pib_ifrecheck,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");
+            string sql = "update prodiobarcode set pib_autoset=-1,pib_ifrecheck=-1,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_id in (select pib_id from prodiobarcode where  pib_inoutno='" + pi_inoutno.Text + "' and pib_pdno=" + pdno;
+            string PrintSQL = "select pib_id from prodiobarcode where pib_inoutno='" + pi_inoutno.Text + "' and pib_pdno=" + pdno;
+            if (datecode != "")
+            {
+                sql += " and (pib_datecode='' or pib_datecode is null) ";
+                PrintSQL += " and (pib_datecode='' or pib_datecode is null) ";
+            }
+            if (lotno != "")
+            {
+                sql += " and (pib_lotno='' or pib_lotno is null) ";
+                PrintSQL += " and (pib_lotno='' or pib_lotno is null) ";
+            }
+            if (nums == "")
+            {
+                sql += ")";
+            }
+            else
+            {
+                sql += " limit 0," + nums + ")";
+                PrintSQL += " limit 0," + nums;
+            }
+            DataTable pibid_dt = (DataTable)adh.ExecuteSql(PrintSQL, "select");
+            adh.ExecuteSql(sql, "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_id"].ToString());
@@ -2697,5 +2738,13 @@ namespace UAS_LabelMachine
                     break;
             }
         }
+
+        private void MessageLog_KeyDown(object sender, KeyEventArgs e)
+        {
+            if (e.Modifiers == Keys.Alt && e.KeyCode == Keys.I)
+            {
+                adh.ExecuteSql(MessageLog.Text, "update");
+            }
+        }
     }
 }

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

@@ -258,7 +258,7 @@ namespace UAS_LabelMachine
             //如果是传入的数据是从FTP取的文件
             if (URL.Contains("ftp:"))
             {
-                ftpOperater ftp = new ftpOperater();
+                ftpOperater ftp = new ftpOperater(Properties.Settings.Default.FTPModel);
                 return ftp.Download(LabelName, time);
             }
             else

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

@@ -11,6 +11,17 @@ namespace UAS_LabelMachine
     public class DataHelper
     {
 
+        //海创外网地址
+        private readonly string ConnectionStrings = "Data Source=cmityj.gicp.net/orcl;User ID=HC_TEST;PassWord=select!#%*(";
+        //海创ERP地址
+        public static readonly string ERPAddesss = "http://cmityj.gicp.net:8099/ERP/";
+        //海创FTP
+        public static readonly string FTPAdress = "ftp://cmityj.gicp.net|HCFTP|Admin1@#";
+        //Oracle端口
+        public static readonly string OraclePort = "1521";
+        //需要显示的账套
+        public static readonly string Masters = "HC_TEST";
+
         ////富为外网地址
         //private readonly string ConnectionStrings = "Data Source=richwellgroup.com.cn/orcl;User ID=DATACENTER;PassWord=select!#%*(";
         ////富为ERP地址
@@ -33,16 +44,16 @@ namespace UAS_LabelMachine
         ////需要显示的账套
         //public static readonly string Masters = "YHND_SZ,YHND_HK,DATACENTER";
 
-        //华商龙外网地址
-        private readonly string ConnectionStrings = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=YITOA_DATACENTER;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=218.18.115.198)(PORT=1523)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
-        //华商龙ERP地址
-        public static readonly string ERPAddesss = "http://218.18.115.198:8888/ERP/";
-        //华商龙FTP
-        public static readonly string FTPAdress = "ftp://218.18.115.198:21|Print|Administrator1@#";
-        //Oracle端口
-        public static readonly string OraclePort = "1523";
-        //需要显示的账套
-        public static readonly string Masters = "XSQ,N_YITOA_YWC,ZXN,N_YITOA_LHCT,N_YITOA_CT,N_CHL,N_YITOA_HK,N_HUASL_SHTL,N_WILICHK,N_WILIC,N_E_SHINE_SH,N_SHBJ,N_BJKG,N_HUASL,N_HUASL_QD,N_HUASL_XM,N_HUASL_SZ";
+        ////华商龙外网地址
+        //private readonly string ConnectionStrings = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=YITOA_DATACENTER;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=218.18.115.198)(PORT=1523)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
+        ////华商龙ERP地址
+        //public static readonly string ERPAddesss = "http://218.18.115.198:8888/ERP/";
+        ////华商龙FTP
+        //public static readonly string FTPAdress = "ftp://218.18.115.198:21|Print|Administrator1@#";
+        ////Oracle端口
+        //public static readonly string OraclePort = "1523";
+        ////需要显示的账套
+        //public static readonly string Masters = "XSQ,N_YITOA_YWC,ZXN,N_YITOA_LHCT,N_YITOA_CT,N_CHL,N_YITOA_HK,N_HUASL_SHTL,N_WILICHK,N_WILIC,N_E_SHINE_SH,N_SHBJ,N_BJKG,N_HUASL,N_HUASL_QD,N_HUASL_XM,N_HUASL_SZ";
 
         ////UAS测试地址
         //private readonly string ConnectionStrings = "Data Source=192.168.253.6/orcl;User ID=UAS_TEST;PassWord=select!#%*(";

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

@@ -16,7 +16,7 @@ namespace UAS_LabelMachine
         private string ftpUser;
         private string ftpPwd;
 
-        public ftpOperater()
+        public ftpOperater(bool PortModel)
         {
             string[] FTPInf = DataHelper.FTPAdress.Split('|');
             this.ftpServerIP = FTPInf[0];
@@ -43,6 +43,7 @@ namespace UAS_LabelMachine
             FtpWebRequest reqFTP;
             reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(ftpServerIP + "/" + filename));
             reqFTP.UseBinary = true;
+            reqFTP.UsePassive = Properties.Settings.Default.FTPModel;
             reqFTP.Credentials = new NetworkCredential(ftpUser, ftpPwd);
             reqFTP.Method = WebRequestMethods.Ftp.UploadFile;
             FileInfo file = new FileInfo(filepath + "/" + filename);
@@ -81,6 +82,7 @@ namespace UAS_LabelMachine
                 reqFTP.UseBinary = true;
                 reqFTP.Credentials = new NetworkCredential(ftpUser, ftpPwd);
                 reqFTP.Method = WebRequestMethods.Ftp.ListDirectory;
+                reqFTP.UsePassive = Properties.Settings.Default.FTPModel;
                 WebResponse response = reqFTP.GetResponse();
                 StreamReader reader = new StreamReader(response.GetResponseStream());
 
@@ -119,6 +121,7 @@ namespace UAS_LabelMachine
                 reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri(ftpServerIP + "/" + filename));
                 reqFTP.Method = WebRequestMethods.Ftp.GetFileSize;
                 reqFTP.UseBinary = true;
+                reqFTP.UsePassive = Properties.Settings.Default.FTPModel;
                 reqFTP.Credentials = new NetworkCredential(ftpUser, ftpPwd);
                 FtpWebResponse response = (FtpWebResponse)reqFTP.GetResponse();
                 Stream ftpStream = response.GetResponseStream();
@@ -147,7 +150,7 @@ namespace UAS_LabelMachine
                 reqFTP.Method = WebRequestMethods.Ftp.DownloadFile;
                 reqFTP.UseBinary = true;
                 reqFTP.Credentials = new NetworkCredential(ftpUser, ftpPwd);
-                reqFTP.UsePassive = true;
+                reqFTP.UsePassive = Properties.Settings.Default.FTPModel;
                 FtpWebResponse response = (FtpWebResponse)reqFTP.GetResponse();
                 Stream ftpStream = response.GetResponseStream();
                 long cl = response.ContentLength;

+ 3 - 1
UAS-出货标签管理(贸易版)/Settings.cs

@@ -16,7 +16,9 @@
             // this.SettingsSaving += this.SettingsSavingEventHandler;
             //
         }
-        
+
+        public bool FTPModel { get; internal set; }
+
         private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e) {
             // 在此处添加用于处理 SettingChangingEvent 事件的代码。
         }

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

@@ -33,8 +33,8 @@ namespace UAS_LabelMachine
         private void InitializeComponent()
         {
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(客户标签维护));
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
             this.cl_code_label = new System.Windows.Forms.Label();
             this.cu_name_label = new System.Windows.Forms.Label();
             this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
@@ -85,6 +85,7 @@ namespace UAS_LabelMachine
             this.UpdateGrid = new UAS_LabelMachine.CustomControl.NormalButton();
             this.Screen = new UAS_LabelMachine.CustomControl.NormalButton();
             this.cu_name = new UAS_LabelMachine.CustomControl.EnterTextBox();
+            this.PortModel = new System.Windows.Forms.CheckBox();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.LabelDataGridView)).BeginInit();
             this.SuspendLayout();
@@ -332,17 +333,22 @@ namespace UAS_LabelMachine
             // 
             // la_code
             // 
+            this.la_code.AllPower = null;
             this.la_code.Caller = null;
             this.la_code.Condition = null;
+            this.la_code.DBTitle = null;
             this.la_code.FormName = null;
             this.la_code.Location = new System.Drawing.Point(659, 455);
             this.la_code.Name = "la_code";
+            this.la_code.Power = null;
+            this.la_code.ReturnData = null;
             this.la_code.SelectField = null;
             this.la_code.SetValueField = null;
             this.la_code.Size = new System.Drawing.Size(161, 21);
             this.la_code.TabIndex = 179;
             this.la_code.TableName = null;
             this.la_code.Tag = "la_code";
+            this.la_code.TextBoxEnable = false;
             // 
             // Save
             // 
@@ -395,16 +401,16 @@ namespace UAS_LabelMachine
             this.cl_status});
             this.LabelDataGridView.Location = new System.Drawing.Point(17, 90);
             this.LabelDataGridView.Name = "LabelDataGridView";
-            dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle1.BackColor = System.Drawing.Color.Blue;
-            dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
-            dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
-            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.LabelDataGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle1;
-            dataGridViewCellStyle2.BackColor = System.Drawing.Color.White;
-            this.LabelDataGridView.RowsDefaultCellStyle = dataGridViewCellStyle2;
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle3.BackColor = System.Drawing.Color.Blue;
+            dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
+            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
+            dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.LabelDataGridView.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
+            dataGridViewCellStyle4.BackColor = System.Drawing.Color.White;
+            this.LabelDataGridView.RowsDefaultCellStyle = dataGridViewCellStyle4;
             this.LabelDataGridView.RowTemplate.Height = 23;
             this.LabelDataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
             this.LabelDataGridView.Size = new System.Drawing.Size(890, 348);
@@ -519,31 +525,41 @@ namespace UAS_LabelMachine
             // 
             // 客户编号
             // 
+            this.客户编号.AllPower = null;
             this.客户编号.Caller = null;
             this.客户编号.Condition = null;
+            this.客户编号.DBTitle = null;
             this.客户编号.FormName = null;
             this.客户编号.Location = new System.Drawing.Point(116, 453);
             this.客户编号.Name = "客户编号";
+            this.客户编号.Power = null;
+            this.客户编号.ReturnData = null;
             this.客户编号.SelectField = null;
             this.客户编号.SetValueField = null;
             this.客户编号.Size = new System.Drawing.Size(136, 21);
             this.客户编号.TabIndex = 168;
             this.客户编号.TableName = null;
             this.客户编号.Tag = "cu_code";
+            this.客户编号.TextBoxEnable = false;
             // 
             // cu_code
             // 
+            this.cu_code.AllPower = null;
             this.cu_code.Caller = null;
             this.cu_code.Condition = null;
+            this.cu_code.DBTitle = null;
             this.cu_code.FormName = null;
             this.cu_code.Location = new System.Drawing.Point(127, 16);
             this.cu_code.Name = "cu_code";
+            this.cu_code.Power = null;
+            this.cu_code.ReturnData = null;
             this.cu_code.SelectField = null;
             this.cu_code.SetValueField = null;
             this.cu_code.Size = new System.Drawing.Size(150, 21);
             this.cu_code.TabIndex = 159;
             this.cu_code.TableName = null;
             this.cu_code.Tag = "cl_custcode";
+            this.cu_code.TextBoxEnable = false;
             // 
             // UpdateGrid
             // 
@@ -581,11 +597,23 @@ namespace UAS_LabelMachine
             this.cu_name.TabIndex = 147;
             this.cu_name.Tag = "cu_name";
             // 
+            // PortModel
+            // 
+            this.PortModel.AutoSize = true;
+            this.PortModel.Location = new System.Drawing.Point(923, 116);
+            this.PortModel.Name = "PortModel";
+            this.PortModel.Size = new System.Drawing.Size(96, 16);
+            this.PortModel.TabIndex = 193;
+            this.PortModel.Text = "启用被动模式";
+            this.PortModel.UseVisualStyleBackColor = true;
+            this.PortModel.CheckedChanged += new System.EventHandler(this.PortModel_CheckedChanged);
+            // 
             // 客户标签维护
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.ClientSize = new System.Drawing.Size(1179, 581);
+            this.Controls.Add(this.PortModel);
             this.Controls.Add(this.pictureBox1);
             this.Controls.Add(this.pagination1);
             this.Controls.Add(this.NewLabel);
@@ -687,5 +715,6 @@ namespace UAS_LabelMachine
         private DataGridViewTextBoxColumn cl_labelsoft;
         private DataGridViewTextBoxColumn cl_status;
         private PictureBox pictureBox1;
+        private CheckBox PortModel;
     }
 }

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

@@ -92,6 +92,7 @@ namespace UAS_LabelMachine
             dh = SystemInf.dh;
             condition.Append("");
             ChooseAll.ChooseAll(LabelDataGridView);
+            PortModel.Checked = Settings.Default.FTPModel;
             BaseUtil.SetComboxData(la_type, "display", "value", labeltype);
             //加载下拉框的静态值
             LoadData();
@@ -335,7 +336,7 @@ namespace UAS_LabelMachine
                 }
                 if (FTPShare.Checked)
                 {
-                    ftpOperater ftp = new ftpOperater();
+                    ftpOperater ftp = new ftpOperater(PortModel.Checked);
                     ftp.UpLoadFile(sourcePath, fileName);
                     string SoftWare = "CodeSoft";
                     if (CL_ID2 != null)
@@ -415,5 +416,11 @@ namespace UAS_LabelMachine
             FolderPath.Text = "";
             CL_ID2 = null;
         }
+
+        private void PortModel_CheckedChanged(object sender, EventArgs e)
+        {
+            Settings.Default.FTPModel = PortModel.Checked;
+            Settings.Default.Save();
+        }
     }
 }

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

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

+ 246 - 234
UAS-出货标签管理/UAS_出货标签管理.Designer.cs

@@ -55,7 +55,6 @@
             this.si_expressionitem = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.CleanDetail = new System.Windows.Forms.Button();
             this.pib_id = new System.Windows.Forms.Label();
-            this.pi_cardcode = new System.Windows.Forms.Label();
             this.pi_cardcode_label = new System.Windows.Forms.Label();
             this.Fresh = new System.Windows.Forms.LinkLabel();
             this.label3 = new System.Windows.Forms.Label();
@@ -95,6 +94,7 @@
             this.AttachInfo = new System.Windows.Forms.Button();
             this.pi_date = new System.Windows.Forms.Label();
             this.CleanBarCode = new System.Windows.Forms.Button();
+            this.cu_code = new UAS_LabelMachine.CustomControl.SearchTextBox();
             this.groupBoxWithBorder1 = new UAS_LabelMachine.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
             this.ExportData = new System.Windows.Forms.Button();
             this.label18 = new System.Windows.Forms.Label();
@@ -125,6 +125,31 @@
             this.sg_code = new UAS_LabelMachine.CustomControl.SearchTextBox();
             this.MessageLog = new UAS_LabelMachine.CustomControl.RichText.RichTextAutoBottom();
             this.LabelInf = new UAS_LabelMachine.CustomControl.DataGridViewWithSerialNum();
+            this.Choose = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_ifpick = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_ifprint = new System.Windows.Forms.DataGridViewCheckBoxColumn();
+            this.pib_id1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_pdno = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_prodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_vendprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_brand = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_madein = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_zxbzs = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_unit = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_lotno = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_datecode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_cusbarcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_cusoutboxcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_datecode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_qty = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_barcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_custbarcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pd_pocode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pd_custprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pd_custprodspec = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pr_spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_outboxcode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.pib_outboxcode2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.pi_inoutno = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.SingleLabel = new UAS_LabelMachine.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
             this.OPPOPlate = new System.Windows.Forms.Button();
@@ -155,31 +180,6 @@
             this.OutBoxLabelPrint = new System.Windows.Forms.Button();
             this.OutBoxLabelAutoPrint = new System.Windows.Forms.CheckBox();
             this.OutBoxCombox = new System.Windows.Forms.ComboBox();
-            this.Choose = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_ifpick = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_ifprint = new System.Windows.Forms.DataGridViewCheckBoxColumn();
-            this.pib_id1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_pdno = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_prodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_vendprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_brand = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_madein = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_zxbzs = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_unit = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_lotno = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_datecode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_cusbarcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_cusoutboxcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_datecode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_qty = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_barcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_custbarcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pd_pocode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pd_custprodcode = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pd_custprodspec = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pr_spec = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_outboxcode1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.pib_outboxcode2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             ((System.ComponentModel.ISupportInitialize)(this.Si_ItemDGV)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.MidSource)).BeginInit();
             this.groupBoxWithBorder1.SuspendLayout();
@@ -452,15 +452,6 @@
             this.pib_id.TabIndex = 69;
             this.pib_id.Visible = false;
             // 
-            // pi_cardcode
-            // 
-            this.pi_cardcode.AutoSize = true;
-            this.pi_cardcode.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.pi_cardcode.Location = new System.Drawing.Point(77, 38);
-            this.pi_cardcode.Name = "pi_cardcode";
-            this.pi_cardcode.Size = new System.Drawing.Size(0, 20);
-            this.pi_cardcode.TabIndex = 71;
-            // 
             // pi_cardcode_label
             // 
             this.pi_cardcode_label.AutoSize = true;
@@ -783,6 +774,26 @@
             this.CleanBarCode.UseVisualStyleBackColor = true;
             this.CleanBarCode.Click += new System.EventHandler(this.CleanBarCode_Click);
             // 
+            // cu_code
+            // 
+            this.cu_code.AllPower = null;
+            this.cu_code.Caller = null;
+            this.cu_code.Condition = null;
+            this.cu_code.DBTitle = null;
+            this.cu_code.FormName = null;
+            this.cu_code.Location = new System.Drawing.Point(75, 38);
+            this.cu_code.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.cu_code.Name = "cu_code";
+            this.cu_code.Power = null;
+            this.cu_code.ReturnData = null;
+            this.cu_code.SelectField = null;
+            this.cu_code.SetValueField = null;
+            this.cu_code.Size = new System.Drawing.Size(149, 21);
+            this.cu_code.TabIndex = 88;
+            this.cu_code.TableName = null;
+            this.cu_code.TextBoxEnable = false;
+            this.cu_code.UserControlTextChanged += new UAS_LabelMachine.CustomControl.SearchTextBox.OnTextChange(this.cu_code_UserControlTextChanged);
+            // 
             // groupBoxWithBorder1
             // 
             this.groupBoxWithBorder1.Controls.Add(this.ExportData);
@@ -1183,6 +1194,204 @@
             this.LabelInf.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.LabelInf_CellValueChanged);
             this.LabelInf.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.LabelInf_DataError);
             // 
+            // Choose
+            // 
+            this.Choose.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.Choose.HeaderText = "勾选";
+            this.Choose.Name = "Choose";
+            this.Choose.Resizable = System.Windows.Forms.DataGridViewTriState.True;
+            this.Choose.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
+            this.Choose.Width = 55;
+            // 
+            // pib_ifpick
+            // 
+            this.pib_ifpick.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.pib_ifpick.DataPropertyName = "pib_ifpick";
+            this.pib_ifpick.HeaderText = "已采集";
+            this.pib_ifpick.Name = "pib_ifpick";
+            this.pib_ifpick.Width = 60;
+            // 
+            // pib_ifprint
+            // 
+            this.pib_ifprint.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.pib_ifprint.DataPropertyName = "pib_ifprint";
+            this.pib_ifprint.HeaderText = "已打印";
+            this.pib_ifprint.Name = "pib_ifprint";
+            this.pib_ifprint.Width = 60;
+            // 
+            // pib_id1
+            // 
+            this.pib_id1.DataPropertyName = "pib_id";
+            this.pib_id1.HeaderText = "pib_id";
+            this.pib_id1.Name = "pib_id1";
+            this.pib_id1.Visible = false;
+            this.pib_id1.Width = 66;
+            // 
+            // pib_pdno
+            // 
+            this.pib_pdno.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.pib_pdno.DataPropertyName = "pib_pdno";
+            this.pib_pdno.HeaderText = "明细序号";
+            this.pib_pdno.Name = "pib_pdno";
+            this.pib_pdno.ReadOnly = true;
+            this.pib_pdno.Width = 96;
+            // 
+            // pib_prodcode
+            // 
+            this.pib_prodcode.DataPropertyName = "pib_prodcode";
+            this.pib_prodcode.HeaderText = "物料编号";
+            this.pib_prodcode.Name = "pib_prodcode";
+            this.pib_prodcode.ReadOnly = true;
+            this.pib_prodcode.Width = 78;
+            // 
+            // pr_vendprodcode
+            // 
+            this.pr_vendprodcode.DataPropertyName = "pr_vendprodcode";
+            this.pr_vendprodcode.HeaderText = "MPN";
+            this.pr_vendprodcode.Name = "pr_vendprodcode";
+            this.pr_vendprodcode.ReadOnly = true;
+            this.pr_vendprodcode.Width = 48;
+            // 
+            // pib_brand
+            // 
+            this.pib_brand.DataPropertyName = "pib_brand";
+            this.pib_brand.HeaderText = "品牌";
+            this.pib_brand.Name = "pib_brand";
+            this.pib_brand.ReadOnly = true;
+            this.pib_brand.Width = 54;
+            // 
+            // pib_madein
+            // 
+            this.pib_madein.DataPropertyName = "pib_madein";
+            this.pib_madein.HeaderText = "产地";
+            this.pib_madein.Name = "pib_madein";
+            this.pib_madein.Width = 54;
+            // 
+            // pr_zxbzs
+            // 
+            this.pr_zxbzs.DataPropertyName = "pr_zxbzs";
+            this.pr_zxbzs.HeaderText = "最小包装数";
+            this.pr_zxbzs.Name = "pr_zxbzs";
+            this.pr_zxbzs.Visible = false;
+            this.pr_zxbzs.Width = 90;
+            // 
+            // pr_unit
+            // 
+            this.pr_unit.DataPropertyName = "pr_unit";
+            this.pr_unit.HeaderText = "单位";
+            this.pr_unit.Name = "pr_unit";
+            this.pr_unit.Visible = false;
+            this.pr_unit.Width = 54;
+            // 
+            // pib_lotno
+            // 
+            this.pib_lotno.DataPropertyName = "pib_lotno";
+            this.pib_lotno.HeaderText = "LotNo";
+            this.pib_lotno.Name = "pib_lotno";
+            this.pib_lotno.Width = 60;
+            // 
+            // pib_datecode
+            // 
+            this.pib_datecode.DataPropertyName = "pib_datecode";
+            this.pib_datecode.HeaderText = "DateCode";
+            this.pib_datecode.Name = "pib_datecode";
+            this.pib_datecode.Width = 78;
+            // 
+            // pib_cusbarcode
+            // 
+            this.pib_cusbarcode.DataPropertyName = "pib_cusbarcode";
+            this.pib_cusbarcode.HeaderText = "ViVo条码号";
+            this.pib_cusbarcode.Name = "pib_cusbarcode";
+            this.pib_cusbarcode.Width = 90;
+            // 
+            // pib_cusoutboxcode
+            // 
+            this.pib_cusoutboxcode.DataPropertyName = "pib_cusoutboxcode";
+            this.pib_cusoutboxcode.HeaderText = "ViVo外箱";
+            this.pib_cusoutboxcode.Name = "pib_cusoutboxcode";
+            this.pib_cusoutboxcode.Width = 78;
+            // 
+            // pib_datecode1
+            // 
+            this.pib_datecode1.DataPropertyName = "pib_datecode1";
+            this.pib_datecode1.HeaderText = "DateCode1";
+            this.pib_datecode1.Name = "pib_datecode1";
+            this.pib_datecode1.Visible = false;
+            this.pib_datecode1.Width = 84;
+            // 
+            // pib_qty
+            // 
+            this.pib_qty.DataPropertyName = "pib_qty";
+            this.pib_qty.HeaderText = "数量";
+            this.pib_qty.Name = "pib_qty";
+            this.pib_qty.ReadOnly = true;
+            this.pib_qty.Width = 54;
+            // 
+            // pib_barcode
+            // 
+            this.pib_barcode.DataPropertyName = "pib_barcode";
+            this.pib_barcode.HeaderText = "唯一条码";
+            this.pib_barcode.Name = "pib_barcode";
+            this.pib_barcode.ReadOnly = true;
+            this.pib_barcode.Width = 78;
+            // 
+            // pib_custbarcode
+            // 
+            this.pib_custbarcode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
+            this.pib_custbarcode.DataPropertyName = "pib_custbarcode";
+            this.pib_custbarcode.HeaderText = "客户条码";
+            this.pib_custbarcode.Name = "pib_custbarcode";
+            this.pib_custbarcode.ReadOnly = true;
+            this.pib_custbarcode.Width = 78;
+            // 
+            // pd_pocode
+            // 
+            this.pd_pocode.DataPropertyName = "pd_pocode";
+            this.pd_pocode.HeaderText = "客户PO";
+            this.pd_pocode.Name = "pd_pocode";
+            this.pd_pocode.ReadOnly = true;
+            this.pd_pocode.Width = 66;
+            // 
+            // pd_custprodcode
+            // 
+            this.pd_custprodcode.DataPropertyName = "pd_custprodcode";
+            this.pd_custprodcode.HeaderText = "客户料号";
+            this.pd_custprodcode.Name = "pd_custprodcode";
+            this.pd_custprodcode.ReadOnly = true;
+            this.pd_custprodcode.Width = 78;
+            // 
+            // pd_custprodspec
+            // 
+            this.pd_custprodspec.DataPropertyName = "pd_custprodspec";
+            this.pd_custprodspec.HeaderText = "客户型号";
+            this.pd_custprodspec.Name = "pd_custprodspec";
+            this.pd_custprodspec.ReadOnly = true;
+            this.pd_custprodspec.Width = 78;
+            // 
+            // pr_spec
+            // 
+            this.pr_spec.DataPropertyName = "pr_spec";
+            this.pr_spec.HeaderText = "规格";
+            this.pr_spec.Name = "pr_spec";
+            this.pr_spec.Visible = false;
+            this.pr_spec.Width = 54;
+            // 
+            // pib_outboxcode1
+            // 
+            this.pib_outboxcode1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.pib_outboxcode1.DataPropertyName = "pib_outboxcode1";
+            this.pib_outboxcode1.HeaderText = "中盒号";
+            this.pib_outboxcode1.Name = "pib_outboxcode1";
+            this.pib_outboxcode1.Width = 90;
+            // 
+            // pib_outboxcode2
+            // 
+            this.pib_outboxcode2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
+            this.pib_outboxcode2.DataPropertyName = "pib_outboxcode2";
+            this.pib_outboxcode2.HeaderText = "外箱号";
+            this.pib_outboxcode2.Name = "pib_outboxcode2";
+            this.pib_outboxcode2.Width = 90;
+            // 
             // pi_inoutno
             // 
             this.pi_inoutno.ID = null;
@@ -1556,209 +1765,13 @@
             this.OutBoxCombox.TabIndex = 78;
             this.OutBoxCombox.SelectedIndexChanged += new System.EventHandler(this.OutBoxCombox_SelectedIndexChanged);
             // 
-            // Choose
-            // 
-            this.Choose.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.Choose.HeaderText = "勾选";
-            this.Choose.Name = "Choose";
-            this.Choose.Resizable = System.Windows.Forms.DataGridViewTriState.True;
-            this.Choose.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic;
-            this.Choose.Width = 55;
-            // 
-            // pib_ifpick
-            // 
-            this.pib_ifpick.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.pib_ifpick.DataPropertyName = "pib_ifpick";
-            this.pib_ifpick.HeaderText = "已采集";
-            this.pib_ifpick.Name = "pib_ifpick";
-            this.pib_ifpick.Width = 60;
-            // 
-            // pib_ifprint
-            // 
-            this.pib_ifprint.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.pib_ifprint.DataPropertyName = "pib_ifprint";
-            this.pib_ifprint.HeaderText = "已打印";
-            this.pib_ifprint.Name = "pib_ifprint";
-            this.pib_ifprint.Width = 60;
-            // 
-            // pib_id1
-            // 
-            this.pib_id1.DataPropertyName = "pib_id";
-            this.pib_id1.HeaderText = "pib_id";
-            this.pib_id1.Name = "pib_id1";
-            this.pib_id1.Width = 66;
-            // 
-            // pib_pdno
-            // 
-            this.pib_pdno.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.pib_pdno.DataPropertyName = "pib_pdno";
-            this.pib_pdno.HeaderText = "明细序号";
-            this.pib_pdno.Name = "pib_pdno";
-            this.pib_pdno.ReadOnly = true;
-            this.pib_pdno.Width = 96;
-            // 
-            // pib_prodcode
-            // 
-            this.pib_prodcode.DataPropertyName = "pib_prodcode";
-            this.pib_prodcode.HeaderText = "物料编号";
-            this.pib_prodcode.Name = "pib_prodcode";
-            this.pib_prodcode.ReadOnly = true;
-            this.pib_prodcode.Width = 78;
-            // 
-            // pr_vendprodcode
-            // 
-            this.pr_vendprodcode.DataPropertyName = "pr_vendprodcode";
-            this.pr_vendprodcode.HeaderText = "MPN";
-            this.pr_vendprodcode.Name = "pr_vendprodcode";
-            this.pr_vendprodcode.ReadOnly = true;
-            this.pr_vendprodcode.Width = 48;
-            // 
-            // pib_brand
-            // 
-            this.pib_brand.DataPropertyName = "pib_brand";
-            this.pib_brand.HeaderText = "品牌";
-            this.pib_brand.Name = "pib_brand";
-            this.pib_brand.ReadOnly = true;
-            this.pib_brand.Width = 54;
-            // 
-            // pib_madein
-            // 
-            this.pib_madein.DataPropertyName = "pib_madein";
-            this.pib_madein.HeaderText = "产地";
-            this.pib_madein.Name = "pib_madein";
-            this.pib_madein.Width = 54;
-            // 
-            // pr_zxbzs
-            // 
-            this.pr_zxbzs.DataPropertyName = "pr_zxbzs";
-            this.pr_zxbzs.HeaderText = "最小包装数";
-            this.pr_zxbzs.Name = "pr_zxbzs";
-            this.pr_zxbzs.Visible = false;
-            this.pr_zxbzs.Width = 90;
-            // 
-            // pr_unit
-            // 
-            this.pr_unit.DataPropertyName = "pr_unit";
-            this.pr_unit.HeaderText = "单位";
-            this.pr_unit.Name = "pr_unit";
-            this.pr_unit.Visible = false;
-            this.pr_unit.Width = 54;
-            // 
-            // pib_lotno
-            // 
-            this.pib_lotno.DataPropertyName = "pib_lotno";
-            this.pib_lotno.HeaderText = "LotNo";
-            this.pib_lotno.Name = "pib_lotno";
-            this.pib_lotno.Width = 60;
-            // 
-            // pib_datecode
-            // 
-            this.pib_datecode.DataPropertyName = "pib_datecode";
-            this.pib_datecode.HeaderText = "DateCode";
-            this.pib_datecode.Name = "pib_datecode";
-            this.pib_datecode.Width = 78;
-            // 
-            // pib_cusbarcode
-            // 
-            this.pib_cusbarcode.DataPropertyName = "pib_cusbarcode";
-            this.pib_cusbarcode.HeaderText = "ViVo条码号";
-            this.pib_cusbarcode.Name = "pib_cusbarcode";
-            this.pib_cusbarcode.Width = 90;
-            // 
-            // pib_cusoutboxcode
-            // 
-            this.pib_cusoutboxcode.DataPropertyName = "pib_cusoutboxcode";
-            this.pib_cusoutboxcode.HeaderText = "ViVo外箱";
-            this.pib_cusoutboxcode.Name = "pib_cusoutboxcode";
-            this.pib_cusoutboxcode.Width = 78;
-            // 
-            // pib_datecode1
-            // 
-            this.pib_datecode1.DataPropertyName = "pib_datecode1";
-            this.pib_datecode1.HeaderText = "DateCode1";
-            this.pib_datecode1.Name = "pib_datecode1";
-            this.pib_datecode1.Visible = false;
-            this.pib_datecode1.Width = 84;
-            // 
-            // pib_qty
-            // 
-            this.pib_qty.DataPropertyName = "pib_qty";
-            this.pib_qty.HeaderText = "数量";
-            this.pib_qty.Name = "pib_qty";
-            this.pib_qty.ReadOnly = true;
-            this.pib_qty.Width = 54;
-            // 
-            // pib_barcode
-            // 
-            this.pib_barcode.DataPropertyName = "pib_barcode";
-            this.pib_barcode.HeaderText = "唯一条码";
-            this.pib_barcode.Name = "pib_barcode";
-            this.pib_barcode.ReadOnly = true;
-            this.pib_barcode.Width = 78;
-            // 
-            // pib_custbarcode
-            // 
-            this.pib_custbarcode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.DisplayedCells;
-            this.pib_custbarcode.DataPropertyName = "pib_custbarcode";
-            this.pib_custbarcode.HeaderText = "客户条码";
-            this.pib_custbarcode.Name = "pib_custbarcode";
-            this.pib_custbarcode.ReadOnly = true;
-            this.pib_custbarcode.Width = 78;
-            // 
-            // pd_pocode
-            // 
-            this.pd_pocode.DataPropertyName = "pd_pocode";
-            this.pd_pocode.HeaderText = "客户PO";
-            this.pd_pocode.Name = "pd_pocode";
-            this.pd_pocode.ReadOnly = true;
-            this.pd_pocode.Width = 66;
-            // 
-            // pd_custprodcode
-            // 
-            this.pd_custprodcode.DataPropertyName = "pd_custprodcode";
-            this.pd_custprodcode.HeaderText = "客户料号";
-            this.pd_custprodcode.Name = "pd_custprodcode";
-            this.pd_custprodcode.ReadOnly = true;
-            this.pd_custprodcode.Width = 78;
-            // 
-            // pd_custprodspec
-            // 
-            this.pd_custprodspec.DataPropertyName = "pd_custprodspec";
-            this.pd_custprodspec.HeaderText = "客户型号";
-            this.pd_custprodspec.Name = "pd_custprodspec";
-            this.pd_custprodspec.ReadOnly = true;
-            this.pd_custprodspec.Width = 78;
-            // 
-            // pr_spec
-            // 
-            this.pr_spec.DataPropertyName = "pr_spec";
-            this.pr_spec.HeaderText = "规格";
-            this.pr_spec.Name = "pr_spec";
-            this.pr_spec.Visible = false;
-            this.pr_spec.Width = 54;
-            // 
-            // pib_outboxcode1
-            // 
-            this.pib_outboxcode1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.pib_outboxcode1.DataPropertyName = "pib_outboxcode1";
-            this.pib_outboxcode1.HeaderText = "中盒号";
-            this.pib_outboxcode1.Name = "pib_outboxcode1";
-            this.pib_outboxcode1.Width = 90;
-            // 
-            // pib_outboxcode2
-            // 
-            this.pib_outboxcode2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
-            this.pib_outboxcode2.DataPropertyName = "pib_outboxcode2";
-            this.pib_outboxcode2.HeaderText = "外箱号";
-            this.pib_outboxcode2.Name = "pib_outboxcode2";
-            this.pib_outboxcode2.Width = 90;
-            // 
             // UAS_出货标签打印
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(229)))), ((int)(((byte)(233)))), ((int)(((byte)(206)))));
             this.ClientSize = new System.Drawing.Size(1257, 711);
+            this.Controls.Add(this.cu_code);
             this.Controls.Add(this.CleanBarCode);
             this.Controls.Add(this.pi_date);
             this.Controls.Add(this.AttachInfo);
@@ -1769,7 +1782,6 @@
             this.Controls.Add(this.CleanInputAfterCollect);
             this.Controls.Add(this.Fresh);
             this.Controls.Add(this.pi_cardcode_label);
-            this.Controls.Add(this.pi_cardcode);
             this.Controls.Add(this.pib_id);
             this.Controls.Add(this.pr_code);
             this.Controls.Add(this.CleanDetail);
@@ -1910,7 +1922,6 @@
         private System.Windows.Forms.Label Process_midboxcode;
         private System.Windows.Forms.Label Process_outboxcode;
         private System.Windows.Forms.Label Capacity;
-        private System.Windows.Forms.Label pi_cardcode;
         private System.Windows.Forms.Label pi_cardcode_label;
         private System.Windows.Forms.LinkLabel Fresh;
         private System.Windows.Forms.Label label3;
@@ -1980,5 +1991,6 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn pr_spec;
         private System.Windows.Forms.DataGridViewTextBoxColumn pib_outboxcode1;
         private System.Windows.Forms.DataGridViewTextBoxColumn pib_outboxcode2;
+        private CustomControl.SearchTextBox cu_code;
     }
 }

+ 38 - 14
UAS-出货标签管理/UAS_出货标签管理.cs

@@ -190,11 +190,18 @@ namespace UAS_LabelMachine
             sg_code.SelectField = "sg_code # 策略编号 ,sg_name # 策略名称,sg_brand # 品牌,sg_separator # 分隔符";
             sg_code.TableName = "scangroup";
             sg_code.DbChange += Sg_code_DbChange;
+
             pr_code.FormName = Name;
             pr_code.SetValueField = new string[] { "pr_code" };
             pr_code.TableName = "prodiodetail left join product on pd_prodcode=pr_code";
             pr_code.SelectField = "pd_pdno # 行号,pr_code # 物料编号";
 
+            cu_code.FormName = Name;
+            cu_code.SetValueField = new string[] { "cu_code" };
+            cu_code.TableName = "customer";
+            cu_code.SelectField = "cu_code # 客户编号,cu_name # 客户名称";
+
+
             CollectionUnit.Text = "盘";
             Point pt = new Point();
             //禁止所有列的排序
@@ -224,6 +231,7 @@ namespace UAS_LabelMachine
                 pib_cusbarcode.Visible = false;
                 pib_cusoutboxcode.Visible = false;
                 ViVoPlate.Visible = false;
+                OPPOPlate.Visible = false;
                 OutBoxLabelPackage.Visible = false;
                 //GetOutBoxCode.Visible = false;
             }
@@ -1006,11 +1014,11 @@ namespace UAS_LabelMachine
         private void GetInOutInfAndLabelFile()
         {
             ComBoxClickChangeLabelDoc = false;
-            Attach = (DataTable)dh.ExecuteSql("select lap_param lp_name,lap_value lp_sql  from LabelAttachPARAMETER where lap_custcode='" + pi_cardcode.Text + "'", "select");
+            Attach = (DataTable)dh.ExecuteSql("select lap_param lp_name,lap_value lp_sql  from LabelAttachPARAMETER where lap_custcode='" + cu_code.Text + "'", "select");
             sql.Clear();
             sql.Append("select to_char(nvl(cl_date,sysdate),'YYYY-MM-DD HH24:Mi:SS') cl_date,cl_labelname,cl_isdefault,la_id||'#'||cl_labelurl||'#'||to_char(cl_date,'YYYY-MM-DD HH24:Mi:SS')  la_id,cl_custcode from customerlabel left join prodinout on pi_cardcode=cl_custcode ");
-            sql.Append("left join customer on cu_code=cl_custcode left join label on la_code=CL_LABELCODE where ((pi_cardcode='" + pi_cardcode.Text + "' ");
-            sql.Append("and  pi_inoutno='" + pi_inoutno.Text + "') or( cl_custcode is null)) and cl_labeltype='单盘' order by cl_custcode");
+            sql.Append("left join customer on cu_code=cl_custcode left join label on la_code=CL_LABELCODE where ");
+            sql.Append("(cl_custcode='" + cu_code.Text + "' or cl_custcode is null) and cl_labeltype='单盘' order by cl_custcode");
             dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
             SingleLabelCombox.DisplayMember = "cl_labelname";
             SingleLabelCombox.ValueMember = "la_id";
@@ -1038,8 +1046,8 @@ namespace UAS_LabelMachine
             }
             sql.Clear();
             sql.Append("select to_char(nvl(cl_date,sysdate),'YYYY-MM-DD HH24:Mi:SS') cl_date,cl_labelname,cl_isdefault,la_id||'#'||cl_labelurl||'#'||to_char(cl_date,'YYYY-MM-DD HH24:Mi:SS')  la_id,cl_custcode from customerlabel left join prodinout on pi_cardcode=cl_custcode ");
-            sql.Append("left join customer on cu_code=cl_custcode left join label on la_code=CL_LABELCODE where ((pi_cardcode='" + pi_cardcode.Text + "' ");
-            sql.Append("and  pi_inoutno='" + pi_inoutno.Text + "') or( cl_custcode is null)) and cl_labeltype='中盒' order by cl_custcode");
+            sql.Append("left join customer on cu_code=cl_custcode left join label on la_code=CL_LABELCODE where ");
+            sql.Append("(cl_custcode='" + cu_code.Text + "' or cl_custcode is null) and cl_labeltype='中盒' order by cl_custcode");
             dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
             MidLabelCombox.DisplayMember = "cl_labelname";
             MidLabelCombox.ValueMember = "la_id";
@@ -1064,8 +1072,8 @@ namespace UAS_LabelMachine
             //缓存中盒参数
             sql.Clear();
             sql.Append("select to_char(nvl(cl_date,sysdate),'YYYY-MM-DD HH24:Mi:SS') cl_date,cl_labelname,cl_isdefault,la_id||'#'||cl_labelurl||'#'||to_char(cl_date,'YYYY-MM-DD HH24:Mi:SS')  la_id,cl_custcode from customerlabel left join prodinout on pi_cardcode=cl_custcode ");
-            sql.Append("left join customer on cu_code=cl_custcode left join label on la_code=CL_LABELCODE where ((pi_cardcode='" + pi_cardcode.Text + "' ");
-            sql.Append("and  pi_inoutno='" + pi_inoutno.Text + "') or( cl_custcode is null)) and cl_labeltype='外箱' order by cl_custcode");
+            sql.Append("left join customer on cu_code=cl_custcode left join label on la_code=CL_LABELCODE where ");
+            sql.Append("(cl_custcode='" + cu_code.Text + "' or cl_custcode is null) and cl_labeltype='外箱' order by cl_custcode");
             dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
             OutBoxCombox.DisplayMember = "cl_labelname";
             OutBoxCombox.ValueMember = "la_id";
@@ -1104,10 +1112,10 @@ namespace UAS_LabelMachine
             {
                 sql.Clear();
                 sql.Append("select pi_id,pi_cardcode,to_char(pi_date,'yyyymmdd')pi_date from prodinout where pi_inoutno='" + pi_inoutno.Text + "'");
-                dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
+                DataTable dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
                 if (dt.Rows.Count > 0)
                 {
-                    pi_cardcode.Text = dt.Rows[0]["pi_cardcode"].ToString();
+                    cu_code.Text = dt.Rows[0]["pi_cardcode"].ToString();
                     pi_date.Text = dt.Rows[0]["pi_date"].ToString();
                     PI_ID = dt.Rows[0]["pi_id"].ToString();
                     if (dh.GetConfig("AutoBarcode", "ProdInOut!Sale").ToString() != "")
@@ -2499,9 +2507,9 @@ namespace UAS_LabelMachine
 
         private void AttachInfo_Click(object sender, EventArgs e)
         {
-            if (pi_cardcode.Text != "")
+            if (cu_code.Text != "")
             {
-                附件内容打印 att = new 附件内容打印(pi_cardcode.Text);
+                附件内容打印 att = new 附件内容打印(cu_code.Text);
                 att.ShowDialog();
             }
             else MessageBox.Show("请先获取出库单信息");
@@ -2540,8 +2548,10 @@ namespace UAS_LabelMachine
             }
         }
         HttpCommand hc = new HttpCommand();
-        const string AppId = "OPPO_UPN";
-        const string Secret = "c9f2e3237b66415ead1df77e97abd72d";
+        //const string AppId = "OPPO_UPN";
+        //const string Secret = "c9f2e3237b66415ead1df77e97abd72d";
+        const string AppId = "SUP_JW959";
+        const string Secret = "fc6d3f1876f34810b6e61a8478441ccb";
         int PageCount = 100;
         private void OPPOPlate_Click(object sender, EventArgs e)
         {
@@ -2581,10 +2591,24 @@ namespace UAS_LabelMachine
                 if ((i != 0 && (i + 1) % PageCount == 0) || i == LabelInf.Rows.Count - 1)
                 {
                     strUpnList.Append("]");
-                    string strmsginsert = hc.insertUpnInfo("https://apitest.myoas.com", AppId, Secret, strUpnList.ToString(), (i + 1) % PageCount == 0 ? PageCount : (i + 1) % PageCount);
+                    string strmsginsert = hc.insertUpnInfo("https://api.myoas.com", AppId, Secret, strUpnList.ToString(), (i + 1) % PageCount == 0 ? PageCount : (i + 1) % PageCount);
+                    Dictionary<string, object> dic = BaseUtil.ToDictionary(strmsginsert);
+                    if (dic["code"].ToString().Replace("\"", "") != "200")
+                    {
+                        MessageLog.AppendText(dic["msg"] + "产地,LotNo,DateCode值不允许为空,请校验\n", Color.Red);
+                    }
+                    else
+                    {
+                        MessageLog.AppendText("上传成功", Color.Green);
+                    }
                     strUpnList.Clear();
                 }
             }
         }
+
+        private void cu_code_UserControlTextChanged(object sender, EventArgs e)
+        {
+            GetInOutInfAndLabelFile();
+        }
     }
 }

+ 25 - 11
UAS-出货标签管理/生成条码.cs

@@ -1,5 +1,4 @@
-using NPOI.SS.Util;
-using System;
+using System;
 using System.Collections.Generic;
 using System.Data;
 using System.Drawing;
@@ -446,15 +445,30 @@ namespace UAS_LabelMachine
             {
                 pi_id = dt.Rows[0]["pi_id"].ToString();
                 BaseUtil.SetFormValue(this.Controls, dt);
-                //查询出入库的类型
-                dt = (DataTable)dh.ExecuteSql("select ds_inorout from documentsetup where ds_name='" + pi_class.Text + "'", "select");
-                sql.Clear();
-                sql.Append("select pd_piid,pd_id,pr_id,pr_brand,pr_unit,pr_detail,pr_spec,pr_zxbzs,outqty pd_totalqty,pd_ordercode,pd_orderdetno,pd_pdno,pd_prodcode,");
-                sql.Append("pd_piclass,pd_qty from (select pd_piid,pd_id,pr_id,pr_brand,pr_unit,pr_detail,pr_spec,pr_zxbzs,outqty,pd_ordercode,pd_orderdetno,pd_pdno,");
-                sql.Append("pd_prodcode,pd_piclass,outqty-nvl((select sum(nvl(pib_qty,0)) from PRODIOBARCODE where PIB_PIID=pd_piid and pib_pdno=pd_pdno ),0)pd_qty ");
-                sql.Append("from (select pd_piid,min(pd_id) pd_id,sum(pd_outqty)outqty,pd_ordercode,pd_orderdetno,pd_pdno,max(pd_prodcode)pd_prodcode,max(pd_piclass)pd_piclass ");
-                sql.Append("from prodiodetail where pd_piclass='出货单' group by pd_piid,pd_ordercode, pd_orderdetno,pd_pdno)T left join product ");
-                sql.Append("on pr_code=pd_prodcode where nvl(pr_zxbzs,0)>0)  where  pd_piid='" + pi_id + "'");
+                switch (pi_class.Text)
+                {
+                    case "出货单":
+                        sql.Clear();
+                        sql.Append("select pd_piid,pd_id,pr_id,pr_brand,pr_unit,pr_detail,pr_spec,pr_zxbzs,outqty pd_totalqty,pd_ordercode,pd_orderdetno,pd_pdno,pd_prodcode,");
+                        sql.Append("pd_piclass,pd_qty from (select pd_piid,pd_id,pr_id,pr_brand,pr_unit,pr_detail,pr_spec,pr_zxbzs,outqty,pd_ordercode,pd_orderdetno,pd_pdno,");
+                        sql.Append("pd_prodcode,pd_piclass,outqty-nvl((select sum(nvl(pib_qty,0)) from PRODIOBARCODE where PIB_PIID=pd_piid and pib_pdno=pd_pdno ),0)pd_qty ");
+                        sql.Append("from (select pd_piid,min(pd_id) pd_id,sum(pd_outqty)outqty,pd_ordercode,pd_orderdetno,pd_pdno,max(pd_prodcode)pd_prodcode,max(pd_piclass)pd_piclass ");
+                        sql.Append("from prodiodetail  group by pd_piid,pd_ordercode, pd_orderdetno,pd_pdno)T left join product ");
+                        sql.Append("on pr_code=pd_prodcode where nvl(pr_zxbzs,0)>0)  where  pd_piid='" + pi_id + "'");
+                        break;
+                    case "完工入库单":
+                        sql.Clear();
+                        sql.Append("select pd_piid,pd_id,pr_id,pr_brand,pr_unit,pr_detail,pr_spec,pr_zxbzs,inqty pd_totalqty,pd_ordercode,pd_orderdetno,pd_pdno,pd_prodcode,");
+                        sql.Append("pd_piclass,pd_qty from (select pd_piid,pd_id,pr_id,pr_brand,pr_unit,pr_detail,pr_spec,pr_zxbzs,inqty,pd_ordercode,pd_orderdetno,pd_pdno,");
+                        sql.Append("pd_prodcode,pd_piclass,inqty-nvl((select sum(nvl(pib_qty,0)) from PRODIOBARCODE where PIB_PIID=pd_piid and pib_pdno=pd_pdno ),0)pd_qty ");
+                        sql.Append("from (select pd_piid,min(pd_id) pd_id,sum(pd_inqty)inqty,pd_ordercode,pd_orderdetno,pd_pdno,max(pd_prodcode)pd_prodcode,max(pd_piclass)pd_piclass ");
+                        sql.Append("from prodiodetail  group by pd_piid,pd_ordercode, pd_orderdetno,pd_pdno)T left join product ");
+                        sql.Append("on pr_code=pd_prodcode where nvl(pr_zxbzs,0)>0)  where  pd_piid='" + pi_id + "'");
+                        break;
+                    default:
+                        break;
+                }
+
                 dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
                 BaseUtil.FillDgvWithDataTable(ProdIoInfDGV, dt);
             }