示例#1
0
        /// <summary>
        /// 检查权限
        /// </summary>
        /// <returns></returns>
        private bool CheckAccessReportRight()
        {
            SessionHelper sessionHelper = SessionHelper.Current(this.Session);

            if (sessionHelper.UserCode.ToUpper() == "ADMIN" ||
                sessionHelper.IsBelongToAdminGroup == true)
            {
                return(true);
            }
            if (rptFacade == null)
            {
                rptFacade = new ReportViewFacade(this.DataProvider);
            }
            return(rptFacade.CheckUserReportSecurity(this.ReportID, sessionHelper.UserCode));
        }