From 777bbf3d0d9399e69c0718fc4c562803cd4f15ec Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期四, 26 十二月 2024 08:34:28 +0800
Subject: [PATCH] 采购委外

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

diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index 3f0d55e..9ba0438 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -623,6 +623,17 @@
                                 txt.Enabled = false;
                             continue;
                         }
+                        //鑷畾濮斿
+                        if (colType is UcLookWwgd)
+                        {
+                            var txt = colType as UcLookWwgd;
+                            txt.SetIdOrCode(strVal);
+                            if (txt.IsReadly == false)
+                                txt.Enabled = !isEdt;
+                            else
+                                txt.Enabled = false;
+                            continue;
+                        }
                         if (colType is SimpleButton)
                         {
                             var txt = colType as SimpleButton;
@@ -860,6 +871,14 @@
                     txt.Enabled = !isEdt;
                     continue;
                 }
+                //鑷畾濮斿
+                if (ctrl is UcLookWwgd)
+                {
+                    var txt = ctrl as UcLookWwgd;
+                    txt.SetIdOrCode("-1");
+                    txt.Enabled = !isEdt;
+                    continue;
+                }
                 if (ctrl is SimpleButton)
                 {
                     var txt = ctrl as SimpleButton;
@@ -896,7 +915,7 @@
                             if (colmn.Tag!=null && colmn.Tag.ToString().EndsWith("edit"))
                                 colmn.OptionsColumn.ReadOnly = isEdt;
                             else
-                                colmn.OptionsColumn.ReadOnly = !isEdt;
+                                colmn.OptionsColumn.ReadOnly = isEdt;
                         }
                     }
                 }
@@ -1092,7 +1111,16 @@
                         txt.Enabled = false;
                     continue;
                 }
-
+                //鑷畾濮斿
+                if (ctrl is UcLookWwgd)
+                {
+                    var txt = ctrl as UcLookWwgd;
+                    if (txt.IsReadly == false)
+                        txt.Enabled = !isEdt;
+                    else
+                        txt.Enabled = false;
+                    continue;
+                }
                 if (ctrl is SimpleButton)
                 {
                     var txt = ctrl as SimpleButton;

--
Gitblit v1.9.3