using System;
using LeaRun.Application.Code;
namespace LeaRun.Application.Entity.BaseManage
{
///
/// 版 本
/// Copyright (c) 2013-2016 上海力软信息技术有限公司
/// 创建人:佘赐雄
/// 日 期:2015.11.03 10:58
/// 描 述:用户管理
///
public class UserEntity : BaseEntity
{
#region 实体成员
///
/// 用户主键
///
public string UserId { get; set; }
///
/// 用户编码
///
public string EnCode { get; set; }
///
/// 登录账户
///
public string Account { get; set; }
///
/// 登录密码
///
public string Password { get; set; }
///
/// 密码秘钥
///
public string Secretkey { get; set; }
///
/// 真实姓名
///
public string RealName { get; set; }
///
/// 呢称
///
public string NickName { get; set; }
///
/// 头像
///
public string HeadIcon { get; set; }
///
/// 快速查询
///
public string QuickQuery { get; set; }
///
/// 简拼
///
public string SimpleSpelling { get; set; }
///
/// 性别
///
public int? Gender { get; set; }
///
/// 生日
///
public DateTime? Birthday { get; set; }
///
/// 手机
///
public string Mobile { get; set; }
///
/// 电话
///
public string Telephone { get; set; }
///
/// 电子邮件
///
public string Email { get; set; }
///
/// QQ号
///
public string OICQ { get; set; }
///
/// 微信号
///
public string WeChat { get; set; }
///
/// MSN
///
public string MSN { get; set; }
///
/// 主管主键
///
public string ManagerId { get; set; }
///
/// 主管
///
public string Manager { get; set; }
///
/// 机构主键
///
public string OrganizeId { get; set; }
///
/// 部门主键
///
public string DepartmentId { get; set; }
///
/// 角色主键
///
public string RoleId { get; set; }
///
/// 岗位主键
///
public string DutyId { get; set; }
///
/// 岗位名称
///
public string DutyName { get; set; }
///
/// 职位主键
///
public string PostId { get; set; }
///
/// 职位名称
///
public string PostName { get; set; }
///
/// 工作组主键
///
public string WorkGroupId { get; set; }
///
/// 安全级别
///
public int? SecurityLevel { get; set; }
///
/// 在线状态
///
public int? UserOnLine { get; set; }
///
/// 单点登录标识
///
public int? OpenId { get; set; }
///
/// 密码提示问题
///
public string Question { get; set; }
///
/// 密码提示答案
///
public string AnswerQuestion { get; set; }
///
/// 允许多用户同时登录
///
public int? CheckOnLine { get; set; }
///
/// 允许登录时间开始
///
public DateTime? AllowStartTime { get; set; }
///
/// 允许登录时间结束
///
public DateTime? AllowEndTime { get; set; }
///
/// 暂停用户开始日期
///
public DateTime? LockStartDate { get; set; }
///
/// 暂停用户结束日期
///
public DateTime? LockEndDate { get; set; }
///
/// 第一次访问时间
///
public DateTime? FirstVisit { get; set; }
///
/// 上一次访问时间
///
public DateTime? PreviousVisit { get; set; }
///
/// 最后访问时间
///
public DateTime? LastVisit { get; set; }
///
/// 登录次数
///
public int? LogOnCount { get; set; }
///
/// 排序码
///
public int? SortCode { get; set; }
///
/// 删除标记
///
public int? DeleteMark { get; set; }
///
/// 有效标志
///
public int? EnabledMark { get; set; }
///
/// 备注
///
public string Description { get; set; }
///
/// 创建日期
///
public DateTime? CreateDate { get; set; }
///
/// 创建用户主键
///
public string CreateUserId { get; set; }
///
/// 创建用户
///
public string CreateUserName { get; set; }
///
/// 修改日期
///
public DateTime? ModifyDate { get; set; }
///
/// 修改用户主键
///
public string ModifyUserId { get; set; }
///
/// 自增长 accountID
///
//public Int64 AccoutId { get; set; }
///
///
/// 修改用户
///
public string ModifyUserName { get; set; }
#endregion
#region 扩展操作
///
/// 新增调用
///
public override void Create()
{
this.UserId = Guid.NewGuid().ToString();
this.CreateDate = DateTime.Now;
//this.CreateUserId = OperatorProvider.Provider.Current().UserId;
//this.CreateUserName = OperatorProvider.Provider.Current().UserName;
this.DeleteMark = 0;
this.EnabledMark = 1;
}
///
/// 编辑调用
///
///
public override void Modify(string keyValue)
{
this.UserId = keyValue;
this.ModifyDate = DateTime.Now;
this.ModifyUserId = OperatorProvider.Provider.Current().UserId;
this.ModifyUserName = OperatorProvider.Provider.Current().UserName;
}
#endregion
}
}