Пример #1
0
    protected void btnMoney_Click(object sender, EventArgs e)
    {
        LVWEIBA.BLL.MemberBankCard bllbank = new LVWEIBA.BLL.MemberBankCard();

        int rbank = int.Parse(Request.Form["rbank"]);

        LVWEIBA.Model.MemberBankCard mdl   = bllbank.GetModel(rbank);
        LVWEIBA.BLL.MemberMoney      bll   = new LVWEIBA.BLL.MemberMoney();
        LVWEIBA.Model.MemberMoney    model = new LVWEIBA.Model.MemberMoney();
        string  money = Request.Form["money"];
        decimal Money = decimal.Parse(money);

        model.MemberID  = openid;
        model.Money     = -Money;
        model.Method    = "4";//提现
        model.Bz        = mdl.Name + "   " + mdl.Bank + "   " + mdl.Card;
        model.Sj        = DateTime.Now;
        model.Type      = "1";//会员
        model.CheckTime = DateTime.Now;
        model.IsCheck   = "0";
        //新增提现记录
        bll.Add(model);

        //修改会员帐号余额
        LVWEIBA.BLL.MemberList   bllMem = new LVWEIBA.BLL.MemberList();
        LVWEIBA.Model.MemberList mmem   = bllMem.GetModel(openid);
        mmem.Money = mmem.Money - Money;
        bllMem.Update(mmem);

        BaseClass.Common.Jscript.AlertAndRedirect("提现成功,将从现金帐户扣减,需要24小时到提现的银行卡,请耐心等待!", "Myindex.aspx");
    }
Пример #2
0
    protected void btn_Tj_Click(object sender, EventArgs e)
    {
        string name = Request.Form["name"];
        string card = Request.Form["card"];
        string bank = ddl_bank.SelectedValue;

        LVWEIBA.Model.MemberBankCard mdl = new LVWEIBA.Model.MemberBankCard();
        LVWEIBA.BLL.MemberBankCard   bll = new LVWEIBA.BLL.MemberBankCard();
        mdl.MemberID = openid;
        mdl.Name     = name;
        mdl.Card     = card;
        mdl.Bank     = bank;

        mdl.Bz   = "";
        mdl.Lrsj = DateTime.Now;
        bll.Add(mdl);
        Response.Redirect("withdraw.aspx");
    }