Ver Fonte

更换抽样计划自动勾选

章政 há 8 anos atrás
pai
commit
6d679f4166

+ 8 - 0
UAS-MES/FunctionCode/OQC/OQC_PlanMaintain.cs

@@ -277,5 +277,13 @@ namespace UAS_MES.OQC
         {
             dh.Dispose();
         }
+
+        private void CheckTypeDGV_DataSourceChanged(object sender, EventArgs e)
+        {
+            for (int i = 0; i < CheckTypeDGV.Rows.Count; i++)
+            {
+                CheckTypeDGV.Rows[i].Cells["Choose"].Value = true;
+            }
+        }
     }
 }

+ 1 - 0
UAS-MES/FunctionCode/OQC/OQC_PlanMaintain.designer.cs

@@ -442,6 +442,7 @@
             this.CheckTypeDGV.RowTemplate.Height = 23;
             this.CheckTypeDGV.Size = new System.Drawing.Size(993, 398);
             this.CheckTypeDGV.TabIndex = 167;
+            this.CheckTypeDGV.DataSourceChanged += new System.EventHandler(this.CheckTypeDGV_DataSourceChanged);
             // 
             // Choose
             //