using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Runtime.Serialization;
using System.ComponentModel.DataAnnotations;
namespace IStation.Model
{
///
/// 用户
///
public partial class User :System.ICloneable
{
///
///
///
public User() { }
///
///
///
public User(User rhs)
{
this.ID = rhs.ID;
this.CorpID = rhs.CorpID;
this.RelatedType = rhs.RelatedType;
this.RelatedID = rhs.RelatedID;
this.IsAdmin = rhs.IsAdmin;
this.LoginName = rhs.LoginName;
this.LoginPwd=rhs.LoginPwd;
this.LoginImg = rhs.LoginImg;
this.RealName = rhs.RealName;
this.Mobile = rhs.Mobile;
this.QQ = rhs.QQ;
this.EMail = rhs.EMail;
this.Paras = rhs.Paras == null ? null : new Dictionary(rhs.Paras);
this.Flags = rhs.Flags?.ToList();
this.TagName = rhs.TagName;
this.UseStatus = rhs.UseStatus;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
this.CreateUserID = rhs.CreateUserID;
this.CreateTime = rhs.CreateTime;
this.UpdateTime = rhs.UpdateTime;
this.UpdateUserID = rhs.UpdateUserID;
this.LastLoginTime = rhs.LastLoginTime;
this.LastLoginIP = rhs.LastLoginIP;
this.LastLoginSoftType = rhs.LastLoginSoftType;
this.LastLoginSoftTag = rhs.LastLoginSoftTag;
}
///
///
///
public void Reset(User rhs)
{
this.ID = rhs.ID;
this.CorpID = rhs.CorpID;
this.RelatedType = rhs.RelatedType;
this.RelatedID = rhs.RelatedID;
this.IsAdmin = rhs.IsAdmin;
this.LoginName = rhs.LoginName;
this.LoginPwd = rhs.LoginPwd;
this.LoginImg = rhs.LoginImg;
this.RealName = rhs.RealName;
this.Mobile = rhs.Mobile;
this.QQ = rhs.QQ;
this.EMail = rhs.EMail;
this.Paras = rhs.Paras == null ? null : new Dictionary(rhs.Paras);
this.Flags = rhs.Flags?.ToList();
this.TagName = rhs.TagName;
this.UseStatus = rhs.UseStatus;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
this.CreateUserID = rhs.CreateUserID;
this.CreateTime = rhs.CreateTime;
this.UpdateTime = rhs.UpdateTime;
this.UpdateUserID = rhs.UpdateUserID;
this.LastLoginTime = rhs.LastLoginTime;
this.LastLoginIP = rhs.LastLoginIP;
this.LastLoginSoftType = rhs.LastLoginSoftType;
this.LastLoginSoftTag = rhs.LastLoginSoftTag;
}
///
/// 标识
///
public long ID { get; set; }
///
/// 客户标识
///
public long CorpID { get; set; }
///
/// 关联类型
///
public string RelatedType { get; set; }
///
/// 关联标识
///
public long RelatedID { get; set; }
///
/// 是否为管理员
///
public bool IsAdmin { get; set; }
///
/// 登录名称
///
public string LoginName { get; set; }
///
/// 登录密码
///
public string LoginPwd { get; set; }
///
/// 登录图片
///
public string LoginImg { get; set; }
///
/// 真实名称
///
public string RealName { get; set; }
///
/// 手机号码
///
public string Mobile { get; set; }
///
/// QQ
///
public string QQ { get; set; }
///
/// 电子邮件
///
public string EMail { get; set; }
///
/// 参数
///
public Dictionary Paras { get; set; }
///
/// 标签列表
///
public List Flags { get; set; }
///
/// 标签名称
///
public string TagName { get; set; }
///
/// 使用状态
///
public eUseStatus UseStatus { get; set; }
///
/// 排序码
///
public int SortCode { get; set; }
///
/// 说明
///
public string Description { get; set; }
///
/// 创建用户标识
///
public long CreateUserID { get; set; }
///
/// 创建时间
///
public DateTime CreateTime { get; set; }
///
/// 更新用户标识
///
public long? UpdateUserID { get; set; }
///
/// 更新时间
///
public DateTime? UpdateTime { get; set; }
///
/// 上次登录时间
///
public DateTime? LastLoginTime { get; set; }
///
/// 上次登录IP
///
public string LastLoginIP { get; set; }
///
/// 上次登录类型
///
public string LastLoginSoftType { get; set; }
///
/// 上次登录软件标签
///
public string LastLoginSoftTag { get; set; }
///
///
///
public User Clone()
{
return (User)this.MemberwiseClone();
}
object ICloneable.Clone()
{
return this.MemberwiseClone();
}
}
}