protected void Page_Load(object sender, EventArgs e) { this.channel_id = PLRequest.GetQueryInt("channel_id"); this.category_id = PLRequest.GetQueryInt("category_id"); this.area_id = PLRequest.GetQueryInt("area_id"); this.keywords = PLRequest.GetQueryString("keywords"); this.property = PLRequest.GetQueryString("property"); if (channel_id == 0) { JscriptMsg("频道参数不正确!", "back"); return; } this.channel_name = new BLL.channel().GetChannelName(this.channel_id); //取得频道名称 this.pageSize = GetPageSize(10); //每页数量 this.prolistview = Utils.GetCookie("article_list_view"); //显示方式 //获取页面所有操作权限 auths = GetAdminAuth("channel_" + this.channel_name + "_list"); btnSave.Visible = auths[PLEnums.ActionEnum.Edit]; btnAudit.Visible = auths[PLEnums.ActionEnum.Audit]; btnReturned.Visible = auths[PLEnums.ActionEnum.Returned]; btnDelete.Visible = auths[PLEnums.ActionEnum.Delete]; if (!Page.IsPostBack) { ChkAdminLevel("channel_" + this.channel_name + "_list", PLEnums.ActionEnum.View.ToString()); //检查权限 TreeBind(this.channel_id); //绑定类别 TreeBindArea(); //绑定地区 RptBind(this.channel_id, this.category_id, this.area_id, "id>0" + CombSqlTxt(this.keywords, this.property), "sort_id asc,add_time desc,id desc"); } }
protected void Page_Load(object sender, EventArgs e) { this.channel_id = PLRequest.GetQueryInt("channel_id"); this.channel_name = new BLL.channel().GetChannelName(this.channel_id); //取得频道名称 this.property = PLRequest.GetQueryString("property"); this.keywords = PLRequest.GetQueryString("keywords"); if (channel_id == 0) { JscriptMsg("频道参数不正确!", "back"); return; } //获取页面所有操作权限by 赵成龙20160630 auths = GetAdminAuth("channel_" + this.channel_name + "_comment"); btnAudit.Visible = auths[PLEnums.ActionEnum.Audit]; btnDelete.Visible = auths[PLEnums.ActionEnum.Delete]; this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { ChkAdminLevel("channel_" + this.channel_name + "_comment", PLEnums.ActionEnum.View.ToString()); //检查权限 RptBind("pc.channel_id=" + this.channel_id + CombSqlTxt(this.keywords, this.property), " pc.add_time desc"); } }
/// <summary> /// 获取权限列表 /// </summary> /// <param name="nav_name">菜单名称</param> public BLL.manage_auth_groups GetAdminAuth(string nav_name) { Model.manager model = GetAdminInfo(); BLL.manage_auth_groups auths = new BLL.manage_auth_groups(model.role_id, nav_name); return(auths); }