From 05731195c2c3d5adcbefd2bc18f12ebe84b0d68a Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期一, 02 十二月 2024 09:49:54 +0800
Subject: [PATCH] 其它业务

---
 DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs |   42 +++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 41 insertions(+), 1 deletions(-)

diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index 6484164..f596b2b 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -531,7 +531,17 @@
                                 txt.Enabled = false;
                             continue;
                         }
-
+                        //鑷畾鍗曚綅
+                        if (colType is UcLookUnit)
+                        {
+                            var txt = colType as UcLookUnit;
+                            txt.SetIdOrCode(strVal);
+                            if (txt.IsReadly == false)
+                                txt.Enabled = !isEdt;
+                            else
+                                txt.Enabled = false;
+                            continue;
+                        }
                         if (colType is SimpleButton)
                         {
                             var txt = colType as SimpleButton;
@@ -680,6 +690,14 @@
                     txt.Enabled = !isEdt;
                     continue;
                 }
+                //鑷畾鍗曚綅
+                if (ctrl is UcLookUnit)
+                {
+                    var txt = ctrl as UcLookUnit;
+                    txt.SetIdOrCode("-1");
+                    txt.Enabled = !isEdt;
+                    continue;
+                }
                 if (ctrl is SimpleButton)
                 {
                     var txt = ctrl as SimpleButton;
@@ -814,6 +832,16 @@
                         txt.Enabled = false;
                     continue;
                 }
+                //鑷畾涔夊崟浣�
+                if (ctrl is UcLookUnit)
+                {
+                    var txt = ctrl as UcLookUnit;
+                    if (txt.IsReadly == false)
+                        txt.Enabled = !isEdt;
+                    else
+                        txt.Enabled = false;
+                    continue;
+                }
             }
         }
 
@@ -824,6 +852,18 @@
         /// <param name="idx">浠�0寮�濮嬶紝濡傛灉鏄�999锛屽垯鍏ㄩ儴鍙敤</param>
         public static void JumpToTab(XtraTabControl tabControl, int idx)
         {
+            if (idx == 999)
+            {
+                for (var i = 0; i < tabControl.TabPages.Count; i++)
+                    tabControl.TabPages[i].PageEnabled = true;
+                tabControl.SelectedTabPageIndex = tabControl.TabPages.Count - 1;
+                return;
+            }
+
+            for (var i = 0; i < tabControl.TabPages.Count; i++)
+                tabControl.TabPages[i].PageEnabled = false;
+            tabControl.TabPages[idx].PageEnabled = true;
+            tabControl.SelectedTabPageIndex = idx;
         }
 
         /// <summary>

--
Gitblit v1.9.3