using VOL.Entity.SystemModels; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VOL.Entity.DomainModels { public class UserInfo { //public int User_Id { get; set; } public Guid User_Id { get; set; } /// /// 多个角色ID /// //public int Role_Id { get; set; } public string Role_Id { get; set; } public string RoleName { get; set; } /// /// 登陆用缩写明细 /// public string UserName { get; set; } /// /// 中文名字 /// public string UserTrueName { get; set; } public string CompanyId { get; set; } public string CompanyName { get; set; } public string Dept_Id { get; set; } public int Enable { get; set; } public string Token { get; set; } public bool LimitInCompany { get; set; } public bool LimitBySTORAGE { get; set; } public string Language { get; set; } public List STOREHOUSEList { get; set; } /// /// 获取一个sql字句形式的字符串 用单引号括起来逗号隔开 形如 '0001','0002' /// /// public string getStorehouseStr() { var result = ""; if (STOREHOUSEList == null || STOREHOUSEList.Count == 0) { result= "''"; } else { foreach (var item in STOREHOUSEList) { if (result != "") result += ","; result += "'" + item + "'"; } } return result; } } }