From 13e0b579eb4ad6151e2f27b822837be81d3f6143 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期三, 13 十一月 2024 08:10:48 +0800 Subject: [PATCH] 1 --- DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs index 428834f..5b0c13b 100644 --- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs +++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs @@ -12,7 +12,6 @@ using System.Text.RegularExpressions; using System.Threading.Tasks; using System.Windows.Forms; -using DevExpress.Office.Model; using DevExpress.XtraEditors; using DevExpress.XtraEditors.Controls; using DevExpress.XtraGrid; @@ -475,7 +474,10 @@ { var txt = colType as UcLookCk; txt.SetIdOrCode(strVal); - txt.Enabled = !isEdt; + if (txt.IsReadly == false) + txt.Enabled = !isEdt; + else + txt.Enabled = false; continue; } //鑷畾涔変緵搴斿晢 @@ -483,7 +485,10 @@ { var txt = colType as UcLookSupplier; txt.SetIdOrCode(strVal); - txt.Enabled = !isEdt; + if (txt.IsReadly == false) + txt.Enabled = !isEdt; + else + txt.Enabled = false; continue; } //鑷畾涔夌墿鏂� @@ -491,7 +496,10 @@ { var txt = colType as UcLookItems; txt.SetIdOrCode(strVal); - txt.Enabled = !isEdt; + if (txt.IsReadly == false) + txt.Enabled = !isEdt; + else + txt.Enabled = false; continue; } if (colType is SimpleButton) -- Gitblit v1.9.3