/// <summary> /// 获取信息系统的权限树 /// </summary> /// <param name="systemNo">信息系统编号</param> /// <returns>权限树</returns> public Node GetAuthorityTree(string systemNo) { InfoSystemInfo system = this._authorizationContract.GetInfoSystem(systemNo); IEnumerable <AuthorityView> authorities = this.GetAuthoritiesBySystem(systemNo); Node node = system.ToViewModel().ToNode(authorities); return(node); }
/// <summary> /// 获取信息系统 /// </summary> /// <param name="systemNo">信息系统编号</param> /// <returns>信息系统</returns> public InfoSystemView GetInfoSystem(string systemNo) { InfoSystemInfo systemInfo = this._authorizationContract.GetInfoSystem(systemNo); return(systemInfo.ToViewModel()); }