lu
2024-12-07 c733a40f757501b3b1c95fec58e009e9703786ec
DevApp/Gs.DevApp/ToolBox/UtilityHelper.cs
@@ -1430,22 +1430,7 @@
                    e.Bounds.Top + 45, e.Bounds.Right - 5, e.Bounds.Height - 5);
                e.Graphics.DrawString(str, f, Brushes.Gray, r);
            };
        }
        #endregion
        public static bool IsNumeric(string str)
        {
            Regex regex = new Regex("^[0-9]+$");
            return regex.IsMatch(str);
        }
        /// <summary>
        /// yz_quantity_0,yz_字段_类型
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public static void SetValidatingEditor(object sender, BaseContainerValidateEditorEventArgs e)
            gridView1.ValidatingEditor += (sender, e) =>
        {
            //yz_quantity_0
            GridView view = sender as GridView;
@@ -1462,8 +1447,19 @@
                    }
                }
            }
            };
        }
        #endregion
        public static bool IsNumeric(string str)
        {
            Regex regex = new Regex("^[0-9]+$");
            return regex.IsMatch(str);
        }
    }
    /// <summary>