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 { CityBind(); } } }
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"); } //////////////// this.CityBind(); CityID = int.Parse(this.DrpDownCity.SelectedValue.ToString()); this.RestaurantBind(CityID); if (this.DropDownRes.SelectedValue != "") { RestaurantID = int.Parse(this.DropDownRes.SelectedValue.ToString()); this.FoodBind(RestaurantID); if (this.DrpDownFood.SelectedValue != "") { FoodID = int.Parse(this.DrpDownFood.SelectedValue.ToString()); } } if (Request.QueryString["CityID"] != "" && Request.QueryString["CityID"] != null) { CityID = int.Parse(Request.QueryString["CityID"].ToString()); this.DrpDownCity.SelectedValue = CityID.ToString(); this.RestaurantBind(CityID); if (Request.QueryString["RestaurantID"] != "" && Request.QueryString["RestaurantID"] != null) { RestaurantID = int.Parse(Request.QueryString["RestaurantID"].ToString()); this.FoodBind(RestaurantID); this.DropDownRes.SelectedValue = RestaurantID.ToString(); if (Request.QueryString["FoodID"] != "" && Request.QueryString["FoodID"] != null) { FoodID = int.Parse(Request.QueryString["FoodID"].ToString()); this.DrpDownFood.SelectedValue = FoodID.ToString(); } } } } }
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(); if (this.DrpDownCity.SelectedValue != "" && this.DrpDownCity.SelectedValue != null) { CityID = int.Parse(this.DrpDownCity.SelectedValue.ToString()); } if (CityID != 0) { this.EntertainmentBind(CityID); if (this.DropDownEntertainment.SelectedValue != "" && this.DropDownEntertainment.SelectedValue != null) { EntertainmentID = int.Parse(this.DropDownEntertainment.SelectedValue.ToString()); } } if (Request.QueryString["CityID"] != null && Request.QueryString["CityID"] != "") { CityID = int.Parse(Request.QueryString["CityID"]); this.DrpDownCity.SelectedValue = CityID.ToString(); this.EntertainmentBind(CityID); if (Request.QueryString["EntertainmentID"] != null && Request.QueryString["EntertainmentID"] != "") { this.DropDownEntertainment.SelectedValue = Request.QueryString["EntertainmentID"].ToString(); EntertainmentID = int.Parse(Request.QueryString["EntertainmentID"].ToString()); } } } } }
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); } } }
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 { DropDownBind(); if (Request.QueryString["CityID"] != null) { this.DrpDownCity.SelectedValue = Request.QueryString["CityID"].ToString(); } if (Request.QueryString["SceneryID"] != null) { this.DropDownScenery.SelectedValue = Request.QueryString["SceneryID"].ToString(); } } } }