protected void LoadData() { Guid userId = WebUserAuth.UserId.Value; if (Request.QueryString["uid"] != null) { userId = Guid.Parse(Request.QueryString["uid"]); } TuanDai.PortalSystem.BLL.UserBLL bll = new TuanDai.PortalSystem.BLL.UserBLL(); userModel = bll.GetUserBasicInfoModelById(userId); if (userModel == null) { Response.Redirect("//passport.tuandai.com/2login?ret=" + HttpUtility.UrlEncode(HttpContext.Current.Request.RawUrl)); return; } userRegDate = userModel.AddDate.Value; GetProfitStatistics(userId); GetAccountInfo(userId); DqFundModel = GetDQFundModel(userId); ZxFundModel = new TuanDai.ZXSystem.BLL.FundStatisticsBLL().GetFundStatisticsInfoByUserId(userId); if (ZxFundModel == null) { ZxFundModel = new FundStatisticsInfo(); } GetZxFundModelFromDQ(userId); if (DqFundModel == null) { DqFundModel = new WXFundStatistModel(); } if (DqFundModel.DueComeInterest >= decimal.Parse("-0.03") && DqFundModel.DueComeInterest < 0) { DqFundModel.DueComeInterest = 0; } JoinTDDay = Tool.DateHelper.GetDateDiffDay(DateTime.Parse(userModel.AddDate.Value.ToString("yyyy-MM-dd")), DateTime.Today.AddDays(1)); if (JoinTDDay <= 0) { JoinTDDay = 1; } totalPayAmount = (fundAccountInfo.NetPayOutInterest ?? 0) + (fundAccountInfo.TotalPayOutMember ?? 0) + (fundAccountInfo.TotalWithdrawDepositHandRecharge ?? 0) + (fundAccountInfo.TotalInvestCommission ?? 0) + (fundAccountInfo.BorrowCommission ?? 0) + (fundAccountInfo.DuePayOutInterest ?? 0); //GetTotalWithDrawal(); TotalWithDrawal = fundAccountInfo.TotalWithdrawDeposit ?? 0; }
protected void Page_Load(object sender, EventArgs e) { fundModel = new FundAccountBLL().GetFundAccountInfoById(WebUserAuth.UserId.Value); if (fundModel == null) { fundModel = new FundAccountInfoInfo(); } TuanDai.ZXSystem.Model.FundStatisticsInfo zxFund = new FundStatisticsBLL().GetFundStatisticsInfoByUserId(WebUserAuth.UserId.Value); if (zxFund == null) { zxFund = new FundStatisticsInfo(); } ZxDueOutAmount = (zxFund.DueOutAmount_DQ ?? 0) + (zxFund.DueOutAmount_P2P ?? 0) + (zxFund.DueOutInterest_DQ ?? 0) + (zxFund.DueOutInterest_P2P ?? 0); fundModel.DueOutPAndI = fundModel.DueOutPAndI - (zxFund.DueOutAmount_P2P ?? 0) - (zxFund.DueOutInterest_P2P ?? 0); if (fundModel.DueOutPAndI < 0) { fundModel.DueOutPAndI = 0; } }