From a104f064a400c10e66514d26f946189b7a4521aa Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期二, 22 四月 2025 13:19:43 +0800 Subject: [PATCH] 防呆 --- DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 26 +++++++++++++++++++++++--- 1 files changed, 23 insertions(+), 3 deletions(-) diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs index e67a08b..d16bb81 100644 --- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs +++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs @@ -489,7 +489,6 @@ txt.Text = strVal; } } - //鑷畾涔変粨搴� if (colType is UcLookCk) { @@ -631,6 +630,14 @@ if (colType is UcDictionary) { var txt = colType as UcDictionary; + txt.TextTxt = (strVal); + txt.IsReadly = isEdt; + continue; + } + //鑷畾鍗曟嵁绫诲瀷涓嬫媺 + if (colType is UcDictionaryComBox) + { + var txt = colType as UcDictionaryComBox; txt.TextTxt = (strVal); txt.IsReadly = isEdt; continue; @@ -912,6 +919,14 @@ txt.IsReadly = isEdt; continue; } + //鑷畾涔夊崟鎹被鍨嬩笅鎷� + if (ctrl is UcDictionaryComBox) + { + var txt = ctrl as UcDictionaryComBox; + //txt.SetIdOrCode("-1"); + txt.IsReadly = isEdt; + continue; + } if (ctrl is SimpleButton) { var txt = ctrl as SimpleButton; @@ -1012,7 +1027,6 @@ ctrl.Enabled = !isEdt; continue; } - // if (ctrl is CheckEdit) { var txt = ctrl as CheckEdit; @@ -1096,7 +1110,6 @@ txt.IsReadly = isEdt; continue; } - //鑷畾閮ㄩ棬 if (ctrl is UcLookDepartment) { @@ -1139,6 +1152,13 @@ txt.IsReadly = isEdt; continue; } + //鑷畾鍗曟嵁绫诲瀷涓嬫媺 + if (ctrl is UcDictionaryComBox) + { + var txt = ctrl as UcDictionaryComBox; + txt.IsReadly = isEdt; + continue; + } if (ctrl is SimpleButton) { var txt = ctrl as SimpleButton; -- Gitblit v1.9.3