From da7a62b106c8192140427e243e1d41fca1625838 Mon Sep 17 00:00:00 2001
From: lu <123456>
Date: 星期五, 18 七月 2025 10:26:43 +0800
Subject: [PATCH] bug

---
 DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs |   46 +++++++++++++++++++++++++++++++++++++---------
 1 files changed, 37 insertions(+), 9 deletions(-)

diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index aff56f1..8037a34 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -2,7 +2,6 @@
 using DevExpress.XtraEditors;
 using DevExpress.XtraEditors.Controls;
 using DevExpress.XtraEditors.Drawing;
-using DevExpress.XtraEditors.Repository;
 using DevExpress.XtraGrid;
 using DevExpress.XtraGrid.Columns;
 using DevExpress.XtraGrid.Menu;
@@ -56,10 +55,10 @@
         /// <summary>
         /// http璇锋眰
         /// </summary>
-        /// <param name="url"></param>
-        /// <param name="meth"></param>
-        /// <param name="param"></param>
-        /// <param name="isLoading"></param>
+        /// <param name="url">api鏍瑰湴鍧�</param>
+        /// <param name="meth">鏂规硶鍚嶇О</param>
+        /// <param name="param">json鍙傛暟</param>
+        /// <param name="isLoading">鏄惁loading</param>
         /// <returns></returns>
         public static string HttpPost(string url, string meth, string param, bool isLoading = true)
         {
@@ -454,6 +453,15 @@
                             txt.Enabled = !isEdt;
                             continue;
                         }
+                        //澶氶��
+                        if (colType is RadioGroup)
+                        {
+                            var txt = colType as RadioGroup;
+                            if (txt != null)
+                                txt.SelectedIndex =int.Parse( strVal);
+                            txt.ReadOnly = isEdt;
+                            continue;
+                        }
                         //鏃堕棿
                         if (colType is DateTimePicker)
                         {
@@ -748,6 +756,15 @@
                         txt.ReadOnly = isEdt;
                     continue;
                 }
+                //澶氶��
+                if (ctrl is RadioGroup)
+                {
+                    var txt = ctrl as RadioGroup;
+                    if (txt != null)
+                        txt.SelectedIndex = 0;
+                    txt.ReadOnly = isEdt;
+                    continue;
+                }
                 //鏃堕棿
                 if (ctrl is DateTimePicker)
                 {
@@ -1005,6 +1022,13 @@
                 if (ctrl is NumericUpDown)
                 {
                     var txt = ctrl as NumericUpDown;
+                    txt.ReadOnly = isEdt;
+                    continue;
+                }
+                //澶氶��
+                if (ctrl is RadioGroup)
+                {
+                    var txt = ctrl as RadioGroup;
                     txt.ReadOnly = isEdt;
                     continue;
                 }
@@ -1709,7 +1733,6 @@
                 }
             };
             gridView1.OptionsView.ColumnAutoWidth = false;//鑷姩璋冩暣鍒楀
-
             if (isPostSearch == true)
             {
                 gridView1.OptionsView.ShowGroupPanel = false;
@@ -1726,7 +1749,6 @@
                 //鏄惁鏄剧ず搴曢儴鐨勮繃婊ゆ潯
                 // gridView1.OptionsView.ShowFilterPanelMode = DevExpress.XtraGrid.Views.Base.ShowFilterPanelMode.Never;
             }
-
             // gridView1.Appearance.HeaderPanel.ForeColor = DevExpress.LookAndFeel.DXSkinColors.ForeColors.ControlText;
             foreach (GridColumn column in gridView1.Columns)
             {
@@ -1752,7 +1774,6 @@
                         column.OptionsFilter.AllowAutoFilter = false;
                 }
             }
-
             gridView1.IndicatorWidth = 60;
             gridView1.CustomDrawRowIndicator += (s, e) =>
             {
@@ -2436,7 +2457,14 @@
         iqc,
         ipqc宸℃,
         ipqc棣栨,
-        fqc
+        fqc,
+        鐢熶骇閫�鏂欏叆搴撴,
+        鍏跺畠鍏ュ簱妫�,
+        閿�鍞��璐у叆搴撴,
+        瓒呮湡妫�,
+        濮斿閫�鏂欏叆搴撴,
+        cqcjyes,//閲嶆鏂规
+        cqcjno,//閲嶆鏂规
     }
 
 

--
Gitblit v1.9.3