From 1210460a95ba58f219d38e545dcaf9e21383d18f Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期四, 19 十二月 2024 14:12:50 +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