From 5bf6668fc8a570f64498888b8d923911485180b3 Mon Sep 17 00:00:00 2001
From: lu <123456>
Date: 星期一, 11 八月 2025 17:43:56 +0800
Subject: [PATCH] bug

---
 DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Input.cs |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Input.cs b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Input.cs
index 8148aeb..0210f25 100644
--- a/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Input.cs
+++ b/DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaItemsDetect01Input.cs
@@ -1,9 +1,12 @@
-锘縰sing Gs.DevApp.Entity;
+锘縰sing DevExpress.Utils.MVVM.Services;
+using DevExpress.XtraLayout.Customization;
+using Gs.DevApp.Entity;
 using Gs.DevApp.ToolBox;
 using Newtonsoft.Json;
 using System;
 using System.Data;
 using System.Drawing;
+using System.Threading.Tasks;
 using System.Windows.Forms;
 
 namespace Gs.DevApp.DevFrm.QC
@@ -28,11 +31,18 @@
             //缂栬緫浜嬩欢
             gvMx1.CellValueChanged += GvMx1_CellValueChanged;
             //鍙栨秷涓嶇鍚堟潯浠剁殑缂栬緫
-            //  gvMx1.ShowingEditor += GvMx1_ShowingEditor;
+            gvMx1.ShowingEditor += GvMx1_ShowingEditor;
             //绂佺敤鏍锋湰鏁颁箣澶栫殑鍗曞厓鏍间笖鏀瑰彉棰滆壊
             gvMx1.CustomDrawCell += GvMx1_CustomDrawCell;
             getModel();
+
+            this.FormClosing +=  (s, e) =>
+            {
+                textEdit1.Focus();
+            };
         }
+
+
 
         /// <summary>
         /// 鍒ゆ柇鍗曞厓鏍肩殑缂栬緫鎬�
@@ -71,7 +81,8 @@
             bool _bl = ckCol(e.Column.FieldName, _maxYbs);
             if (_bl)
             {
-                e.Appearance.BackColor = Color.Azure;
+                e.Appearance.BackColor = Color.LightBlue;
+                e.Appearance.ForeColor = Color.Blue;
                 e.Column.MinWidth = 50;
             }
             else
@@ -84,9 +95,10 @@
                 object value = gvMx1.GetRowCellValue(e.RowHandle, e.Column + "jg");
                 if (value != null && value.ToString() == strBhg)
                 {
-                    e.Appearance.ForeColor = Color.White;
                     e.Appearance.BackColor = Color.Red;
-                };
+                    e.Appearance.ForeColor = Color.White;
+                }
+                ;
             }
         }
 

--
Gitblit v1.9.3