提交代码
This commit is contained in:
@@ -388,6 +388,30 @@ namespace BLL
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 根据用户Id判断是否为本单位用户或管理员
|
||||
/// <summary>
|
||||
/// 根据用户UnitId判断是否为本单位用户或管理员
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static bool IsMainUnitOrAdmin2(string userId)
|
||||
{
|
||||
bool result = false;
|
||||
if (userId == Const.sysglyId || userId == Const.hfnbdId)
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
var user = Person_PersonsService.GetPerson_PersonsById(userId);
|
||||
if (user != null && (user.UnitId == Const.UnitId_SEDIN || user.UnitId == Const.UnitId_SEDINNB))
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 根据用户ID判断是否 本单位本部用户或管理员
|
||||
/// <summary>
|
||||
/// 根据用户UnitId判断是否为本单位用户或管理员
|
||||
|
||||
Reference in New Issue
Block a user