From 87dcde0bc10092a35a4c775316a72a312646d3df Mon Sep 17 00:00:00 2001 From: lu <99954486@qq.com> Date: 星期五, 11 四月 2025 17:39:52 +0800 Subject: [PATCH] 打印后盖码 --- DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs index af6b082..c2e9c93 100644 --- a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs +++ b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs @@ -17,7 +17,6 @@ using DevExpress.Utils; using DevExpress.XtraEditors; using DevExpress.XtraEditors.Controls; -using DevExpress.XtraEditors.Repository; using DevExpress.XtraGrid; using DevExpress.XtraGrid.Columns; using DevExpress.XtraGrid.Menu; @@ -1734,6 +1733,9 @@ // gridView1.Appearance.HeaderPanel.ForeColor = DevExpress.LookAndFeel.DXSkinColors.ForeColors.ControlText; foreach (GridColumn column in gridView1.Columns) { + column.MinWidth = 10; + column.MaxWidth = 0; + column.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near; column.OptionsColumn.AllowEdit = true; // column.OptionsFilter.AutoFilterCondition = AutoFilterCondition.Contains; @@ -1971,6 +1973,8 @@ { // column.DefaultCellStyle.Alignment = true; column.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near; + column.MinWidth = 10; + column.MaxWidth = 0; } gridView1.OptionsView.ColumnAutoWidth = false;//鑷姩璋冩暣鍒楀 gridView1.OptionsFilter.AllowFilterEditor = false; @@ -2020,7 +2024,13 @@ Regex regex = new Regex("^[0-9]+$"); return regex.IsMatch(str); } - + public static bool IsNumeric2(string str) + { + string input = str; + decimal number; + bool isNumeric = decimal.TryParse(input, out number); + return isNumeric; + } } /// <summary> -- Gitblit v1.9.3