protected void AspNetPager4_PageChanging(object src, Wuqi.Webdiyer.PageChangingEventArgs e) { MallInfoBLL _MallInfoBLL = new MallInfoBLL(); CityID = int.Parse(this.DropDownCity.SelectedValue.ToString()); PageStart = e.NewPageIndex; DT = _MallInfoBLL.GetCityMallSplit(CityID, this.AspNetPager4.PageSize, PageStart); }
protected void DropDownCity_SelectedIndexChanged(object sender, EventArgs e) { CityID = int.Parse(this.DropDownCity.SelectedValue.ToString()); PageStart = 1; this.AspNetPager4.CurrentPageIndex = PageStart; MallInfoBLL _MallInfoBLL = new MallInfoBLL(); DT = _MallInfoBLL.GetCityMallSplit(CityID, this.AspNetPager4.PageSize, PageStart); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { bool IsSysAdmin = true; bool IsSceAdmin = true; if (null == Session["IsSYS"] || (Boolean)Session["IsSYS"] != true) { IsSysAdmin = false; IsSceAdmin = false; AdminInfoBLL _AdminInfoBLL = new AdminInfoBLL(); RoleBLL _RoleBLL = new RoleBLL(); int AdminID = int.Parse(Session["AdminID"].ToString()); int RoleID = _RoleBLL.GetRoleIDByAdminID(AdminID); IsSceAdmin = _AdminInfoBLL.CheckFunction(RoleID, "购物场所管理"); } if (!(IsSysAdmin || IsSceAdmin)) { Response.Redirect("../../NotAllowed.aspx"); } else { this.CityBind(); CityID = int.Parse(this.DropDownCity.SelectedValue.ToString()); if (Request.QueryString["CityID"] != null && Request.QueryString["CityID"] != "") { CityID = int.Parse(Request.QueryString["CityID"].ToString()); this.DropDownCity.SelectedValue = CityID.ToString(); } MallInfoBLL _MallInfoBLL = new MallInfoBLL(); DT = _MallInfoBLL.GetCityMallSplit(CityID, this.AspNetPager4.PageSize, PageStart); } } }