private void CheckInt(String table, String id, String value, String name)
 {
     if (RuleHelper.IsNotEmpty(value))
     {
         if (!RuleHelper.IsInteger(value))
         {
             ErrorMsg.Add(table + "表中," + id + "的" + name + "格式错误,应是整数");
         }
     }
 }
 public override ValidationResult Validate(object value, CultureInfo cultureInfo)
 {
     if (string.IsNullOrWhiteSpace(value?.ToString()))
     {
         return(ValidationResult.ValidResult);
     }
     return(RuleHelper.IsInteger(value)
         ? ValidationResult.ValidResult
         : new ValidationResult(false, "请输入整数"));
 }