From e1dbb26b92643e7d78ffa8548586af38e2f1dc11 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期四, 09 一月 2025 09:34:26 +0800 Subject: [PATCH] 细节 --- DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 39 ++++++++++++++++++++------------------- 1 files changed, 20 insertions(+), 19 deletions(-) diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs index 77cf2bd..3ae35d9 100644 --- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs +++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs @@ -454,14 +454,7 @@ txt.Enabled = !isEdt; continue; } - //if (colType is CheckEdit) - //{ - // var txt = colType as CheckEdit; - // if (txt != null) - // txt.Checked = bool.Parse(strVal); - // txt.ReadOnly = isEdt; - // continue; - //} + //鏃堕棿 if (colType is DateTimePicker) { @@ -720,8 +713,18 @@ if (ctrl is MemoEdit) { var txt = ctrl as MemoEdit; - txt.Text = ""; - txt.ReadOnly = isEdt; + if (txt.Tag != null && txt.Tag.ToString().Length > 0 && txt.Tag.ToString().StartsWith("moren")) + { + txt.Text = txt.Tag.ToString().Replace("moren.", ""); + } + else + txt.Text = ""; + if (_isRead(txt.Tag)) + { + txt.ReadOnly = true; + } + else + txt.ReadOnly = isEdt; continue; } //涓嬫媺 @@ -762,14 +765,7 @@ txt.ReadOnly = isEdt; continue; } - if (ctrl is MemoEdit) - { - var txt = ctrl as MemoEdit; - if (txt != null) - txt.Text = ""; - txt.ReadOnly = isEdt; - continue; - } + //鏃堕棿 if (ctrl is DateTimePicker) { @@ -969,7 +965,12 @@ if (ctrl is MemoEdit) { var txt = ctrl as MemoEdit; - txt.ReadOnly = isEdt; + if (_isRead(txt.Tag)) + { + txt.ReadOnly = true; + } + else + txt.ReadOnly = isEdt; continue; } //鏁板瓧鍗� -- Gitblit v1.9.3