protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["uid"] != null && Request.QueryString["uid"].ToString() != "") { double learnpt = cf.learnPart; //学习币比例 nID = Request.QueryString["uid"].ToString(); int PayMoneyNO = sh.getPayMoneyNO(nID); //申请中 int FenXiangYJ = tj.GetFenXiangYJ(nID); //分享佣金 int PayMoney = sh.getPayMoney(nID); //已提现 int jiangxj = tj.GetSumMoneyByUser(nID); //累计奖学金,分红 int jintie = tj.GetJx(nID); //绩效,津贴 //总金=分享佣金+全球分红+绩效+邀请关注(2016/3/30) double allmakemoney = FenXiangYJ + jiangxj + jintie + tj.GetAttentionXF(nID); //当前剩余资金=总金-已提现-已申请-转学习币 double allpri = allmakemoney - PayMoney - PayMoneyNO - tj.GetMoneyToXueBi(nID); //总学习币=总金的一定比例 double allxxb = tj.Round((allmakemoney) * learnpt, 0); //可用学习币=总学习币-已使用学习币+转入学习币+首次关注赠送(2016/3/30) double canxxb = allxxb - sh.getUsedXueXb(nID) + tj.GetXueXibi(nID) + tj.GetAttentionXXB(nID); //可提现资金=当前剩余资金-总学习币 double canpri = allpri - allxxb; hidpri.Value = canpri.ToString(); //当前可提现资金=总金-已提现-已申请+全球分红+绩效-学习币 CanGetPri = StringDelHTML.DoublePriceToString(canpri); } else { Response.Redirect("errors.html"); } }
private double learnpt = Convert.ToDouble(ConfigurationManager.AppSettings["learnPart"]);//学习币比例 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.QueryString["pid"] != null && Request.QueryString["pid"].ToString() != "") { pID = Request.QueryString["pid"].ToString(); if (Request.QueryString["uid"] != null && Request.QueryString["uid"].ToString() != "") { nID = Request.QueryString["uid"].ToString(); LogUtil.WriteLog("支付页面,用户=" + nID); //获取用户openId //GetUserOpenId(); GetOpenID(nID); //生成欲支付订单 GetProductPrice(); PayMoney(); //下面这些是求 “可使用学习币” int PayMoneyNO = sh.getPayMoneyNO(nID); //申请中 int FenXiangYJ = tj.GetFenXiangYJ(nID); //分享佣金 int PayMoneys = sh.getPayMoney(nID); //已提现 int jiangxj = tj.GetSumMoneyByUser(nID); //累计奖学金,分红 int jintie = tj.GetJx(nID); //绩效,津贴 //总金=分享佣金+全球分红+绩效+邀请关注(2016/3/30) double allmakemoney = FenXiangYJ + jiangxj + jintie + tj.GetAttentionXF(nID); //当前剩余资金=总金-已提现-已申请 // double allpri = allmakemoney - PayMoneys - PayMoneyNO; //总学习币=总金的一定比例 double allxxb = tj.Round((allmakemoney) * learnpt, 0); //可用学习币=总学习币-已使用学习币+转入学习币+首次关注赠送(2016/3/30) double canxxb = allxxb - sh.getUsedXueXb(nID) + tj.GetXueXibi(nID) + tj.GetAttentionXXB(nID); //可提现资金=当前剩余资金-总学习币 // double canpri = allpri - allxxb; //学习币 xuexibi = StringDelHTML.DoublePriceToString(canxxb); Gwb.Value = xuexibi; } else { LogUtil.WriteLog("用户ID丢失"); Response.Redirect("errors.html"); } } else { LogUtil.WriteLog("产品ID丢失"); Response.Redirect("errors.html"); } } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["uid"] != null && Request.QueryString["uid"].ToString() != "") { double learnpt = cf.learnPart;//学习币比例 nID = Request.QueryString["uid"].ToString(); nid = nID; int PayMoneyNO = sh.getPayMoneyNO(nID); //申请中 int FenXiangYJ = tj.GetFenXiangYJ(nID); //分享佣金 int PayMoney = sh.getPayMoney(nID); //已提现 int jiangxj = tj.GetSumMoneyByUser(nID); //累计奖学金,分红 int jintie = tj.GetJx(nID); //绩效,津贴 //总金=分享佣金+全球分红+绩效+邀请关注(2016/3/30) double allmakemoney = FenXiangYJ + jiangxj + jintie + tj.GetAttentionXF(nID); //当前剩余资金=总金-已提现-已申请-转学习币 double allpri = allmakemoney - PayMoney - PayMoneyNO - tj.GetMoneyToXueBi(nID); //总学习币=总金的一定比例 double allxxb = tj.Round((allmakemoney) * learnpt, 0); //可用学习币=总学习币-已使用学习币+转入学习币+首次关注赠送(2016/3/30) double canxxb = allxxb - sh.getUsedXueXb(nID) + tj.GetXueXibi(nID) + tj.GetAttentionXXB(nID); //可提现资金=当前剩余资金-总学习币 double canpri = allpri - allxxb; //学习币 xuexibi = StringDelHTML.DoublePriceToString(canxxb); //累计奖学金,全球分红 allMoney = StringDelHTML.DoublePriceToString(jiangxj); //累计分享学分 //leave1Pri = sh.getOneLeavePrice(uID); //leave2Pri = sh.getTwoLeavePrice(uID); //leave3Pri = sh.getThreeLeavePrice(uID); //double price1 = leave1 * (double.Parse(leave1Pri)); //double price2 = leave2 * (double.Parse(leave2Pri)); //double price3 = leave3 * (double.Parse(leave3Pri)); //leave1Pri = StringDelHTML.DoublePriceToString(price1); //leave2Pri = StringDelHTML.DoublePriceToString(price2); //leave3Pri = StringDelHTML.DoublePriceToString(price3); allMypri = StringDelHTML.DoublePriceToString(FenXiangYJ); //累计津贴 jingtie = StringDelHTML.DoublePriceToString(jintie); //累计 邀请关注奖励 guanzhu = StringDelHTML.DoublePriceToString(tj.GetAttentionXF(nID)); //当前可提现资金=总金-已提现-已申请+全球分红+绩效-学习币 CanGetPri = StringDelHTML.DoublePriceToString(canpri); } else { Response.Redirect("errors.html"); } }
protected void Page_Load(object sender, EventArgs e) { if (Request.QueryString["uid"] != null && Request.QueryString["uid"].ToString() != "") { //shuilv.Value = System.Configuration.ConfigurationManager.AppSettings["shuifei"]; double learnpt = cf.learnPart;//学习币比例 double shuifei = Convert.ToDouble(cf.shuifei); nID = Request.QueryString["uid"].ToString(); int PayMoneyNO = sh.getPayMoneyNO(nID); //申请中 int FenXiangYJ = tj.GetFenXiangYJ(nID); //分享佣金 int PayMoney = sh.getPayMoney(nID); //已提现 int jiangxj = tj.GetSumMoneyByUser(nID); //累计奖学金,分红 int jintie = tj.GetJx(nID); //绩效,津贴 //总金=分享佣金+全球分红+绩效+邀请关注(2016/3/30) double allmakemoney = FenXiangYJ + jiangxj + jintie + tj.GetAttentionXF(nID); //当前剩余资金=总金-已提现-已申请-转学习币 double allpri = allmakemoney - PayMoney - PayMoneyNO - tj.GetMoneyToXueBi(nID); //总学习币=总金的一定比例 double allxxb = tj.Round((allmakemoney) * learnpt, 0); //可用学习币=总学习币-已使用学习币+转入学习币+首次关注赠送(2016/3/30) double canxxb = allxxb - sh.getUsedXueXb(nID) + tj.GetXueXibi(nID) + tj.GetAttentionXXB(nID); //可提现资金=当前剩余资金-总学习币 double canpri = allpri - allxxb; double ks = tj.Round(canpri * shuifei, 0); CanGetPri = StringDelHTML.DoublePriceToString(canpri); koushui = StringDelHTML.DoublePriceToString(ks); shuihou = StringDelHTML.DoublePriceToString(tj.Round(canpri - ks, 0)); hidpri.Value = CanGetPri; hidshuihou.Value = shuihou; hidkoushui.Value = koushui; } else { Response.Redirect("errors.html"); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.QueryString["uid"] != null && Request.QueryString["uid"].ToString() != "") { nID = Request.QueryString["uid"].ToString(); nid = nID; OneLeaveUser = sh.getOneLeaveUser(nID); TwoLeaveUser = sh.getTwoLeaveUser(nID); ThreeLeaveUser = sh.getThreeLeaveUser(nID); //leave1Pri = sh.getOneLeavePrice(nID); //leave2Pri = sh.getTwoLeavePrice(nID); //leave3Pri = sh.getThreeLeavePrice(nID); //leave1OrderCount = sh.getOneLeaveOrderCount(nID); // leave2OrderCount = sh.getTwoLeaveOrderCount(nID); //leave3OrderCount = sh.getThreeLeaveOrderCount(nID); allUser = (int.Parse(OneLeaveUser) + int.Parse(TwoLeaveUser) + int.Parse(ThreeLeaveUser)).ToString(); //allOrder = (int.Parse(leave1OrderCount) + int.Parse(leave2OrderCount) + int.Parse(leave3OrderCount)).ToString(); soldPri = StringDelHTML.PriceToStringLow(tj.GetFenXiangYJZJ(nID)); //soldPri = StringDelHTML.PriceToStringLow(int.Parse(leave1Pri) + int.Parse(leave2Pri) + int.Parse(leave3Pri)); //double price1 = leave1 * (double.Parse(leave1Pri)); //double price2 = leave2 * (double.Parse(leave2Pri)); //double price3 = leave3 * (double.Parse(leave3Pri)); //leave1Pri = StringDelHTML.DoublePriceToString(price1); //leave2Pri = StringDelHTML.DoublePriceToString(price2); //leave3Pri = StringDelHTML.DoublePriceToString(price3); double learnpt = cf.learnPart; //学习币比例 int PayMoneyNO = sh.getPayMoneyNO(nID); //申请中 int FenXiangYJ = tj.GetFenXiangYJ(nID); //分享佣金 int PayMoney = sh.getPayMoney(nID); //已提现 int jiangxj = tj.GetSumMoneyByUser(nID); //累计奖学金,分红 int jintie = tj.GetJx(nID); //绩效 //总金=分享佣金+全球分红+绩效+邀请关注(2016/3/30) double allmakemoney = FenXiangYJ + jiangxj + jintie + tj.GetAttentionXF(nID); //当前剩余资金=总金-已提现-已申请-转学习币 double allpri = allmakemoney - PayMoney - PayMoneyNO - tj.GetMoneyToXueBi(nID); //总学习币=总金的一定比例 double allxxb = tj.Round((allmakemoney) * learnpt, 0); //可用学习币=总学习币-已使用学习币+转入学习币+首次关注赠送(2016/3/30) double canxxb = allxxb - sh.getUsedXueXb(nID) + tj.GetXueXibi(nID) + tj.GetAttentionXXB(nID); //可提现资金=当前剩余资金-总学习币 double canpri = allpri - allxxb; getingPri = StringDelHTML.PriceToStringLow(PayMoneyNO); //allMypri = StringDelHTML.DoublePriceToString(FenXiangYJ); allMypri = StringDelHTML.DoublePriceToString(allmakemoney); getPri = StringDelHTML.PriceToStringLow(PayMoney); //当前可提现资金=总金-已提现-已申请+全球分红+绩效-金币 CanGetPri = StringDelHTML.DoublePriceToString(canpri); hidpri.Value = CanGetPri; } else { Response.Redirect("errors.html"); } } }