ChangePasswordView.cs 835 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Web.Mvc;
  7. using System.ComponentModel;
  8. namespace EMISOnline.ViewModel.SystemView
  9. {
  10. public class ChangePasswordView
  11. {
  12. [Required(ErrorMessage = "请输入原密码")]
  13. [DataType(DataType.Password)]
  14. [DisplayName("原密码")]
  15. public string OldPassword { get; set; }
  16. [Required]
  17. [DataType(DataType.Password)]
  18. [StringLength(50, ErrorMessage = "密码长度不能小于6位", MinimumLength = 6)]
  19. [DisplayName("新密码")]
  20. public string Password { get; set; }
  21. [Required]
  22. [DataType(DataType.Password)]
  23. [DisplayName("确认新密码")]
  24. public string PasswordRep { get; set; }
  25. }
  26. }