From 75c6229509e8e0888a0cbb21906468e43ce83b13 Mon Sep 17 00:00:00 2001
From: cnf <3200815559@qq.com>
Date: 星期四, 11 九月 2025 17:49:54 +0800
Subject: [PATCH] 销售挪移

---
 DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs |   38 ++++++++++++++++++++++++++++++++------
 1 files changed, 32 insertions(+), 6 deletions(-)

diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index f0e2c71..3f5a97d 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -274,7 +274,7 @@
                         {
                             colmn.Visible = !isEdt;
                             if (colmn.Visible == true)
-                                colmn.VisibleIndex = 99999;
+                               colmn.VisibleIndex = 1;
                         }
                         else
                         {
@@ -546,6 +546,13 @@
                         if (colType is UcLookOrg)
                         {
                             var txt = colType as UcLookOrg;
+                            txt.SetIdOrCode(strVal);
+                            txt.IsReadly = isEdt;
+                            continue;
+                        }
+                        if (colType is UcLookKw)
+                        {
+                            var txt = colType as UcLookKw;
                             txt.SetIdOrCode(strVal);
                             txt.IsReadly = isEdt;
                             continue;
@@ -910,6 +917,14 @@
                     txt.IsReadly = isEdt;
                     continue;
                 }
+                //
+                if (ctrl is UcLookKw)
+                {
+                    var txt = ctrl as UcLookKw;
+                    txt.SetIdOrCode("-1");
+                    txt.IsReadly = isEdt;
+                    continue;
+                }
                 //鑷畾涔夊崟鎹被鍨嬩笅鎷�
                 if (ctrl is UcDictionaryComBox)
                 {
@@ -1030,6 +1045,13 @@
                 if (ctrl is UcLookCk)
                 {
                     var txt = ctrl as UcLookCk;
+                    txt.IsReadly = isEdt;
+                    continue;
+                }
+                //鑷畾涔変粨搴�
+                if (ctrl is UcLookKw)
+                {
+                    var txt = ctrl as UcLookKw;
                     txt.IsReadly = isEdt;
                     continue;
                 }
@@ -1691,8 +1713,8 @@
         /// <param name="isPostSearch"></param>
         /// <param name="action2">濮旀墭2锛堝垪琛ㄦ樉绀烘槑缁嗭級</param>
         public static void SetGridViewParameter(GridView gridView1, PictureBox picCheckBox = null, Form fm = null, string fileName = "checkStatus", string icoName = "", DelegateGetModel action = null, DevExpress.Utils.ToolTipController tips = null, bool isPostSearch = true, DelegateGetModel action2 = null)
-        {
-            gridView1.PopupMenuShowing += (s, e) =>
+        { //2025-09-04 kyy 寮曞叆涓枃鎻掍欢娉�
+            /*gridView1.PopupMenuShowing += (s, e) =>
             {
                 if (e.MenuType == DevExpress.XtraGrid.Views.Grid.GridMenuType.Column)
                 {
@@ -1710,7 +1732,7 @@
                         }
                     }
                 }
-            };
+            };*/
             gridView1.OptionsView.ColumnAutoWidth = false;//鑷姩璋冩暣鍒楀
             if (isPostSearch == true)
             {
@@ -1975,7 +1997,8 @@
         /// <param name="icoName"></param>
         public static void SetGridViewParameterMx(GridView gridView1, DevExpress.Utils.ToolTipController tips = null)
         {
-            gridView1.PopupMenuShowing += (s, e) =>
+            //2025-09-04 kyy 娉�
+          /*  gridView1.PopupMenuShowing += (s, e) =>
             {
                 if (e.MenuType == DevExpress.XtraGrid.Views.Grid.GridMenuType.Column)
                 {
@@ -1992,10 +2015,11 @@
                             }
                         }
                     }
+
                 }
             };
             gridView1.OptionsView.ShowGroupPanel = false;
-            gridView1.OptionsCustomization.AllowGroup = false;
+            gridView1.OptionsCustomization.AllowGroup = false;*/
 
             // gridView1.OptionsView.Alignment = DataGridViewContentAlignment.MiddleLeft;
             foreach (GridColumn column in gridView1.Columns)
@@ -3170,6 +3194,8 @@
             return false;
         }
 
+     
+        
         /// <summary>
         /// 璁剧疆GridView澶嶉�夋鍒楃偣鍑绘椂鑷姩鍒锋柊鏉′欢姹囨��
         /// 2025-08-15 kyy 鏂板鍏敤鏂规硶

--
Gitblit v1.9.3