Exemple #1
0
 /// <summary>
 /// 转换为对应的ValidBox类型
 /// </summary>
 /// <returns></returns>
 public override ValidBox ToValidBox()
 {
     return(ValidBox.New(this.ValidType, this.ErrorMessage, this.Min, this.Max));
 }
Exemple #2
0
 /// <summary>
 /// 生成验证框对象
 /// </summary>
 /// <returns></returns>
 public ValidBox ToValidBox()
 {
     return(ValidBox.New("length", this.ErrorMessage, this.MinimumLength, this.MaximumLength));
 }
Exemple #3
0
 /// <summary>
 /// 转换为对应的ValidBox类型
 /// </summary>
 /// <returns></returns>
 public override ValidBox ToValidBox()
 {
     return(ValidBox.New(this.ValidType, this.ErrorMessage, this.TargetId));
 }
Exemple #4
0
 /// <summary>
 /// 转换为对应的ValidBox类型
 /// </summary>
 /// <returns></returns>
 public override ValidBox ToValidBox()
 {
     return(ValidBox.New(this.ValidType, this.ErrorMessage, this.RegexPattern));
 }
Exemple #5
0
        /// <summary>
        /// 生成验证框
        /// </summary>
        /// <returns></returns>
        public override ValidBox ToValidBox()
        {
            var parameters = new object[] { this.Url }.Concat(this.TargetId).ToArray();

            return(ValidBox.New(this.ValidType, this.ErrorMessage, parameters));
        }