From 07c98b01b357c37a75353370bc95430e814543f3 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期三, 08 一月 2025 16:24:09 +0800 Subject: [PATCH] 细节 --- DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 40 +++++++++++++++++++++++++++++----------- 1 files changed, 29 insertions(+), 11 deletions(-) diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs index a4afad8..77cf2bd 100644 --- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs +++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs @@ -358,7 +358,6 @@ txt.Text = strVal; } - else txt.Text = strVal; txt.ReadOnly = isEdt; @@ -391,7 +390,12 @@ var txt = colType as MemoEdit; if (txt != null) txt.Text = strVal; - txt.ReadOnly = isEdt; + if (_isRead(txt.Tag)) + { + txt.ReadOnly = true; + } + else + txt.ReadOnly = isEdt; continue; } //鏁板瓧鍗� @@ -432,18 +436,32 @@ { var txt = colType as CheckBox; if (txt != null) - txt.Checked = bool.Parse(strVal); + switch (strVal) + { + case "True": + txt.Checked = true; + break; + case "1": + txt.Checked = true; + break; + case "False": + txt.Checked = false; + break; + default: + txt.Checked = false; + break; + } 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 CheckEdit) + //{ + // var txt = colType as CheckEdit; + // if (txt != null) + // txt.Checked = bool.Parse(strVal); + // txt.ReadOnly = isEdt; + // continue; + //} //鏃堕棿 if (colType is DateTimePicker) { -- Gitblit v1.9.3