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.
63 lines
1.8 KiB
C#
63 lines
1.8 KiB
C#
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; }
|
|
/// <summary>
|
|
/// 多个角色ID
|
|
/// </summary>
|
|
//public int Role_Id { get; set; }
|
|
public string Role_Id { get; set; }
|
|
public string RoleName { get; set; }
|
|
/// <summary>
|
|
/// 登陆用缩写明细
|
|
/// </summary>
|
|
public string UserName { get; set; }
|
|
/// <summary>
|
|
/// 中文名字
|
|
/// </summary>
|
|
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 bool LimitByUser { get; set; }
|
|
public string Language { get; set; }
|
|
|
|
public List<string> STOREHOUSEList { get; set; }
|
|
|
|
/// <summary>
|
|
/// 获取一个sql字句形式的字符串 用单引号括起来逗号隔开 形如 '0001','0002'
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
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;
|
|
}
|
|
}
|
|
}
|