lu
2025-04-15 641e86dfaeb2eed992a717beb297c0ba84869f6b
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())
@@ -726,6 +725,7 @@
                    var txt = ctrl as ButtonEdit;
                    txt.Text = "";
                    txt.Enabled = !isEdt;
                    txt.ReadOnly = isEdt;
                    continue;
                }
                //文本
@@ -1351,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的当前行
@@ -1745,8 +1753,10 @@
                if (column.Tag == null || column.Tag.ToString().EndsWith("edit"))
                    column.OptionsColumn.ReadOnly = false;
                else
                    //column.OptionsColumn.ReadOnly = true;
                    column.OptionsColumn.ReadOnly = isPostSearch;
                    column.OptionsColumn.ReadOnly = true;
                //if(isPostSearch==false)
                //    column.OptionsColumn.ReadOnly = true;
                if (isPostSearch == true)
                {
@@ -2087,6 +2097,7 @@
                return 0;
            return decimal.Parse(txt);
        }
    }
    /// <summary>