private void get_navigation_list(HttpContext context) { var adminModel = new ManagePage().GetAdminInfo(); //获得当前登录管理员信息 if (adminModel == null) { return; } var roleModel = new ManagerRoleService() .GetModel(adminModel.RoleId); //获得管理角色信息 if (roleModel == null) { return; } DataTable dt = new NavigationService(new NavigationRepository(siteConfig.sysdatabaseprefix)) .GetDataList(0, MXEnums.NavigationEnum.System.ToString()); this.get_navigation_childs(context, dt, 0, "", roleModel.RoleType, roleModel.ManagerRoleValues.ToList()); }
private int GetIsLoginAndIsStaticstatus() { //Model.siteconfig siteConfig = new BLL.siteconfig().loadConfig(); //取得管理员登录信息 var adminInfo = new ManagePage().GetAdminInfo(); if (adminInfo == null) return -1; else if (!new ManagerRoleService() .Exists(adminInfo.RoleId, "app_builder_html", MXEnums.ActionEnum.Build.ToString())) return -2; else if (siteConfig.staticstatus != 2) return -3; else return 1; }