From efce6f32ed2631903727a9919b681f4ab5fac346 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期二, 17 十二月 2024 08:08:27 +0800
Subject: [PATCH] 1
---
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 29 +++++++++++++++++++++++++++++
1 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index f0ca4fd..be8520e 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -592,6 +592,17 @@
txt.Enabled = false;
continue;
}
+ //鑷畾閮ㄩ棬
+ if (colType is UcLookDepartment)
+ {
+ var txt = colType as UcLookDepartment;
+ txt.SetIdOrCode(strVal);
+ if (txt.IsReadly == false)
+ txt.Enabled = !isEdt;
+ else
+ txt.Enabled = false;
+ continue;
+ }
if (colType is SimpleButton)
{
var txt = colType as SimpleButton;
@@ -804,6 +815,14 @@
txt.Enabled = !isEdt;
continue;
}
+ //鑷畾閮ㄩ棬
+ if (ctrl is UcLookDepartment)
+ {
+ var txt = ctrl as UcLookDepartment;
+ txt.SetIdOrCode("-1");
+ txt.Enabled = !isEdt;
+ continue;
+ }
if (ctrl is SimpleButton)
{
var txt = ctrl as SimpleButton;
@@ -1011,6 +1030,16 @@
txt.Enabled = false;
continue;
}
+ //鑷畾閮ㄩ棬
+ if (ctrl is UcLookDepartment)
+ {
+ var txt = ctrl as UcLookDepartment;
+ if (txt.IsReadly == false)
+ txt.Enabled = !isEdt;
+ else
+ txt.Enabled = false;
+ continue;
+ }
}
}
--
Gitblit v1.9.3