From fd05e92ba20f48b34df46e2bc92dddd09864b668 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期二, 17 十二月 2024 16:59:08 +0800
Subject: [PATCH] 生产补料

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

diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index f0ca4fd..e0d4dca 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -592,6 +592,17 @@
                                 txt.Enabled = false;
                             continue;
                         }
+                        //鑷畾閮ㄩ棬
+                        if (colType is UcLookDepartment)
+                        {
+                            var txt = colType as UcLookDepartment;
+                            txt.SetIdOrCode(strVal);
+                            if (txt.IsReadly == false)
+                                txt.Enabled = !isEdt;
+                            else
+                                txt.Enabled = false;
+                            continue;
+                        }
                         if (colType is SimpleButton)
                         {
                             var txt = colType as SimpleButton;
@@ -804,6 +815,14 @@
                     txt.Enabled = !isEdt;
                     continue;
                 }
+                //鑷畾閮ㄩ棬
+                if (ctrl is UcLookDepartment)
+                {
+                    var txt = ctrl as UcLookDepartment;
+                    txt.SetIdOrCode("-1");
+                    txt.Enabled = !isEdt;
+                    continue;
+                }
                 if (ctrl is SimpleButton)
                 {
                     var txt = ctrl as SimpleButton;
@@ -1005,6 +1024,16 @@
                 if (ctrl is UcLookDefectType)
                 {
                     var txt = ctrl as UcLookDefectType;
+                    if (txt.IsReadly == false)
+                        txt.Enabled = !isEdt;
+                    else
+                        txt.Enabled = false;
+                    continue;
+                }
+                //鑷畾閮ㄩ棬
+                if (ctrl is UcLookDepartment)
+                {
+                    var txt = ctrl as UcLookDepartment;
                     if (txt.IsReadly == false)
                         txt.Enabled = !isEdt;
                     else
@@ -1328,7 +1357,6 @@
                     }
                 }
             }
-
             return "";
         }
 

--
Gitblit v1.9.3