BatchInitPasswordView.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. namespace EMIS.ViewModel.SystemView
  8. {
  9. public partial class BatchInitPasswordView
  10. {
  11. /// <summary>
  12. /// 用户
  13. /// </summary>
  14. [DisplayName("用户")]
  15. public string User { get; set; }
  16. /// <summary>
  17. /// 指定密码
  18. /// </summary>
  19. [DisplayName("自定义密码")]
  20. public bool? BatchInt { get; set; }
  21. public int type { get; set; }
  22. /// <summary>
  23. /// 自定义密码
  24. /// </summary>
  25. //[RegularExpression(@"^(?=.*[0-9].*)(?=.*[a-zA-Z].*).{6,16}$", ErrorMessage = "请输入包含字母加数字的密码,6-16位")]
  26. [DisplayName("自定义密码")]
  27. [RegularExpression("^(?=.*?[0-9])(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[#?!@$%^&*-]).{8,}$", ErrorMessage = "密码须包含大小写英文、特殊字符、数字且长度大于或等于8位")]
  28. public string Password { get; set; }
  29. }
  30. }