章政 %!s(int64=7) %!d(string=hai) anos
pai
achega
bfe6cf16af

BIN=BIN
UAS-出货标签管理(泽天)/Resources/Status.png


+ 66 - 64
UAS-出货标签管理(泽天)/UAS_出货标签管理.Designer.cs

@@ -178,10 +178,10 @@
             // LabelMainTain
             // 
             this.LabelMainTain.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.LabelMainTain.Location = new System.Drawing.Point(406, 15);
+            this.LabelMainTain.Location = new System.Drawing.Point(388, 15);
             this.LabelMainTain.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.LabelMainTain.Name = "LabelMainTain";
-            this.LabelMainTain.Size = new System.Drawing.Size(68, 26);
+            this.LabelMainTain.Size = new System.Drawing.Size(64, 26);
             this.LabelMainTain.TabIndex = 57;
             this.LabelMainTain.Text = "标签维护";
             this.LabelMainTain.UseVisualStyleBackColor = true;
@@ -190,10 +190,10 @@
             // CleanDetail
             // 
             this.CleanDetail.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.CleanDetail.Location = new System.Drawing.Point(309, 15);
+            this.CleanDetail.Location = new System.Drawing.Point(296, 15);
             this.CleanDetail.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.CleanDetail.Name = "CleanDetail";
-            this.CleanDetail.Size = new System.Drawing.Size(68, 26);
+            this.CleanDetail.Size = new System.Drawing.Size(64, 26);
             this.CleanDetail.TabIndex = 66;
             this.CleanDetail.Text = "清除明细";
             this.CleanDetail.UseVisualStyleBackColor = true;
@@ -231,7 +231,7 @@
             // Fresh
             // 
             this.Fresh.AutoSize = true;
-            this.Fresh.Location = new System.Drawing.Point(228, 14);
+            this.Fresh.Location = new System.Drawing.Point(234, 14);
             this.Fresh.Name = "Fresh";
             this.Fresh.Size = new System.Drawing.Size(29, 12);
             this.Fresh.TabIndex = 73;
@@ -247,13 +247,14 @@
             // 
             this.GetGridOnly.AutoSize = true;
             this.GetGridOnly.Font = new System.Drawing.Font("微软雅黑", 7.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.GetGridOnly.Location = new System.Drawing.Point(230, 38);
+            this.GetGridOnly.Location = new System.Drawing.Point(149, 38);
             this.GetGridOnly.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.GetGridOnly.Name = "GetGridOnly";
             this.GetGridOnly.Size = new System.Drawing.Size(77, 20);
             this.GetGridOnly.TabIndex = 82;
             this.GetGridOnly.Text = "仅获取表格";
             this.GetGridOnly.UseVisualStyleBackColor = true;
+            this.GetGridOnly.Visible = false;
             // 
             // dataGridViewCheckBoxColumn1
             // 
@@ -463,7 +464,7 @@
             // 
             // ChooseAll
             // 
-            this.ChooseAll.Location = new System.Drawing.Point(0, 365);
+            this.ChooseAll.Location = new System.Drawing.Point(0, 379);
             this.ChooseAll.Margin = new System.Windows.Forms.Padding(2);
             this.ChooseAll.Name = "ChooseAll";
             this.ChooseAll.Size = new System.Drawing.Size(38, 22);
@@ -475,10 +476,10 @@
             // AttachInfo
             // 
             this.AttachInfo.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.AttachInfo.Location = new System.Drawing.Point(406, 48);
+            this.AttachInfo.Location = new System.Drawing.Point(388, 48);
             this.AttachInfo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.AttachInfo.Name = "AttachInfo";
-            this.AttachInfo.Size = new System.Drawing.Size(68, 26);
+            this.AttachInfo.Size = new System.Drawing.Size(64, 26);
             this.AttachInfo.TabIndex = 85;
             this.AttachInfo.Text = "附加信息设置";
             this.AttachInfo.UseVisualStyleBackColor = true;
@@ -498,7 +499,7 @@
             // 
             this.label19.AutoSize = true;
             this.label19.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label19.Location = new System.Drawing.Point(4, 178);
+            this.label19.Location = new System.Drawing.Point(4, 196);
             this.label19.Name = "label19";
             this.label19.Size = new System.Drawing.Size(74, 21);
             this.label19.TabIndex = 87;
@@ -507,10 +508,10 @@
             // ExportData
             // 
             this.ExportData.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.ExportData.Location = new System.Drawing.Point(309, 48);
+            this.ExportData.Location = new System.Drawing.Point(296, 48);
             this.ExportData.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.ExportData.Name = "ExportData";
-            this.ExportData.Size = new System.Drawing.Size(68, 26);
+            this.ExportData.Size = new System.Drawing.Size(64, 26);
             this.ExportData.TabIndex = 91;
             this.ExportData.Text = "导出数据";
             this.ExportData.UseVisualStyleBackColor = true;
@@ -519,10 +520,10 @@
             // PrintFooter
             // 
             this.PrintFooter.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.PrintFooter.Location = new System.Drawing.Point(503, 15);
+            this.PrintFooter.Location = new System.Drawing.Point(485, 15);
             this.PrintFooter.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.PrintFooter.Name = "PrintFooter";
-            this.PrintFooter.Size = new System.Drawing.Size(68, 26);
+            this.PrintFooter.Size = new System.Drawing.Size(64, 26);
             this.PrintFooter.TabIndex = 89;
             this.PrintFooter.Text = "打印唛头";
             this.PrintFooter.UseVisualStyleBackColor = true;
@@ -533,7 +534,7 @@
             this.SetPrintStatus_label.AutoSize = true;
             this.SetPrintStatus_label.Font = new System.Drawing.Font("微软雅黑", 12F);
             this.SetPrintStatus_label.ForeColor = System.Drawing.Color.Green;
-            this.SetPrintStatus_label.Location = new System.Drawing.Point(475, 165);
+            this.SetPrintStatus_label.Location = new System.Drawing.Point(475, 170);
             this.SetPrintStatus_label.Name = "SetPrintStatus_label";
             this.SetPrintStatus_label.Size = new System.Drawing.Size(58, 21);
             this.SetPrintStatus_label.TabIndex = 76;
@@ -542,9 +543,10 @@
             // pictureBox1
             // 
             this.pictureBox1.Image = global::UAS_LabelMachine.Properties.Resources.Status;
-            this.pictureBox1.Location = new System.Drawing.Point(320, 114);
+            this.pictureBox1.Location = new System.Drawing.Point(320, 126);
             this.pictureBox1.Name = "pictureBox1";
-            this.pictureBox1.Size = new System.Drawing.Size(136, 74);
+            this.pictureBox1.Size = new System.Drawing.Size(122, 64);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
             this.pictureBox1.TabIndex = 93;
             this.pictureBox1.TabStop = false;
             // 
@@ -561,10 +563,10 @@
             // Pack
             // 
             this.Pack.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.Pack.Location = new System.Drawing.Point(503, 48);
+            this.Pack.Location = new System.Drawing.Point(485, 48);
             this.Pack.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.Pack.Name = "Pack";
-            this.Pack.Size = new System.Drawing.Size(68, 26);
+            this.Pack.Size = new System.Drawing.Size(64, 26);
             this.Pack.TabIndex = 96;
             this.Pack.Text = "封箱";
             this.Pack.UseVisualStyleBackColor = true;
@@ -573,10 +575,10 @@
             // PrintStatus
             // 
             this.PrintStatus.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.PrintStatus.Location = new System.Drawing.Point(309, 80);
+            this.PrintStatus.Location = new System.Drawing.Point(296, 80);
             this.PrintStatus.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.PrintStatus.Name = "PrintStatus";
-            this.PrintStatus.Size = new System.Drawing.Size(68, 26);
+            this.PrintStatus.Size = new System.Drawing.Size(64, 26);
             this.PrintStatus.TabIndex = 97;
             this.PrintStatus.Text = "打印状态";
             this.PrintStatus.UseVisualStyleBackColor = true;
@@ -585,7 +587,7 @@
             // DCCheck
             // 
             this.DCCheck.ID = null;
-            this.DCCheck.Location = new System.Drawing.Point(76, 151);
+            this.DCCheck.Location = new System.Drawing.Point(82, 150);
             this.DCCheck.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.DCCheck.Name = "DCCheck";
             this.DCCheck.Size = new System.Drawing.Size(60, 21);
@@ -611,7 +613,7 @@
             this.pd_brand,
             this.pjd_zxbzs_user});
             this.GridPrcode.GridColor = System.Drawing.SystemColors.Control;
-            this.GridPrcode.Location = new System.Drawing.Point(0, 201);
+            this.GridPrcode.Location = new System.Drawing.Point(0, 222);
             this.GridPrcode.MultiSelect = false;
             this.GridPrcode.Name = "GridPrcode";
             this.GridPrcode.RowTemplate.Height = 23;
@@ -702,11 +704,11 @@
             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.Location = new System.Drawing.Point(583, 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, 191);
+            this.groupBoxWithBorder1.Size = new System.Drawing.Size(140, 211);
             this.groupBoxWithBorder1.TabIndex = 81;
             this.groupBoxWithBorder1.TabStop = false;
             this.groupBoxWithBorder1.Text = " 打印参数设置";
@@ -715,7 +717,7 @@
             // 
             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(67, 109);
+            this.label18.Location = new System.Drawing.Point(64, 110);
             this.label18.Name = "label18";
             this.label18.Size = new System.Drawing.Size(13, 17);
             this.label18.TabIndex = 90;
@@ -724,7 +726,7 @@
             // MidBoxEnd
             // 
             this.MidBoxEnd.ID = null;
-            this.MidBoxEnd.Location = new System.Drawing.Point(88, 108);
+            this.MidBoxEnd.Location = new System.Drawing.Point(83, 108);
             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);
@@ -736,7 +738,7 @@
             // MidBoxBegin
             // 
             this.MidBoxBegin.ID = null;
-            this.MidBoxBegin.Location = new System.Drawing.Point(13, 108);
+            this.MidBoxBegin.Location = new System.Drawing.Point(8, 108);
             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);
@@ -749,7 +751,7 @@
             // 
             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(66, 46);
+            this.label16.Location = new System.Drawing.Point(63, 47);
             this.label16.Name = "label16";
             this.label16.Size = new System.Drawing.Size(13, 17);
             this.label16.TabIndex = 87;
@@ -758,7 +760,7 @@
             // SingleBoxEnd
             // 
             this.SingleBoxEnd.ID = null;
-            this.SingleBoxEnd.Location = new System.Drawing.Point(87, 45);
+            this.SingleBoxEnd.Location = new System.Drawing.Point(82, 46);
             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);
@@ -770,7 +772,7 @@
             // SingleBoxBegin
             // 
             this.SingleBoxBegin.ID = null;
-            this.SingleBoxBegin.Location = new System.Drawing.Point(12, 45);
+            this.SingleBoxBegin.Location = new System.Drawing.Point(7, 45);
             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);
@@ -783,7 +785,7 @@
             // 
             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(8, 74);
+            this.label12.Location = new System.Drawing.Point(7, 73);
             this.label12.Name = "label12";
             this.label12.Size = new System.Drawing.Size(56, 17);
             this.label12.TabIndex = 77;
@@ -793,7 +795,7 @@
             // 
             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(8, 17);
+            this.label7.Location = new System.Drawing.Point(7, 16);
             this.label7.Name = "label7";
             this.label7.Size = new System.Drawing.Size(56, 17);
             this.label7.TabIndex = 76;
@@ -802,7 +804,7 @@
             // Input
             // 
             this.Input.ID = null;
-            this.Input.Location = new System.Drawing.Point(76, 72);
+            this.Input.Location = new System.Drawing.Point(82, 72);
             this.Input.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.Input.Multiline = true;
             this.Input.Name = "Input";
@@ -839,7 +841,7 @@
             this.pr_spec,
             this.pib_outboxcode1,
             this.pib_outboxcode2});
-            this.LabelInf.Location = new System.Drawing.Point(0, 365);
+            this.LabelInf.Location = new System.Drawing.Point(0, 381);
             this.LabelInf.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.LabelInf.Name = "LabelInf";
             this.LabelInf.RowTemplate.Height = 23;
@@ -997,7 +999,7 @@
             // pi_inoutno
             // 
             this.pi_inoutno.ID = null;
-            this.pi_inoutno.Location = new System.Drawing.Point(76, 10);
+            this.pi_inoutno.Location = new System.Drawing.Point(82, 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);
@@ -1014,11 +1016,11 @@
             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(754, 6);
+            this.SingleLabel.Location = new System.Drawing.Point(726, 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(156, 191);
+            this.SingleLabel.Size = new System.Drawing.Size(170, 211);
             this.SingleLabel.TabIndex = 77;
             this.SingleLabel.TabStop = false;
             this.SingleLabel.Text = "单盘标签";
@@ -1029,14 +1031,14 @@
             this.SingleLabelPrinter.Location = new System.Drawing.Point(6, 63);
             this.SingleLabelPrinter.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
             this.SingleLabelPrinter.Name = "SingleLabelPrinter";
-            this.SingleLabelPrinter.Size = new System.Drawing.Size(142, 30);
+            this.SingleLabelPrinter.Size = new System.Drawing.Size(159, 30);
             this.SingleLabelPrinter.TabIndex = 40;
             // 
             // SingleLabelPrint
             // 
             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(65, 158);
+            this.SingleLabelPrint.Location = new System.Drawing.Point(50, 177);
             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);
@@ -1051,7 +1053,7 @@
             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(7, 94);
+            this.SingleLabelAutoPrint.Location = new System.Drawing.Point(6, 93);
             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);
@@ -1067,7 +1069,7 @@
             this.SingleLabelCombox.Location = new System.Drawing.Point(7, 31);
             this.SingleLabelCombox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.SingleLabelCombox.Name = "SingleLabelCombox";
-            this.SingleLabelCombox.Size = new System.Drawing.Size(143, 25);
+            this.SingleLabelCombox.Size = new System.Drawing.Size(158, 25);
             this.SingleLabelCombox.TabIndex = 0;
             this.SingleLabelCombox.SelectedIndexChanged += new System.EventHandler(this.SingleLabelCombox_SelectedIndexChanged);
             // 
@@ -1082,11 +1084,11 @@
             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(912, 6);
+            this.MidLabel.Location = new System.Drawing.Point(898, 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(158, 191);
+            this.MidLabel.Size = new System.Drawing.Size(172, 211);
             this.MidLabel.TabIndex = 78;
             this.MidLabel.TabStop = false;
             this.MidLabel.Text = "中盒标签";
@@ -1094,17 +1096,17 @@
             // MidboxCapacity
             // 
             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(110, 121);
+            this.MidboxCapacity.Location = new System.Drawing.Point(40, 119);
             this.MidboxCapacity.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.MidboxCapacity.Name = "MidboxCapacity";
-            this.MidboxCapacity.Size = new System.Drawing.Size(38, 23);
+            this.MidboxCapacity.Size = new System.Drawing.Size(78, 23);
             this.MidboxCapacity.TabIndex = 92;
             // 
             // label2
             // 
             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(75, 123);
+            this.label2.Location = new System.Drawing.Point(4, 120);
             this.label2.Name = "label2";
             this.label2.Size = new System.Drawing.Size(32, 17);
             this.label2.TabIndex = 92;
@@ -1114,10 +1116,10 @@
             // 
             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(37, 121);
+            this.MidLabelNum.Location = new System.Drawing.Point(40, 151);
             this.MidLabelNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.MidLabelNum.Name = "MidLabelNum";
-            this.MidLabelNum.Size = new System.Drawing.Size(33, 23);
+            this.MidLabelNum.Size = new System.Drawing.Size(78, 23);
             this.MidLabelNum.Str = null;
             this.MidLabelNum.Str1 = null;
             this.MidLabelNum.Str2 = null;
@@ -1127,7 +1129,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(3, 123);
+            this.label5.Location = new System.Drawing.Point(5, 152);
             this.label5.Name = "label5";
             this.label5.Size = new System.Drawing.Size(32, 17);
             this.label5.TabIndex = 50;
@@ -1139,13 +1141,13 @@
             this.MidLabelPrinter.Location = new System.Drawing.Point(6, 63);
             this.MidLabelPrinter.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
             this.MidLabelPrinter.Name = "MidLabelPrinter";
-            this.MidLabelPrinter.Size = new System.Drawing.Size(142, 30);
+            this.MidLabelPrinter.Size = new System.Drawing.Size(158, 30);
             this.MidLabelPrinter.TabIndex = 41;
             // 
             // MidLabelPrint
             // 
             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(67, 156);
+            this.MidLabelPrint.Location = new System.Drawing.Point(67, 178);
             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);
@@ -1160,7 +1162,7 @@
             this.MidLabelAutoPrint.Checked = true;
             this.MidLabelAutoPrint.CheckState = System.Windows.Forms.CheckState.Checked;
             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(7, 93);
+            this.MidLabelAutoPrint.Location = new System.Drawing.Point(9, 93);
             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);
@@ -1176,7 +1178,7 @@
             this.MidLabelCombox.Location = new System.Drawing.Point(7, 31);
             this.MidLabelCombox.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.MidLabelCombox.Name = "MidLabelCombox";
-            this.MidLabelCombox.Size = new System.Drawing.Size(143, 25);
+            this.MidLabelCombox.Size = new System.Drawing.Size(157, 25);
             this.MidLabelCombox.TabIndex = 40;
             this.MidLabelCombox.SelectedIndexChanged += new System.EventHandler(this.MidLabelCombox_SelectedIndexChanged);
             // 
@@ -1195,7 +1197,7 @@
             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(172, 191);
+            this.OutBoxLabel.Size = new System.Drawing.Size(175, 211);
             this.OutBoxLabel.TabIndex = 79;
             this.OutBoxLabel.TabStop = false;
             this.OutBoxLabel.Text = "外箱标签";
@@ -1203,7 +1205,7 @@
             // LogingOut
             // 
             this.LogingOut.AutoSize = true;
-            this.LogingOut.Location = new System.Drawing.Point(110, 7);
+            this.LogingOut.Location = new System.Drawing.Point(109, 6);
             this.LogingOut.Name = "LogingOut";
             this.LogingOut.Size = new System.Drawing.Size(42, 21);
             this.LogingOut.TabIndex = 77;
@@ -1216,10 +1218,10 @@
             this.OutBoxNum.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.OutBoxNum.Items.AddRange(new object[] {
             "新增"});
-            this.OutBoxNum.Location = new System.Drawing.Point(117, 123);
+            this.OutBoxNum.Location = new System.Drawing.Point(41, 144);
             this.OutBoxNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
             this.OutBoxNum.Name = "OutBoxNum";
-            this.OutBoxNum.Size = new System.Drawing.Size(48, 25);
+            this.OutBoxNum.Size = new System.Drawing.Size(72, 25);
             this.OutBoxNum.TabIndex = 91;
             this.OutBoxNum.Text = "新增";
             this.OutBoxNum.SelectedIndexChanged += new System.EventHandler(this.OutBoxNum_SelectedIndexChanged);
@@ -1229,7 +1231,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(82, 125);
+            this.label10.Location = new System.Drawing.Point(7, 148);
             this.label10.Name = "label10";
             this.label10.Size = new System.Drawing.Size(32, 17);
             this.label10.TabIndex = 90;
@@ -1239,7 +1241,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, 124);
+            this.label6.Location = new System.Drawing.Point(7, 110);
             this.label6.Name = "label6";
             this.label6.Size = new System.Drawing.Size(32, 17);
             this.label6.TabIndex = 87;
@@ -1257,17 +1259,17 @@
             // OutboxCapacity
             // 
             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(39, 122);
+            this.OutboxCapacity.Location = new System.Drawing.Point(41, 108);
             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.Size = new System.Drawing.Size(72, 23);
             this.OutboxCapacity.TabIndex = 84;
             this.OutboxCapacity.Leave += new System.EventHandler(this.MidBoxCapacity_Leave);
             // 
             // OutBoxLabelPrint
             // 
             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(73, 158);
+            this.OutBoxLabelPrint.Location = new System.Drawing.Point(73, 178);
             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);
@@ -1293,7 +1295,7 @@
             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.ClientSize = new System.Drawing.Size(1257, 729);
             this.Controls.Add(this.PrintStatus);
             this.Controls.Add(this.Pack);
             this.Controls.Add(this.label1);

+ 37 - 5
UAS-出货标签管理(泽天)/UAS_出货标签管理.cs

@@ -410,7 +410,15 @@ namespace UAS_LabelMachine
                     SingleReport.GetDataSource("prodiosingleinfo_view").Enabled = true;
                     SingleReport.PrintSettings.ShowDialog = false;
                     SingleReport.PrintSettings.Printer = SingleLabelPrinter.Text;
-                    SingleReport.Print();
+                    try
+                    {
+                        SingleReport.Print();
+                    }
+                    catch (Exception e)
+                    {
+                        MessageBox.Show(e.Message);
+                        return;
+                    }
                     Properties.Settings.Default.SPrinter = SingleLabelPrinter.Text;
                     Properties.Settings.Default.Save();
                 }
@@ -617,7 +625,15 @@ namespace UAS_LabelMachine
                             //保存参数打印
                             SingleReport.PrintSettings.ShowDialog = false;
                             SingleReport.PrintSettings.Printer = SingleLabelPrinter.Text;
-                            SingleReport.Show();
+                            try
+                            {
+                                SingleReport.Print();
+                            }
+                            catch (Exception e)
+                            {
+                                MessageBox.Show(e.Message);
+                                return;
+                            }
                             Properties.Settings.Default.SPrinter = SingleLabelPrinter.Text;
                             Properties.Settings.Default.Save();
                             LabelInf.Rows[i].Cells["pib_ifprint"].Value = true;
@@ -882,7 +898,15 @@ namespace UAS_LabelMachine
                 MidReport.RegisterData(dt, "prodiomidinfo_view");
                 MidReport.GetDataSource("prodiomidinfo_view").Enabled = true;
                 MidReport.PrintSettings.Printer = MidLabelPrinter.Text;
-                MidReport.Print();
+                try
+                {
+                    MidReport.Print();
+                }
+                catch (Exception e)
+                {
+                    MessageBox.Show(e.Message);
+                    return;
+                }
                 Properties.Settings.Default.MPrinter = MidLabelPrinter.Text;
                 Properties.Settings.Default.Save();
             }
@@ -922,7 +946,15 @@ namespace UAS_LabelMachine
                         OutReport.GetDataSource("prodiooutinfo_view").Enabled = true;
                         OutReport.PrintSettings.ShowDialog = false;
                         OutReport.PrintSettings.Printer = OutBoxPrinter.Text;
-                        OutReport.Print();
+                        try
+                        {
+                            OutReport.Print();
+                        }
+                        catch (Exception e)
+                        {
+                            MessageBox.Show(e.Message);
+                            return;
+                        }
                         BaseUtil.CleanDataTableData(dt1);
                     }
                 }
@@ -1405,7 +1437,7 @@ namespace UAS_LabelMachine
                 FootReport.SetParameterValue("唛头", dt1.Rows[0][0].ToString());
                 FootReport.PrintSettings.ShowDialog = false;
                 FootReport.PrintSettings.Printer= SingleLabelPrinter.Text;
-                FootReport.Show();
+                FootReport.Print();
             }
             LogManager.DoCommandLog(pi_inoutno.Text, User.UserCode, "打印唛头", "成功");
         }