Beispiel #1
0
 /// <summary>
 ///     载入页面关联的按钮配置
 /// </summary>
 /// <param name="loginUser">登录用户</param>
 /// <param name="page">页面,不能为空</param>
 /// <returns>按钮配置集合</returns>
 List <string> IPowerChecker.LoadPageButtons(ILoginUser loginUser, IPageItem page)
 {
     if (page == null)
     {
         return(new List <string>());
     }
     return(BusinessContext.Current.IsSystemMode
         ? PageItemLogical.LoadPageButtons(page.Id)
         : RoleCache.LoadButtons(loginUser.RoleId, page.ID));
 }