130 lines
3.8 KiB
C#
130 lines
3.8 KiB
C#
using OnlineSalesAutoCrop.CoreAPI.Models.Global;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace OnlineSalesAutoCrop.CoreAPI.Models.Objects.Systems
|
|
{
|
|
public class User
|
|
{
|
|
public const int SuperUser_Id = -9;
|
|
public const string SuperUser_LoginId = "superuser";
|
|
|
|
public int Id { get; set; }
|
|
public string LoginId { get; set; }
|
|
public int LogId { get; set; }
|
|
public DateTime? LogoutTime { get; set; }
|
|
public string UserName { get; set; }
|
|
public EnumStatus Status { get; set; }
|
|
public EnumAccessStatus AccessStatus { get; set; }
|
|
public bool NeverExpires { get; set; }
|
|
public string LastPasswords { get; set; }
|
|
public DateTime? LastPassChgDate { get; set; }
|
|
public DateTime? ExpireDate { get; set; }
|
|
public DateTime? NextLoginTime { get; set; }
|
|
public DateTime SystemDate { get; set; }
|
|
public bool DbOnStartup { get; set; }
|
|
public bool ViewOwnTaskOnly { get; set; }
|
|
public int? EmployeeId { get; set; }
|
|
public string EmployeeCode { get; set; }
|
|
public EnumLoginStatus LoginStatus { get; set; }
|
|
public EnumAuthenticationMethod AuthMethod { get; set; }
|
|
public bool AuthRequiredAtLogin { get; set; }
|
|
public List<string> ModuleIds { get; set; }
|
|
public string EmailAddress { get; set; }
|
|
public string AuthKey { get; set; }
|
|
public string AuthValue { get; set; }
|
|
public string MobileNo { get; set; }
|
|
public string UnsuccessfulMsg { get; set; }
|
|
public string ThemeName { get; set; }
|
|
public string SchemeName { get; set; }
|
|
public string MenuLayout { get; set; }
|
|
public bool IsLocked { get; set; }
|
|
public DateTime MinReportDate { get; set; }
|
|
public string AppId { get; set; }
|
|
public bool DisallowMultiLogin { get; set; }
|
|
public bool BatchEnabled { get; set; }
|
|
public int BmProcessId { get; set; }
|
|
public int PrProcessId { get; set; }
|
|
public int IdleTime { get; set; }
|
|
public int PingTime { get; set; }
|
|
public int TimeoutTime { get; set; }
|
|
public int NotificationCount { get; set; }
|
|
public List<int> TeamSpaceIds { get; set; }
|
|
}
|
|
|
|
public class LoginHistory
|
|
{
|
|
public int SlNo { get; set; }
|
|
public string LoginIp { get; set; }
|
|
public DateTime LoginTime { get; set; }
|
|
public string LogoutIp { get; set; }
|
|
public DateTime? LogoutTime { get; set; }
|
|
}
|
|
|
|
public class AccessLog
|
|
{
|
|
public string LoginId { get; set; }
|
|
public DateTime LoginTime { get; set; }
|
|
public string LoginIp { get; set; }
|
|
public DateTime? LogoutTime { get; set; }
|
|
public string LogoutIp { get; set; }
|
|
public string LoginStatus { get; set; }
|
|
}
|
|
|
|
public class DashboardItem
|
|
{
|
|
public string DivStyleCss { get; set; }
|
|
public string Title { get; set; }
|
|
public string TitleCss { get; set; }
|
|
public string Value { get; set; }
|
|
public string ValueCss { get; set; }
|
|
public int Id { get; set; }
|
|
public string Href { get; set; }
|
|
}
|
|
|
|
public class Dashboard2Item
|
|
{
|
|
public string Title { get; set; }
|
|
public decimal Value { get; set; }
|
|
public string TitleStyle { get; set; }
|
|
public string ValueStyle { get; set; }
|
|
public string ValueFormat { get; set; }
|
|
}
|
|
|
|
public class Dashboard2Data
|
|
{
|
|
public string GroupName { get; set; }
|
|
public List<Dashboard2Item> Items { get; set; }
|
|
}
|
|
|
|
public class UserForceLogout
|
|
{
|
|
public int UserId { get; set; }
|
|
public string LoginId { get; set; }
|
|
public string UserName { get; set; }
|
|
}
|
|
|
|
public class UserSearch : UserForceLogout
|
|
{
|
|
public string Designation { get; set; }
|
|
public string MobileNo { get; set; }
|
|
public string EmailAddress { get; set; }
|
|
public EnumStatus Status { get; set; }
|
|
public short SeqId { get; set; }
|
|
public bool CanUseAttendanceSystem { get; set; }
|
|
public bool IsLocked { get; set; }
|
|
public string AuthId { get; set; }
|
|
|
|
public string StatusDetail => Status.GetDescription();
|
|
}
|
|
|
|
public class UserBasicInfo
|
|
{
|
|
public int UserId { get; set; }
|
|
public string LoginId { get; set; }
|
|
public string UserName { get; set; }
|
|
public string Designation { get; set; }
|
|
}
|
|
}
|
|
|