From 641e86dfaeb2eed992a717beb297c0ba84869f6b Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期二, 15 四月 2025 18:08:38 +0800 Subject: [PATCH] checkbox --- DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs index f665fdc..580873b 100644 --- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs +++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs @@ -42,7 +42,6 @@ private static readonly string WebApiUrl = ConfigurationManager.AppSettings["WebApiUrl"]; - public static async Task<string> UploadFileAsync(string filePath) { using (var httpClient = new HttpClient()) @@ -1352,6 +1351,14 @@ return false; } + public static bool ToCheck(string str) + { + if (str.ToUpper() == "true".ToUpper()) + return true; + if (str.ToUpper() == "1".ToUpper()) + return true; + return false; + } /// <summary> /// 璇诲彇grid鐨勫綋鍓嶈 @@ -1747,9 +1754,9 @@ column.OptionsColumn.ReadOnly = false; else column.OptionsColumn.ReadOnly = true; - - if(isPostSearch==false) - column.OptionsColumn.ReadOnly = true; + + //if(isPostSearch==false) + // column.OptionsColumn.ReadOnly = true; if (isPostSearch == true) { @@ -2090,6 +2097,7 @@ return 0; return decimal.Parse(txt); } + } /// <summary> -- Gitblit v1.9.3