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 | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs b/DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs index ff2a2f4..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; @@ -2025,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