protected bool GetData() { ProjectBLL projbll = new ProjectBLL(); xmbModel = projbll.GetProjectXMBInfo(projectId.Value); if (xmbModel == null) { xmbModel = new Project_XMB_Info(); } return(true); }
protected bool GetData() { UserBLL userbll = new UserBLL(); //获取项目信息 model = bll.GetProjectDetailInfo(projectId.Value); if (model == null) { Response.Redirect(GlobalUtils.WebURL + "/Member/my_account.aspx"); return(false); } ProjectXMBBLL xbmbll = new ProjectXMBBLL(); if (this.model.Type == 23) { rateRangeList = xbmbll.GetXMBRateContrastInfo(projectId.Value); } this.SubscribeUserCount = TuanDai.WXApiWeb.Common.WXInvest.WXGetSubscribeUserCount(this.projectId.Value); borrowerUserInfo = userbll.GetUserBasicInfoModelById(model.UserId.Value); #region 获取担保公司 UserEnterpriseInfo userEnterprise = GetBorrowerGuaranteeEnterprise(this.model.UserId.Value, model.AddDate.Value); if (userEnterprise != null) { string sql = "select NickName from UserBasicInfo with(nolock) where id=@enterpriseuserid"; DynamicParameters args = new DynamicParameters(); args.Add("@enterpriseuserid", userEnterprise.UserId); this.EnterpriseName = PublicConn.QuerySingle <string>(sql, ref args); } else { if (model.Guarantors != null && model.Guarantors != "") { this.EnterpriseName = BusinessDll.business.GetAssureNameById(int.Parse(model.Guarantors.ToString())); } } #endregion ProjectBLL projbll = new ProjectBLL(); xmbModel = projbll.GetProjectXMBInfo(projectId.Value); if (xmbModel == null) { xmbModel = new Project_XMB_Info(); } allMonthBadrate = calcrate(model.TotalSumShares ?? 0, model.badShares ?? 0); IsSMBGuQuan = xmbModel.Type == 1; //modify by shellben 2015-12-29 处理元旦活动加息,以下是规则 //2015-12-29 00:00至2016-1-25 24:00期间加息标的仅含“小微企业”“微团贷”“项目宝B” //加息幅度根据期限适配: //1-5个月:+1% //6-11个月:+1.5% //12个月及以上:+2% if (DateTime.Now >= DateTime.Parse("2015/12/29 00:00:00") && DateTime.Now < DateTime.Parse("2016/1/26 00:00:00")) { if (new int[] { 1, 3, 9, 10, 11, 22 }.Contains(model.Type ?? 0) && (model.TuandaiRate ?? 0) <= 0) { if (model.Deadline <= 5) { model.TuandaiRate = 1; } else if (model.Deadline >= 12) { model.TuandaiRate = 2; } else { model.TuandaiRate = 1.5; } } } return(true); }