From 998a0389c282411a5ea583ba50428a46e014c01c Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期三, 25 十二月 2024 13:44:17 +0800
Subject: [PATCH] 委外补料

---
 DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index 2657a09..87b763c 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -739,7 +739,6 @@
                 if (ctrl is CheckBox)
                 {
                     var txt = ctrl as CheckBox;
-                    //txt.Checked = false;
                     txt.Enabled = !isEdt;
                 }
                 if (ctrl is CheckEdit)
@@ -897,7 +896,7 @@
                             if (colmn.Tag!=null && colmn.Tag.ToString().EndsWith("edit"))
                                 colmn.OptionsColumn.ReadOnly = isEdt;
                             else
-                                colmn.OptionsColumn.ReadOnly = !isEdt;
+                                colmn.OptionsColumn.ReadOnly = isEdt;
                         }
                     }
                 }
@@ -1286,7 +1285,12 @@
                 return 1;
             return 0;
         }
-
+        public static bool ToBoole(string str)
+        {
+            if (str.ToUpper() == "true".ToUpper())
+                return true;
+            return false;
+        }
         public string GetIsNullOrEmpty(string str)
         {
             if (string.IsNullOrEmpty(str.Trim()))

--
Gitblit v1.9.3