From f526e43a7be75b4370c6be30f222eda8bd7d1621 Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期一, 17 三月 2025 11:29:54 +0800 Subject: [PATCH] 仓库报表 --- DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs index faebd02..60e3a1c 100644 --- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs +++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs @@ -409,7 +409,13 @@ if (colType is CheckEdit) { var txt = colType as CheckEdit; - if (txt != null) + if (_isRead(txt.Tag)) + { + txt.ReadOnly = true; + } + else + txt.ReadOnly = isEdt; + if (txt != null) { switch (strVal) { case "True": @@ -425,8 +431,8 @@ txt.Checked = false; break; } - - txt.ReadOnly = isEdt; + } + continue; } //鍗曢�� @@ -452,6 +458,7 @@ txt.Enabled = !isEdt; continue; } + //鏃堕棿 if (colType is DateTimePicker) { @@ -797,7 +804,6 @@ else txt.ReadOnly = isEdt; continue; - } //鑷畾涔変粨搴� if (ctrl is UcLookCk) @@ -1374,6 +1380,11 @@ return 0; } } + public static decimal? GetDecimal(string s) + { + if (string.IsNullOrEmpty(s)) return null; + return decimal.Parse(s); + } public static int ToInt(string str) { try @@ -1595,7 +1606,7 @@ GridView dgv = s as GridView; if (dgv != null) { - if (dgv.GetSelectedRows() != null) + if (dgv.GetSelectedRows() != null && dgv.GetSelectedRows().Count()>0) { var selectedRow = dgv.GetSelectedRows()[0]; // 鑾峰彇绗竴涓�変腑琛岀殑绱㈠紩 if (selectedRow >= 0) -- Gitblit v1.9.3