From 2bf1c34ff73d99de936d8880924f66111406dbd6 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期六, 02 十一月 2024 16:43:49 +0800
Subject: [PATCH] 1
---
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 27 +++++++++++++++++++++++----
1 files changed, 23 insertions(+), 4 deletions(-)
diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index 712ce51..3a46885 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -369,7 +369,15 @@
txt.ReadOnly = isEdt;
continue;
}
-
+ if (colType is MemoEdit)
+ {
+ var txt = colType as MemoEdit;
+ if (txt != null)
+ txt.Text = strVal;
+ txt.ReadOnly = isEdt;
+ continue;
+ }
+
//鏁板瓧鍗�
if (colType is NumericUpDown)
{
@@ -540,7 +548,14 @@
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)
{
@@ -618,7 +633,12 @@
txt.ReadOnly = isEdt;
continue;
}
-
+ if (ctrl is MemoEdit)
+ {
+ var txt = ctrl as MemoEdit;
+ txt.ReadOnly = isEdt;
+ continue;
+ }
//鏁板瓧鍗�
if (ctrl is NumericUpDown)
{
@@ -626,7 +646,6 @@
txt.ReadOnly = isEdt;
continue;
}
-
//涓嬫媺
if (ctrl is UcComBox)
{
--
Gitblit v1.9.3