using Yw.Dto; namespace HStation { /// /// 登录用户 /// public class GlobalParas { private static GlobalParas _GlobalParas; public GlobalParas() { } public GlobalParas(UserLoginOutput rhs) { _GlobalParas = new GlobalParas(); _GlobalParas.CreateUserID = rhs.User.ID; _GlobalParas.LoginName = rhs.User.Name; _GlobalParas.ProjectID = rhs.Software.Project.ID; _GlobalParas.ProductID = rhs.Software.Project.Product.ID; } /// /// 用户标识 /// public long ID { get; set; } /// /// 客户标识 /// public long CorpID { get; set; } /// /// 项目ID /// public long ProjectID { get; set; } /// /// 产品ID /// public long ProductID { get; set; } /// /// 创建用户标识 /// public long CreateUserID { get; set; } /// /// 关系类型 /// public string RelatedType { get; set; } /// /// 关系标识 /// public long RelatedID { get; set; } /// /// 是否为管理员 /// public bool IsAdmin { get; set; } /// /// 登录名称 /// public string LoginName { get; set; } /// /// 真实名称 /// public string RealName { get; set; } /// /// 手机号码 /// public string Mobile { get; set; } /// /// QQ /// public string QQ { get; set; } /// /// 电子邮件 /// public string EMail { get; set; } /// /// 标签名称 /// public string TagName { get; set; } /// /// 登录图片 /// public string LoginImg { get; set; } /// /// 使用状态 /// public int UseStatus { get; set; } /// /// 备注 /// /// public string Description { get; set; } public static GlobalParas GetInstance() { if (_GlobalParas != null) { return _GlobalParas; } return new GlobalParas(); } } }