1234567891011121314151617181920212223242526272829 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel.DataAnnotations;
- using System.Web.Mvc;
- using System.ComponentModel;
- namespace EMIS.ViewModel.SystemView
- {
- public class ChangePasswordView
- {
- [Required(ErrorMessage = "请输入原密码")]
- [DataType(DataType.Password)]
- [DisplayName("原密码")]
- public string OldPassword { get; set; }
- [Required]
- [DataType(DataType.Password)]
- [StringLength(50, ErrorMessage = "密码长度不能小于6位", MinimumLength = 6)]
- [DisplayName("新密码")]
- public string Password { get; set; }
- [Required]
- [DataType(DataType.Password)]
- [DisplayName("确认新密码")]
- public string PasswordRep { get; set; }
- }
- }
|