void Notify_Finished(object sender, FinishedEventArgs e) { DateTime now = DateTime.Now; TradeTypes selfhelpInpour = TradeTypes.SelfhelpInpour; Member user = Users.GetUser(this.InpourRequest.UserId, false) as Member; decimal num = user.Balance + this.InpourRequest.InpourBlance; BalanceDetailInfo balanceDetails = new BalanceDetailInfo(); balanceDetails.UserId = this.InpourRequest.UserId; balanceDetails.UserName = user.Username; balanceDetails.TradeDate = now; balanceDetails.TradeType = selfhelpInpour; balanceDetails.Income = new decimal?(this.InpourRequest.InpourBlance); balanceDetails.Balance = num; if (this.paymode != null) { balanceDetails.Remark = "充值支付方式:" + this.paymode.Name; } if (PersonalHelper.Recharge(balanceDetails, this.InpourRequest.InpourId)) { Users.ClearUserCache(user); this.ResponseStatus(true, "success"); } else { PersonalHelper.RemoveInpourRequest(this.InpourId); this.ResponseStatus(false, "fail"); } }
private void Notify_Finished(object sender, FinishedEventArgs e) { System.DateTime now = System.DateTime.Now; Hidistro.Membership.Context.Member member = Hidistro.Membership.Context.Users.GetUser(this.InpourRequest.UserId, false) as Hidistro.Membership.Context.Member; decimal balance = member.Balance + this.InpourRequest.InpourBlance; BalanceDetailInfo balanceDetailInfo = new BalanceDetailInfo(); balanceDetailInfo.UserId = this.InpourRequest.UserId; balanceDetailInfo.UserName = member.Username; balanceDetailInfo.TradeDate = now; balanceDetailInfo.TradeType = TradeTypes.SelfhelpInpour; balanceDetailInfo.Income = new decimal?(this.InpourRequest.InpourBlance); balanceDetailInfo.Balance = balance; balanceDetailInfo.InpourId = this.InpourRequest.InpourId; if (this.paymode != null) { balanceDetailInfo.Remark = "充值支付方式:" + this.paymode.Name; } if (PersonalHelper.Recharge(balanceDetailInfo)) { Hidistro.Membership.Context.Users.ClearUserCache(member); this.ResponseStatus(true, "success"); } else { PersonalHelper.RemoveInpourRequest(this.InpourId); this.ResponseStatus(false, "fail"); } }