소스 검색

更换抽样计划自动勾选

章政 8 년 전
부모
커밋
6d679f4166
2개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      UAS-MES/FunctionCode/OQC/OQC_PlanMaintain.cs
  2. 1 0
      UAS-MES/FunctionCode/OQC/OQC_PlanMaintain.designer.cs

+ 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
             //