From 0db6a12e75681672d45ed97846d7a88d6622a465 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期一, 23 十二月 2024 18:57:26 +0800
Subject: [PATCH] 委外

---
 DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs |   31 +++++++++++++++++++++++++++++--
 1 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index bd91ba9..2953a88 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -603,6 +603,17 @@
                                 txt.Enabled = false;
                             continue;
                         }
+                        //鑷畾daa
+                        if (colType is UcLookDaa)
+                        {
+                            var txt = colType as UcLookDaa;
+                            txt.SetIdOrCode(strVal);
+                            if (txt.IsReadly == false)
+                                txt.Enabled = !isEdt;
+                            else
+                                txt.Enabled = false;
+                            continue;
+                        }
                         if (colType is SimpleButton)
                         {
                             var txt = colType as SimpleButton;
@@ -823,6 +834,14 @@
                     txt.Enabled = !isEdt;
                     continue;
                 }
+                //鑷畾daa
+                if (ctrl is UcLookDaa)
+                {
+                    var txt = ctrl as UcLookDaa;
+                    txt.SetIdOrCode("-1");
+                    txt.Enabled = !isEdt;
+                    continue;
+                }
                 if (ctrl is SimpleButton)
                 {
                     var txt = ctrl as SimpleButton;
@@ -1034,6 +1053,16 @@
                 if (ctrl is UcLookDepartment)
                 {
                     var txt = ctrl as UcLookDepartment;
+                    if (txt.IsReadly == false)
+                        txt.Enabled = !isEdt;
+                    else
+                        txt.Enabled = false;
+                    continue;
+                }
+                //鑷畾daa
+                if (ctrl is UcLookDaa)
+                {
+                    var txt = ctrl as UcLookDaa;
                     if (txt.IsReadly == false)
                         txt.Enabled = !isEdt;
                     else
@@ -1652,8 +1681,6 @@
             Regex regex = new Regex("^[0-9]+$");
             return regex.IsMatch(str);
         }
-
-
 
     }
 

--
Gitblit v1.9.3