浏览代码

打印需要密码

callm 1 年之前
父节点
当前提交
b25084154d

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

@@ -131,6 +131,7 @@
             this.CombindetailThree = new System.Windows.Forms.CheckBox();
             this.cu_controlinout = new System.Windows.Forms.Label();
             this.CheckDC = new System.Windows.Forms.CheckBox();
+            this.forinput = new System.Windows.Forms.CheckBox();
             this.richTextAutoBottom1 = new UAS_LabelMachine.CustomControl.RichText.RichTextAutoBottom();
             this.groupBoxWithBorder2 = new UAS_LabelMachine.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
             this.label15 = new System.Windows.Forms.Label();
@@ -172,7 +173,6 @@
             this.SingleBoxBegin = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.label12 = new System.Windows.Forms.Label();
             this.label7 = new System.Windows.Forms.Label();
-            this.SingleLabelPrint = new System.Windows.Forms.Button();
             this.Input = new UAS_LabelMachine.CustomControl.EnterTextBox();
             this.LabelInf = new UAS_LabelMachine.CustomControl.DataGridViewWithSerialNum();
             this.Choose = new System.Windows.Forms.DataGridViewCheckBoxColumn();
@@ -217,6 +217,7 @@
             this.label13 = new System.Windows.Forms.Label();
             this.CurrentBoxNum = new System.Windows.Forms.NumericUpDown();
             this.SingleLabelPrinter = new UAS_LabelMachine.CustomControl.PrinterCombox();
+            this.SingleLabelPrint = new System.Windows.Forms.Button();
             this.SingleLabelAutoPrint = new System.Windows.Forms.CheckBox();
             this.SingleLabelCombox = new System.Windows.Forms.ComboBox();
             this.MidLabel = new UAS_LabelMachine.CustomControl.GroupBoxWithBorder.GroupBoxWithBorder();
@@ -249,7 +250,6 @@
             this.OutboxCapacity = new System.Windows.Forms.NumericUpDown();
             this.OutBoxLabelPrint = new System.Windows.Forms.Button();
             this.OutBoxCombox = new System.Windows.Forms.ComboBox();
-            this.forinput = new System.Windows.Forms.CheckBox();
             ((System.ComponentModel.ISupportInitialize)(this.MidSource)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             this.ShowMenu_Total.SuspendLayout();
@@ -1252,6 +1252,18 @@
             this.CheckDC.Text = "校验DC";
             this.CheckDC.UseVisualStyleBackColor = true;
             // 
+            // forinput
+            // 
+            this.forinput.AutoSize = true;
+            this.forinput.Font = new System.Drawing.Font("微软雅黑", 9F);
+            this.forinput.Location = new System.Drawing.Point(951, 156);
+            this.forinput.Margin = new System.Windows.Forms.Padding(4);
+            this.forinput.Name = "forinput";
+            this.forinput.Size = new System.Drawing.Size(142, 35);
+            this.forinput.TabIndex = 124;
+            this.forinput.Text = "持续输入";
+            this.forinput.UseVisualStyleBackColor = true;
+            // 
             // richTextAutoBottom1
             // 
             this.richTextAutoBottom1.Location = new System.Drawing.Point(12, 1460);
@@ -1283,7 +1295,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(11, 34);
+            this.label15.Location = new System.Drawing.Point(17, 40);
             this.label15.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label15.Name = "label15";
             this.label15.Size = new System.Drawing.Size(62, 31);
@@ -1353,7 +1365,7 @@
             this.Weight.AutoSize = true;
             this.Weight.Font = new System.Drawing.Font("微软雅黑", 25F);
             this.Weight.ForeColor = System.Drawing.Color.Red;
-            this.Weight.Location = new System.Drawing.Point(69, 122);
+            this.Weight.Location = new System.Drawing.Point(75, 128);
             this.Weight.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.Weight.Name = "Weight";
             this.Weight.Size = new System.Drawing.Size(0, 88);
@@ -1461,7 +1473,7 @@
             this.pd_whcode.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
             this.pd_whcode.DataPropertyName = "pd_whcode";
             this.pd_whcode.HeaderText = "仓别";
-            this.pd_whcode.MinimumWidth = 10;
+            this.pd_whcode.MinimumWidth = 50;
             this.pd_whcode.Name = "pd_whcode";
             this.pd_whcode.Width = 103;
             // 
@@ -1488,9 +1500,9 @@
             this.pd_pocode1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
             this.pd_pocode1.DataPropertyName = "pd_pocode";
             this.pd_pocode1.HeaderText = "客户PO";
-            this.pd_pocode1.MinimumWidth = 200;
+            this.pd_pocode1.MinimumWidth = 150;
             this.pd_pocode1.Name = "pd_pocode1";
-            this.pd_pocode1.Width = 200;
+            this.pd_pocode1.Width = 150;
             // 
             // pd_prodcode
             // 
@@ -1504,35 +1516,36 @@
             // 
             // CollectedNum
             // 
-            this.CollectedNum.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+            this.CollectedNum.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
             this.CollectedNum.DataPropertyName = "CollectedNum";
             this.CollectedNum.HeaderText = "已采数";
-            this.CollectedNum.MinimumWidth = 10;
+            this.CollectedNum.MinimumWidth = 80;
             this.CollectedNum.Name = "CollectedNum";
             this.CollectedNum.ReadOnly = true;
-            this.CollectedNum.Width = 127;
+            this.CollectedNum.Resizable = System.Windows.Forms.DataGridViewTriState.False;
+            this.CollectedNum.Width = 150;
             // 
             // UnCollectedNum
             // 
-            this.UnCollectedNum.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+            this.UnCollectedNum.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
             this.UnCollectedNum.DataPropertyName = "UnCollectedNum";
             this.UnCollectedNum.HeaderText = "未采集";
-            this.UnCollectedNum.MinimumWidth = 10;
+            this.UnCollectedNum.MinimumWidth = 80;
             this.UnCollectedNum.Name = "UnCollectedNum";
             this.UnCollectedNum.ReadOnly = true;
             this.UnCollectedNum.Visible = false;
-            this.UnCollectedNum.Width = 200;
+            this.UnCollectedNum.Width = 80;
             // 
             // pd_outqty
             // 
-            this.pd_outqty.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
+            this.pd_outqty.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
             this.pd_outqty.DataPropertyName = "pd_outqty";
             this.pd_outqty.HeaderText = "出库数量";
-            this.pd_outqty.MinimumWidth = 10;
+            this.pd_outqty.MinimumWidth = 110;
             this.pd_outqty.Name = "pd_outqty";
             this.pd_outqty.ReadOnly = true;
             this.pd_outqty.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.pd_outqty.Width = 112;
+            this.pd_outqty.Width = 110;
             // 
             // pr_unit
             // 
@@ -1547,14 +1560,14 @@
             // 
             // pd_brand
             // 
-            this.pd_brand.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.ColumnHeader;
+            this.pd_brand.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None;
             this.pd_brand.DataPropertyName = "pd_brand";
             this.pd_brand.HeaderText = "品牌";
             this.pd_brand.MinimumWidth = 10;
             this.pd_brand.Name = "pd_brand";
             this.pd_brand.ReadOnly = true;
             this.pd_brand.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
-            this.pd_brand.Width = 64;
+            this.pd_brand.Width = 200;
             // 
             // pjd_zxbzs_user
             // 
@@ -1579,7 +1592,7 @@
             // 
             this.checknum.DataPropertyName = "checknum";
             this.checknum.HeaderText = "复核数量";
-            this.checknum.MinimumWidth = 10;
+            this.checknum.MinimumWidth = 100;
             this.checknum.Name = "checknum";
             this.checknum.Width = 200;
             // 
@@ -1617,7 +1630,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(34, 287);
+            this.label17.Location = new System.Drawing.Point(40, 293);
             this.label17.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label17.Name = "label17";
             this.label17.Size = new System.Drawing.Size(110, 31);
@@ -1653,7 +1666,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(139, 185);
+            this.label18.Location = new System.Drawing.Point(145, 191);
             this.label18.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label18.Name = "label18";
             this.label18.Size = new System.Drawing.Size(24, 31);
@@ -1688,7 +1701,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(140, 93);
+            this.label16.Location = new System.Drawing.Point(146, 99);
             this.label16.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label16.Name = "label16";
             this.label16.Size = new System.Drawing.Size(24, 31);
@@ -1723,7 +1736,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(34, 140);
+            this.label12.Location = new System.Drawing.Point(40, 146);
             this.label12.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label12.Name = "label12";
             this.label12.Size = new System.Drawing.Size(110, 31);
@@ -1734,26 +1747,13 @@
             // 
             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(34, 45);
+            this.label7.Location = new System.Drawing.Point(40, 51);
             this.label7.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label7.Name = "label7";
             this.label7.Size = new System.Drawing.Size(110, 31);
             this.label7.TabIndex = 76;
             this.label7.Text = "单盘范围";
             // 
-            // 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(38, 357);
-            this.SingleLabelPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
-            this.SingleLabelPrint.Name = "SingleLabelPrint";
-            this.SingleLabelPrint.Size = new System.Drawing.Size(136, 52);
-            this.SingleLabelPrint.TabIndex = 36;
-            this.SingleLabelPrint.Text = "打印盘标";
-            this.SingleLabelPrint.UseVisualStyleBackColor = true;
-            this.SingleLabelPrint.Click += new System.EventHandler(this.SingleLabelPrint_Click);
-            // 
             // Input
             // 
             this.Input.ID = null;
@@ -2186,7 +2186,7 @@
             // 
             this.label14.AutoSize = true;
             this.label14.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label14.Location = new System.Drawing.Point(53, 296);
+            this.label14.Location = new System.Drawing.Point(59, 302);
             this.label14.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label14.Name = "label14";
             this.label14.Size = new System.Drawing.Size(155, 36);
@@ -2206,7 +2206,7 @@
             // 
             this.label13.AutoSize = true;
             this.label13.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label13.Location = new System.Drawing.Point(53, 250);
+            this.label13.Location = new System.Drawing.Point(59, 256);
             this.label13.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label13.Name = "label13";
             this.label13.Size = new System.Drawing.Size(155, 36);
@@ -2232,11 +2232,24 @@
             this.SingleLabelPrinter.Size = new System.Drawing.Size(304, 50);
             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(23, 359);
+            this.SingleLabelPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
+            this.SingleLabelPrint.Name = "SingleLabelPrint";
+            this.SingleLabelPrint.Size = new System.Drawing.Size(136, 52);
+            this.SingleLabelPrint.TabIndex = 36;
+            this.SingleLabelPrint.Text = "打印盘标";
+            this.SingleLabelPrint.UseVisualStyleBackColor = true;
+            this.SingleLabelPrint.Click += new System.EventHandler(this.SingleLabelPrint_Click);
+            // 
             // SingleLabelAutoPrint
             // 
             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(32, 199);
+            this.SingleLabelAutoPrint.Location = new System.Drawing.Point(38, 205);
             this.SingleLabelAutoPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.SingleLabelAutoPrint.Name = "SingleLabelAutoPrint";
             this.SingleLabelAutoPrint.Size = new System.Drawing.Size(142, 35);
@@ -2282,7 +2295,7 @@
             // 
             this.AutoPrintMidBox.AutoSize = true;
             this.AutoPrintMidBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.AutoPrintMidBox.Location = new System.Drawing.Point(16, 368);
+            this.AutoPrintMidBox.Location = new System.Drawing.Point(22, 374);
             this.AutoPrintMidBox.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.AutoPrintMidBox.Name = "AutoPrintMidBox";
             this.AutoPrintMidBox.Size = new System.Drawing.Size(166, 35);
@@ -2294,7 +2307,7 @@
             // 
             this.CurrentRowOnly.AutoSize = true;
             this.CurrentRowOnly.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.CurrentRowOnly.Location = new System.Drawing.Point(185, 208);
+            this.CurrentRowOnly.Location = new System.Drawing.Point(191, 214);
             this.CurrentRowOnly.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.CurrentRowOnly.Name = "CurrentRowOnly";
             this.CurrentRowOnly.Size = new System.Drawing.Size(166, 35);
@@ -2325,7 +2338,7 @@
             // 
             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(31, 250);
+            this.label2.Location = new System.Drawing.Point(37, 256);
             this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label2.Name = "label2";
             this.label2.Size = new System.Drawing.Size(62, 31);
@@ -2349,7 +2362,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(31, 315);
+            this.label5.Location = new System.Drawing.Point(37, 321);
             this.label5.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label5.Name = "label5";
             this.label5.Size = new System.Drawing.Size(62, 31);
@@ -2381,7 +2394,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(33, 208);
+            this.MidLabelAutoPrint.Location = new System.Drawing.Point(39, 214);
             this.MidLabelAutoPrint.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.MidLabelAutoPrint.Name = "MidLabelAutoPrint";
             this.MidLabelAutoPrint.Size = new System.Drawing.Size(142, 35);
@@ -2435,7 +2448,7 @@
             // 
             this.AutoPrintOutBox.AutoSize = true;
             this.AutoPrintOutBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.AutoPrintOutBox.Location = new System.Drawing.Point(151, 181);
+            this.AutoPrintOutBox.Location = new System.Drawing.Point(157, 187);
             this.AutoPrintOutBox.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.AutoPrintOutBox.Name = "AutoPrintOutBox";
             this.AutoPrintOutBox.Size = new System.Drawing.Size(118, 35);
@@ -2447,7 +2460,7 @@
             // 
             this.AutoSetOutBox.AutoSize = true;
             this.AutoSetOutBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.AutoSetOutBox.Location = new System.Drawing.Point(22, 223);
+            this.AutoSetOutBox.Location = new System.Drawing.Point(28, 229);
             this.AutoSetOutBox.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.AutoSetOutBox.Name = "AutoSetOutBox";
             this.AutoSetOutBox.Size = new System.Drawing.Size(142, 35);
@@ -2459,7 +2472,7 @@
             // 
             this.DiffDetno.AutoSize = true;
             this.DiffDetno.Font = new System.Drawing.Font("微软雅黑", 8F);
-            this.DiffDetno.Location = new System.Drawing.Point(264, 375);
+            this.DiffDetno.Location = new System.Drawing.Point(270, 381);
             this.DiffDetno.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.DiffDetno.Name = "DiffDetno";
             this.DiffDetno.Size = new System.Drawing.Size(133, 34);
@@ -2471,7 +2484,7 @@
             // 
             this.DiffCPN.AutoSize = true;
             this.DiffCPN.Font = new System.Drawing.Font("微软雅黑", 8F);
-            this.DiffCPN.Location = new System.Drawing.Point(264, 331);
+            this.DiffCPN.Location = new System.Drawing.Point(270, 337);
             this.DiffCPN.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.DiffCPN.Name = "DiffCPN";
             this.DiffCPN.Size = new System.Drawing.Size(135, 34);
@@ -2483,7 +2496,7 @@
             // 
             this.BoxCount.AutoSize = true;
             this.BoxCount.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.BoxCount.Location = new System.Drawing.Point(317, 429);
+            this.BoxCount.Location = new System.Drawing.Point(323, 435);
             this.BoxCount.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.BoxCount.Name = "BoxCount";
             this.BoxCount.Size = new System.Drawing.Size(0, 31);
@@ -2493,7 +2506,7 @@
             // 
             this.DiffLotNo.AutoSize = true;
             this.DiffLotNo.Font = new System.Drawing.Font("微软雅黑", 8F);
-            this.DiffLotNo.Location = new System.Drawing.Point(264, 283);
+            this.DiffLotNo.Location = new System.Drawing.Point(270, 289);
             this.DiffLotNo.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.DiffLotNo.Name = "DiffLotNo";
             this.DiffLotNo.Size = new System.Drawing.Size(118, 34);
@@ -2505,7 +2518,7 @@
             // 
             this.DiffDC.AutoSize = true;
             this.DiffDC.Font = new System.Drawing.Font("微软雅黑", 8F);
-            this.DiffDC.Location = new System.Drawing.Point(264, 231);
+            this.DiffDC.Location = new System.Drawing.Point(270, 237);
             this.DiffDC.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.DiffDC.Name = "DiffDC";
             this.DiffDC.Size = new System.Drawing.Size(121, 34);
@@ -2517,7 +2530,7 @@
             // 
             this.OnlyOneRow.AutoSize = true;
             this.OnlyOneRow.Font = new System.Drawing.Font("微软雅黑", 8F);
-            this.OnlyOneRow.Location = new System.Drawing.Point(264, 183);
+            this.OnlyOneRow.Location = new System.Drawing.Point(270, 189);
             this.OnlyOneRow.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.OnlyOneRow.Name = "OnlyOneRow";
             this.OnlyOneRow.Size = new System.Drawing.Size(111, 34);
@@ -2529,7 +2542,7 @@
             // 
             this.AllLabel.AutoSize = true;
             this.AllLabel.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.AllLabel.Location = new System.Drawing.Point(22, 181);
+            this.AllLabel.Location = new System.Drawing.Point(28, 187);
             this.AllLabel.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
             this.AllLabel.Name = "AllLabel";
             this.AllLabel.Size = new System.Drawing.Size(142, 35);
@@ -2552,7 +2565,7 @@
             // LogingOut
             // 
             this.LogingOut.AutoSize = true;
-            this.LogingOut.Location = new System.Drawing.Point(281, 40);
+            this.LogingOut.Location = new System.Drawing.Point(287, 46);
             this.LogingOut.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.LogingOut.Name = "LogingOut";
             this.LogingOut.Size = new System.Drawing.Size(82, 41);
@@ -2580,7 +2593,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(62, 323);
+            this.label10.Location = new System.Drawing.Point(68, 329);
             this.label10.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label10.Name = "label10";
             this.label10.Size = new System.Drawing.Size(62, 31);
@@ -2591,7 +2604,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(62, 276);
+            this.label6.Location = new System.Drawing.Point(68, 282);
             this.label6.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
             this.label6.Name = "label6";
             this.label6.Size = new System.Drawing.Size(62, 31);
@@ -2646,18 +2659,6 @@
             this.OutBoxCombox.TabIndex = 78;
             this.OutBoxCombox.SelectedIndexChanged += new System.EventHandler(this.OutBoxCombox_SelectedIndexChanged);
             // 
-            // forinput
-            // 
-            this.forinput.AutoSize = true;
-            this.forinput.Font = new System.Drawing.Font("微软雅黑", 9F);
-            this.forinput.Location = new System.Drawing.Point(951, 156);
-            this.forinput.Margin = new System.Windows.Forms.Padding(4);
-            this.forinput.Name = "forinput";
-            this.forinput.Size = new System.Drawing.Size(142, 35);
-            this.forinput.TabIndex = 124;
-            this.forinput.Text = "持续输入";
-            this.forinput.UseVisualStyleBackColor = true;
-            // 
             // UAS_出货标签打印
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);

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

@@ -719,13 +719,21 @@ namespace UAS_LabelMachine
                 if (LabelInf.Rows.Count > 0)
                     LabelInf.Rows[LabelInf.Rows.Count - 1].Selected = true;
                 if (AutoPrintMidBox.Checked)
+                {
+                    CheckPassWord = false;
                     MidLabelPrint.PerformClick();
+                    CheckPassWord = true;
+                }
             }
             //采集达到了数量进行换行
             if (CollectQty == double.Parse(CurrentPrCount))
             {
                 if (AutoPrintMidBox.Checked && (CollectQty / double.Parse(CurrentZXBZ) % double.Parse(MidboxCapacity.Value.ToString()) != 0))
+                {
+                    CheckPassWord = false;
                     MidLabelPrint.PerformClick();
+                    CheckPassWord = true;
+                }
                 //需要换行,当前最后一盒
                 DataGridViewSelectedRowCollection selectrow = GridPrcode.SelectedRows;
                 if (selectrow.Count > 0)
@@ -998,10 +1006,23 @@ namespace UAS_LabelMachine
                     Dictionary<string, bool> outboxcode1 = new Dictionary<string, bool>();
                     //判断所有盒号为该盒的是否勾选已采集
                     outboxcode1.Add(LabelInf.Rows[0].Cells["pib_outboxcode1"].Value.ToString(), true);
+                    bool NeedPassword = false;
                     for (int i = 0; i < LabelInf.Rows.Count; i++)
                     {
                         if (!SingleID.Contains(LabelInf.Rows[i].Cells["pib_id1"].Value.ToString()))
                             SingleID.Add(LabelInf.Rows[i].Cells["pib_id1"].Value.ToString());
+                        if (LabelInf.Rows[i].Cells["pib_ifprint"].FormattedValue.ToString().ToUpper() == "TRUE")
+                        {
+                            NeedPassword = true;
+                        }
+                    }
+                    if (NeedPassword)
+                    {
+                        if (PassCheck() != dh.getFieldDataByCondition("configs", "data", "code='PassWord' and caller='BarCodeSetting'").ToString())
+                        {
+                            MessageBox.Show("密码不正确,不允许操作");
+                            return;
+                        }
                     }
                     if (SingleID.ToArray().Length == 0)
                     {
@@ -1081,11 +1102,6 @@ namespace UAS_LabelMachine
 
         private void SingleLabelPrint_Click(object sender, EventArgs e)
         {
-            if (PassCheck() != dh.getFieldDataByCondition("configs", "data", "code='PassWord' and caller='BarCodeSetting'").ToString())
-            {
-                MessageBox.Show("密码不正确,不允许操作");
-                return;
-            }
             if (SingleLabelCombox.Text != "")
             {
                 if (SingleBoxBegin.Text != "" || SingleBoxEnd.Text != "")
@@ -1098,6 +1114,7 @@ namespace UAS_LabelMachine
                         {
                             for (int i = begin - 1; i < end; i++)
                             {
+
                                 LabelInf.Rows[i].Cells["Choose"].Value = true;
                                 LabelInf.Rows[i].Cells["pib_ifprint"].Value = false;
                             }
@@ -1129,6 +1146,11 @@ namespace UAS_LabelMachine
 
         private void MidBoxLabelPrint()
         {
+            //if (CheckPassWord && PassCheck() != dh.getFieldDataByCondition("configs", "data", "code='PassWord' and caller='BarCodeSetting'").ToString())
+            //{
+            //    MessageBox.Show("密码不正确,不允许操作");
+            //    return;
+            //}
             //未输入内容打印全部中盒
             if (MidLabelNum.Text == "")
             {
@@ -1552,6 +1574,7 @@ namespace UAS_LabelMachine
                 string close = MessageBox.Show(this.ParentForm, "删除后不可恢复,是否确认删除", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question).ToString();
                 if (close.ToString() == "Yes")
                 {
+                    dh.BatchInsert("insert into prodiobarcode_delete select * from prodiobarcode where pib_id=:pib_id", new string[] { "pib_id" }, DeleteID.ToArray());
                     dh.BatchInsert("delete from prodiobarcode where pib_id=:pib_id", new string[] { "pib_id" }, DeleteID.ToArray());
                     dh.UpdateByCondition("CS$InoutPrcode", "collectednum=(select nvl(sum(pib_qty),0) from prodiobarcode where pib_inoutno=pd_inoutno and pib_pdno=pd_pdno)", "pd_inoutno='" + pi_inoutno.Text + "'");
                     //dh.UpdateByCondition("CS$InoutPrcode", "checknum=CollectedNum/pjd_zxbzs_user", "pd_inoutno='" + pi_inoutno.Text + "'");
@@ -1584,11 +1607,11 @@ namespace UAS_LabelMachine
 
         private void OutBoxLabelPrint_Click(object sender, EventArgs e)
         {
-            if (CheckPassWord && PassCheck() != dh.getFieldDataByCondition("configs", "data", "code='PassWord' and caller='BarCodeSetting'").ToString())
-            {
-                MessageBox.Show("密码不正确,不允许操作");
-                return;
-            }
+            //if (CheckPassWord && PassCheck() != dh.getFieldDataByCondition("configs", "data", "code='PassWord' and caller='BarCodeSetting'").ToString())
+            //{
+            //    MessageBox.Show("密码不正确,不允许操作");
+            //    return;
+            //}
             if (OutBoxCombox.Text != "")
             {
                 Pack_Click(sender, e);