Example #1
0
        public ActionResult AffiliApply()
        {
            Affiliate af = new Affiliate();
            Pan.Model.Affiliate model = new Pan.Model.Affiliate();
            model.mobile_num = Request.Form["shouji"];
            model.enterprise_type = Request.Form["txt_type"];
            model.enterprise = Request.Form["txt_corp"];
            model.time = DateTime.Now.ToString();
            model.person = Request.Form["txt_name"];
            model.person_post = Request.Form["txt_office"];
            af.Add(model);

            loan.Models.common.MailSender ms = new Models.common.MailSender();
            StringBuilder body = new StringBuilder();
            body.Append("<div>企业类型:");
            body.Append(model.enterprise_type);
            body.Append("</div>");
            body.Append("<div>企业名称:");
            body.Append(model.enterprise);
            body.Append("</div>");
            body.Append("<div>联系人:");
            body.Append(model.person);
            body.Append("</div>");
            body.Append("<div>联系人职务:");
            body.Append(model.person_post);
            body.Append("</div>");
            body.Append("<div>手机号码:");
            body.Append(model.mobile_num);
            body.Append("</div>");

            body.Append("<div>申请日期:");
            body.Append(model.time);
            body.Append("</div>");

            ms.send("加盟申请", body.ToString());

            return Content("<script>alert('申请成功,我们的工作人员会尽快跟您联系。');window.location='/Partner.html';</script>");
        }
Example #2
0
        public ActionResult CreditApply()
        {
            Credit c = new Credit();
            Pan.Model.Credit credit = new Pan.Model.Credit();
            credit.mobile_num = Request.Form["shouji"];
            credit.name = Request.Form["chengwei"];
            credit.sex = Request.Form["gender"];
            credit.time = DateTime.Now.ToString();
            credit.limit_date = Request.Form["qixian"];
            credit.collateral = Request.Form["diyawu"];
            credit.i_num = int.Parse(Request.Form["amount"]);
            c.Add(credit);
            loan.Models.common.MailSender ms = new Models.common.MailSender();
            StringBuilder body = new StringBuilder();
            body.Append("<div>姓名:");
            body.Append(Request.Form["chengwei"]);
            body.Append("</div>");
            body.Append("<div>性别:");
            body.Append(Request.Form["gender"]);
            body.Append("</div>");
            body.Append("<div>联系方式:");
            body.Append(Request.Form["shouji"]);
            body.Append("</div>");
            body.Append("<div>抵押物:");
            body.Append(Request.Form["diyawu"]);
            body.Append("</div>");
            body.Append("<div>贷款金额:");
            body.Append(Request.Form["amount"]);
            body.Append("</div>");
            body.Append("<div>贷款期限:");
            body.Append(Request.Form["qixian"]);
            body.Append("</div>");
            body.Append("<div>申请日期:");
            body.Append(credit.time);
            body.Append("</div>");

            ms.send("贷款申请", body.ToString());
            return Content("<script>alert('申请成功,我们的工作人员会尽快跟您联系。');window.location='/Jikedai.html';</script>");
        }
Example #3
0
        public ActionResult InvesApply()
        {
            Investment i = new Investment();
            Pan.Model.Investment inves = new Pan.Model.Investment();
            inves.mobile_num = Request.Form["shouji"];
            inves.name = Request.Form["chengwei"];
            inves.sex = Request.Form["gender"];
            inves.time = DateTime.Now.ToString();
            inves.limit_date = Request.Form["qixian"];
            inves.i_num = int.Parse(Request.Form["amount"]);
            i.Add(inves);
            loan.Models.common.MailSender ms = new Models.common.MailSender();
            StringBuilder body = new StringBuilder();
            body.Append("<div>姓名:");
            body.Append(Request.Form["chengwei"]);
            body.Append("</div>");
            body.Append("<div>性别:");
            body.Append(Request.Form["gender"]);
            body.Append("</div>");
            body.Append("<div>联系方式:");
            body.Append(Request.Form["shouji"]);
            body.Append("</div>");
            body.Append("<div>贷款金额:");
            body.Append(Request.Form["amount"]);
            body.Append("</div>");
            body.Append("<div>贷款期限:");
            body.Append(Request.Form["qixian"]);
            body.Append("</div>");
            body.Append("<div>申请日期:");
            body.Append(inves.time);
            body.Append("</div>");

            ms.send("理财申请", body.ToString());
            return Content("<script>alert('申请成功,我们的工作人员会尽快跟您联系。');window.location='/Zhiyingbao.html';</script>");
        }
Example #4
0
        public ActionResult FBApply()
        {
            Feedback fb = new Feedback();
            Pan.Model.Feedback model = new Pan.Model.Feedback();
            model.mobile_num = Request.Form["shouji"];
            model.name = Request.Form["chengwei"];
            model.sex = Request.Form["gender"];
            model.time = DateTime.Now.ToString();
            model.content = Request.Form["liuyan"];
            fb.Add(model);
            loan.Models.common.MailSender ms = new Models.common.MailSender();
            StringBuilder body = new StringBuilder();
            body.Append("<div>姓名:");
            body.Append(model.name);
            body.Append("</div>");
            body.Append("<div>性别:");
            body.Append(model.sex);
            body.Append("</div>");
            body.Append("<div>联系方式:");
            body.Append(model.mobile_num);
            body.Append("</div>");
            body.Append("<div>留言内容:");
            body.Append(model.content);
            body.Append("</div>");

            body.Append("<div>留言日期:");
            body.Append(model.time);
            body.Append("</div>");

            ms.send("留言", body.ToString());

            return Content("<script>alert('留言成功,我们的工作人员会尽快跟您联系。');window.location='/FeedBack.html';</script>");
        }