1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.ComponentModel.DataAnnotations;
- using System.Web;
- namespace EMIS.ViewModel.AccountManage
- {
- public class LogOnModel
- {
- /// <summary>
- ///
- /// </summary>
- [Required]
- [Display(Name = "用户名")]
- public string UserName { get; set; }
- /// <summary>
- ///
- /// </summary>
- [Required]
- [DataType(DataType.Password)]
- [Display(Name = "密码")]
- public string Password { get; set; }
- /// <summary>
- ///
- /// </summary>
- [Display(Name = "记住我")]
- public bool RememberMe { get; set; }
- /// <summary>
- ///
- /// </summary>
- [Display(Name = "验证码")]
- public string VerifyCode { get; set; }
- /// <summary>
- ///
- /// </summary>
- public HttpSessionStateBase Session { get; set; }
- /// <summary>
- ///
- /// </summary>
- [Display(Name = "登录错误次数")]
- public int FailCount
- {
- get
- {
- int value = 0;
- if (Session != null)
- {
- value = (int)Session["FailCount"];
- }
- return value;
- }
- }
- }
- }
|