private void GetData() { Guid? userId = WebUserAuth.UserId; WeOrderBLL webll = new WeOrderBLL(); model = webll.GetMyInvestWeFQBBaseDetail(userId.Value, weOrderId.Value); feeInfo = webll.GetWeFqbRansomManageFee(weOrderId.Value); if (feeInfo == null) { feeInfo = new WeRansomFeeInfo(); } HoldDayStr = feeInfo.HoldDayStr; }
protected void Page_Load(object sender, EventArgs e) { weOrderId = WEBRequest.GetGuid("weorderid"); tab = WEBRequest.GetQueryString("tab"); if (!IsPostBack) { SetModel = new WebSettingBLL().GetWebSettingInfo("5E08DFE3-6CED-4E71-8CF9-2A2E3BAC9036"); if (weOrderId == null || weOrderId == Guid.Empty) { Response.Redirect("/Member/my_account.aspx"); return; } Guid? userId = WebUserAuth.UserId; WeOrderBLL webll = new WeOrderBLL(); model = webll.GetMyInvestWeFQBBaseDetail(userId.Value, weOrderId.Value); GetIsWeZnq(); } }
private void GetData() { Guid? userId = WebUserAuth.UserId; WeOrderBLL webll = new WeOrderBLL(); model = webll.GetMyInvestWeFQBBaseDetail(userId.Value, weOrderId.Value); feeInfo = new WeFTBRansomInfo(); feeInfo.result = 0; var param = new Dapper.DynamicParameters(); param.Add("@OrderId", weOrderId); param.Add("@ApplyAmount", model.AmountInvestment); param.Add("@ExitRate", 0, System.Data.DbType.Decimal, System.Data.ParameterDirection.Output, 18, null, 2); param.Add("@RewardRate", 0, System.Data.DbType.Decimal, System.Data.ParameterDirection.Output, 18, null, 2); param.Add("@HoldMonth", 0, System.Data.DbType.Int32, System.Data.ParameterDirection.Output); param.Add("@HoldDay", 0, System.Data.DbType.Int32, System.Data.ParameterDirection.Output); param.Add("@DueInAmount", 0, System.Data.DbType.Decimal, System.Data.ParameterDirection.Output, 18, null, 2); param.Add("@OutStatus", 0, System.Data.DbType.Int32, System.Data.ParameterDirection.Output); param.Add("@ErrorMsg", 0, System.Data.DbType.String, System.Data.ParameterDirection.Output, 100); int outStatus = 0; TuanDai.DB.TuanDaiDB.Execute(TdConfig.ApplicationName, TdConfig.DBSubscribeWrite, "P_WeFTBAdvanceManageFee", ref param, CommandType.StoredProcedure); outStatus = param.Get <int>("@OutStatus"); if (outStatus == 1) { feeInfo.result = 1; feeInfo.ExitRate = param.Get <decimal?>("@ExitRate") ?? 0; feeInfo.RewardRate = param.Get <decimal?>("@RewardRate") ?? 0; feeInfo.HoldMonth = param.Get <int?>("@HoldMonth") ?? 0; feeInfo.HoldDay = param.Get <int?>("@HoldDay") ?? 0; feeInfo.HoldDayStr = string.Format("{0}月{1}天", feeInfo.HoldMonth, feeInfo.HoldDay); feeInfo.DueInAmount = param.Get <decimal?>("@DueInAmount") ?? 0; feeInfo.msg = param.Get <string>("@ErrorMsg").ToText(); feeInfo.ApplyAmount = model.AmountInvestment; } else { feeInfo.result = outStatus; feeInfo.msg = param.Get <string>("@ErrorMsg").ToText(); } }
protected void Page_Load(object sender, EventArgs e) { weOrderId = WEBRequest.GetGuid("weorderid"); tab = WEBRequest.GetQueryString("tab"); if (!IsPostBack) { if (weOrderId == null || weOrderId == Guid.Empty) { Response.Redirect("/Member/my_account.aspx"); return; } Guid? userId = WebUserAuth.UserId; WeOrderBLL webll = new WeOrderBLL(); model = webll.GetMyInvestWeFQBBaseDetail(userId.Value, weOrderId.Value); RewardRate = model.TuandaiRedRate; RewardInterest = GetInterest(model.AmountInvestment, model.Deadline, model.DeadType, RewardRate); DueInterestAmount = model.DueInterestAmount + RewardInterest; } }