Browse Source

打印程序修改

章政 8 years ago
parent
commit
09511cc5c7

+ 159 - 30
UAS-出货标签管理/UAS_出货标签管理.Designer.cs

@@ -91,6 +91,15 @@
             this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.MidSource = new System.Windows.Forms.BindingSource(this.components);
             this.ChooseAll = new System.Windows.Forms.Button();
+            this.groupBoxWithBorder1 = new UAS_LabelMachine.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
+            this.label18 = new System.Windows.Forms.Label();
+            this.MidBoxEnd = new UAS_LabelMachine.CustomControl.EnterTextBox();
+            this.MidBoxBegin = new UAS_LabelMachine.CustomControl.EnterTextBox();
+            this.label16 = new System.Windows.Forms.Label();
+            this.SingleBoxEnd = new UAS_LabelMachine.CustomControl.EnterTextBox();
+            this.SingleBoxBegin = new UAS_LabelMachine.CustomControl.EnterTextBox();
+            this.label12 = new System.Windows.Forms.Label();
+            this.label7 = new System.Windows.Forms.Label();
             this.pr_code = new UAS_LabelMachine.CustomControl.SearchTextBox();
             this.CollectionProcess = new UAS_LabelMachine.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
             this.Capacity = new System.Windows.Forms.Label();
@@ -166,6 +175,7 @@
             this.OutBoxCombox = new System.Windows.Forms.ComboBox();
             ((System.ComponentModel.ISupportInitialize)(this.Si_ItemDGV)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.MidSource)).BeginInit();
+            this.groupBoxWithBorder1.SuspendLayout();
             this.CollectionProcess.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.LabelInf)).BeginInit();
             this.SingleLabel.SuspendLayout();
@@ -730,6 +740,113 @@
             this.ChooseAll.UseVisualStyleBackColor = true;
             this.ChooseAll.Click += new System.EventHandler(this.ChooseAll_Click);
             // 
+            // groupBoxWithBorder1
+            // 
+            this.groupBoxWithBorder1.Controls.Add(this.label18);
+            this.groupBoxWithBorder1.Controls.Add(this.MidBoxEnd);
+            this.groupBoxWithBorder1.Controls.Add(this.MidBoxBegin);
+            this.groupBoxWithBorder1.Controls.Add(this.label16);
+            this.groupBoxWithBorder1.Controls.Add(this.SingleBoxEnd);
+            this.groupBoxWithBorder1.Controls.Add(this.SingleBoxBegin);
+            this.groupBoxWithBorder1.Controls.Add(this.label12);
+            this.groupBoxWithBorder1.Controls.Add(this.label7);
+            this.groupBoxWithBorder1.Location = new System.Drawing.Point(598, 6);
+            this.groupBoxWithBorder1.Margin = new System.Windows.Forms.Padding(2);
+            this.groupBoxWithBorder1.Name = "groupBoxWithBorder1";
+            this.groupBoxWithBorder1.Padding = new System.Windows.Forms.Padding(2);
+            this.groupBoxWithBorder1.Size = new System.Drawing.Size(151, 238);
+            this.groupBoxWithBorder1.TabIndex = 81;
+            this.groupBoxWithBorder1.TabStop = false;
+            this.groupBoxWithBorder1.Text = " 打印参数设置";
+            // 
+            // label18
+            // 
+            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, 146);
+            this.label18.Name = "label18";
+            this.label18.Size = new System.Drawing.Size(13, 17);
+            this.label18.TabIndex = 90;
+            this.label18.Text = "-";
+            // 
+            // MidBoxEnd
+            // 
+            this.MidBoxEnd.ID = null;
+            this.MidBoxEnd.Location = new System.Drawing.Point(88, 148);
+            this.MidBoxEnd.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidBoxEnd.Name = "MidBoxEnd";
+            this.MidBoxEnd.Size = new System.Drawing.Size(50, 21);
+            this.MidBoxEnd.Str = null;
+            this.MidBoxEnd.Str1 = null;
+            this.MidBoxEnd.Str2 = null;
+            this.MidBoxEnd.TabIndex = 89;
+            // 
+            // MidBoxBegin
+            // 
+            this.MidBoxBegin.ID = null;
+            this.MidBoxBegin.Location = new System.Drawing.Point(13, 148);
+            this.MidBoxBegin.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.MidBoxBegin.Name = "MidBoxBegin";
+            this.MidBoxBegin.Size = new System.Drawing.Size(50, 21);
+            this.MidBoxBegin.Str = null;
+            this.MidBoxBegin.Str1 = null;
+            this.MidBoxBegin.Str2 = null;
+            this.MidBoxBegin.TabIndex = 88;
+            // 
+            // label16
+            // 
+            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(65, 73);
+            this.label16.Name = "label16";
+            this.label16.Size = new System.Drawing.Size(13, 17);
+            this.label16.TabIndex = 87;
+            this.label16.Text = "-";
+            // 
+            // SingleBoxEnd
+            // 
+            this.SingleBoxEnd.ID = null;
+            this.SingleBoxEnd.Location = new System.Drawing.Point(87, 75);
+            this.SingleBoxEnd.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.SingleBoxEnd.Name = "SingleBoxEnd";
+            this.SingleBoxEnd.Size = new System.Drawing.Size(50, 21);
+            this.SingleBoxEnd.Str = null;
+            this.SingleBoxEnd.Str1 = null;
+            this.SingleBoxEnd.Str2 = null;
+            this.SingleBoxEnd.TabIndex = 86;
+            // 
+            // SingleBoxBegin
+            // 
+            this.SingleBoxBegin.ID = null;
+            this.SingleBoxBegin.Location = new System.Drawing.Point(12, 75);
+            this.SingleBoxBegin.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
+            this.SingleBoxBegin.Name = "SingleBoxBegin";
+            this.SingleBoxBegin.Size = new System.Drawing.Size(50, 21);
+            this.SingleBoxBegin.Str = null;
+            this.SingleBoxBegin.Str1 = null;
+            this.SingleBoxBegin.Str2 = null;
+            this.SingleBoxBegin.TabIndex = 85;
+            // 
+            // label12
+            // 
+            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(13, 114);
+            this.label12.Name = "label12";
+            this.label12.Size = new System.Drawing.Size(56, 17);
+            this.label12.TabIndex = 77;
+            this.label12.Text = "中盒范围";
+            // 
+            // label7
+            // 
+            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(13, 40);
+            this.label7.Name = "label7";
+            this.label7.Size = new System.Drawing.Size(56, 17);
+            this.label7.TabIndex = 76;
+            this.label7.Text = "单盘范围";
+            // 
             // pr_code
             // 
             this.pr_code.Caller = null;
@@ -772,7 +889,7 @@
             // 
             this.Capacity.AutoSize = true;
             this.Capacity.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.Capacity.Location = new System.Drawing.Point(53, 71);
+            this.Capacity.Location = new System.Drawing.Point(61, 67);
             this.Capacity.Name = "Capacity";
             this.Capacity.Size = new System.Drawing.Size(0, 17);
             this.Capacity.TabIndex = 75;
@@ -781,7 +898,7 @@
             // 
             this.Process_midboxcode.AutoSize = true;
             this.Process_midboxcode.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.Process_midboxcode.Location = new System.Drawing.Point(53, 115);
+            this.Process_midboxcode.Location = new System.Drawing.Point(61, 111);
             this.Process_midboxcode.Name = "Process_midboxcode";
             this.Process_midboxcode.Size = new System.Drawing.Size(15, 17);
             this.Process_midboxcode.TabIndex = 74;
@@ -791,7 +908,7 @@
             // 
             this.Process_outboxcode.AutoSize = true;
             this.Process_outboxcode.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.Process_outboxcode.Location = new System.Drawing.Point(53, 91);
+            this.Process_outboxcode.Location = new System.Drawing.Point(61, 87);
             this.Process_outboxcode.Name = "Process_outboxcode";
             this.Process_outboxcode.Size = new System.Drawing.Size(15, 17);
             this.Process_outboxcode.TabIndex = 73;
@@ -802,7 +919,7 @@
             this.TotalCount.AutoSize = true;
             this.TotalCount.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.TotalCount.ForeColor = System.Drawing.Color.Blue;
-            this.TotalCount.Location = new System.Drawing.Point(87, 23);
+            this.TotalCount.Location = new System.Drawing.Point(95, 19);
             this.TotalCount.Name = "TotalCount";
             this.TotalCount.Size = new System.Drawing.Size(15, 17);
             this.TotalCount.TabIndex = 72;
@@ -812,7 +929,7 @@
             // 
             this.label17.AutoSize = true;
             this.label17.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label17.Location = new System.Drawing.Point(74, 23);
+            this.label17.Location = new System.Drawing.Point(82, 19);
             this.label17.Name = "label17";
             this.label17.Size = new System.Drawing.Size(13, 17);
             this.label17.TabIndex = 71;
@@ -823,7 +940,7 @@
             this.CollectedCount.AutoSize = true;
             this.CollectedCount.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.CollectedCount.ForeColor = System.Drawing.Color.Red;
-            this.CollectedCount.Location = new System.Drawing.Point(56, 23);
+            this.CollectedCount.Location = new System.Drawing.Point(64, 19);
             this.CollectedCount.Name = "CollectedCount";
             this.CollectedCount.Size = new System.Drawing.Size(15, 17);
             this.CollectedCount.TabIndex = 70;
@@ -833,7 +950,7 @@
             // 
             this.label14.AutoSize = true;
             this.label14.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label14.Location = new System.Drawing.Point(3, 92);
+            this.label14.Location = new System.Drawing.Point(11, 88);
             this.label14.Name = "label14";
             this.label14.Size = new System.Drawing.Size(32, 17);
             this.label14.TabIndex = 69;
@@ -843,7 +960,7 @@
             // 
             this.label11.AutoSize = true;
             this.label11.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label11.Location = new System.Drawing.Point(3, 115);
+            this.label11.Location = new System.Drawing.Point(11, 111);
             this.label11.Name = "label11";
             this.label11.Size = new System.Drawing.Size(32, 17);
             this.label11.TabIndex = 68;
@@ -853,7 +970,7 @@
             // 
             this.label13.AutoSize = true;
             this.label13.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label13.Location = new System.Drawing.Point(3, 51);
+            this.label13.Location = new System.Drawing.Point(11, 47);
             this.label13.Name = "label13";
             this.label13.Size = new System.Drawing.Size(44, 17);
             this.label13.TabIndex = 67;
@@ -863,7 +980,7 @@
             // 
             this.Installed.AutoSize = true;
             this.Installed.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.Installed.Location = new System.Drawing.Point(53, 51);
+            this.Installed.Location = new System.Drawing.Point(61, 47);
             this.Installed.Name = "Installed";
             this.Installed.Size = new System.Drawing.Size(0, 17);
             this.Installed.TabIndex = 66;
@@ -872,7 +989,7 @@
             // 
             this.Process.AutoSize = true;
             this.Process.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.Process.Location = new System.Drawing.Point(3, 23);
+            this.Process.Location = new System.Drawing.Point(11, 19);
             this.Process.Name = "Process";
             this.Process.Size = new System.Drawing.Size(44, 17);
             this.Process.TabIndex = 65;
@@ -938,7 +1055,7 @@
             this.MessageLog.Location = new System.Drawing.Point(0, 610);
             this.MessageLog.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.MessageLog.Name = "MessageLog";
-            this.MessageLog.Size = new System.Drawing.Size(1096, 98);
+            this.MessageLog.Size = new System.Drawing.Size(1253, 74);
             this.MessageLog.TabIndex = 28;
             this.MessageLog.Text = "";
             // 
@@ -974,7 +1091,7 @@
             this.LabelInf.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.LabelInf.Name = "LabelInf";
             this.LabelInf.RowTemplate.Height = 23;
-            this.LabelInf.Size = new System.Drawing.Size(1092, 326);
+            this.LabelInf.Size = new System.Drawing.Size(1251, 326);
             this.LabelInf.TabIndex = 27;
             this.LabelInf.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.LabelInf_CellEndEdit);
             this.LabelInf.CellPainting += new System.Windows.Forms.DataGridViewCellPaintingEventHandler(this.LabelInf_CellPainting);
@@ -1163,7 +1280,7 @@
             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(600, 6);
+            this.SingleLabel.Location = new System.Drawing.Point(754, 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);
@@ -1176,7 +1293,7 @@
             // 
             this.ViVoPlate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.ViVoPlate.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.ViVoPlate.Location = new System.Drawing.Point(57, 155);
+            this.ViVoPlate.Location = new System.Drawing.Point(80, 163);
             this.ViVoPlate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.ViVoPlate.Name = "ViVoPlate";
             this.ViVoPlate.Size = new System.Drawing.Size(68, 26);
@@ -1198,7 +1315,7 @@
             // 
             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(57, 192);
+            this.SingleLabelPrint.Location = new System.Drawing.Point(80, 200);
             this.SingleLabelPrint.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.SingleLabelPrint.Name = "SingleLabelPrint";
             this.SingleLabelPrint.Size = new System.Drawing.Size(68, 26);
@@ -1211,7 +1328,7 @@
             // 
             this.SingleLabelAutoPrint.AutoSize = true;
             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(6, 109);
+            this.SingleLabelAutoPrint.Location = new System.Drawing.Point(2, 105);
             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);
@@ -1243,7 +1360,7 @@
             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(758, 6);
+            this.MidLabel.Location = new System.Drawing.Point(912, 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);
@@ -1269,7 +1386,7 @@
             // 
             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(11, 161);
+            this.label5.Location = new System.Drawing.Point(7, 157);
             this.label5.Name = "label5";
             this.label5.Size = new System.Drawing.Size(32, 17);
             this.label5.TabIndex = 50;
@@ -1279,7 +1396,7 @@
             // 
             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(11, 133);
+            this.label4.Location = new System.Drawing.Point(7, 129);
             this.label4.Name = "label4";
             this.label4.Size = new System.Drawing.Size(32, 17);
             this.label4.TabIndex = 49;
@@ -1298,7 +1415,7 @@
             // 
             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(94, 132);
+            this.label15.Location = new System.Drawing.Point(90, 128);
             this.label15.Name = "label15";
             this.label15.Size = new System.Drawing.Size(20, 17);
             this.label15.TabIndex = 40;
@@ -1329,7 +1446,7 @@
             // 
             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(14, 109);
+            this.MidLabelAutoPrint.Location = new System.Drawing.Point(10, 105);
             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);
@@ -1367,7 +1484,7 @@
             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(921, 6);
+            this.OutBoxLabel.Location = new System.Drawing.Point(1075, 6);
             this.OutBoxLabel.Margin = new System.Windows.Forms.Padding(2);
             this.OutBoxLabel.Name = "OutBoxLabel";
             this.OutBoxLabel.Padding = new System.Windows.Forms.Padding(2);
@@ -1379,7 +1496,7 @@
             // LogingOut
             // 
             this.LogingOut.AutoSize = true;
-            this.LogingOut.Location = new System.Drawing.Point(118, 7);
+            this.LogingOut.Location = new System.Drawing.Point(114, 3);
             this.LogingOut.Name = "LogingOut";
             this.LogingOut.Size = new System.Drawing.Size(42, 21);
             this.LogingOut.TabIndex = 77;
@@ -1416,7 +1533,7 @@
             // 
             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(3, 181);
+            this.label10.Location = new System.Drawing.Point(8, 181);
             this.label10.Name = "label10";
             this.label10.Size = new System.Drawing.Size(32, 17);
             this.label10.TabIndex = 90;
@@ -1439,7 +1556,7 @@
             // 
             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(87, 209);
+            this.label9.Location = new System.Drawing.Point(83, 205);
             this.label9.Name = "label9";
             this.label9.Size = new System.Drawing.Size(32, 17);
             this.label9.TabIndex = 88;
@@ -1462,7 +1579,7 @@
             // 
             this.label8.AutoSize = true;
             this.label8.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label8.Location = new System.Drawing.Point(3, 210);
+            this.label8.Location = new System.Drawing.Point(8, 210);
             this.label8.Name = "label8";
             this.label8.Size = new System.Drawing.Size(32, 17);
             this.label8.TabIndex = 83;
@@ -1472,7 +1589,7 @@
             // 
             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(3, 149);
+            this.label6.Location = new System.Drawing.Point(8, 149);
             this.label6.Name = "label6";
             this.label6.Size = new System.Drawing.Size(32, 17);
             this.label6.TabIndex = 87;
@@ -1529,7 +1646,7 @@
             // 
             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(8, 109);
+            this.OutBoxLabelAutoPrint.Location = new System.Drawing.Point(4, 105);
             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);
@@ -1554,7 +1671,8 @@
             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(1096, 686);
+            this.ClientSize = new System.Drawing.Size(1257, 686);
+            this.Controls.Add(this.groupBoxWithBorder1);
             this.Controls.Add(this.ChooseAll);
             this.Controls.Add(this.GetGridOnly);
             this.Controls.Add(this.PowerSetting);
@@ -1603,6 +1721,8 @@
             this.SizeChanged += new System.EventHandler(this.贴标机条码打印_SizeChanged);
             ((System.ComponentModel.ISupportInitialize)(this.Si_ItemDGV)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.MidSource)).EndInit();
+            this.groupBoxWithBorder1.ResumeLayout(false);
+            this.groupBoxWithBorder1.PerformLayout();
             this.CollectionProcess.ResumeLayout(false);
             this.CollectionProcess.PerformLayout();
             ((System.ComponentModel.ISupportInitialize)(this.LabelInf)).EndInit();
@@ -1754,5 +1874,14 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn pd_custprodspec;
         private System.Windows.Forms.DataGridViewTextBoxColumn pib_outboxcode1;
         private System.Windows.Forms.DataGridViewTextBoxColumn pib_outboxcode2;
+        private CustomControl.GroupBoxWithBorder.GroupBoxWithBorder groupBoxWithBorder1;
+        private System.Windows.Forms.Label label7;
+        private System.Windows.Forms.Label label12;
+        private CustomControl.EnterTextBox SingleBoxEnd;
+        private CustomControl.EnterTextBox SingleBoxBegin;
+        private System.Windows.Forms.Label label16;
+        private System.Windows.Forms.Label label18;
+        private CustomControl.EnterTextBox MidBoxEnd;
+        private CustomControl.EnterTextBox MidBoxBegin;
     }
 }

+ 23 - 6
UAS-出货标签管理/UAS_出货标签管理.cs

@@ -673,7 +673,6 @@ namespace UAS_LabelMachine
                 }
             }
             //保存参数打印
-            SingleDoc.Save();
             SingleDoc.Printer.SwitchTo(SingleLabelPrinter.Text);
             SingleDoc.PrintDocument();
             LogManager.DoLog("执行打印单盘,pib_id:" + LabelInf.Rows[CurrentRowIndex].Cells["pib_id1"].Value.ToString() + ",标签地址" + LabelUrl);
@@ -1225,7 +1224,6 @@ namespace UAS_LabelMachine
                             }
                             LogManager.DoLog(ParamLog.ToString());
                             //保存参数打印
-                            SingleDoc.Save();
                             SingleDoc.Printer.SwitchTo(SingleLabelPrinter.Text);
                             SingleDoc.PrintDocument();
                             //勾选为已打印
@@ -1388,6 +1386,29 @@ namespace UAS_LabelMachine
         {
             if (SingleLabelCombox.Text != "")
             {
+                try
+                {
+                    int begin = int.Parse(SingleBoxBegin.Text);
+                    int end = int.Parse(SingleBoxEnd.Text);
+                    if (begin > 0 && end < LabelInf.Rows.Count)
+                    {
+                        for (int i = begin - 1; i < end; i++)
+                        {
+                            LabelInf.Rows[i].Cells["Choose"].Value = true;
+                            LabelInf.Rows[i].Cells["pib_ifpick"].Value = true;
+                        }
+                    }
+                    else
+                    {
+                        MessageBox.Show("单盘打印范围错误");
+                        return;
+                    }
+                }
+                catch (Exception)
+                {
+                    MessageBox.Show("单盘打印范围错误");
+                    return;
+                }
                 thread = new Thread(SingleBoxPrint);
                 stw = new SetLoadingWindow(thread, "正在打印单盘");
                 BaseUtil.SetFormCenter(stw);
@@ -1610,7 +1631,6 @@ namespace UAS_LabelMachine
                 }
             }
             //保存参数打印
-            MidDoc.Save();
             MidDoc.Printer.SwitchTo(MidLabelPrinter.Text);
             MidDoc.PrintDocument();
         }
@@ -1683,7 +1703,6 @@ namespace UAS_LabelMachine
                 }
             }
             //保存参数打印
-            MidDoc.Save();
             MidDoc.Printer.SwitchTo(MidLabelPrinter.Text);
             MidDoc.PrintDocument();
         }
@@ -1750,7 +1769,6 @@ namespace UAS_LabelMachine
                 }
             }
             //保存参数打印
-            MidDoc.Save();
             MidDoc.Printer.SwitchTo(MidLabelPrinter.Text);
             MidDoc.PrintDocument();
         }
@@ -1829,7 +1847,6 @@ namespace UAS_LabelMachine
                     }
                 }
                 //保存参数打印
-                OutBoxDoc.Save();
                 OutBoxDoc.Printer.SwitchTo(OutBoxPrinter.Text);
                 OutBoxDoc.PrintDocument();
                 LogManager.DoLog("执行打印外箱,pib_id:" + LabelInf.Rows[rowindex].Cells["pib_id1"].Value.ToString());