You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSCustomerWeb/Models/UserEntity.cs

150 lines
3.9 KiB
C#

3 years ago
using System;
using System.Data;
namespace DSWeb.Models
{
/// <summary>
/// 用户基本登录信息表
/// </summary>
public class UserEntity
{
#region 私有成员
private string _gid;//账户Guid
private string _username;//账户登录名
private string _codename;//账户代码名
private string _showname;//账户显示名
private string _password;//账户密码(明文)
private DateTime _enrolltime;//账户注册时间
private string _create_userid;//账户创建操作人Guid
private string _modified_userid;//最后一次更改操作人Guid
private DateTime _modified_time;//最后一次更改时间
private bool _isDeleted;//账户是否被删除(值为1则账户被删除如果为0则账户正常)
private bool _isDisable;//账户是否被禁用(值为1则账户被禁用如果为0则账户正常)
private UserBaseInfoEntity _baseInfo;//账户基本属性
#endregion
/// <summary>
/// 构造函数
/// </summary>
public UserEntity()
{
}
public UserEntity(UserBaseInfoEntity baseInfo)
{
_baseInfo = baseInfo;
}
#region 读写属性
/// <summary>
/// 账户Guid
/// </summary>
public string Gid
{
get { return _gid; }
set { _gid = value; }
}
/// <summary>
/// 账户登录名
/// </summary>
public string UserName
{
get { return _username; }
set { _username = value; }
}
/// <summary>
/// 账户代码名
/// </summary>
public string CodeName
{
get { return _codename; }
set { _codename = value; }
}
/// <summary>
/// 账户显示名
/// </summary>
public string ShowName
{
get { return _showname; }
set { _showname = value; }
}
/// <summary>
/// 账户密码(明文)
/// </summary>
public string PassWord
{
get { return _password; }
set { _password = value; }
}
/// <summary>
/// 账户注册时间
/// </summary>
public DateTime EnrollTime
{
get { return _enrolltime; }
set { _enrolltime = value; }
}
/// <summary>
/// 账户创建操作人Guid
/// </summary>
public string CreatedUserID
{
get { return _create_userid; }
set { _create_userid = value; }
}
/// <summary>
/// 最后一次更改操作人Guid
/// </summary>
public string ModifiedUserID
{
get { return _modified_userid; }
set { _modified_userid = value; }
}
/// <summary>
/// 最后一次更改时间
/// </summary>
public DateTime ModifiedTime
{
get { return _modified_time; }
set { _modified_time = value; }
}
/// <summary>
/// 账户是否被删除(值为1则账户被删除如果为0则账户正常)
/// </summary>
public bool IsDeleted
{
get { return _isDeleted; }
set { _isDeleted = value; }
}
/// <summary>
/// 账户是否被禁用(值为1则账户被禁用如果为0则账户正常)
/// </summary>
public bool IsDisable
{
get { return _isDisable; }
set { _isDisable = value; }
}
/// <summary>
/// 账户基本属性
/// </summary>
public UserBaseInfoEntity BaseInfo
{
get { return _baseInfo; }
set { _baseInfo = value; }
}
#endregion
}
}