protected void Page_Load(object sender, EventArgs e) { if (_userLogic.AdminConfigAuthority(Session["admingroupid"].ToString(), 2) == 0) { Response.Redirect("error.aspx"); } _type = Request.QueryString["type"]; String _urlGetId = Request.QueryString["id"]; String _urlGetGp = Request.QueryString["gp"]; if (!IsPostBack) { switch (_type) { case "1": group_query(); break; //用户组查询 case "2": group_insert(); break; //用户组添加 case "3": admin_query(_urlGetId); break; //管理员查询与设置 case "4": admin_add(_urlGetId); break; //管理员添加 case "11": group_details(_urlGetId); break; //用户组详情 case "12": user_usergroup_update(_urlGetId, _urlGetGp); break; //更改用户所在用户组 case "13": group_delete(_urlGetId); break; //用户组删除 default: break; } } }
protected void Page_Load(object sender, EventArgs e) { if (_userLogic.AdminConfigAuthority(Session["admingroupid"].ToString(), 4) == 0) { Response.Redirect("error.aspx"); } _type = Request.QueryString["type"]; _pageStr = Request.QueryString["page"]; _urlGetQm = Request.QueryString["qm"]; _urlGetId = Request.QueryString["id"]; int _pageInt; if (int.TryParse(_pageStr, out _pageInt)) { if (_pageInt > 0) { _pageIndex = _pageInt; } else { _pageIndex = 1; } } else { _pageIndex = 1; } int _queryMode; if (!IsPostBack) { switch (_urlGetQm) { case "0": _queryMode = 0; break; case "1": _queryMode = 1; break; case "2": _queryMode = 2; break; case "3": _queryMode = 3; break; default: _queryMode = 0; break; } switch (_type) { case "1": supply_query(_queryMode, _urlGetId, _pageIndex); break; //供货信息查询 case "2": stock_query(_queryMode, _urlGetId, _pageIndex); break; //库存信息查询 default: supply_query(0, "0", _pageIndex); break; } get_gameinfo_into_dropdownlist(); } }
protected void Page_Load(object sender, EventArgs e) { if (_userLogic.AdminConfigAuthority(Session["admingroupid"].ToString(), 5) == 0) { Response.Redirect("error.aspx"); } _type = Request.QueryString["type"]; _pageStr = Request.QueryString["page"]; _urlGetId = Request.QueryString["id"]; _urlGetSt = Request.QueryString["st"]; int _pageInt; if (int.TryParse(_pageStr, out _pageInt)) { if (_pageInt > 0) { _pageIndex = _pageInt; } else { _pageIndex = 1; } } else { _pageIndex = 1; } if (!IsPostBack) { switch (_type) { case "1": game_list_query(_urlGetSt, _pageIndex); break; //游戏列表 case "2": game_insert(); break; //游戏添加 case "3": server_list_query(0, _urlGetSt, _pageIndex); break; //服务器列表 case "4": server_insert(); break; //服务器添加 case "10": server_list_query(1, _urlGetSt, _pageIndex); break; //服务器列表(根据名称模糊查询) case "11": game_details_query(_urlGetId); break; //游戏详情 case "12": game_delete(_urlGetId); break; //游戏删除 case "13": server_details_query(_urlGetId); break; //服务器详情 case "14": server_delete(_urlGetId); break; //服务器删除 default: game_list_query(_urlGetSt, _pageIndex); break; } } }
protected void Page_Load(object sender, EventArgs e) { if (_userLogic.AdminConfigAuthority(Session["admingroupid"].ToString(), 4) == 0) { Response.Redirect("error.aspx"); } _type = Request.QueryString["type"]; _pageStr = Request.QueryString["page"]; _uid = Request.QueryString["uid"]; int _pageInt; if (int.TryParse(_pageStr, out _pageInt)) { if (_pageInt > 0) { _pageIndex = _pageInt; } else { _pageIndex = 1; } } else { _pageIndex = 1; } if (!IsPostBack) { switch (_type) { case "1": user_query(1, _pageIndex); break; //所有用户 case "2": user_query(2, _pageIndex); break; //待审用户 case "3": user_query(3, _pageIndex); break; //黑名单 case "10": user_details_query(_uid); break; //用户详情 case "11": user_state_update(_uid, 3); break; //通过审核 case "12": user_state_update(_uid, 4); break; //禁止用户 default: user_query(1, _pageIndex); break; } } }
protected void Page_Load(object sender, EventArgs e) { if (_userLogic.AdminConfigAuthority(Session["admingroupid"].ToString(), 6) == 0) { Response.Redirect("error.aspx"); } _type = Request.QueryString["type"]; _pageStr = Request.QueryString["page"]; String _urlGetId = Request.QueryString["id"]; int _pageInt; if (int.TryParse(_pageStr, out _pageInt)) { if (_pageInt > 0) { _pageIndex = _pageInt; } else { _pageIndex = 1; } } else { _pageIndex = 1; } if (!IsPostBack) { switch (_type) { case "1": news_list_query(_pageIndex); break; //新闻列表 case "2": news_insert(); break; //新闻添加 case "10": news_details_query(_urlGetId); break; //新闻详情 case "11": news_delete(_urlGetId); break; //新闻删除 default: news_list_query(_pageIndex); break; } } }
protected void Page_Load(object sender, EventArgs e) { if (_userLogic.AdminConfigAuthority(Session["admingroupid"].ToString(), 8) == 0) { Response.Redirect("error.aspx"); } _urlGetState = Request.QueryString["qm"]; _urlGetStr = Server.HtmlDecode(Request.QueryString["id"]); if (_urlGetStr == null) { _urlGetStr = ""; } int _orderState; if (!IsPostBack) { switch (_urlGetState) { case "0": _orderState = 0; break; case "1": _orderState = 1; break; case "2": _orderState = 2; break; case "3": _orderState = 3; break; case "4": _orderState = 4; break; default: _orderState = -1; break; } int _pageAmount; if (_orderLogic.OrderExportToCSV(_orderLogic.OrderQueryNew(_orderState.ToString(), _urlGetStr, 1, 10000, out _pageAmount), "order") == false) { Response.Write("<script type=\"text/javascript\">alert (\"没有可供导出的数据!\"); </script>"); } } }
protected void Page_Load(object sender, EventArgs e) { if (_userLogic.AdminConfigAuthority(Session["admingroupid"].ToString(), 8) == 0) { Response.Redirect("error.aspx"); } _type = Request.QueryString["type"]; _pageStr = Request.QueryString["page"]; _urlGetState = Request.QueryString["qm"]; _urlGetStr = Server.HtmlDecode(Request.QueryString["id"]); if (_urlGetStr == null) { _urlGetStr = ""; } if (Session["token"] != null) { hf_token.Value = Session["token"].ToString(); } int _pageInt; if (int.TryParse(_pageStr, out _pageInt)) { if (_pageInt > 0) { _pageIndex = _pageInt; } else { _pageIndex = 1; } } else { _pageIndex = 1; } int _orderState; if (!IsPostBack) { switch (_urlGetState) { case "0": _orderState = 0; break; case "1": _orderState = 1; break; case "2": _orderState = 2; break; case "3": _orderState = 3; break; case "4": _orderState = 4; break; default: _orderState = -1; break; } switch (_type) { case "1": order_list_query(_orderState, _urlGetStr, _pageIndex); break; //订单列表查询 case "2": order_details_query(_urlGetStr); break; //订单详情查询 case "3": order_log_query(_urlGetStr, _pageIndex); break; //订单操作记录查询 default: order_list_query(_orderState, _urlGetStr, _pageIndex); break; } get_gameinfo_into_dropdownlist(); if (_userLogic.AdminConfigAuthority(Session["admingroupid"].ToString(), 8) != 2) { btn_order_amount_update.Enabled = false; } } }