Sfoglia il codice sorgente

修正打印类型选项联动

xuwei 6 anni fa
parent
commit
e118c2995f

+ 174 - 151
DK.Client/PCModule/F_PC_0206.cs

@@ -211,21 +211,23 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle53 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle54 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle55 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle56 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle57 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle58 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle59 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle60 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle61 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle62 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle63 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle64 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle65 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(F_PC_0206));
             this.groupBox1 = new System.Windows.Forms.GroupBox();
+            this.ddlPrintType = new Dongke.IBOSS.PRD.Basics.BaseControls.C_ComboBox();
+            this.c_Label6 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
             this.txtBarCodePrintCopies = new Dongke.IBOSS.PRD.Basics.BaseControls.C_DGV_Digital();
             this.c_Label5 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
             this.c_Label4 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
@@ -237,6 +239,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.radioJobsPrice = new System.Windows.Forms.RadioButton();
             this.radioNotPrice = new System.Windows.Forms.RadioButton();
             this.ddlProcessModelType = new Dongke.IBOSS.PRD.Basics.BaseControls.DKListBoxComboBox();
+            this.sbOrganizationID = new Dongke.IBOSS.PRD.Client.Controls.dkOrganizationSearchBox();
             this.txtRemarks = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox();
             this.txtProcedureName = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox();
             this.txtProcedureCode = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox();
@@ -281,9 +284,6 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.JobsName = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.btnCancel = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Button();
             this.btnSave = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Button();
-            this.c_Label6 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
-            this.ddlPrintType = new Dongke.IBOSS.PRD.Basics.BaseControls.C_ComboBox();
-            this.sbOrganizationID = new Dongke.IBOSS.PRD.Client.Controls.dkOrganizationSearchBox();
             this.groupBox1.SuspendLayout();
             this.groupBox4.SuspendLayout();
             this.GetDataOgrp.SuspendLayout();
@@ -327,14 +327,38 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.groupBox1.Controls.Add(this.groupBox2);
             this.groupBox1.Controls.Add(this.label1);
             this.groupBox1.Location = new System.Drawing.Point(16, 15);
-            this.groupBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.groupBox1.Margin = new System.Windows.Forms.Padding(4);
             this.groupBox1.Name = "groupBox1";
-            this.groupBox1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.groupBox1.Padding = new System.Windows.Forms.Padding(4);
             this.groupBox1.Size = new System.Drawing.Size(984, 196);
             this.groupBox1.TabIndex = 0;
             this.groupBox1.TabStop = false;
             this.groupBox1.Text = "基本属性";
             // 
+            // ddlPrintType
+            // 
+            this.ddlPrintType.BackColor = System.Drawing.SystemColors.Window;
+            this.ddlPrintType.BackgroundColor = System.Drawing.SystemColors.Window;
+            this.ddlPrintType.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.ddlPrintType.FormattingEnabled = true;
+            this.ddlPrintType.Location = new System.Drawing.Point(358, 164);
+            this.ddlPrintType.Name = "ddlPrintType";
+            this.ddlPrintType.Size = new System.Drawing.Size(102, 23);
+            this.ddlPrintType.TabIndex = 23;
+            this.ddlPrintType.SelectedIndexChanged += new System.EventHandler(this.ddlPrintType_SelectedIndexChanged);
+            // 
+            // c_Label6
+            // 
+            this.c_Label6.AutoSize = true;
+            this.c_Label6.BackColor = System.Drawing.Color.Transparent;
+            this.c_Label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.c_Label6.Location = new System.Drawing.Point(314, 169);
+            this.c_Label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.c_Label6.Name = "c_Label6";
+            this.c_Label6.Size = new System.Drawing.Size(37, 15);
+            this.c_Label6.TabIndex = 22;
+            this.c_Label6.Text = "类型";
+            // 
             // txtBarCodePrintCopies
             // 
             this.txtBarCodePrintCopies.AllowNegative = false;
@@ -345,7 +369,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.txtBarCodePrintCopies.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.txtBarCodePrintCopies.ImeMode = System.Windows.Forms.ImeMode.Off;
             this.txtBarCodePrintCopies.Location = new System.Drawing.Point(266, 164);
-            this.txtBarCodePrintCopies.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.txtBarCodePrintCopies.Margin = new System.Windows.Forms.Padding(4);
             this.txtBarCodePrintCopies.MaxLength = 2;
             this.txtBarCodePrintCopies.MaxValue = new decimal(new int[] {
             10,
@@ -361,6 +385,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.txtBarCodePrintCopies.Size = new System.Drawing.Size(40, 25);
             this.txtBarCodePrintCopies.TabIndex = 21;
             this.txtBarCodePrintCopies.TextValue = "";
+            this.txtBarCodePrintCopies.TextChanged += new System.EventHandler(this.txtBarCodePrintCopies_TextChanged);
             // 
             // c_Label5
             // 
@@ -397,7 +422,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.txtDisplayNo.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.txtDisplayNo.ImeMode = System.Windows.Forms.ImeMode.Off;
             this.txtDisplayNo.Location = new System.Drawing.Point(103, 165);
-            this.txtDisplayNo.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.txtDisplayNo.Margin = new System.Windows.Forms.Padding(4);
             this.txtDisplayNo.MaxLength = 2;
             this.txtDisplayNo.MaxValue = new decimal(new int[] {
             99,
@@ -436,7 +461,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.txtmisspriority.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.txtmisspriority.ImeMode = System.Windows.Forms.ImeMode.Off;
             this.txtmisspriority.Location = new System.Drawing.Point(103, 132);
-            this.txtmisspriority.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.txtmisspriority.Margin = new System.Windows.Forms.Padding(4);
             this.txtmisspriority.MaxLength = 1;
             this.txtmisspriority.MaxValue = new decimal(new int[] {
             9,
@@ -471,9 +496,9 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.groupBox4.Controls.Add(this.radioJobsPrice);
             this.groupBox4.Controls.Add(this.radioNotPrice);
             this.groupBox4.Location = new System.Drawing.Point(472, 61);
-            this.groupBox4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.groupBox4.Margin = new System.Windows.Forms.Padding(4);
             this.groupBox4.Name = "groupBox4";
-            this.groupBox4.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.groupBox4.Padding = new System.Windows.Forms.Padding(4);
             this.groupBox4.Size = new System.Drawing.Size(220, 68);
             this.groupBox4.TabIndex = 9;
             this.groupBox4.TabStop = false;
@@ -485,7 +510,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.radioJobsPrice.AutoSize = true;
             this.radioJobsPrice.Checked = true;
             this.radioJobsPrice.Location = new System.Drawing.Point(95, 30);
-            this.radioJobsPrice.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.radioJobsPrice.Margin = new System.Windows.Forms.Padding(4);
             this.radioJobsPrice.Name = "radioJobsPrice";
             this.radioJobsPrice.Size = new System.Drawing.Size(103, 19);
             this.radioJobsPrice.TabIndex = 1;
@@ -497,7 +522,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             // 
             this.radioNotPrice.AutoSize = true;
             this.radioNotPrice.Location = new System.Drawing.Point(8, 30);
-            this.radioNotPrice.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.radioNotPrice.Margin = new System.Windows.Forms.Padding(4);
             this.radioNotPrice.Name = "radioNotPrice";
             this.radioNotPrice.Size = new System.Drawing.Size(73, 19);
             this.radioNotPrice.TabIndex = 0;
@@ -522,11 +547,31 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.ddlProcessModelType.ListBox.Size = new System.Drawing.Size(141, 136);
             this.ddlProcessModelType.ListBox.TabIndex = 0;
             this.ddlProcessModelType.Location = new System.Drawing.Point(548, 24);
-            this.ddlProcessModelType.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.ddlProcessModelType.Margin = new System.Windows.Forms.Padding(4);
             this.ddlProcessModelType.Name = "ddlProcessModelType";
             this.ddlProcessModelType.Size = new System.Drawing.Size(143, 23);
             this.ddlProcessModelType.TabIndex = 5;
             // 
+            // sbOrganizationID
+            // 
+            this.sbOrganizationID.BackColor = System.Drawing.Color.Transparent;
+            this.sbOrganizationID.CurrentUserOrganizationCode = null;
+            this.sbOrganizationID.DataSource = null;
+            this.sbOrganizationID.Enabled = true;
+            this.sbOrganizationID.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.sbOrganizationID.IsMustInput = true;
+            this.sbOrganizationID.IsOnlyDisplayEnd = false;
+            this.sbOrganizationID.Location = new System.Drawing.Point(700, 24);
+            this.sbOrganizationID.Margin = new System.Windows.Forms.Padding(5);
+            this.sbOrganizationID.Name = "sbOrganizationID";
+            this.sbOrganizationID.OrganizationCode = "";
+            this.sbOrganizationID.OrganizationIDS = null;
+            this.sbOrganizationID.OrganizationName = "";
+            this.sbOrganizationID.PurviewType = ((byte)(0));
+            this.sbOrganizationID.Size = new System.Drawing.Size(269, 26);
+            this.sbOrganizationID.TabIndex = 6;
+            this.sbOrganizationID.TxtOrganizationBackColor = System.Drawing.SystemColors.Control;
+            // 
             // txtRemarks
             // 
             this.txtRemarks.BackColor = System.Drawing.SystemColors.Window;
@@ -534,7 +579,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.txtRemarks.ErrorMessage = "";
             this.txtRemarks.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.txtRemarks.Location = new System.Drawing.Point(688, 132);
-            this.txtRemarks.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.txtRemarks.Margin = new System.Windows.Forms.Padding(4);
             this.txtRemarks.MaxLength = 500;
             this.txtRemarks.Multiline = true;
             this.txtRemarks.Name = "txtRemarks";
@@ -550,7 +595,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.txtProcedureName.HasError = true;
             this.txtProcedureName.IsMustInput = true;
             this.txtProcedureName.Location = new System.Drawing.Point(317, 25);
-            this.txtProcedureName.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.txtProcedureName.Margin = new System.Windows.Forms.Padding(4);
             this.txtProcedureName.MaxLength = 50;
             this.txtProcedureName.Name = "txtProcedureName";
             this.txtProcedureName.Size = new System.Drawing.Size(143, 25);
@@ -565,7 +610,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.txtProcedureCode.HasError = true;
             this.txtProcedureCode.IsMustInput = true;
             this.txtProcedureCode.Location = new System.Drawing.Point(87, 25);
-            this.txtProcedureCode.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.txtProcedureCode.Margin = new System.Windows.Forms.Padding(4);
             this.txtProcedureCode.MaxLength = 20;
             this.txtProcedureCode.Name = "txtProcedureCode";
             this.txtProcedureCode.RejectCharsPattern = "[^a-zA-Z0-9]";
@@ -620,9 +665,9 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.GetDataOgrp.Controls.Add(this.rbtnMore);
             this.GetDataOgrp.Controls.Add(this.rbtnOne);
             this.GetDataOgrp.Location = new System.Drawing.Point(11, 61);
-            this.GetDataOgrp.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.GetDataOgrp.Margin = new System.Windows.Forms.Padding(4);
             this.GetDataOgrp.Name = "GetDataOgrp";
-            this.GetDataOgrp.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.GetDataOgrp.Padding = new System.Windows.Forms.Padding(4);
             this.GetDataOgrp.Size = new System.Drawing.Size(220, 68);
             this.GetDataOgrp.TabIndex = 7;
             this.GetDataOgrp.TabStop = false;
@@ -633,7 +678,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.rbtnMore.AutoSize = true;
             this.rbtnMore.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.rbtnMore.Location = new System.Drawing.Point(121, 30);
-            this.rbtnMore.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.rbtnMore.Margin = new System.Windows.Forms.Padding(4);
             this.rbtnMore.Name = "rbtnMore";
             this.rbtnMore.Size = new System.Drawing.Size(88, 19);
             this.rbtnMore.TabIndex = 1;
@@ -646,7 +691,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.rbtnOne.Checked = true;
             this.rbtnOne.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.rbtnOne.Location = new System.Drawing.Point(8, 30);
-            this.rbtnOne.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.rbtnOne.Margin = new System.Windows.Forms.Padding(4);
             this.rbtnOne.Name = "rbtnOne";
             this.rbtnOne.Size = new System.Drawing.Size(88, 19);
             this.rbtnOne.TabIndex = 0;
@@ -660,9 +705,9 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.groupBox2.Controls.Add(this.rBtnNoNeed);
             this.groupBox2.Controls.Add(this.rBtnNeed);
             this.groupBox2.Location = new System.Drawing.Point(241, 61);
-            this.groupBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.groupBox2.Margin = new System.Windows.Forms.Padding(4);
             this.groupBox2.Name = "groupBox2";
-            this.groupBox2.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.groupBox2.Padding = new System.Windows.Forms.Padding(4);
             this.groupBox2.Size = new System.Drawing.Size(220, 68);
             this.groupBox2.TabIndex = 8;
             this.groupBox2.TabStop = false;
@@ -674,7 +719,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.rBtnNoNeed.AutoSize = true;
             this.rBtnNoNeed.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.rBtnNoNeed.Location = new System.Drawing.Point(124, 30);
-            this.rBtnNoNeed.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.rBtnNoNeed.Margin = new System.Windows.Forms.Padding(4);
             this.rBtnNoNeed.Name = "rBtnNoNeed";
             this.rBtnNoNeed.Size = new System.Drawing.Size(73, 19);
             this.rBtnNoNeed.TabIndex = 1;
@@ -687,7 +732,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.rBtnNeed.Checked = true;
             this.rBtnNeed.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.rBtnNeed.Location = new System.Drawing.Point(23, 30);
-            this.rBtnNeed.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.rBtnNeed.Margin = new System.Windows.Forms.Padding(4);
             this.rBtnNeed.Name = "rBtnNeed";
             this.rBtnNeed.Size = new System.Drawing.Size(58, 19);
             this.rBtnNeed.TabIndex = 0;
@@ -713,9 +758,9 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.groupBox3.BackColor = System.Drawing.Color.Transparent;
             this.groupBox3.Controls.Add(this.tabControl);
             this.groupBox3.Location = new System.Drawing.Point(16, 219);
-            this.groupBox3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.groupBox3.Margin = new System.Windows.Forms.Padding(4);
             this.groupBox3.Name = "groupBox3";
-            this.groupBox3.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.groupBox3.Padding = new System.Windows.Forms.Padding(4);
             this.groupBox3.Size = new System.Drawing.Size(984, 352);
             this.groupBox3.TabIndex = 1;
             this.groupBox3.TabStop = false;
@@ -729,7 +774,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.tabControl.Controls.Add(this.tabPage4);
             this.tabControl.Dock = System.Windows.Forms.DockStyle.Fill;
             this.tabControl.Location = new System.Drawing.Point(4, 22);
-            this.tabControl.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.tabControl.Margin = new System.Windows.Forms.Padding(4);
             this.tabControl.Name = "tabControl";
             this.tabControl.SelectedIndex = 0;
             this.tabControl.Size = new System.Drawing.Size(976, 326);
@@ -749,8 +794,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             // dgvGoods
             // 
             this.dgvGoods.AllowUserToModifyRows = true;
-            dataGridViewCellStyle53.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
-            this.dgvGoods.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle53;
+            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+            this.dgvGoods.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
             this.dgvGoods.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
             this.dgvGoods.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
             this.dgvGoods.CellHeight = 23;
@@ -758,14 +803,14 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvGoods.ChildNodeColumnText = null;
             this.dgvGoods.ColumnDeep = 1;
             this.dgvGoods.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
-            dataGridViewCellStyle54.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle54.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
-            dataGridViewCellStyle54.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle54.ForeColor = System.Drawing.Color.White;
-            dataGridViewCellStyle54.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle54.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle54.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvGoods.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle54;
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
+            dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvGoods.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
             this.dgvGoods.ColumnHeadersHeight = 29;
             this.dgvGoods.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvGoods.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -776,14 +821,14 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.GoodsSpecification});
             this.dgvGoods.ColumnTreeView = null;
             this.dgvGoods.ContextMenuVisible = ((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags)((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.Refine | Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.FileOut)));
-            dataGridViewCellStyle55.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle55.BackColor = System.Drawing.SystemColors.Window;
-            dataGridViewCellStyle55.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle55.ForeColor = System.Drawing.SystemColors.ControlText;
-            dataGridViewCellStyle55.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle55.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle55.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
-            this.dgvGoods.DefaultCellStyle = dataGridViewCellStyle55;
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
+            dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText;
+            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.dgvGoods.DefaultCellStyle = dataGridViewCellStyle3;
             this.dgvGoods.Dock = System.Windows.Forms.DockStyle.Fill;
             this.dgvGoods.DynamicColumnName = "";
             this.dgvGoods.EnableHeadersVisualStyles = false;
@@ -797,7 +842,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvGoods.IsSubTotalFlag = false;
             this.dgvGoods.IsTopDeep = false;
             this.dgvGoods.Location = new System.Drawing.Point(0, 0);
-            this.dgvGoods.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.dgvGoods.Margin = new System.Windows.Forms.Padding(4);
             this.dgvGoods.MergeColumnNames = null;
             this.dgvGoods.MergeDetailColumnNames = null;
             this.dgvGoods.MergeDetailOnlyColumn = null;
@@ -806,8 +851,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvGoods.RefreshAtHscroll = false;
             this.dgvGoods.RowHeadersWidth = 50;
             this.dgvGoods.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            dataGridViewCellStyle56.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
-            this.dgvGoods.RowsDefaultCellStyle = dataGridViewCellStyle56;
+            dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
+            this.dgvGoods.RowsDefaultCellStyle = dataGridViewCellStyle4;
             this.dgvGoods.RowTemplate.Height = 21;
             this.dgvGoods.Size = new System.Drawing.Size(968, 297);
             this.dgvGoods.SortOrderColumnName = null;
@@ -880,8 +925,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             // dgvUser
             // 
             this.dgvUser.AllowUserToModifyRows = true;
-            dataGridViewCellStyle57.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
-            this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle57;
+            dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+            this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
             this.dgvUser.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
             this.dgvUser.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
             this.dgvUser.CellHeight = 23;
@@ -889,14 +934,14 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvUser.ChildNodeColumnText = null;
             this.dgvUser.ColumnDeep = 1;
             this.dgvUser.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
-            dataGridViewCellStyle58.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle58.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
-            dataGridViewCellStyle58.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle58.ForeColor = System.Drawing.Color.White;
-            dataGridViewCellStyle58.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle58.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle58.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle58;
+            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
+            dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle6.ForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
             this.dgvUser.ColumnHeadersHeight = 29;
             this.dgvUser.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvUser.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -919,7 +964,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvUser.IsSubTotalFlag = false;
             this.dgvUser.IsTopDeep = false;
             this.dgvUser.Location = new System.Drawing.Point(0, 0);
-            this.dgvUser.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.dgvUser.Margin = new System.Windows.Forms.Padding(4);
             this.dgvUser.MergeColumnNames = null;
             this.dgvUser.MergeDetailColumnNames = null;
             this.dgvUser.MergeDetailOnlyColumn = null;
@@ -928,8 +973,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvUser.RefreshAtHscroll = false;
             this.dgvUser.RowHeadersWidth = 50;
             this.dgvUser.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            dataGridViewCellStyle59.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
-            this.dgvUser.RowsDefaultCellStyle = dataGridViewCellStyle59;
+            dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
+            this.dgvUser.RowsDefaultCellStyle = dataGridViewCellStyle7;
             this.dgvUser.RowTemplate.Height = 21;
             this.dgvUser.Size = new System.Drawing.Size(968, 297);
             this.dgvUser.SortOrderColumnName = null;
@@ -994,8 +1039,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             // dgvDefect
             // 
             this.dgvDefect.AllowUserToModifyRows = true;
-            dataGridViewCellStyle60.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
-            this.dgvDefect.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle60;
+            dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+            this.dgvDefect.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle8;
             this.dgvDefect.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
             this.dgvDefect.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
             this.dgvDefect.CellHeight = 23;
@@ -1003,14 +1048,14 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvDefect.ChildNodeColumnText = null;
             this.dgvDefect.ColumnDeep = 1;
             this.dgvDefect.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
-            dataGridViewCellStyle61.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle61.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
-            dataGridViewCellStyle61.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle61.ForeColor = System.Drawing.Color.White;
-            dataGridViewCellStyle61.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle61.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle61.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvDefect.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle61;
+            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
+            dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle9.ForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvDefect.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9;
             this.dgvDefect.ColumnHeadersHeight = 29;
             this.dgvDefect.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvDefect.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -1033,7 +1078,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvDefect.IsSubTotalFlag = false;
             this.dgvDefect.IsTopDeep = false;
             this.dgvDefect.Location = new System.Drawing.Point(0, 0);
-            this.dgvDefect.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.dgvDefect.Margin = new System.Windows.Forms.Padding(4);
             this.dgvDefect.MergeColumnNames = null;
             this.dgvDefect.MergeDetailColumnNames = null;
             this.dgvDefect.MergeDetailOnlyColumn = null;
@@ -1042,8 +1087,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvDefect.RefreshAtHscroll = false;
             this.dgvDefect.RowHeadersWidth = 50;
             this.dgvDefect.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            dataGridViewCellStyle62.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
-            this.dgvDefect.RowsDefaultCellStyle = dataGridViewCellStyle62;
+            dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
+            this.dgvDefect.RowsDefaultCellStyle = dataGridViewCellStyle10;
             this.dgvDefect.RowTemplate.Height = 21;
             this.dgvDefect.Size = new System.Drawing.Size(968, 297);
             this.dgvDefect.SortOrderColumnName = null;
@@ -1097,7 +1142,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             // 
             this.tabPage4.Controls.Add(this.dgvMissDefect);
             this.tabPage4.Location = new System.Drawing.Point(4, 25);
-            this.tabPage4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.tabPage4.Margin = new System.Windows.Forms.Padding(4);
             this.tabPage4.Name = "tabPage4";
             this.tabPage4.Size = new System.Drawing.Size(968, 297);
             this.tabPage4.TabIndex = 3;
@@ -1107,8 +1152,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             // dgvMissDefect
             // 
             this.dgvMissDefect.AllowUserToModifyRows = true;
-            dataGridViewCellStyle63.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
-            this.dgvMissDefect.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle63;
+            dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+            this.dgvMissDefect.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
             this.dgvMissDefect.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
             this.dgvMissDefect.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
             this.dgvMissDefect.CellHeight = 23;
@@ -1116,14 +1161,14 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvMissDefect.ChildNodeColumnText = null;
             this.dgvMissDefect.ColumnDeep = 1;
             this.dgvMissDefect.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
-            dataGridViewCellStyle64.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle64.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
-            dataGridViewCellStyle64.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle64.ForeColor = System.Drawing.Color.White;
-            dataGridViewCellStyle64.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle64.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle64.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvMissDefect.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle64;
+            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
+            dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle12.ForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvMissDefect.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12;
             this.dgvMissDefect.ColumnHeadersHeight = 29;
             this.dgvMissDefect.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvMissDefect.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -1148,7 +1193,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvMissDefect.IsSubTotalFlag = false;
             this.dgvMissDefect.IsTopDeep = false;
             this.dgvMissDefect.Location = new System.Drawing.Point(0, 0);
-            this.dgvMissDefect.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.dgvMissDefect.Margin = new System.Windows.Forms.Padding(4);
             this.dgvMissDefect.MergeColumnNames = null;
             this.dgvMissDefect.MergeDetailColumnNames = null;
             this.dgvMissDefect.MergeDetailOnlyColumn = null;
@@ -1157,8 +1202,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvMissDefect.RefreshAtHscroll = false;
             this.dgvMissDefect.RowHeadersWidth = 50;
             this.dgvMissDefect.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            dataGridViewCellStyle65.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
-            this.dgvMissDefect.RowsDefaultCellStyle = dataGridViewCellStyle65;
+            dataGridViewCellStyle13.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
+            this.dgvMissDefect.RowsDefaultCellStyle = dataGridViewCellStyle13;
             this.dgvMissDefect.RowTemplate.Height = 21;
             this.dgvMissDefect.Size = new System.Drawing.Size(968, 297);
             this.dgvMissDefect.SortOrderColumnName = null;
@@ -1232,7 +1277,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.btnCancel.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.btnCancel.ForeColor = System.Drawing.Color.White;
             this.btnCancel.Location = new System.Drawing.Point(887, 575);
-            this.btnCancel.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.btnCancel.Margin = new System.Windows.Forms.Padding(4);
             this.btnCancel.Name = "btnCancel";
             this.btnCancel.Size = new System.Drawing.Size(113, 38);
             this.btnCancel.TabIndex = 5;
@@ -1247,7 +1292,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.btnSave.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.btnSave.ForeColor = System.Drawing.Color.White;
             this.btnSave.Location = new System.Drawing.Point(765, 575);
-            this.btnSave.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.btnSave.Margin = new System.Windows.Forms.Padding(4);
             this.btnSave.Name = "btnSave";
             this.btnSave.Size = new System.Drawing.Size(113, 38);
             this.btnSave.TabIndex = 4;
@@ -1255,50 +1300,6 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.btnSave.UseVisualStyleBackColor = false;
             this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
             // 
-            // c_Label6
-            // 
-            this.c_Label6.AutoSize = true;
-            this.c_Label6.BackColor = System.Drawing.Color.Transparent;
-            this.c_Label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.c_Label6.Location = new System.Drawing.Point(314, 169);
-            this.c_Label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
-            this.c_Label6.Name = "c_Label6";
-            this.c_Label6.Size = new System.Drawing.Size(37, 15);
-            this.c_Label6.TabIndex = 22;
-            this.c_Label6.Text = "类型";
-            // 
-            // ddlPrintType
-            // 
-            this.ddlPrintType.BackColor = System.Drawing.SystemColors.Window;
-            this.ddlPrintType.BackgroundColor = System.Drawing.SystemColors.Window;
-            this.ddlPrintType.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.ddlPrintType.FormattingEnabled = true;
-            this.ddlPrintType.Location = new System.Drawing.Point(358, 164);
-            this.ddlPrintType.Name = "ddlPrintType";
-            this.ddlPrintType.Size = new System.Drawing.Size(102, 23);
-            this.ddlPrintType.TabIndex = 23;
-            this.ddlPrintType.SelectedIndexChanged += new System.EventHandler(this.ddlPrintType_SelectedIndexChanged);
-            // 
-            // sbOrganizationID
-            // 
-            this.sbOrganizationID.BackColor = System.Drawing.Color.Transparent;
-            this.sbOrganizationID.CurrentUserOrganizationCode = null;
-            this.sbOrganizationID.DataSource = null;
-            this.sbOrganizationID.Enabled = true;
-            this.sbOrganizationID.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.sbOrganizationID.IsMustInput = true;
-            this.sbOrganizationID.IsOnlyDisplayEnd = false;
-            this.sbOrganizationID.Location = new System.Drawing.Point(700, 24);
-            this.sbOrganizationID.Margin = new System.Windows.Forms.Padding(5);
-            this.sbOrganizationID.Name = "sbOrganizationID";
-            this.sbOrganizationID.OrganizationCode = "";
-            this.sbOrganizationID.OrganizationIDS = null;
-            this.sbOrganizationID.OrganizationName = "";
-            this.sbOrganizationID.PurviewType = ((byte)(0));
-            this.sbOrganizationID.Size = new System.Drawing.Size(269, 26);
-            this.sbOrganizationID.TabIndex = 6;
-            this.sbOrganizationID.TxtOrganizationBackColor = System.Drawing.SystemColors.Control;
-            // 
             // F_PC_0206
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
@@ -1746,7 +1747,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
                 cre.Name = "GetPrintType";
                 DataTable dtPrintType = SystemModuleProxy.Service.DoBarCodePrint(cre).Data.Tables[0];
                 DataRow dr = dtPrintType.NewRow();
-                dr["PRINTTYPENAME"] = "请选择...";
+                dr["PRINTTYPENAME"] = "";
                 dr["PRINTTYPEID"] = "0";
                 dtPrintType.Rows.InsertAt(dr, 0);
                 this.ddlPrintType.DataSource = dtPrintType;
@@ -2065,11 +2066,33 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
         }
         #endregion
 
-        //xuwei add 2019-11-20
+        //xuwei add 2019-11-25
         private void ddlPrintType_SelectedIndexChanged(object sender, EventArgs e)
         {
-            if (ddlPrintType.SelectedIndex > 0 && txtBarCodePrintCopies.Text == "0")
-                txtBarCodePrintCopies.Text = "1";
+            if (txtBarCodePrintCopies.Text != "")
+            {
+                if (ddlPrintType.SelectedIndex > 0 && Convert.ToInt32(txtBarCodePrintCopies.Text) == 0) txtBarCodePrintCopies.Text = "1";
+                if (ddlPrintType.SelectedIndex == 0 && Convert.ToInt32(txtBarCodePrintCopies.Text) > 0) txtBarCodePrintCopies.Text = "0";
+            }
+            else
+            {
+                if (ddlPrintType.SelectedIndex > 0) txtBarCodePrintCopies.Text = "1";
+                if (ddlPrintType.SelectedIndex == 0) txtBarCodePrintCopies.Text = "0";
+            }
+        }
+
+        //xuwei add 2019-11-25
+        private void txtBarCodePrintCopies_TextChanged(object sender, EventArgs e)
+        {
+            if (txtBarCodePrintCopies.Text != "")
+            {
+                if (Convert.ToInt32(txtBarCodePrintCopies.Text) == 0 && ddlPrintType.SelectedIndex > 0) ddlPrintType.SelectedIndex = 0;
+                if (Convert.ToInt32(txtBarCodePrintCopies.Text) > 0 && ddlPrintType.SelectedIndex == 0) ddlPrintType.SelectedIndex = 1;
+            }
+            else
+            {
+                if (ddlPrintType.SelectedIndex > 0) ddlPrintType.SelectedIndex = 0;
+            }
         }
     }
 }

+ 121 - 99
DK.Client/PCModule/F_PC_0207.cs

@@ -188,19 +188,19 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
         /// </summary>
         private void InitializeComponent()
         {
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle53 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle54 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle55 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle56 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle57 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle58 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle59 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle60 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle61 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle62 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle63 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle64 = new System.Windows.Forms.DataGridViewCellStyle();
-            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle65 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(F_PC_0207));
             this.txtProcedureName = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox();
             this.txtProcedureCode = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TextBox();
@@ -258,6 +258,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.btnSave = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Button();
             this.btnCancel = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Button();
             this.groupBox1 = new System.Windows.Forms.GroupBox();
+            this.ddlPrintType = new Dongke.IBOSS.PRD.Basics.BaseControls.C_ComboBox();
+            this.c_Label6 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
             this.groupBox7 = new System.Windows.Forms.GroupBox();
             this.rbtnOutBarCode = new System.Windows.Forms.RadioButton();
             this.rbtnGBarcode = new System.Windows.Forms.RadioButton();
@@ -276,8 +278,6 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.rbtnAuto = new System.Windows.Forms.RadioButton();
             this.rbtnHand = new System.Windows.Forms.RadioButton();
             this.sbOrganizationID = new Dongke.IBOSS.PRD.Client.Controls.dkOrganizationSearchBox();
-            this.ddlPrintType = new Dongke.IBOSS.PRD.Basics.BaseControls.C_ComboBox();
-            this.c_Label6 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
             this.GetDataOgrp.SuspendLayout();
             this.groupBox5.SuspendLayout();
             this.groupBox2.SuspendLayout();
@@ -548,8 +548,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             // dgvGoods
             // 
             this.dgvGoods.AllowUserToModifyRows = true;
-            dataGridViewCellStyle53.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
-            this.dgvGoods.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle53;
+            dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+            this.dgvGoods.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
             this.dgvGoods.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
             this.dgvGoods.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
             this.dgvGoods.CellHeight = 23;
@@ -557,14 +557,14 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvGoods.ChildNodeColumnText = null;
             this.dgvGoods.ColumnDeep = 1;
             this.dgvGoods.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
-            dataGridViewCellStyle54.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle54.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
-            dataGridViewCellStyle54.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle54.ForeColor = System.Drawing.Color.White;
-            dataGridViewCellStyle54.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle54.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle54.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvGoods.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle54;
+            dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
+            dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvGoods.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
             this.dgvGoods.ColumnHeadersHeight = 29;
             this.dgvGoods.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvGoods.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -575,14 +575,14 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.GoodsSpecification});
             this.dgvGoods.ColumnTreeView = null;
             this.dgvGoods.ContextMenuVisible = ((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags)((Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.Refine | Dongke.IBOSS.PRD.Basics.BaseControls.C_DataGridView.ContextMenuVisibleFlags.FileOut)));
-            dataGridViewCellStyle55.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
-            dataGridViewCellStyle55.BackColor = System.Drawing.SystemColors.Window;
-            dataGridViewCellStyle55.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle55.ForeColor = System.Drawing.SystemColors.ControlText;
-            dataGridViewCellStyle55.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle55.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle55.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
-            this.dgvGoods.DefaultCellStyle = dataGridViewCellStyle55;
+            dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+            dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
+            dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText;
+            dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+            this.dgvGoods.DefaultCellStyle = dataGridViewCellStyle3;
             this.dgvGoods.Dock = System.Windows.Forms.DockStyle.Fill;
             this.dgvGoods.DynamicColumnName = "";
             this.dgvGoods.EnableHeadersVisualStyles = false;
@@ -605,8 +605,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvGoods.RefreshAtHscroll = false;
             this.dgvGoods.RowHeadersWidth = 50;
             this.dgvGoods.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            dataGridViewCellStyle56.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
-            this.dgvGoods.RowsDefaultCellStyle = dataGridViewCellStyle56;
+            dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
+            this.dgvGoods.RowsDefaultCellStyle = dataGridViewCellStyle4;
             this.dgvGoods.RowTemplate.Height = 21;
             this.dgvGoods.Size = new System.Drawing.Size(989, 263);
             this.dgvGoods.SortOrderColumnName = null;
@@ -676,8 +676,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             // dgvUser
             // 
             this.dgvUser.AllowUserToModifyRows = true;
-            dataGridViewCellStyle57.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
-            this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle57;
+            dataGridViewCellStyle5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+            this.dgvUser.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
             this.dgvUser.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
             this.dgvUser.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
             this.dgvUser.CellHeight = 23;
@@ -685,14 +685,14 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvUser.ChildNodeColumnText = null;
             this.dgvUser.ColumnDeep = 1;
             this.dgvUser.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
-            dataGridViewCellStyle58.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle58.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
-            dataGridViewCellStyle58.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle58.ForeColor = System.Drawing.Color.White;
-            dataGridViewCellStyle58.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle58.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle58.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle58;
+            dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
+            dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle6.ForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvUser.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
             this.dgvUser.ColumnHeadersHeight = 29;
             this.dgvUser.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvUser.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -724,8 +724,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvUser.RefreshAtHscroll = false;
             this.dgvUser.RowHeadersWidth = 50;
             this.dgvUser.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            dataGridViewCellStyle59.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
-            this.dgvUser.RowsDefaultCellStyle = dataGridViewCellStyle59;
+            dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
+            this.dgvUser.RowsDefaultCellStyle = dataGridViewCellStyle7;
             this.dgvUser.RowTemplate.Height = 21;
             this.dgvUser.Size = new System.Drawing.Size(989, 263);
             this.dgvUser.SortOrderColumnName = null;
@@ -789,8 +789,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             // dgvDefect
             // 
             this.dgvDefect.AllowUserToModifyRows = true;
-            dataGridViewCellStyle60.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
-            this.dgvDefect.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle60;
+            dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+            this.dgvDefect.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle8;
             this.dgvDefect.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
             this.dgvDefect.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
             this.dgvDefect.CellHeight = 23;
@@ -798,14 +798,14 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvDefect.ChildNodeColumnText = null;
             this.dgvDefect.ColumnDeep = 1;
             this.dgvDefect.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
-            dataGridViewCellStyle61.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle61.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
-            dataGridViewCellStyle61.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle61.ForeColor = System.Drawing.Color.White;
-            dataGridViewCellStyle61.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle61.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle61.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvDefect.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle61;
+            dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
+            dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle9.ForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvDefect.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9;
             this.dgvDefect.ColumnHeadersHeight = 29;
             this.dgvDefect.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvDefect.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -841,8 +841,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvDefect.RefreshAtHscroll = false;
             this.dgvDefect.RowHeadersWidth = 50;
             this.dgvDefect.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            dataGridViewCellStyle62.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
-            this.dgvDefect.RowsDefaultCellStyle = dataGridViewCellStyle62;
+            dataGridViewCellStyle10.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
+            this.dgvDefect.RowsDefaultCellStyle = dataGridViewCellStyle10;
             this.dgvDefect.RowTemplate.Height = 21;
             this.dgvDefect.Size = new System.Drawing.Size(989, 263);
             this.dgvDefect.SortOrderColumnName = null;
@@ -942,8 +942,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             // dgvKiln
             // 
             this.dgvKiln.AllowUserToModifyRows = true;
-            dataGridViewCellStyle63.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
-            this.dgvKiln.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle63;
+            dataGridViewCellStyle11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(235)))), ((int)(((byte)(235)))));
+            this.dgvKiln.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11;
             this.dgvKiln.CellBackColorNochanged = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
             this.dgvKiln.CellBackColorReadOnly = System.Drawing.SystemColors.Control;
             this.dgvKiln.CellHeight = 23;
@@ -951,14 +951,14 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvKiln.ChildNodeColumnText = null;
             this.dgvKiln.ColumnDeep = 1;
             this.dgvKiln.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single;
-            dataGridViewCellStyle64.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
-            dataGridViewCellStyle64.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
-            dataGridViewCellStyle64.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            dataGridViewCellStyle64.ForeColor = System.Drawing.Color.White;
-            dataGridViewCellStyle64.SelectionBackColor = System.Drawing.SystemColors.Highlight;
-            dataGridViewCellStyle64.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
-            dataGridViewCellStyle64.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
-            this.dgvKiln.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle64;
+            dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
+            dataGridViewCellStyle12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(48)))), ((int)(((byte)(58)))), ((int)(((byte)(70)))));
+            dataGridViewCellStyle12.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            dataGridViewCellStyle12.ForeColor = System.Drawing.Color.White;
+            dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+            dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+            dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.dgvKiln.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12;
             this.dgvKiln.ColumnHeadersHeight = 29;
             this.dgvKiln.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
             this.dgvKiln.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
@@ -989,8 +989,8 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.dgvKiln.RefreshAtHscroll = false;
             this.dgvKiln.RowHeadersWidth = 50;
             this.dgvKiln.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
-            dataGridViewCellStyle65.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
-            this.dgvKiln.RowsDefaultCellStyle = dataGridViewCellStyle65;
+            dataGridViewCellStyle13.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
+            this.dgvKiln.RowsDefaultCellStyle = dataGridViewCellStyle13;
             this.dgvKiln.RowTemplate.Height = 21;
             this.dgvKiln.Size = new System.Drawing.Size(989, 263);
             this.dgvKiln.SortOrderColumnName = null;
@@ -1148,6 +1148,30 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.groupBox1.TabStop = false;
             this.groupBox1.Text = "基本属性";
             // 
+            // ddlPrintType
+            // 
+            this.ddlPrintType.BackColor = System.Drawing.SystemColors.Window;
+            this.ddlPrintType.BackgroundColor = System.Drawing.SystemColors.Window;
+            this.ddlPrintType.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.ddlPrintType.FormattingEnabled = true;
+            this.ddlPrintType.Location = new System.Drawing.Point(358, 166);
+            this.ddlPrintType.Name = "ddlPrintType";
+            this.ddlPrintType.Size = new System.Drawing.Size(102, 23);
+            this.ddlPrintType.TabIndex = 25;
+            this.ddlPrintType.SelectedIndexChanged += new System.EventHandler(this.ddlPrintType_SelectedIndexChanged);
+            // 
+            // c_Label6
+            // 
+            this.c_Label6.AutoSize = true;
+            this.c_Label6.BackColor = System.Drawing.Color.Transparent;
+            this.c_Label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.c_Label6.Location = new System.Drawing.Point(314, 171);
+            this.c_Label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.c_Label6.Name = "c_Label6";
+            this.c_Label6.Size = new System.Drawing.Size(37, 15);
+            this.c_Label6.TabIndex = 24;
+            this.c_Label6.Text = "类型";
+            // 
             // groupBox7
             // 
             this.groupBox7.BackColor = System.Drawing.Color.Transparent;
@@ -1213,6 +1237,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.txtBarCodePrintCopies.Size = new System.Drawing.Size(35, 25);
             this.txtBarCodePrintCopies.TabIndex = 16;
             this.txtBarCodePrintCopies.TextValue = "";
+            this.txtBarCodePrintCopies.TextChanged += new System.EventHandler(this.txtBarCodePrintCopies_TextChanged);
             // 
             // c_Label5
             // 
@@ -1442,30 +1467,6 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             this.sbOrganizationID.TabIndex = 6;
             this.sbOrganizationID.TxtOrganizationBackColor = System.Drawing.SystemColors.Control;
             // 
-            // ddlPrintType
-            // 
-            this.ddlPrintType.BackColor = System.Drawing.SystemColors.Window;
-            this.ddlPrintType.BackgroundColor = System.Drawing.SystemColors.Window;
-            this.ddlPrintType.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.ddlPrintType.FormattingEnabled = true;
-            this.ddlPrintType.Location = new System.Drawing.Point(358, 166);
-            this.ddlPrintType.Name = "ddlPrintType";
-            this.ddlPrintType.Size = new System.Drawing.Size(102, 23);
-            this.ddlPrintType.TabIndex = 25;
-            this.ddlPrintType.SelectedIndexChanged += new System.EventHandler(this.ddlPrintType_SelectedIndexChanged);
-            // 
-            // c_Label6
-            // 
-            this.c_Label6.AutoSize = true;
-            this.c_Label6.BackColor = System.Drawing.Color.Transparent;
-            this.c_Label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.c_Label6.Location = new System.Drawing.Point(314, 171);
-            this.c_Label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
-            this.c_Label6.Name = "c_Label6";
-            this.c_Label6.Size = new System.Drawing.Size(37, 15);
-            this.c_Label6.TabIndex = 24;
-            this.c_Label6.Text = "类型";
-            // 
             // F_PC_0207
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
@@ -1596,7 +1597,7 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
                 cre.Name = "GetPrintType";
                 DataTable dtPrintType = SystemModuleProxy.Service.DoBarCodePrint(cre).Data.Tables[0];
                 DataRow dr = dtPrintType.NewRow();
-                dr["PRINTTYPENAME"] = "请选择...";
+                dr["PRINTTYPENAME"] = "";
                 dr["PRINTTYPEID"] = "0";
                 dtPrintType.Rows.InsertAt(dr, 0);
                 this.ddlPrintType.DataSource = dtPrintType;
@@ -2607,11 +2608,32 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
 
         #endregion
 
-        //xuwei add 2019-11-20
+        //xuwei add 2019-11-25
         private void ddlPrintType_SelectedIndexChanged(object sender, EventArgs e)
         {
-            if (ddlPrintType.SelectedIndex > 0 && txtBarCodePrintCopies.Text == "0")
-                txtBarCodePrintCopies.Text = "1";
+            if(txtBarCodePrintCopies.Text!="")
+            {
+                if (ddlPrintType.SelectedIndex > 0 && Convert.ToInt32(txtBarCodePrintCopies.Text) == 0) txtBarCodePrintCopies.Text = "1";
+                if (ddlPrintType.SelectedIndex == 0 && Convert.ToInt32(txtBarCodePrintCopies.Text) > 0 ) txtBarCodePrintCopies.Text = "0";
+            }
+            else
+            {
+                if (ddlPrintType.SelectedIndex > 0 ) txtBarCodePrintCopies.Text = "1";
+                if (ddlPrintType.SelectedIndex == 0 ) txtBarCodePrintCopies.Text = "0";
+            }
+        }
+        //xuwei add 2019-11-25
+        private void txtBarCodePrintCopies_TextChanged(object sender, EventArgs e)
+        {
+            if (txtBarCodePrintCopies.Text != "")
+            {
+                if (Convert.ToInt32(txtBarCodePrintCopies.Text) == 0 && ddlPrintType.SelectedIndex >0 ) ddlPrintType.SelectedIndex = 0;
+                if (Convert.ToInt32(txtBarCodePrintCopies.Text) > 0 && ddlPrintType.SelectedIndex == 0 ) ddlPrintType.SelectedIndex = 1;
+            }
+            else
+            {
+                if (ddlPrintType.SelectedIndex > 0) ddlPrintType.SelectedIndex = 0;
+            }
         }
     }
 }

+ 1 - 1
DK.Service/PCModuleLogic/PCModuleLogicDAL.cs

@@ -798,7 +798,7 @@ namespace Dongke.IBOSS.PRD.Service.PCModuleLogic
         #endregion
 
         /// <summary>
-        /// 保存生产线
+        /// 保存生产线 xuwei modify 2019-11-22
         /// </summary>
         /// <param name="productionLine">生产线实体</param>
         /// <param name="sUserInfo">用户基本信息</param>