protected void Page_Load(object sender, EventArgs e) { id = MXRequest.GetQueryInt("id"); mzid = MXRequest.GetQueryInt("mzid"); action = MXRequest.GetQueryString("action"); if (!IsPostBack) { if (action == MXEnums.ActionEnum.Edit.ToString()) { showInfo(id); } } }
protected void Page_Load(object sender, EventArgs e) { ChkAdminLevel("weixin_sq", MXEnums.ActionEnum.View.ToString()); //检查权限 this.aid = MXRequest.GetQueryInt("id"); this.keywords = MXRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { RptBind(this.aid, "id>0" + CombSqlTxt(this.keywords), "createDate asc "); } }
protected void Page_Load(object sender, EventArgs e) { this.category_id = MXRequest.GetQueryInt("category_id"); this.keywords = MXRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { ChkAdminLevel("site_channel_list", MXEnums.ActionEnum.View.ToString()); //检查权限 TreeBind(); //绑定类别 RptBind("id>0" + CombSqlTxt(category_id, keywords), "sort_id asc,id desc"); } }
protected void Page_Load(object sender, EventArgs e) { uid = MXRequest.GetQueryInt("id"); if (!IsPostBack) { this.page = MXRequest.GetQueryInt("page", 1); //获取分页 this.keywords = MXRequest.GetQueryString("keywords"); //获取查询关键字 this.txtKeywords.Text = this.keywords; this.pageSize = GetPageSize(10); //分页每页数量 MessageBox.ResponseScript(this, "$(\".wenben\").show();"); ShowInfo(); } }
protected void Page_Load(object sender, EventArgs e) { this.keywords = MXRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { ChkAdminLevel("qiaopiao", MXEnums.ActionEnum.View.ToString()); //检查权限 RptBind("id>0" + CombSqlTxt(this.keywords), "sort_id asc,id desc"); } }
protected void Page_Load(object sender, EventArgs e) { ChkAdminLevel("user_list", MXEnums.ActionEnum.View.ToString()); //检查权限 this.group_id = MXRequest.GetQueryInt("group_id"); this.keywords = MXRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { TreeBind("is_lock=0"); //绑定类别 RptBind("id>0" + CombSqlTxt(this.group_id, this.keywords), "reg_time desc,id desc"); } }
protected void Page_Load(object sender, EventArgs e) { this.keywords = MXRequest.GetQueryString("keywords"); Model.wx_userweixin weixin = GetWeiXinCode(); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { RptBind(CombSqlTxt(keywords), "createDate desc,id desc"); } }
protected void Page_Load(object sender, EventArgs e) { this.keywords = MXRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { Model.wx_userweixin weixin = GetWeiXinCode(); wid = weixin.id; yuming = MyCommFun.getWebSite(); RptBind(CombSqlTxt(keywords), " id desc"); } }
protected void Page_Load(object sender, EventArgs e) { this.keywords = MXRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { ChkAdminLevel("agent_list", MXEnums.ActionEnum.View.ToString()); //检查权限 Model.manager model = GetAdminInfo(); //取得当前管理员信息 RptBind(CombSqlTxt(keywords), "operDate asc,id desc"); } }
protected void Page_Load(object sender, EventArgs e) { _action = MXRequest.GetQueryString("action"); _id = MXRequest.GetQueryInt("Id"); ScenicId = MXRequest.GetQueryInt("scenicId"); if (!IsPostBack) { if (_action == MXEnums.ActionEnum.Edit.ToString() && _id > 0) { ShowInfo(_id); } } }
protected void Page_Load(object sender, EventArgs e) { this.keywords = MXRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { Model.wx_userweixin weixin = GetWeiXinCode(); litUrl.Text = MyCommFun.getWebSite() + "/weixin/ucard/ucardlist.aspx?wid=" + weixin.id; RptBind(CombSqlTxt(keywords), "createDate desc,id desc"); } }
protected void Page_Load(object sender, EventArgs e) { openid = MyCommFun.RequestOpenid(); wid = MyCommFun.RequestWid(); aid = MyCommFun.RequestInt("aid"); joined = MXRequest.GetQueryString("join"); if (aid == 0 || wid == 0 || openid.Trim() == "loseopenid" || joined == "") { ErrLevel = 1; ErrorInfo = "访问参数错误!"; return; } ckState(); }
protected void Page_Load(object sender, EventArgs e) { _action = MXRequest.GetQueryString("action"); ScenicId = MXRequest.GetQueryInt("scenicId"); DetailId = MyCommFun.RequestInt("detailId"); Id = MXRequest.GetQueryInt("Id"); if (!Page.IsPostBack) { if (_action == MXEnums.ActionEnum.Edit.ToString() && Id > 0) //修改 { ShowInfo(Id); } } }
protected string skinName = string.Empty; //模板目录 protected void Page_Load(object sender, EventArgs e) { skinName = MXRequest.GetQueryString("skin"); if (string.IsNullOrEmpty(skinName)) { JscriptMsg("传输参数不正确!", "back", "Error"); return; } if (!Page.IsPostBack) { ChkAdminLevel("app_templet_list", MXEnums.ActionEnum.View.ToString()); //检查权限 RptBind(skinName); } }
protected void Page_Load(object sender, EventArgs e) { this.keywords = MXRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { //检查权限 ChkAdminLevel(NAV_NAME, MXEnums.ActionEnum.View.ToString()); //RptBind(); BindData(CombSqlTxt(keywords), "ID"); } }
protected void Page_Load(object sender, EventArgs e) { this.status = MXRequest.GetQueryInt("status"); this.payment_status = MXRequest.GetQueryInt("payment_status"); this.express_status = MXRequest.GetQueryInt("express_status"); this.keywords = MXRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { ChkAdminLevel("order_list", MXEnums.ActionEnum.View.ToString()); //检查权限 RptBind(" " + CombSqlTxt(this.status, this.payment_status, this.express_status, this.keywords), "status asc,add_time desc,id desc"); } }
protected void Page_Load(object sender, EventArgs e) { ChkAdminLevel("productlist", MXEnums.ActionEnum.View.ToString()); //检查权限 this.category_id = MXRequest.GetQueryInt("category_id"); this.keywords = MXRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { TreeBind(); //绑定类别 RptBind(this.category_id, "id>0" + CombSqlTxt(this.keywords), "extInt asc,createdate desc "); } }
protected void Page_Load(object sender, EventArgs e) { id = MXRequest.GetQueryInt("id"); keywords = MXRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { ChkAdminLevel(LevelName, MXEnums.ActionEnum.View.ToString()); //检查权限 TreeBind(); //绑定类别 SearchBind(); RptBind(); } }
protected void Page_Load(object sender, EventArgs e) { wid = MXRequest.GetQueryInt("wid"); type = MXRequest.GetQueryInt("type"); openid = MXRequest.GetQueryString("openid"); if (!IsPostBack) { BLL.wx_wq_yyOrder yoBll = new BLL.wx_wq_yyOrder(); BLL.wx_wq_yuyue yyBll = new BLL.wx_wq_yuyue(); img = yyBll.GetModelList("type=" + type + " and wid=" + wid)[0].headpic; DataSet yyList = yoBll.GetList(string.Format(" wid={0} and openid='{1}' and yid={2}", wid, openid, type)); this.rptList.DataSource = yyList; this.rptList.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { ChkAdminLevel("moyingtijian", MXEnums.ActionEnum.View.ToString()); //检查权限 id = MXRequest.GetQueryInt("id"); uid = MXRequest.GetQueryInt("uid"); _action = MXRequest.GetQueryString("action"); if (!IsPostBack) { txtDate.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); if (!string.IsNullOrEmpty(_action) && _action == MXEnums.ActionEnum.Edit.ToString()) { showInfo(id); } } }
protected void Page_Load(object sender, EventArgs e) { this.keywords = MXRequest.GetQueryString("keywords"); sid = MyCommFun.RequestInt("id"); if (sid == 0) { JscriptMsg("传输参数不正确!", "back", "Error"); return; } this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { RptBind(CombSqlTxt(keywords), "beginDate desc"); } }
protected void Page_Load(object sender, EventArgs e) { this.category_id = MXRequest.GetQueryInt("category_id"); this.keywords = MXRequest.GetQueryString("keywords"); this.property = MXRequest.GetQueryString("property"); pageLevelName = MXRequest.GetQueryString("levelName"); this.pageSize = GetPageSize(10); //每页数量 this.prolistview = Utils.GetCookie(pageLevelName + "_view"); //显示方式 if (!Page.IsPostBack) { ChkAdminLevel(pageLevelName, MXEnums.ActionEnum.View.ToString()); //检查权限 TreeBind(); //绑定类别 RptBind(this.category_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.keywords = MXRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { Model.wx_userweixin weixin = GetWeiXinCode(); smsMgr mgr = new smsMgr(weixin.id); lblsmsNum.Text = mgr.getBlance(); RptBind(CombSqlTxt(keywords), "createDate desc,id desc"); } }
protected void Page_Load(object sender, EventArgs e) { ChkAdminLevel("ucard_hy", MXEnums.ActionEnum.View.ToString()); //检查权限 this.keywords = MXRequest.GetQueryString("keywords"); sid = getStoreid(); if (sid == 0) { JscriptMsg("请先在商家设置里面添加一个店铺!!", "back", "Error"); return; } this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { RptBind(CombSqlTxt(keywords), "id desc"); } }
public void ProcessRequest(HttpContext context) { //取得处事类型 string action = MXRequest.GetQueryString("action"); switch (action) { case "ManagerFile": //管理文件 ManagerFile(context); break; default: //普通上传 UpLoadFile(context); break; } }
protected void Page_Load(object sender, EventArgs e) { wid = MXRequest.GetQueryInt("wid"); pid = MXRequest.GetQueryInt("pid"); openid = MXRequest.GetQueryString("openid"); if (!IsPostBack) { BLL.wx_wq_pinpai ppBll = new BLL.wx_wq_pinpai(); BLL.wx_wq_chexi cxBll = new BLL.wx_wq_chexi(); Model.wx_wq_pinpai ppModel = ppBll.GetModel(pid); ppLogo = ppModel.logo; pinpai = ppModel.name; this.rptList.DataSource = cxBll.GetList(string.Format(" wid={0} and pid={1} order by sort_id asc,id asc", wid, pid)); this.rptList.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { id = MyCommFun.Obj2Int(MXRequest.GetQueryString("id")); ModelInfo = bll.GetModelToPrint(id); if (ModelInfo != null) { //金额大小写转换 je = RMBUtil.CmycurD(ModelInfo.Amount); } else { ModelInfo = new Model.T_Bill(); } base.ClientScript.RegisterStartupScript(base.ClientScript.GetType(), "myscript", "<script> PrintTable();</script>"); }
protected void Page_Load(object sender, EventArgs e) { ChkAdminLevel("fensimgr", MXEnums.ActionEnum.View.ToString()); //检查权限 this.group_id = MXRequest.GetQueryInt("group_id"); status = MXRequest.GetQueryString("status"); this.keywords = MXRequest.GetQueryString("keywords"); this.pageSize = GetPageSize(10); //每页数量 if (!Page.IsPostBack) { ValidAccessToken(); GroupBind(); //绑定类别 Model.wx_userweixin weixin = GetWeiXinCode(); RptBind("u.wid=" + weixin.id + " " + CombSqlTxt(this.status, this.group_id, this.keywords), "groupid desc,id desc"); } }
protected void Page_Load(object sender, EventArgs e) { //取得返回参数 string state = MXRequest.GetQueryString("state"); string code = MXRequest.GetQueryString("code"); string access_token = string.Empty; string expires_in = string.Empty; string client_id = string.Empty; string openid = string.Empty; if (Session["oauth_state"] == null || Session["oauth_state"].ToString() == "" || state != Session["oauth_state"].ToString()) { Response.Write("出错啦,state未初始化!"); return; } //第一步:获取Access Token JsonData jd = kaixin_helper.get_access_token(code, state); if (jd == null) { Response.Write("出错了,无法获取Access Token,请检查App Key是否正确!"); return; } access_token = jd["access_token"].ToString(); expires_in = jd["expires_in"].ToString(); //第二步:通过Access Token来获取用户的ID JsonData jd2 = kaixin_helper.get_info(access_token, "uid"); if (jd2 == null) { Response.Write("出错啦,无法获取用户授权uid!"); return; } openid = jd2["uid"].ToString(); //储存获取数据用到的信息 Session["oauth_name"] = "kaixin"; Session["oauth_access_token"] = access_token; Session["oauth_openid"] = openid; //第三步:跳转到指定页面 Response.Redirect(new Web.UI.BasePage().linkurl("oauth_login")); return; }
/// <summary> /// 重写父类的虚方法,此方法将在Init事件前执行 /// </summary> protected override void ShowPage() { action = MXRequest.GetQueryString("action"); if (action == "reset") { string strcode = MXRequest.GetQueryString("code"); if (strcode != null) { model = new BLL.user_code().GetModel(strcode); if (model == null) { HttpContext.Current.Response.Redirect(linkurl("repassword", "error")); return; } } } }