20230426新增功能:分公司且本部角色账号能在本部和项目登录、切换。
This commit is contained in:
@@ -327,6 +327,29 @@ namespace BLL
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 是否赛鼎或分公司
|
||||
/// </summary>
|
||||
/// <param name="unitId"></param>
|
||||
/// <returns></returns>
|
||||
public static bool IsSedinOrSub(string unitId)
|
||||
{
|
||||
bool result = false;
|
||||
if (unitId == Const.UnitId_SEDIN)
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
var uinit =UnitService.GetUnitByUnitId(unitId);
|
||||
if (uinit != null && uinit.IsBranch ==true)
|
||||
{
|
||||
result = true;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
#region 根据用户Id判断是否为本单位用户或管理员
|
||||
/// <summary>
|
||||
/// 根据用户UnitId判断是否为本单位用户或管理员
|
||||
|
||||
Reference in New Issue
Block a user