protected void Page_Load(object sender, EventArgs e) { if (Session["openid"] == null) { if (string.IsNullOrEmpty(Request.QueryString["code"])) { Response.Redirect("https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + GetWeiXinInf.appid + "&redirect_uri=http://wx.lvwei8.com/index/withdraw.aspx&response_type=code&scope=snsapi_base&state=123#wechat_redirect"); } else { string code = Request.QueryString["code"]; openid = new WEIxinUserApi().GetUserOpenid(code); if (openid.Length < 10) { Response.Redirect("https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + GetWeiXinInf.appid + "&redirect_uri=http://wx.lvwei8.com/index/withdraw.aspx&response_type=code&scope=snsapi_base&state=123#wechat_redirect"); } } Session["openid"] = openid; } else { openid = Session["openid"].ToString(); } if (!IsPostBack) { LVWEIBA.Model.MemberList mmm = new LVWEIBA.Model.MemberList(); mmm = new LVWEIBA.DAL.MemberList().GetModel(openid); if (mmm == null) { yue = "0.00"; } else { yue = mmm.Money.ToString(); } LVWEIBA.BLL.MemberBankCard bll = new LVWEIBA.BLL.MemberBankCard(); List <LVWEIBA.Model.MemberBankCard> lst = bll.GetModelList(" MemberID ='" + openid + "'"); string str = ""; int i = 0; string card = ""; foreach (LVWEIBA.Model.MemberBankCard item in lst) { card = item.Card.Length > 4 ? item.Card.Substring(item.Card.Length - 4, 4) : item.Card; i++; str += string.Format(@" <li class='item-content'> <div class='item-inner'> <div class='item-title'> <input id='{0}' name='rbank' type='radio' value= '{1}' {3} /><label for='{0}'>{2}</label> </div> </div> </li> ", "radio" + i, item.ID, "尾号" + card + "的" + item.Bank + "卡", i == 1 ? "checked" : ""); } this.Literal1.Text = str; } }
protected void Page_Load(object sender, EventArgs e) { UserAuthorizationModel userInfo = UserAuthorization.userLogin(this.Page); if (userInfo.openId == null || userInfo.openId == "") { openid = userInfo.mobile; } else { openid = userInfo.openId; } DBCLASSFORWEIXIN.Model.LocalWeixinUser SingleUserInf = new DBCLASSFORWEIXIN.DAL.LocalWeixinUser().GetModel(openid); this.Title = SingleUserInf.nickname + " 现金账户"; LVWEIBA.Model.MemberList mmm = new LVWEIBA.Model.MemberList(); mmm = new LVWEIBA.DAL.MemberList().GetModel(openid); if (mmm == null) { yue = "0.00"; } else { yue = mmm.Money.ToString(); } HUserHostAddress = Page.Request.UserHostAddress; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { UserAuthorizationModel userInfo = UserAuthorization.userLogin(this.Page); if (userInfo.openId == null || userInfo.openId == "") { openid = userInfo.mobile; } else { openid = userInfo.openId; } Session["openid"] = openid; DBCLASSFORWEIXIN.Model.LocalWeixinUser wxmdl = new CheckUserAndUpdate().CheckUserAndInsert(openid, ""); LVWEIBA.Model.MemberList mmm = new LVWEIBA.Model.MemberList(); mmm = new LVWEIBA.DAL.MemberList().GetModel(openid); if (mmm == null) { nickname = wxmdl.nickname; Tel = wxmdl.Tel; ddl_sex.SelectedValue = wxmdl.sex.ToString(); } else { nickname = wxmdl.nickname; Tel = wxmdl.Tel; MemberName = mmm.MemberName; ddl_sex.SelectedValue = wxmdl.sex.ToString(); Card = mmm.Card; Mail = mmm.Mail; Pwd = mmm.UserPwd; } } }
protected void Page_Load(object sender, EventArgs e) { UserAuthorizationModel userInfo = UserAuthorization.userLogin(this.Page); if (userInfo.openId == null || userInfo.openId == "") { openid = userInfo.mobile; } else { openid = userInfo.openId; } this.Title = userInfo.name + " 现金账户"; LVWEIBA.Model.MemberList mmm = new LVWEIBA.Model.MemberList(); mmm = new LVWEIBA.DAL.MemberList().GetModel(openid); if (mmm == null) { yue = "0.00"; } else { yue = mmm.Money.ToString(); } }
protected void Page_Load(object sender, EventArgs e) { int lineid = (string.IsNullOrEmpty(Request.QueryString["lineid"]) ? 0 : int.Parse(Request.QueryString["lineid"])); UserAuthorizationModel userInfo = UserAuthorization.userLogin(this.Page); if (userInfo.openId == null || userInfo.openId == "") { openid = userInfo.mobile; } else { openid = userInfo.openId; } string oid = Request.QueryString["ddbm"]; log4netHelper.WriteDebugLog(typeof(index_indent_pay), "indent_pay", "进入支付 orderid is:" + oid + "用户Id:" + openid); LVWEIBA.Model.order_list oom = new LVWEIBA.Model.order_list(); oom = new LVWEIBA.DAL.order_list().GetModel(oid); LVWEIBA.Model.order_Mx omm = new LVWEIBA.DAL.order_Mx().GetModel(oid); string typeObject = omm.ProType; if (!String.IsNullOrEmpty(typeObject)) { if (typeObject.Equals("DZP")) { type = "mp"; } else { type = "wd"; } } //BaseClass.Common.LoggerUtil.printLog("type is:" + type); shichangjia = omm.market_price.ToString(); youhuijia = omm.Transaction_price.ToString(); LVWEIBA.Model.MemberList mmm = new LVWEIBA.Model.MemberList(); mmm = new LVWEIBA.DAL.MemberList().GetModel(openid); if (mmm == null) { moneyLeft = "0.00"; } else { moneyLeft = mmm.Money.ToString(); } LVWEIBA.DAL.LvULines dallines = new LVWEIBA.DAL.LvULines(); LVWEIBA.Model.LvULines mlines = dallines.GetModel(omm.productNum); //根据订单明细的线路编号获取线路的类别 if ((mlines != null && mlines.Kindof.Equals("jianhang")) || type.Equals("mp")) //建行分期或门票 { HiddenFieldchctt.Value = omm.Transaction_price.ToString().Replace(".", ""); Label1.Text = omm.Transaction_price.ToString();//优惠价 lbl_scsm.Text = ""; lbl_yhsm.Text = "(支付时直接按优惠价价支付)"; type = "jh"; } else { lbl_scsm.Text = "(支付时按市场价支付)"; lbl_yhsm.Text = "(返还差价之后的实际成交价)"; lbl_zyts.Text = @" 重要提示:该产品按市场价支付,旅行结束后48小时内 驴尾巴网将差价返还至会员现金账户,会员可自由选择提现 或二次消费。"; HiddenFieldchctt.Value = omm.market_price.ToString().Replace(".", ""); Label1.Text = omm.market_price.ToString();//市场价 } if (type == null) { type = "default"; } HUserHostAddress = Page.Request.UserHostAddress; //HiddenFieldchctt.Value = omm.Transaction_price.ToString().Replace(".", ""); //Label1.Text = omm.Transaction_price.ToString(); this.hid_order_id.Value = oid; this.hid_order_type.Value = type; }