From 8889f01e9e8ae6e3992e3f0fcfab4932c285dc56 Mon Sep 17 00:00:00 2001 From: wyf Date: Tue, 22 Apr 2025 02:25:23 +0000 Subject: [PATCH] SVN r505 SVN-Revision: r505 --- 插件库/Lskj.Control/Model/MyControl.cs | 31 ++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/插件库/Lskj.Control/Model/MyControl.cs b/插件库/Lskj.Control/Model/MyControl.cs index 720c35b..46d1b98 100644 --- a/插件库/Lskj.Control/Model/MyControl.cs +++ b/插件库/Lskj.Control/Model/MyControl.cs @@ -3108,7 +3108,7 @@ namespace Lskj.Control.Model int oldRowHandle = GetFocusedRowHandle(); //int oldTopRowHandle = GetTopRowHandle(); if (_mainGridEx.IsHandleCreated) - { + { // 窗口加载完成搜索,采用异步加载 _mainGridEx.Invoke((EventHandler)delegate { @@ -4880,6 +4880,7 @@ namespace Lskj.Control.Model BaseUserControl control = FindControl(item); //control.Enabled = ("true".Equals(EvalHelper.Eval(ReplaceHelper.ReplaceEvalCond(disableCond)) + "", StringComparison.OrdinalIgnoreCase)); control.Enabled = ("true".Equals(ValidateCond(disableCond, null) + "", StringComparison.OrdinalIgnoreCase)); + control.ReadOnly = !("true".Equals(ValidateCond(disableCond, null) + "", StringComparison.OrdinalIgnoreCase)); } } catch (Exception ex) @@ -5738,4 +5739,30 @@ namespace Lskj.Control.Model LabelDateEdit dateEdit = controlObj as LabelDateEdit; value = dateEdit.TextEdit.EditValue == null ? dateEdit.EditText : dateEdit.TextEdit.DateTime.ToString("yyyy-MM-dd"); } - else if \ No newline at end of file + else if (controlObj is LabelCheckEdit) + { + LabelCheckEdit checkEdit = controlObj as LabelCheckEdit; + value = checkEdit.EditText; + } + else if (controlObj is LabelComboxEdit) + { + LabelComboxEdit autoEdit = controlObj as LabelComboxEdit; + value = autoEdit.EditValue; + } + else if (controlObj is LabelTextEdit) + { + LabelTextEdit textIntEdit = controlObj as LabelTextEdit; + if (textIntEdit != null) value = string.IsNullOrEmpty(textIntEdit.EditText) ? "0" : textIntEdit.EditText; + } + + defaultValue = defaultValue.Replace(item, value); + } + + } + } + return defaultValue; + } + + + } +} \ No newline at end of file