From 821e74f483c3fddebe42ef30bb06e8fe29b1a5b9 Mon Sep 17 00:00:00 2001
From: cdk <2441919651@qq.com>
Date: 星期二, 02 十二月 2025 13:06:11 +0800
Subject: [PATCH] 调拨出库申请组织,调拨类型,货主类型字段只读
---
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index 76052ca..9c30456 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -501,6 +501,14 @@
txt.IsReadly = isEdt;
continue;
}
+ //鑷畾涔夊簱浣�
+ if (colType is UcLookKw)
+ {
+ var txt = colType as UcLookKw;
+ txt.SetIdOrCode(strVal);
+ txt.IsReadly = isEdt;
+ continue;
+ }
//鑷畾涔変緵搴斿晢
if (colType is UcLookSupplier)
{
@@ -806,6 +814,14 @@
txt.IsReadly = isEdt;
continue;
}
+ //鑷畾涔夊簱浣�
+ if (ctrl is UcLookKw)
+ {
+ var txt = ctrl as UcLookKw;
+ txt.SetIdOrCode("-1");
+ txt.IsReadly = isEdt;
+ continue;
+ }
//鑷畾涔変緵搴斿晢
if (ctrl is UcLookSupplier)
{
@@ -1062,6 +1078,13 @@
if (ctrl is UcLookCk)
{
var txt = ctrl as UcLookCk;
+ txt.IsReadly = isEdt;
+ continue;
+ }
+ //鑷畾涔夊簱浣�
+ if (ctrl is UcLookKw)
+ {
+ var txt = ctrl as UcLookKw;
txt.IsReadly = isEdt;
continue;
}
@@ -1846,6 +1869,30 @@
action2(_guid);
};
}
+ gridView1.RowCellStyle += (s, e) =>
+ {
+ GridView view = s as GridView;
+ if (view != null && e.Column != null && e.CellValue != null)
+ {
+ if (e.Column.FieldName.EndsWith("Color"))
+ {
+ int rowHandle = e.RowHandle;
+ if (rowHandle >= 0)
+ {
+ DataRow row = gridView1.GetDataRow(e.RowHandle);
+ string _bgColor = row[e.Column.FieldName + "Rgb"].ToString();
+ if (!string.IsNullOrEmpty(_bgColor))
+ {
+ Color bgColor = ColorTranslator.FromHtml(_bgColor);
+ e.Appearance.BackColor = bgColor;
+ //e.Appearance.BackColor2 = Color.LightSkyBlue;
+ //e.Appearance.ForeColor = ColorTranslator.FromHtml("#ffffff") ;
+ }
+ }
+ }
+ }
+ };
+
gridView1.RowStyle += (s, e) =>
{
//榛樿閫変腑琛屼笉鍙樿壊
--
Gitblit v1.9.3