Sfoglia il codice sorgente

结束换模,注浆次数

chenxy 6 anni fa
parent
commit
8be63b010e

+ 121 - 15
DK.Client/PCModule/F_PC_0101_1_3.Designer.cs

@@ -67,6 +67,11 @@
             this.lblLabel1 = new Dongke.WinForm.Controls.LblLabel();
             this.lblLabel1 = new Dongke.WinForm.Controls.LblLabel();
             this.btnAddMouldBarcode = new Dongke.WinForm.Controls.BtnButton();
             this.btnAddMouldBarcode = new Dongke.WinForm.Controls.BtnButton();
             this.txtBarcode = new Dongke.WinForm.Controls.TxtCode();
             this.txtBarcode = new Dongke.WinForm.Controls.TxtCode();
+            this.txtGroutingCount = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TXT_Digital();
+            this.c_Label4 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
+            this.btnSetCount = new Dongke.WinForm.Controls.BtnButton();
+            this.txtStandardGroutingCount = new Dongke.IBOSS.PRD.Basics.BaseControls.C_TXT_Digital();
+            this.c_Label3 = new Dongke.IBOSS.PRD.Basics.BaseControls.C_Label();
             ((System.ComponentModel.ISupportInitialize)(this.dgvGroutingLineDetail)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvGroutingLineDetail)).BeginInit();
             this.SuspendLayout();
             this.SuspendLayout();
             // 
             // 
@@ -76,7 +81,7 @@
             this.lblTimes.BackColor = System.Drawing.Color.Transparent;
             this.lblTimes.BackColor = System.Drawing.Color.Transparent;
             this.lblTimes.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.lblTimes.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.lblTimes.ForeColor = System.Drawing.SystemColors.ControlText;
             this.lblTimes.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.lblTimes.Location = new System.Drawing.Point(207, 18);
+            this.lblTimes.Location = new System.Drawing.Point(187, 18);
             this.lblTimes.Name = "lblTimes";
             this.lblTimes.Name = "lblTimes";
             this.lblTimes.Size = new System.Drawing.Size(53, 12);
             this.lblTimes.Size = new System.Drawing.Size(53, 12);
             this.lblTimes.TabIndex = 2;
             this.lblTimes.TabIndex = 2;
@@ -88,7 +93,7 @@
             this.txtDateStart.Enabled = false;
             this.txtDateStart.Enabled = false;
             this.txtDateStart.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.txtDateStart.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.txtDateStart.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
             this.txtDateStart.Format = System.Windows.Forms.DateTimePickerFormat.Custom;
-            this.txtDateStart.Location = new System.Drawing.Point(266, 14);
+            this.txtDateStart.Location = new System.Drawing.Point(246, 14);
             this.txtDateStart.Name = "txtDateStart";
             this.txtDateStart.Name = "txtDateStart";
             this.txtDateStart.Size = new System.Drawing.Size(100, 21);
             this.txtDateStart.Size = new System.Drawing.Size(100, 21);
             this.txtDateStart.TabIndex = 3;
             this.txtDateStart.TabIndex = 3;
@@ -174,9 +179,9 @@
             dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
             dataGridViewCellStyle7.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(159)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
             this.dgvGroutingLineDetail.RowsDefaultCellStyle = dataGridViewCellStyle7;
             this.dgvGroutingLineDetail.RowsDefaultCellStyle = dataGridViewCellStyle7;
             this.dgvGroutingLineDetail.RowTemplate.Height = 21;
             this.dgvGroutingLineDetail.RowTemplate.Height = 21;
-            this.dgvGroutingLineDetail.Size = new System.Drawing.Size(914, 358);
+            this.dgvGroutingLineDetail.Size = new System.Drawing.Size(1025, 358);
             this.dgvGroutingLineDetail.SortOrderColumnName = null;
             this.dgvGroutingLineDetail.SortOrderColumnName = null;
-            this.dgvGroutingLineDetail.TabIndex = 9;
+            this.dgvGroutingLineDetail.TabIndex = 99;
             this.dgvGroutingLineDetail.Tag = true;
             this.dgvGroutingLineDetail.Tag = true;
             this.dgvGroutingLineDetail.TotalSumColumns = null;
             this.dgvGroutingLineDetail.TotalSumColumns = null;
             this.dgvGroutingLineDetail.ViewRowFilter = "";
             this.dgvGroutingLineDetail.ViewRowFilter = "";
@@ -367,7 +372,7 @@
             this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
             this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
             this.btnCancel.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             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.ForeColor = System.Drawing.Color.White;
-            this.btnCancel.Location = new System.Drawing.Point(843, 410);
+            this.btnCancel.Location = new System.Drawing.Point(954, 410);
             this.btnCancel.Name = "btnCancel";
             this.btnCancel.Name = "btnCancel";
             this.btnCancel.Size = new System.Drawing.Size(85, 30);
             this.btnCancel.Size = new System.Drawing.Size(85, 30);
             this.btnCancel.TabIndex = 12;
             this.btnCancel.TabIndex = 12;
@@ -382,7 +387,7 @@
             this.btnSave.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSave.BackgroundImage")));
             this.btnSave.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnSave.BackgroundImage")));
             this.btnSave.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             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.ForeColor = System.Drawing.Color.White;
-            this.btnSave.Location = new System.Drawing.Point(754, 410);
+            this.btnSave.Location = new System.Drawing.Point(865, 410);
             this.btnSave.Name = "btnSave";
             this.btnSave.Name = "btnSave";
             this.btnSave.Size = new System.Drawing.Size(85, 30);
             this.btnSave.Size = new System.Drawing.Size(85, 30);
             this.btnSave.TabIndex = 11;
             this.btnSave.TabIndex = 11;
@@ -400,7 +405,7 @@
             this.txtGroutingLineCode.MaxLength = 200;
             this.txtGroutingLineCode.MaxLength = 200;
             this.txtGroutingLineCode.Name = "txtGroutingLineCode";
             this.txtGroutingLineCode.Name = "txtGroutingLineCode";
             this.txtGroutingLineCode.ReadOnly = true;
             this.txtGroutingLineCode.ReadOnly = true;
-            this.txtGroutingLineCode.Size = new System.Drawing.Size(120, 21);
+            this.txtGroutingLineCode.Size = new System.Drawing.Size(100, 21);
             this.txtGroutingLineCode.TabIndex = 1;
             this.txtGroutingLineCode.TabIndex = 1;
             this.txtGroutingLineCode.TextValue = "";
             this.txtGroutingLineCode.TextValue = "";
             // 
             // 
@@ -437,7 +442,7 @@
             this.c_Label2.BackColor = System.Drawing.Color.Transparent;
             this.c_Label2.BackColor = System.Drawing.Color.Transparent;
             this.c_Label2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.c_Label2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.c_Label2.ForeColor = System.Drawing.SystemColors.ControlText;
             this.c_Label2.ForeColor = System.Drawing.SystemColors.ControlText;
-            this.c_Label2.Location = new System.Drawing.Point(372, 18);
+            this.c_Label2.Location = new System.Drawing.Point(352, 18);
             this.c_Label2.Name = "c_Label2";
             this.c_Label2.Name = "c_Label2";
             this.c_Label2.Size = new System.Drawing.Size(53, 12);
             this.c_Label2.Size = new System.Drawing.Size(53, 12);
             this.c_Label2.TabIndex = 4;
             this.c_Label2.TabIndex = 4;
@@ -449,17 +454,17 @@
             this.txtGMouldCode.BackgroundColor = System.Drawing.SystemColors.Window;
             this.txtGMouldCode.BackgroundColor = System.Drawing.SystemColors.Window;
             this.txtGMouldCode.ErrorMessage = "";
             this.txtGMouldCode.ErrorMessage = "";
             this.txtGMouldCode.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.txtGMouldCode.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.txtGMouldCode.Location = new System.Drawing.Point(431, 14);
+            this.txtGMouldCode.Location = new System.Drawing.Point(411, 14);
             this.txtGMouldCode.MaxLength = 200;
             this.txtGMouldCode.MaxLength = 200;
             this.txtGMouldCode.Name = "txtGMouldCode";
             this.txtGMouldCode.Name = "txtGMouldCode";
             this.txtGMouldCode.ReadOnly = true;
             this.txtGMouldCode.ReadOnly = true;
-            this.txtGMouldCode.Size = new System.Drawing.Size(120, 21);
+            this.txtGMouldCode.Size = new System.Drawing.Size(100, 21);
             this.txtGMouldCode.TabIndex = 5;
             this.txtGMouldCode.TabIndex = 5;
             this.txtGMouldCode.TextValue = "";
             this.txtGMouldCode.TextValue = "";
             // 
             // 
             // lblLabel1
             // lblLabel1
             // 
             // 
-            this.lblLabel1.Location = new System.Drawing.Point(558, 18);
+            this.lblLabel1.Location = new System.Drawing.Point(517, 18);
             this.lblLabel1.Name = "lblLabel1";
             this.lblLabel1.Name = "lblLabel1";
             this.lblLabel1.Size = new System.Drawing.Size(53, 12);
             this.lblLabel1.Size = new System.Drawing.Size(53, 12);
             this.lblLabel1.TabIndex = 6;
             this.lblLabel1.TabIndex = 6;
@@ -467,7 +472,7 @@
             // 
             // 
             // btnAddMouldBarcode
             // btnAddMouldBarcode
             // 
             // 
-            this.btnAddMouldBarcode.Location = new System.Drawing.Point(740, 9);
+            this.btnAddMouldBarcode.Location = new System.Drawing.Point(682, 9);
             this.btnAddMouldBarcode.Name = "btnAddMouldBarcode";
             this.btnAddMouldBarcode.Name = "btnAddMouldBarcode";
             this.btnAddMouldBarcode.Size = new System.Drawing.Size(85, 30);
             this.btnAddMouldBarcode.Size = new System.Drawing.Size(85, 30);
             this.btnAddMouldBarcode.TabIndex = 8;
             this.btnAddMouldBarcode.TabIndex = 8;
@@ -477,20 +482,111 @@
             // 
             // 
             // txtBarcode
             // txtBarcode
             // 
             // 
-            this.txtBarcode.Location = new System.Drawing.Point(614, 14);
+            this.txtBarcode.Location = new System.Drawing.Point(576, 14);
             this.txtBarcode.MaxLength = 20;
             this.txtBarcode.MaxLength = 20;
             this.txtBarcode.Name = "txtBarcode";
             this.txtBarcode.Name = "txtBarcode";
-            this.txtBarcode.Size = new System.Drawing.Size(120, 21);
+            this.txtBarcode.Size = new System.Drawing.Size(100, 21);
             this.txtBarcode.TabIndex = 7;
             this.txtBarcode.TabIndex = 7;
             this.txtBarcode.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtBarcode_KeyDown);
             this.txtBarcode.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtBarcode_KeyDown);
             // 
             // 
+            // txtGroutingCount
+            // 
+            this.txtGroutingCount.AllowNegative = false;
+            this.txtGroutingCount.BackColor = System.Drawing.SystemColors.Window;
+            this.txtGroutingCount.BackgroundColor = System.Drawing.SystemColors.Window;
+            this.txtGroutingCount.ErrorMessage = "";
+            this.txtGroutingCount.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.txtGroutingCount.ImeMode = System.Windows.Forms.ImeMode.Off;
+            this.txtGroutingCount.Location = new System.Drawing.Point(933, 14);
+            this.txtGroutingCount.MaxLength = 0;
+            this.txtGroutingCount.MaxValue = new decimal(new int[] {
+            999999,
+            0,
+            0,
+            0});
+            this.txtGroutingCount.MinValue = new decimal(new int[] {
+            0,
+            0,
+            0,
+            0});
+            this.txtGroutingCount.Name = "txtGroutingCount";
+            this.txtGroutingCount.Size = new System.Drawing.Size(36, 21);
+            this.txtGroutingCount.TabIndex = 12;
+            this.txtGroutingCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
+            this.txtGroutingCount.TextValue = "";
+            // 
+            // c_Label4
+            // 
+            this.c_Label4.AutoSize = true;
+            this.c_Label4.BackColor = System.Drawing.Color.Transparent;
+            this.c_Label4.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.c_Label4.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.c_Label4.Location = new System.Drawing.Point(874, 18);
+            this.c_Label4.Name = "c_Label4";
+            this.c_Label4.Size = new System.Drawing.Size(53, 12);
+            this.c_Label4.TabIndex = 11;
+            this.c_Label4.Text = "已注次数";
+            // 
+            // btnSetCount
+            // 
+            this.btnSetCount.Location = new System.Drawing.Point(975, 9);
+            this.btnSetCount.Name = "btnSetCount";
+            this.btnSetCount.Size = new System.Drawing.Size(58, 30);
+            this.btnSetCount.TabIndex = 13;
+            this.btnSetCount.Text = "设定";
+            this.btnSetCount.UseVisualStyleBackColor = true;
+            this.btnSetCount.Click += new System.EventHandler(this.btnSetCount_Click);
+            // 
+            // txtStandardGroutingCount
+            // 
+            this.txtStandardGroutingCount.AllowNegative = false;
+            this.txtStandardGroutingCount.BackColor = System.Drawing.SystemColors.Window;
+            this.txtStandardGroutingCount.BackgroundColor = System.Drawing.SystemColors.Window;
+            this.txtStandardGroutingCount.ErrorMessage = "";
+            this.txtStandardGroutingCount.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.txtStandardGroutingCount.ImeMode = System.Windows.Forms.ImeMode.Off;
+            this.txtStandardGroutingCount.Location = new System.Drawing.Point(832, 14);
+            this.txtStandardGroutingCount.MaxLength = 0;
+            this.txtStandardGroutingCount.MaxValue = new decimal(new int[] {
+            999999,
+            0,
+            0,
+            0});
+            this.txtStandardGroutingCount.MinValue = new decimal(new int[] {
+            0,
+            0,
+            0,
+            0});
+            this.txtStandardGroutingCount.Name = "txtStandardGroutingCount";
+            this.txtStandardGroutingCount.Size = new System.Drawing.Size(36, 21);
+            this.txtStandardGroutingCount.TabIndex = 10;
+            this.txtStandardGroutingCount.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
+            this.txtStandardGroutingCount.TextValue = "";
+            // 
+            // c_Label3
+            // 
+            this.c_Label3.AutoSize = true;
+            this.c_Label3.BackColor = System.Drawing.Color.Transparent;
+            this.c_Label3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.c_Label3.ForeColor = System.Drawing.SystemColors.ControlText;
+            this.c_Label3.Location = new System.Drawing.Point(773, 18);
+            this.c_Label3.Name = "c_Label3";
+            this.c_Label3.Size = new System.Drawing.Size(53, 12);
+            this.c_Label3.TabIndex = 9;
+            this.c_Label3.Text = "标准次数";
+            // 
             // F_PC_0101_1_3
             // F_PC_0101_1_3
             // 
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.CancelButton = this.btnCancel;
             this.CancelButton = this.btnCancel;
-            this.ClientSize = new System.Drawing.Size(938, 465);
+            this.ClientSize = new System.Drawing.Size(1049, 465);
+            this.Controls.Add(this.txtStandardGroutingCount);
+            this.Controls.Add(this.c_Label3);
+            this.Controls.Add(this.txtGroutingCount);
+            this.Controls.Add(this.c_Label4);
             this.Controls.Add(this.lblLabel1);
             this.Controls.Add(this.lblLabel1);
+            this.Controls.Add(this.btnSetCount);
             this.Controls.Add(this.btnAddMouldBarcode);
             this.Controls.Add(this.btnAddMouldBarcode);
             this.Controls.Add(this.txtBarcode);
             this.Controls.Add(this.txtBarcode);
             this.Controls.Add(this.btnAdaptive);
             this.Controls.Add(this.btnAdaptive);
@@ -521,7 +617,12 @@
             this.Controls.SetChildIndex(this.btnAdaptive, 0);
             this.Controls.SetChildIndex(this.btnAdaptive, 0);
             this.Controls.SetChildIndex(this.txtBarcode, 0);
             this.Controls.SetChildIndex(this.txtBarcode, 0);
             this.Controls.SetChildIndex(this.btnAddMouldBarcode, 0);
             this.Controls.SetChildIndex(this.btnAddMouldBarcode, 0);
+            this.Controls.SetChildIndex(this.btnSetCount, 0);
             this.Controls.SetChildIndex(this.lblLabel1, 0);
             this.Controls.SetChildIndex(this.lblLabel1, 0);
+            this.Controls.SetChildIndex(this.c_Label4, 0);
+            this.Controls.SetChildIndex(this.txtGroutingCount, 0);
+            this.Controls.SetChildIndex(this.c_Label3, 0);
+            this.Controls.SetChildIndex(this.txtStandardGroutingCount, 0);
             ((System.ComponentModel.ISupportInitialize)(this.dgvGroutingLineDetail)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvGroutingLineDetail)).EndInit();
             this.ResumeLayout(false);
             this.ResumeLayout(false);
             this.PerformLayout();
             this.PerformLayout();
@@ -562,5 +663,10 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn EndUsedDate;
         private System.Windows.Forms.DataGridViewTextBoxColumn EndUsedDate;
         private System.Windows.Forms.DataGridViewTextBoxColumn GMouldStatus;
         private System.Windows.Forms.DataGridViewTextBoxColumn GMouldStatus;
         private System.Windows.Forms.DataGridViewTextBoxColumn RecordRemarks;
         private System.Windows.Forms.DataGridViewTextBoxColumn RecordRemarks;
+        private Basics.BaseControls.C_TXT_Digital txtGroutingCount;
+        private Basics.BaseControls.C_Label c_Label4;
+        private WinForm.Controls.BtnButton btnSetCount;
+        private Basics.BaseControls.C_TXT_Digital txtStandardGroutingCount;
+        private Basics.BaseControls.C_Label c_Label3;
     }
     }
 }
 }

+ 30 - 0
DK.Client/PCModule/F_PC_0101_1_3.cs

@@ -429,5 +429,35 @@ namespace Dongke.IBOSS.PRD.Client.PCModule
             }
             }
         }
         }
         #endregion
         #endregion
+
+        private void btnSetCount_Click(object sender, EventArgs e)
+        {
+            try
+            {
+                DataTable dataTable = dgvGroutingLineDetail.DataSource as DataTable;
+                if (dataTable == null || dataTable.Rows.Count == 0)
+                {
+                    return;
+                }
+                int setCount = Convert.ToInt32(this.txtGroutingCount.DataValue ?? 0);
+                int sCount = Convert.ToInt32(this.txtStandardGroutingCount.DataValue ?? 0);
+                foreach (DataRow item in dataTable.Rows)
+                {
+                    if (item["MouldSource"] + "" == "0")
+                    {
+                        item["StandardGroutingCount"] = sCount;
+                        item["GROUTINGCOUNT"] = setCount;
+                        item.EndEdit();
+                    }
+                }
+            }
+            catch (Exception ex)
+            {
+                //_ShowFlag = true;
+                // 对异常进行共通处理
+                ExceptionManager.HandleEventException(this.ToString(),
+                     System.Reflection.MethodBase.GetCurrentMethod().Name, this.Text, ex);
+            }
+        }
     }
     }
 }
 }