From 8dbc06ffc555112cccbcbc1d32d4aa87fddf44ee Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期五, 03 一月 2025 08:29:56 +0800
Subject: [PATCH] 细节

---
 DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index 96ea59a..d1ef474 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -646,6 +646,21 @@
                     MessageBox.Show(ex.Message);
                 }
             }
+
+            foreach (Control ctrl in controls)
+            {
+                if (ctrl is TextEdit)
+                {
+                    var txt = ctrl as TextEdit;
+                    if (_isRead(txt.Tag))
+                    {
+                        txt.ReadOnly = true;
+                    }
+                    else
+                        txt.ReadOnly = isEdt;
+                    continue;
+                }
+            }
         }
 
         /// <summary>
@@ -1532,9 +1547,15 @@
                         btnChkIco.Text = checkStatus;
                         btnChkIco.Visible = true;
                         if (checkStatus == "1" || checkStatus.ToUpper() == true.ToString().ToUpper())
+                        {
                             btnChkIco.Image = global::Gs.DevApp.Properties.Resources.ico_check;
+                            btnChkIco.Tag = "宸插鏍�";
+                        }
                         else
+                        {
                             btnChkIco.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck;
+                            btnChkIco.Tag = "鏈鏍�";
+                        }
                         btnChkIco.Anchor = AnchorStyles.Top | AnchorStyles.Right; // 闈犲彸
                         btnChkIco.Location = new Point(fm.ClientSize.Width - btnChkIco.Width - 20, 80); // 璺濈椤堕儴10鍍忕礌
                     }

--
Gitblit v1.9.3