From 86f320b3d6cb57078afd0d6b896a347f37c1370b Mon Sep 17 00:00:00 2001
From: tjx <t2856754968@163.com>
Date: 星期二, 21 十月 2025 13:07:57 +0800
Subject: [PATCH] 展示优化
---
DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs
index 5f7c676..855e6c2 100644
--- a/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs
+++ b/DevApp/Gs.DevApp/DevFrm/Rk/Frm_MesInvItemArn.cs
@@ -41,6 +41,8 @@
{
Gs.DevApp.ToolBox.UtilityHelper.JumpTab(xtraTabControl1, 0);
}, tips);
+ // 娣诲姞gridView1鐨凴owStyle浜嬩欢锛屽綋閫�璐ф爣璇唗h=1鏃舵暣琛屾爣绾�
+ gridView1.RowStyle += GridView1_RowStyle;
Gs.DevApp.ToolBox.UtilityHelper.SetTabParameter(gridView1, xtraTabControl1, pageBar1, (value) =>
{
getModel(value);
@@ -159,6 +161,26 @@
ConfigureOaColumn(gridColumn2, "xblb", "閫夊埆绫诲埆", 19);
}
+ /// <summary>
+ /// gridView1鐨凴owStyle浜嬩欢锛屽綋閫�璐ф爣璇唗h=1鏃舵暣琛屾爣绾�
+ /// </summary>
+ private void GridView1_RowStyle(object sender, RowStyleEventArgs e)
+ {
+ if (e.RowHandle >= 0)
+ {
+ var view = sender as GridView;
+ if (view != null)
+ {
+ var thValue = view.GetRowCellValue(e.RowHandle, "th");
+ if (thValue != null && thValue.ToString() == "1")
+ {
+ e.Appearance.BackColor = System.Drawing.Color.Red;
+ e.Appearance.ForeColor = System.Drawing.Color.White;
+ }
+ }
+ }
+ }
+
private static void ConfigureOaColumn(GridColumn column, string fieldName, string caption, int visibleIndex)
{
if (column == null)
--
Gitblit v1.9.3