会审人员
This commit is contained in:
@@ -510,6 +510,41 @@ namespace BLL
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 获取总包和其下单位的用户信息
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.UserItem> getUserList()
|
||||
{
|
||||
using (Model.SUBQHSEDB db = new Model.SUBQHSEDB(Funs.ConnString))
|
||||
{
|
||||
List<Model.UserItem> getDataList = new List<Model.UserItem>();
|
||||
var uList = db.Base_Unit.Where(x => x.UnitId == "2B0DB792-49CF-43B4-BB0E-8DD27DF1CEE2" || x.IsBranch == true).Select(x => x.UnitId).ToList();
|
||||
|
||||
getDataList = (from x in db.Sys_User
|
||||
where uList.Contains(x.UnitId) && x.IsOffice == true
|
||||
select new Model.UserItem
|
||||
{
|
||||
UserId = x.UserId,
|
||||
Account = x.Account,
|
||||
UserCode = x.UserCode,
|
||||
Password = x.Password,
|
||||
UserName = x.UserName,
|
||||
UnitId = x.UnitId,
|
||||
LoginProjectId = x.ProjectId,
|
||||
IdentityCard = x.IdentityCard,
|
||||
Email = x.Email,
|
||||
Telephone = x.Telephone,
|
||||
IsOffice = x.IsOffice,
|
||||
SignatureUrl = x.SignatureUrl.Replace('\\', '/'),
|
||||
}).ToList();
|
||||
|
||||
return getDataList.OrderBy(x => x.UnitName).ThenBy(x => x.UserName).ToList();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user