From 93690091b9de24a11631eb666def02784d0e0c16 Mon Sep 17 00:00:00 2001 From: 仲国强 <519541279@qq.com> Date: 星期二, 31 八月 2021 17:04:34 +0800 Subject: [PATCH] 修改工艺路线导入时个别字段内容混乱问题 --- PlanM/数据导入/Gy_DataIn_RoutingBill.designer.cs | 60 ++++++++++++++++++----------- PlanM/数据导入/Gy_DataIn_RoutingBill.cs | 11 ++--- PlanM/数据导入/Gy_DataIn_RoutingBill.resx | 8 ++-- 3 files changed, 46 insertions(+), 33 deletions(-) diff --git "a/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.cs" "b/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.cs" index 3488207..9f1b7aa 100644 --- "a/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.cs" +++ "b/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.cs" @@ -232,11 +232,6 @@ } for (int i = 0; i <= grdMain.Rows.Count - 1; i++) { - BillNew.omodel.HPicNumVer = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HPicNumVerCol].Value); - BillNew.omodel.HPicNumAssemble = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HPicNumAssembleCol].Value); - BillNew.omodel.HMaterTexture = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HMaterTextureCol].Value); - BillNew.omodel.HProductNum = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HProductNumCol].Value); - BillNew.omodel.HVerNum = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HVerNumCol].Value); string sHNumber = ""; if (DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HMaterNumberCol].Value) != "") { @@ -261,7 +256,11 @@ BillNew.omodel.HUnitID = oMaterHlp.omodel.HUnitID; BillNew.omodel.HUnitNumber = oMaterHlp.omodel.HUnitNumber; } - + BillNew.omodel.HPicNumVer = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HPicNumVerCol].Value); + BillNew.omodel.HPicNumAssemble = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HPicNumAssembleCol].Value); + BillNew.omodel.HMaterTexture = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HMaterTextureCol].Value); + BillNew.omodel.HProductNum = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HProductNumCol].Value); + BillNew.omodel.HVerNum = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HVerNumCol].Value); } else { diff --git "a/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.designer.cs" "b/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.designer.cs" index 45a5161..2f3f591 100644 --- "a/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.designer.cs" +++ "b/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.designer.cs" @@ -41,7 +41,8 @@ // // pPic // - this.pPic.Size = new System.Drawing.Size(1158, 45); + this.pPic.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5); + this.pPic.Size = new System.Drawing.Size(1544, 56); // // panel1 // @@ -52,7 +53,8 @@ this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.cmbHYear); this.panel1.Controls.Add(this.label1); - this.panel1.Size = new System.Drawing.Size(1158, 42); + this.panel1.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5); + this.panel1.Size = new System.Drawing.Size(1544, 52); this.panel1.Controls.SetChildIndex(this.cmdHPath, 0); this.panel1.Controls.SetChildIndex(this.label4, 0); this.panel1.Controls.SetChildIndex(this.txtHPath, 0); @@ -66,28 +68,33 @@ // // lblCaption // - this.lblCaption.Size = new System.Drawing.Size(129, 19); + this.lblCaption.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.lblCaption.Size = new System.Drawing.Size(160, 24); this.lblCaption.Text = "数据导入模块"; // // cmdHPath // - this.cmdHPath.Location = new System.Drawing.Point(782, 7); + this.cmdHPath.Location = new System.Drawing.Point(1043, 9); + this.cmdHPath.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5); // // txtHPath // - this.txtHPath.Location = new System.Drawing.Point(461, 3); - this.txtHPath.Size = new System.Drawing.Size(315, 32); + this.txtHPath.Location = new System.Drawing.Point(615, 4); + this.txtHPath.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5); + this.txtHPath.Size = new System.Drawing.Size(419, 39); // // label4 // - this.label4.Location = new System.Drawing.Point(390, 12); + this.label4.Location = new System.Drawing.Point(520, 15); + this.label4.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0); // // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(26, 9); + this.label1.Location = new System.Drawing.Point(35, 11); + this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(53, 12); + this.label1.Size = new System.Drawing.Size(67, 15); this.label1.TabIndex = 104; this.label1.Text = "会计年:"; // @@ -95,9 +102,10 @@ // this.cmbHYear.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbHYear.FormattingEnabled = true; - this.cmbHYear.Location = new System.Drawing.Point(84, 8); + this.cmbHYear.Location = new System.Drawing.Point(112, 10); + this.cmbHYear.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cmbHYear.Name = "cmbHYear"; - this.cmbHYear.Size = new System.Drawing.Size(94, 20); + this.cmbHYear.Size = new System.Drawing.Size(124, 23); this.cmbHYear.TabIndex = 105; // // cmbHPeriod @@ -117,17 +125,19 @@ "10", "11", "12"}); - this.cmbHPeriod.Location = new System.Drawing.Point(269, 10); + this.cmbHPeriod.Location = new System.Drawing.Point(359, 12); + this.cmbHPeriod.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cmbHPeriod.Name = "cmbHPeriod"; - this.cmbHPeriod.Size = new System.Drawing.Size(85, 20); + this.cmbHPeriod.Size = new System.Drawing.Size(112, 23); this.cmbHPeriod.TabIndex = 107; // // label2 // this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(198, 10); + this.label2.Location = new System.Drawing.Point(264, 12); + this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(65, 12); + this.label2.Size = new System.Drawing.Size(82, 15); this.label2.TabIndex = 106; this.label2.Text = "会计期间:"; // @@ -136,34 +146,38 @@ this.checkadd.AutoSize = true; this.checkadd.Checked = true; this.checkadd.CheckState = System.Windows.Forms.CheckState.Checked; - this.checkadd.Location = new System.Drawing.Point(1085, 10); + this.checkadd.Location = new System.Drawing.Point(1447, 12); + this.checkadd.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.checkadd.Name = "checkadd"; - this.checkadd.Size = new System.Drawing.Size(48, 16); + this.checkadd.Size = new System.Drawing.Size(56, 19); this.checkadd.TabIndex = 108; this.checkadd.Text = "追加"; this.checkadd.UseVisualStyleBackColor = true; // // txtHSheetName // - this.txtHSheetName.Location = new System.Drawing.Point(949, 9); + this.txtHSheetName.Location = new System.Drawing.Point(1265, 11); + this.txtHSheetName.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.txtHSheetName.Name = "txtHSheetName"; - this.txtHSheetName.Size = new System.Drawing.Size(100, 21); + this.txtHSheetName.Size = new System.Drawing.Size(132, 25); this.txtHSheetName.TabIndex = 109; this.txtHSheetName.Text = "Sheet1"; // // label3 // this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(902, 10); + this.label3.Location = new System.Drawing.Point(1203, 12); + this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(41, 12); + this.label3.Size = new System.Drawing.Size(52, 15); this.label3.TabIndex = 110; this.label3.Text = "工作簿"; // // Gy_DataIn_RoutingBill // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.ClientSize = new System.Drawing.Size(1158, 631); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); + this.ClientSize = new System.Drawing.Size(1544, 789); + this.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5); this.Name = "Gy_DataIn_RoutingBill"; this.Text = "数据导入模块"; this.pPic.ResumeLayout(false); diff --git "a/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.resx" "b/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.resx" index 5c0687c..d55421f 100644 --- "a/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.resx" +++ "b/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.resx" @@ -112,12 +112,12 @@ <value>2.0</value> </resheader> <resheader name="reader"> - <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <resheader name="writer"> - <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> - <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> - <value>95, 17</value> + <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> </metadata> </root> \ No newline at end of file -- Gitblit v1.9.1