Tasks 184281, 184799, 184800, 184801 and 184802
Align .editorconfig files Move Controller logic to DMO classes GlobalVars.AppSettings = Models.AppSettings.GetFromConfigurationManager(); Question EditorConfig Project level editorconfig Format White Spaces AppSetting when EnvironmentVariable not set Corrective Actions Tests Schedule Actions Tests DMO Tests Controller Tests Get ready to use VSCode IDE
This commit is contained in:
@ -1,118 +1,48 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Fab2ApprovalSystem.Models
|
||||
{
|
||||
public class LoginModel
|
||||
{
|
||||
[Key]
|
||||
public int UserID { get; set; }
|
||||
namespace Fab2ApprovalSystem.Models;
|
||||
|
||||
[Required]
|
||||
[Display(Name = "Login ID")]
|
||||
public string LoginID { get; set; }
|
||||
public class LoginModel {
|
||||
[Key]
|
||||
public int UserID { get; set; }
|
||||
|
||||
//[Required]
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "Password")]
|
||||
public string Password { get; set; }
|
||||
[Required]
|
||||
[Display(Name = "Login ID")]
|
||||
public string LoginID { get; set; }
|
||||
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
//[Required]
|
||||
[DataType(DataType.Password)]
|
||||
[Display(Name = "Password")]
|
||||
public string Password { get; set; }
|
||||
public string FirstName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public string FullName { get; set; }
|
||||
public bool IsAdmin { get; set; }
|
||||
public bool IsManager { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public DateTime? LastLogin { get; set; }
|
||||
public bool OOO { get; set; }
|
||||
public DateTime? OOOStartDate { get; set; }
|
||||
public DateTime? OOOExpirationDate { get; set; }
|
||||
public int DelegatedTo { get; set; }
|
||||
public string Email { get; set; }
|
||||
|
||||
public string FullName { get; set; }
|
||||
[Display(Name = "Delegated To")]
|
||||
public string DelegatedToFullName { get; set; }
|
||||
|
||||
public bool IsAdmin { get; set; }
|
||||
public bool IsManager { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public DateTime? LastLogin { get; set; }
|
||||
|
||||
public bool OOO { get; set; }
|
||||
|
||||
public DateTime? OOOStartDate { get; set; }
|
||||
public DateTime? OOOExpirationDate { get; set; }
|
||||
|
||||
public int DelegatedTo { get; set; }
|
||||
|
||||
public string Email { get; set; }
|
||||
|
||||
[Display(Name="Delegated To")]
|
||||
public string DelegatedToFullName { get; set; }
|
||||
|
||||
[Display(Name = "OOO Action")]
|
||||
public virtual string OOOStatusWithUserID
|
||||
{
|
||||
get
|
||||
{
|
||||
return UserID.ToString() + "~" + (OOO ? "1" : "0") + "~" + FullName;
|
||||
}
|
||||
[Display(Name = "OOO Action")]
|
||||
public virtual string OOOStatusWithUserID {
|
||||
get {
|
||||
return UserID.ToString() + "~" + (OOO ? "1" : "0") + "~" + FullName;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class UserProfile
|
||||
{
|
||||
public int UserId { get; set; }
|
||||
public string FullName { get; set; }
|
||||
}
|
||||
|
||||
|
||||
//public class ExternalLoginConfirmationViewModel
|
||||
//{
|
||||
// [Required]
|
||||
// [Display(Name = "User name")]
|
||||
// public string UserName { get; set; }
|
||||
//}
|
||||
|
||||
//public class ManageUserViewModel
|
||||
//{
|
||||
// [Required]
|
||||
// [DataType(DataType.Password)]
|
||||
// [Display(Name = "Current password")]
|
||||
// public string OldPassword { get; set; }
|
||||
|
||||
// [Required]
|
||||
// [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
|
||||
// [DataType(DataType.Password)]
|
||||
// [Display(Name = "New password")]
|
||||
// public string NewPassword { get; set; }
|
||||
|
||||
// [DataType(DataType.Password)]
|
||||
// [Display(Name = "Confirm new password")]
|
||||
// [Compare("NewPassword", ErrorMessage = "The new password and confirmation password do not match.")]
|
||||
// public string ConfirmPassword { get; set; }
|
||||
//}
|
||||
|
||||
//public class LoginViewModel
|
||||
//{
|
||||
// [Required]
|
||||
// [Display(Name = "User name")]
|
||||
// public string UserName { get; set; }
|
||||
|
||||
// [Required]
|
||||
// [DataType(DataType.Password)]
|
||||
// [Display(Name = "Password")]
|
||||
// public string Password { get; set; }
|
||||
|
||||
// [Display(Name = "Remember me?")]
|
||||
// public bool RememberMe { get; set; }
|
||||
//}
|
||||
|
||||
//public class RegisterViewModel
|
||||
//{
|
||||
// [Required]
|
||||
// [Display(Name = "User name")]
|
||||
// public string UserName { get; set; }
|
||||
|
||||
// [Required]
|
||||
// [StringLength(100, ErrorMessage = "The {0} must be at least {2} characters long.", MinimumLength = 6)]
|
||||
// [DataType(DataType.Password)]
|
||||
// [Display(Name = "Password")]
|
||||
// public string Password { get; set; }
|
||||
|
||||
// [DataType(DataType.Password)]
|
||||
// [Display(Name = "Confirm password")]
|
||||
// [Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
|
||||
// public string ConfirmPassword { get; set; }
|
||||
//}
|
||||
}
|
||||
|
||||
public class UserProfile {
|
||||
|
||||
public int UserId { get; set; }
|
||||
public string FullName { get; set; }
|
||||
|
||||
}
|
Reference in New Issue
Block a user