1234567891011121314151617181920212223242526272829303132 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel;
- using System.ComponentModel.DataAnnotations;
- namespace EMIS.ViewModel.SystemView
- {
- public partial class BatchInitPasswordView
- {
- /// <summary>
- /// 用户
- /// </summary>
- [DisplayName("用户")]
- public string User { get; set; }
- /// <summary>
- /// 指定密码
- /// </summary>
- [DisplayName("自定义密码")]
- public bool? BatchInt { get; set; }
- public int type { get; set; }
- /// <summary>
- /// 自定义密码
- /// </summary>
- //[RegularExpression(@"^(?=.*[0-9].*)(?=.*[a-zA-Z].*).{6,16}$", ErrorMessage = "请输入包含字母加数字的密码,6-16位")]
- [DisplayName("自定义密码")]
- [RegularExpression("^(?=.*?[0-9])(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[#?!@$%^&*-]).{8,}$", ErrorMessage = "密码须包含大小写英文、特殊字符、数字且长度大于或等于8位")]
- public string Password { get; set; }
- }
- }
|