From 23e55c258ae5ef93a8d684be60271d1af9e730c9 Mon Sep 17 00:00:00 2001
From: lu <99954486@qq.com>
Date: 星期三, 20 十一月 2024 15:52:27 +0800
Subject: [PATCH] 工单
---
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
index a02baec..23ac0f2 100644
--- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
+++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -1015,6 +1015,28 @@
return "";
}
+
+
+ public static void SetCheckIco(object s, PictureBox btnChkIco, Form fm,string icoName="")
+ {
+ GridView dgv = s as GridView;
+ if (dgv != null) {
+ if (dgv.GetSelectedRows() != null) {
+ var selectedRow = dgv.GetSelectedRows()[0]; // 鑾峰彇绗竴涓�変腑琛岀殑绱㈠紩
+ if (selectedRow >= 0) {
+ var checkStatus = dgv.GetRowCellValue(selectedRow, "checkStatus").ToString(); // 鑾峰彇鎸囧畾鍒楃殑鍊�
+ btnChkIco.Text = checkStatus;
+ btnChkIco.Visible = true;
+ if (checkStatus == "1" || checkStatus.ToUpper() == true.ToString().ToUpper())
+ btnChkIco.Image = global::Gs.DevApp.Properties.Resources.ico_check;
+ else
+ btnChkIco.Image = global::Gs.DevApp.Properties.Resources.ico_noCheck;
+ btnChkIco.Anchor = AnchorStyles.Top | AnchorStyles.Right; // 闈犲彸
+ btnChkIco.Location = new Point(fm.ClientSize.Width - btnChkIco.Width - 20, 80); // 璺濈椤堕儴10鍍忕礌
+ }
+ }
+ }
+ }
}
/// <summary>
--
Gitblit v1.9.3