Example #1
0
        public ActionResult Borrloans()
        {
            string        json = "";
            B_td_Myborrow b    = new B_td_Myborrow();
            M_td_Myborrow p    = new M_td_Myborrow();

            p.Username     = DNTRequest.GetString("Username");
            p.userTel      = DNTRequest.GetString("userTel");
            p.BorrPurposes = DNTRequest.GetString("BorrPurposes");
            p.CompName     = DNTRequest.GetString("CompName");
            p.Industry     = DNTRequest.GetString("Industry");
            p.RegCapital   = DNTRequest.GetString("RegCapital");
            p.TimeLimit    = int.Parse(DNTRequest.GetString("TimeLimit"));
            // p.Mortgage = int.Parse(DNTRequest.GetString("pMortgage"));
            p.FoundingTime = DateTime.Parse(DNTRequest.GetString("FoundingTime"));

            p.BorrAMT  = DNTRequest.GetString("BorrAMT");
            p.Area     = DNTRequest.GetString("pArea");
            p.BorrType = 1;

            if (b.Add(p) > 0)
            {
                json = @" {""rs""    : ""y"", ""url""      :  ""/""}";
            }
            else
            {
                json = @" {""rs""    : ""n"", ""error""      :  ""操作失败""}";
            }
            return(Content(json, "text/json"));
        }
Example #2
0
        public ActionResult PostPersonLoans()
        {
            string        json = "";
            B_td_Myborrow b    = new B_td_Myborrow();
            M_td_Myborrow p    = new M_td_Myborrow();


            p.Username     = DNTRequest.GetString("pUsername");
            p.userTel      = DNTRequest.GetString("puserTel");
            p.BorrAMT      = DNTRequest.GetString("pBorrAMT");
            p.Area         = DNTRequest.GetString("pArea");
            p.BorrPurposes = DNTRequest.GetString("pBorrPurposes");
            p.TimeLimit    = int.Parse(DNTRequest.GetString("pTimeLimit"));
            p.Mortgage     = int.Parse(DNTRequest.GetString("pMortgage"));
            p.BorrType     = 0;
            p.FoundingTime = DateTime.Now;
            if (b.Add(p) > 0)
            {
                json = @" {""rs""    : ""y"", ""url""      :  ""/""}";
            }
            else
            {
                json = @" {""rs""    : ""n"", ""error""      :  ""操作失败""}";
            }

            return(Content(json, "text/json"));
        }