1. 基本功能 1. 基本功能
获取当前用户的信息 。
2. 配置方法 2. 配置方法
2.1. 前端js获取当前用户 2.1. 前端js获取当前用户
$scope.$sessionAttrs.loginUser.username
;$scope.$sessionAttrs.loginUser.userCode
;$scope.$sessionAttrs.loginUser.officeName
;$scope.$sessionAttrs.loginUser.officeCode
;$scope.$sessionAttrs.loginUser.roleName
;$scope.$sessionAttrs.loginUser.roleCode
;$scope.$sessionAttrs.loginUser.userId
;$scope.$sessionAttrs.loginUser.officeId
;$scope.$sessionAttrs.loginUser.roleId
;$scope.$sessionAttrs.loginUser.settleOfficeName
;$scope.$sessionAttrs.loginUser.settleOffice
;$scope.$sessionAttrs.loginUser.homeCurrency
;$scope.$sessionAttrs.loginUser.roleOfficeId
;$scope.$sessionAttrs.loginUser.settleAllOffice
;$scope.$sessionAttrs.loginUser.stdOffice.cmOfficeCode
;$scope.$sessionAttrs.loginUser.stdOffice.cmOfficeName
;$scope.$sessionAttrs.loginUser.stdOffice.dpProfitCenterCode
;$scope.$sessionAttrs.loginUser.stdOffice.dpProfitCenterName
;$scope.$sessionAttrs.loginUser.stdOffice.cmSapCode
;2.2. 后端代码获取当前用户 2.2. 后端代码获取当前用户
UserContextHolder.getCurrentUser()
;UserContextHolder.getCurrentLoginOffice()
;UserContextHolder.getCurrentLoginRole()
;UserContextHolder.getCurrentLoginRoleOffice()
;UserContextHolder.getCurrentRoleAllOffice()
;UserContextHolder.getCurrentRoleSubAllIdList()
;UserContextHolder.getCurrentRoleAllSettleCodeList()
;UserContextHolder.getCurrentRoleAllOfficeSubsetOfficeId()
;UserContextHolder.getCurrentRoleAllOfficeSubsetOfficeCode()
;UserContextHolder.getUserCookieName()
;