Beispiel #1
0
        protected int InterestModel         = 1;//起息方式
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("/Member/Repayment/my_return_list.aspx?typeTab=Disperse&tab=CompletedAndFlow", true);
            this.projectId = WEBRequest.GetGuid("projectid");
            if (!IsPostBack)
            {
                bll = new ProjectBLL();
                if (this.projectId != Guid.Empty)
                {
                    if (!this.GetData())
                    {
                        return;
                    }
                    //信用档案

                    imageList = CommUtils.GetProjectImages(this.projectId.Value);
                }
                else
                {
                    Response.Redirect(GlobalUtils.WebURL + "/Member/my_account.aspx");
                }
            }
        }
Beispiel #2
0
        protected int InterestModel = 1;                          //起息方式

        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("/Member/Repayment/my_return_list.aspx?typeTab=Disperse&tab=CompletedAndFlow", true);
            this.projectId = WEBRequest.GetGuid("projectid");
            Guid?userId = WebUserAuth.UserId;

            IsLogin = userId != null && userId != Guid.Empty;

            if (!IsPostBack)
            {
                bll = new ProjectBLL();
                if (this.projectId != Guid.Empty)
                {
                    if (!this.GetData())
                    {
                        return;
                    }
                }
                else
                {
                    Response.Redirect(GlobalUtils.WebURL + "/Member/my_account.aspx");
                }
            }
        }
Beispiel #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Guid           userId = WebUserAuth.UserId.Value;
            UserBLL        bll    = new UserBLL();
            UserSettingBLL uBll   = new UserSettingBLL();

            SetModel = new WebSettingBLL().GetWebSettingInfo("5E08DFE3-6CED-4E71-8CF9-2A2E3BAC9036");
            if (userId != null && userId != Guid.Empty)
            {
                var rInfo = new UserRiskEvaluationBLL().GetAssassTimeThisYear(userId, TdConfig.ApplicationName);
                if (rInfo == null)
                {
                    Response.Redirect("/Member/safety/pre_invest.aspx", true);
                }

                AviMoney    = bll.GetUserAviMoney(userId);
                userModel   = bll.GetUserBasicInfoModelById(userId);
                userSetting = uBll.GetUserSettingInfo(userId);
                if (userSetting == null)
                {
                    userSetting = new UserSettingInfo();
                    userSetting.IsTenderNeedPayPassword = false;
                }

                //假如数据还不同步过来,设置未身份证验证
                if (userModel == null)
                {
                    userModel = new UserBasicInfoInfo();
                    userModel.IsValidateIdentity = false;
                    AviMoney = 0;
                }
            }
            else
            {
                Response.Redirect("/user/Login.aspx?ReturnUrl=" + Request.RawUrl, true);
            }

            Tool.CookieHelper.WriteCookie("InvestUrl", HttpContext.Current.Request.RawUrl, 30);
            var projectIdStr = Tool.WEBRequest.GetQueryString("projectid");// Request.QueryString["projectid"];

            if (!string.IsNullOrEmpty(projectIdStr))
            {
                projectId = Guid.Parse(projectIdStr);
                //model = new WeProductBLL().GetWeProductInfo(projectId);
                string isOpenMobileCode = "false";
                var    webSet           = new WebSettingBLL().GetWebSettingInfo("C7FC6726-A36D-4035-A36C-957D43F5EF96");
                if (webSet == null)
                {
                    webSet = new WebSettingInfo();
                }
                if (webSet.Param1Value == "1")
                {
                    isOpenMobileCode = "true";
                }
                if (IsZQZR(projectId) && !TuanDai.PortalSystem.Redis.mRedis.GetZqzrInvestCodePass(projectId, userId) && isOpenMobileCode == "true")
                {
                    IsShowMobileCode = true;
                }
            }
            else
            {
                Response.Redirect("/pages/invest/invest_list.aspx");
            }

            investType = Tool.WEBRequest.GetQueryString("investType");    //Request.QueryString["investType"];

            var payMoneyStr = Tool.WEBRequest.GetQueryString("payMoney"); //Request.QueryString["payMoney"];

            if (!string.IsNullOrEmpty(payMoneyStr) && payMoneyStr != "NaN")
            {
                PayMoney = decimal.Parse(payMoneyStr);
            }
            else
            {
                Response.Redirect("/pages/invest/invest_list.aspx");
            }

            ProfitMoney = Tool.WEBRequest.GetQueryString("profitMoney"); //Request.QueryString["profitMoney"];

            var unitStr = Tool.WEBRequest.GetQueryString("unit");        //Request.QueryString["unit"];

            if (!string.IsNullOrEmpty(unitStr))
            {
                unit = int.Parse(unitStr);
            }
            else
            {
                Response.Redirect("/pages/invest/invest_list.aspx");
            }

            var repeatInvestTypeStr = Tool.WEBRequest.GetQueryString("repeatInvestType"); //Request.QueryString["repeatInvestType"];

            if (!string.IsNullOrEmpty(repeatInvestTypeStr))
            {
                RepeatInvestType = int.Parse(repeatInvestTypeStr);
            }

            if (Tool.WEBRequest.GetQueryString("PrizeId") != "")
            {
                PrizeId = WEBRequest.GetGuid("PrizeId");
            }
            PrizeName = WEBRequest.GetQueryString("PrizeName");
        }
Beispiel #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!GlobalUtils.IsShowZxToInvestor(UserId) && new GlobalUtils().GetNewVipUserInfo(UserId).Level < 3)
            {
                Response.Redirect("/Member/my_account.aspx");
                return;
            }

            SubscribeId = WEBRequest.GetGuid("SubscribeId", "");
            ProjectId   = WEBRequest.GetGuid("ProjectId", "");
            tab         = WEBRequest.GetQueryString("tab");
            if (!IsPostBack)
            {
                string postUrl = GlobalUtils.SubApiUrl;
                if (GlobalUtils.IsOpenSubscribeApi)
                {
                    //从聚合拿数据
                    string err      = "";
                    string response = TuanDai.HttpClient.HttpUtil.HttpGet(TdConfig.ApplicationName,
                                                                          postUrl + "/app/APPGetProjecInfo?id=" + ProjectId, "", out err, null, 3);
                    if (!string.IsNullOrEmpty(response) && string.IsNullOrEmpty(err))
                    {
                        ResponsePublicModel <List <ProjectDetailInfo> > pmodel =
                            JsonConvert.DeserializeObject <ResponsePublicModel <List <ProjectDetailInfo> > >(response);
                        if (pmodel != null && pmodel.data != null)
                        {
                            projectInfo = pmodel.data.FirstOrDefault();
                        }
                    }
                    else
                    {
                        TuanDai.LogSystem.LogClient.LogClients.ErrorLog(TdConfig.ApplicationName,
                                                                        "/app/APPGetProjecInfo", "ProjectId:" + ProjectId, err);
                    }
                    if (projectInfo == null)
                    {
                        //如果项目表信息为空,去智享库查一遍
                        projectInfo = JsonConvert.DeserializeObject <ProjectDetailInfo>(JsonConvert.SerializeObject(new ZXProjectBLL().GetProjectDetailInfo(ProjectId)));
                    }
                }
                else
                {
                    projectInfo = projectBll.GetProjectDetailInfo(ProjectId);
                }

                if (projectInfo == null)
                {
                    projectInfo = new ProjectDetailInfo();
                }
                if (projectInfo.Type == 18)
                {
                    //私募宝
                    ProjectSMBLL projectSmbll = new ProjectSMBLL();
                    projectSmb   = projectSmbll.GetProjectSMModel(projectInfo.Id);
                    simubaoCurve = projectBll.GetSimubaoCurve(UserId, SubscribeId);
                }


                //从聚合拿数据
                if (GlobalUtils.IsOpenSubscribeApi)
                {
                    string err      = "";
                    string response = TuanDai.HttpClient.HttpUtil.HttpGet(TdConfig.ApplicationName,
                                                                          postUrl + "/wap/WXGetSubscribeInfo?id=" + SubscribeId + "&projectId=" + ProjectId, "", out err,
                                                                          null, 3);
                    if (!string.IsNullOrEmpty(response) && string.IsNullOrEmpty(err))
                    {
                        ResponsePublicModel <WXSubscribeInfo> pmodel =
                            JsonConvert.DeserializeObject <ResponsePublicModel <WXSubscribeInfo> >(response);
                        if (pmodel != null)
                        {
                            subscribeInfo = pmodel.data;
                        }
                    }
                    else
                    {
                        TuanDai.LogSystem.LogClient.LogClients.ErrorLog(TdConfig.ApplicationName,
                                                                        "/wap/WXGetSubscribeInfo", "ProjectId:" + ProjectId, err);
                    }
                }
                else
                {
                    subscribeInfo = projectBll.WXGetSubscribeInfo(SubscribeId);
                }


                if (subscribeInfo == null)
                {
                    Response.Redirect(GlobalUtils.MTuanDaiURL + "/Member/Repayment/my_return_list.aspx");
                    return;
                }
                TenderMode = WXConverter.GetTenderModeString(subscribeInfo.TenderMode);

                if (projectInfo.Type == 23)
                {
                    ProjectXMBBLL xmbbll = new ProjectXMBBLL();
                    if (subscribeInfo.Status.Value.ToString().IsIn("3", "4"))
                    {
                        xmbReturn     = xmbbll.GetXMBReturnDetail(subscribeInfo.SubscribeId);
                        xmbDSInterest = xmbReturn.ReturnAmount - xmbReturn.Amount;
                        xmbHoldDay    = xmbReturn.HoldDay;
                        xmbDeadRate   = xmbReturn.InterestRate;
                    }
                    else
                    {
                        Tuple <int, decimal, decimal, string> tupleObj = BusinessDll.Invest.GetXMBProjectFloatRate(ProjectId, subscribeInfo.AddDate.Value, subscribeInfo.Amount ?? 0);
                        xmbHoldDay    = tupleObj.Item1;
                        xmbDeadRate   = tupleObj.Item2;
                        xmbDSInterest = tupleObj.Item3;
                    }
                    rateRangeList = xmbbll.GetXMBRateContrastInfo(ProjectId);
                }

                Status = WXConverter.GetSubscribeStatusString(projectInfo.Type, subscribeInfo.Status, subscribeInfo.IsBorrow);
                BindList();
                //当为分期宝时
                if (projectInfo != null && (projectInfo.Type ?? 0) == 15)
                {
                    FQUserApplyInfo = projectBll.WXGetFQUserApplyInfo(ProjectId.ToString());
                }

                if (this.listtable != null && this.listtable.Any())
                {
                    lastCycleDate = this.listtable.LastOrDefault().CycDate;
                    hasBackList   = this.listtable.Where(p => p.Desc == "已回款").ToList();
                    dueBackList   = this.listtable.Where(p => p.Desc == "待回款" || p.Desc == "已逾期").ToList();
                }
            }
        }
Beispiel #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("/Member/Repayment/my_return_list.aspx?typeTab=Disperse&tab=CompletedAndFlow", true);
            this.projectId = WEBRequest.GetGuid("id");
            backUrl        = WEBRequest.GetQueryString("backurl");
            if (this.projectId != Guid.Empty)
            {
                string tdfrom     = Request.QueryString["tdfrom"];
                string DOMAINNAME = ConfigurationManager.AppSettings["CookieDomain"];
                //第三方跳投标地址记录来源信
                if (!string.IsNullOrEmpty(tdfrom))
                {
                    if (!string.IsNullOrEmpty(CookieHelper.GetCookie("tdfrom")))
                    {
                        Tool.CookieHelper.ClearCookie("tdfrom");
                    }
                    Tool.CookieHelper.WriteCookie(DOMAINNAME, "tdfrom", tdfrom, 24 * 60 * 7);//保存7天
                }
                string            url         = "";
                ProjectBLL        bll         = new ProjectBLL();
                ProjectDetailInfo projectInfo = bll.GetProjectDetailInfo(projectId.Value);
                if (projectInfo != null)
                {
                    #region
                    switch (projectInfo.Type)
                    {
                    //项目借款
                    case 1:
                    case 3:
                    {
                        url = string.Format("/pages/invest/invest_detail.aspx?projectid={0}", this.projectId);
                        break;
                    }

                    //净股
                    case 6:
                    case 7:
                    {
                        url = string.Format("/pages/invest/jing_detail.aspx?projectid={0}", this.projectId);
                        break;
                    }

                    //微团贷
                    case 9:
                    case 10:
                    case 11:
                    case 34:    //新房贷
                    case 200:
                    case 26:
                    case 40:    //一点车贷
                    {
                        url = string.Format("/pages/invest/mini_detail.aspx?projectid={0}", this.projectId);
                        break;
                    }

                    //团贷宝
                    case 5:
                    {
                        url = string.Format("/pages/invest/bao_detail.aspx?projectid={0}", this.projectId);
                        break;
                    }

                    case 12:
                    {
                        url = string.Format("/pages/invest/fangbaobao_detail.aspx?projectid={0}", this.projectId);
                        break;
                    }

                    case 15:
                    {
                        //当为分期宝时
                        WXFQUserApplyInfo FQUserApplyInfo = null;
                        if (projectInfo != null && (projectInfo.Type ?? 0) == 15)
                        {
                            FQUserApplyInfo = bll.WXGetFQUserApplyInfo(projectId.Value.ToString());
                        }

                        if (FQUserApplyInfo.OrgTypeId != null && FQUserApplyInfo.OrgTypeId != 5)
                        {
                            url = string.Format("/pages/invest/fqbao_detail.aspx?projectid={0}", this.projectId);
                        }
                        else
                        {
                            url = string.Format("/pages/invest/fqle_detail.aspx?projectid={0}", this.projectId);
                        }
                        break;
                    }

                    case 16:
                    case 17:
                    {
                        url = string.Format("/pages/invest/bond_detail.aspx?projectid={0}", this.projectId);
                        break;
                    }

                    case 18:
                    {
                        url = string.Format("/pages/invest/simubao_detail.aspx?projectid={0}", this.projectId);
                        break;
                    }

                    case 19:
                    {
                        url = string.Format("/pages/invest/gylds_detail.aspx?projectid={0}", this.projectId);
                        break;
                    }

                    case 20:     //供应链标
                    {
                        url = string.Format("/pages/invest/gyl_detail.aspx?projectid={0}", this.projectId);
                        break;
                    }

                    case 22:
                    case 23:
                    {
                        url = string.Format("/pages/invest/xmb_detail.aspx?projectid={0}", this.projectId);
                        break;
                    }

                    case 24:    //消费金融
                    case 25:    //正合小贷业务
                    case 42:
                        url = string.Format("/pages/invest/puhui_detail.aspx?projectid={0}", this.projectId);
                        break;

                    case 27:    //你我金融----话费分期
                        url = string.Format("/pages/invest/huafei_detail.aspx?projectid={0}", this.projectId);
                        break;

                    case 28:    //快来贷
                        url = string.Format("/pages/invest/kuailaidai_detail.aspx?projectid={0}", this.projectId);
                        break;

                    case 29:    //沐金农
                        url = string.Format("/pages/invest/mjn_detail.aspx?projectid={0}", this.projectId);
                        break;

                    case 30:    //极速借
                        url = string.Format("/pages/invest/jisujie_detail.aspx?projectid={0}", this.projectId);
                        break;

                    case 32:    //有信贷
                        url = string.Format("/pages/invest/youxindai_detail.aspx?projectid={0}", this.projectId);
                        break;

                    case 36:    //农饲贷
                        url = string.Format("/pages/invest/nsd_detail.aspx?projectid={0}", this.projectId);
                        break;

                    case 39:    //车全
                        url = string.Format("/pages/invest/chequan_detail.aspx?projectid={0}", this.projectId);
                        break;

                    case 41:    //二手车商
                        url = string.Format("/pages/invest/twocar_detail.aspx?projectid={0}", this.projectId);
                        break;

                    case 48:    //扶贫贷
                        url = string.Format("/pages/invest/fupin_detail.aspx?projectid={0}", this.projectId);
                        break;

                    case 31:    //拿下分期标
                    case 46:    //
                    case 45:    //
                    case 44:
                    case 43:
                    case 35:
                    case 33:
                        url = "/pages/invest/invest_list.aspx?v=20171216";
                        break;

                    default:
                        url = string.Format("/pages/invest/invest_detail.aspx?projectid={0}", this.projectId);
                        break;
                    }
                    #endregion
                }
                else
                {
                    //债权转证
                    ProjectZQZRDetailInfo model = new SubScriberansferBLL().GetSubScriberansfer(projectId.Value);
                    if (model != null)
                    {
                        url = string.Format("/pages/invest/zqzr_detail.aspx?projectid={0}", this.projectId);
                    }
                }
                if (url != "")
                {
                    url += "&backurl=" + backUrl.Replace(" ", "+");
                }
                Response.Redirect(GlobalUtils.MTuanDaiURL + url);
            }
            else
            {
                Response.Redirect(GlobalUtils.WebURL);
            }
        }
Beispiel #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Response.Redirect("/Member/Repayment/my_return_list.aspx?typeTab=Disperse&tab=CompletedAndFlow", true);
     ProjectId = WEBRequest.GetGuid("projectId");
 }
Beispiel #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Redirect("//m.tuandai.com/pages/downOpenApp.aspx", true);
            return;

            this.projectId = WEBRequest.GetGuid("id");

            if (this.projectId != Guid.Empty)
            {
                string tdfrom     = Request.QueryString["tdfrom"];
                string DOMAINNAME = ConfigurationManager.AppSettings["CookieDomain"];
                //第三方跳投标地址记录来源信
                if (!string.IsNullOrEmpty(tdfrom))
                {
                    if (!string.IsNullOrEmpty(CookieHelper.GetCookie("tdfrom")))
                    {
                        Tool.CookieHelper.ClearCookie("tdfrom");
                    }
                    Tool.CookieHelper.WriteCookie(DOMAINNAME, "tdfrom", tdfrom, 24 * 60 * 7);//保存7天
                }
                WeProductBLL bll = new WeProductBLL();
                //WeProductDetailInfo weInfo = bll.GetWeProductInfo(projectId.Value);
                WeProductDetailInfo weInfo = null;
                if (GlobalUtils.IsRedis && GlobalUtils.IsWePlanRedis)
                {
                    string err         = string.Empty;
                    var    weRedisInfo = TuanDai.RedisApi.Client.WePlanRedis.GetWePlanRedisByProductIdJson(projectId.Value,
                                                                                                           out err, TdConfig.ApplicationName);
                    if (weRedisInfo != null)
                    {
                        weInfo = JsonConvert.DeserializeObject <WeProductDetailInfo>(weRedisInfo);
                    }
                    if (weInfo == null || !string.IsNullOrEmpty(err))
                    {
                        weInfo = new WeProductBLL().GetWeProductInfo(projectId.Value);
                    }
                }
                else
                {
                    weInfo = new WeProductBLL().GetWeProductInfo(projectId.Value);
                }
                string url;
                if (weInfo != null)
                {
                    if (weInfo.IsWeFQB)
                    {  //分期宝
                        url = string.Format("/pages/invest/WE/WeFqb_detail.aspx?id={0}&typeId={1}&IsPreSell={2}", this.projectId, weInfo.ProductTypeId, weInfo.IsPreSell ? 1 : 0);
                    }
                    else if (weInfo.IsFTB) //复投宝
                    {
                        url = string.Format("/pages/invest/WE/WeFtb_detail.aspx?id={0}&typeId={1}&IsPreSell={2}", this.projectId, weInfo.ProductTypeId, weInfo.IsPreSell ? 1 : 0);
                    }
                    else
                    { //普通We计划
                        url = string.Format("/pages/invest/WE/WE_detail.aspx?id={0}&typeId={1}&IsPreSell={2}", this.projectId, weInfo.ProductTypeId, weInfo.IsPreSell ? 1 : 0);
                    }
                    Response.Redirect(url);
                }
                else
                {
                    Response.Redirect(GlobalUtils.WebURL);
                }
            }
            else
            {
                Response.Redirect(GlobalUtils.WebURL);
            }
        }