From 572ccbb41ba6c16ae716bb3d6bed24d503081816 Mon Sep 17 00:00:00 2001
From: cdk <2441919651@qq.com>
Date: 星期二, 09 九月 2025 18:08:11 +0800
Subject: [PATCH] fqc检验调整取数

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

diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index 9302d84..1daefa8 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -1710,7 +1710,7 @@
         }
         public delegate void DelegateGetModel(string guid);
         public delegate void DelegateGetList(int currentPage);
-       
+
         /// <summary>
         /// 
         /// </summary>
@@ -1829,7 +1829,8 @@
                         view.ActiveEditor.MouseUp += ActiveEditor_MouseUp;
                 };
             }
-            if (action2 != null) {
+            if (action2 != null)
+            {
                 gridView1.FocusedRowChanged += (s, e) =>
                 {
                     int _handle = gridView1.FocusedRowHandle;
@@ -1928,7 +1929,7 @@
                 };
             }
         }
-      
+
         private static void ActiveEditor_MouseUp(object sender, MouseEventArgs e)
         {
             BaseEdit edit = sender as BaseEdit;
@@ -1936,15 +1937,15 @@
             edit.SelectAll();
         }
 
-        public static void SetGridLayout(GridView gridView1)
+        public static void SetGridLayout(GridView gridView1,int maxWidth=500)
         {
             foreach (GridColumn column in gridView1.Columns)
             {
-                if (column.Width > 500)
-                    column.Width = 500;
+                if (column.Width > maxWidth)
+                    column.Width = maxWidth;
             }
         }
-
+ 
         /// <summary>
         /// 璁剧疆閫夐」鍗�
         /// </summary>
@@ -2117,7 +2118,20 @@
             }
         }
 
+
+        /// <summary>
+        /// 鏁版嵁杩囨护
+        /// </summary>
+        /// <returns></returns>
+        public static string GetOrgWhere()
+        {
+            System.Text.StringBuilder sb = new System.Text.StringBuilder();
+            sb.Append(" (select aboutGuid as fid from  SYS_USER_BIND where userGuid='" + LoginInfoModel.CurrentUser.LoginUserGuid + "' and ftype='缁勭粐')");
+            return sb.ToString();
+        }
         #endregion
+
+
         /// <summary>
         /// 鍒ゆ柇鏄笉鏄竴涓湁鏁堢殑鏁板��
         /// </summary>
@@ -2511,6 +2525,13 @@
         鍙楁墭鍏ュ簱
     }
 
+    public enum OrderType
+    {
+        鍏跺畠鍏ュ簱,
+        鐗╂枡璋冩嫧,
+        鍏跺畠鍑哄簱
+    }
+
 
 
 }
\ No newline at end of file

--
Gitblit v1.9.3