Example #1
0
 //
 // GET: /CorpFinInfo/Create
 public ActionResult Create()
 {
     BindPark();
     BindIndustry();
     BindProperty();
     var t_qy_rzxq = new T_QY_RZXQ();
     return View(t_qy_rzxq);
 }
Example #2
0
        public ActionResult Create(T_QY_RZXQ t_qy_rzxq, FormCollection collection)
        {
            BindPark();
            BindIndustry();
            BindProperty();
            if (ModelState.IsValid)
            {
                if (t_qy_rzxq.Industry == "其他")
                    t_qy_rzxq.Industry =collection["txtIndustry"];
                t_qy_rzxq.Guarantee1 = collection["Guarantee1"] == null ? "" : "第三方保证";
                t_qy_rzxq.Guarantee2 = collection["Guarantee2"] == null ? "" : "抵押";
                t_qy_rzxq.Guarantee3 = collection["Guarantee3"] == null ? "" : "质押";
                t_qy_rzxq.Guarantee4 = collection["Guarantee4"] == null ? "" : "其他";
                t_qy_rzxq.IsValid = true;
                t_qy_rzxq.CreateTime = DateTime.Now;
                db.T_QY_RZXQ.Add(t_qy_rzxq);
                db.SaveChanges();
                Response.Write("<script>alert('您的信息已提交成功!');</script>");
            }

            return View(t_qy_rzxq);
        }
Example #3
0
 public ActionResult SimpleEdit(T_QY_RZXQ t_qy_rzxq, FormCollection collection)
 {
     BindArea(t_qy_rzxq.RegArea);
     BindIndustry(t_qy_rzxq.Industry);
     BindProperty(t_qy_rzxq.Property);
     if (ModelState.IsValid)
     {
         t_qy_rzxq.Property = collection["ddlProperty"];
         if (t_qy_rzxq.Industry == "其他")
             t_qy_rzxq.Industry = collection["txtIndustry"];
         t_qy_rzxq.Guarantee1 = collection["Guarantee1"] == null ? "" : "第三方保证";
         t_qy_rzxq.Guarantee2 = collection["Guarantee2"] == null ? "" : "抵押";
         t_qy_rzxq.Guarantee3 = collection["Guarantee3"] == null ? "" : "质押";
         t_qy_rzxq.Guarantee4 = collection["Guarantee4"] == null ? "" : "其他";
         t_qy_rzxq.UpdateTime = DateTime.Now;
         db.Entry(t_qy_rzxq).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(t_qy_rzxq);
 }
Example #4
0
 public ActionResult SimpleCreate(T_QY_RZXQ t_qy_rzxq, FormCollection collection)
 {
     BindArea();
     BindIndustry();
     BindProperty();
     if (collection["VCode"] == Session["ValidateCode"].ToString())
     {
         if (ModelState.IsValid)
         {
             t_qy_rzxq.Property = collection["ddlProperty"];
             if (t_qy_rzxq.Industry == "其他")
                 t_qy_rzxq.Industry = collection["txtIndustry"];
             t_qy_rzxq.Guarantee1 = collection["Guarantee1"] == null ? "" : "第三方保证";
             t_qy_rzxq.Guarantee2 = collection["Guarantee2"] == null ? "" : "抵押";
             t_qy_rzxq.Guarantee3 = collection["Guarantee3"] == null ? "" : "质押";
             t_qy_rzxq.Guarantee4 = collection["Guarantee4"] == null ? "" : "其他";
             t_qy_rzxq.IsValid = true;
             t_qy_rzxq.CreateTime = DateTime.Now;
             db.T_QY_RZXQ.Add(t_qy_rzxq);
             db.SaveChanges();
             Response.Write("<script>alert('您的信息已提交成功!');</script>");
         }
     }
     else
     {
         Response.Write("<script>alert('验证码错误,请重新输入!');</script>");
     }
     return View(t_qy_rzxq);
 }
Example #5
0
 public ActionResult SimpleEdit(T_QY_RZXQ t_qy_rzxq, FormCollection collection)
 {
     BindArea(t_qy_rzxq.RegArea);
     BindIndustry(t_qy_rzxq.Industry);
     BindProperty(t_qy_rzxq.Property);
     if (ModelState.IsValid)
     {
         t_qy_rzxq.Guarantee1 = collection["Guarantee1"] == null ? "" : "第三方保证";
         t_qy_rzxq.Guarantee2 = collection["Guarantee2"] == null ? "" : "抵押";
         t_qy_rzxq.Guarantee3 = collection["Guarantee3"] == null ? "" : "质押";
         t_qy_rzxq.Guarantee4 = collection["Guarantee4"] == null ? "" : "其他";
         t_qy_rzxq.UpdateTime = DateTime.Now;
         db.Entry(t_qy_rzxq).State = EntityState.Modified;
         int result = db.SaveChanges();
         if (result > 0)
             return ReturnJson(true, "操作成功", "", "", true, "");
         else
             return ReturnJson(false, "操作失败", "", "", false, "");
     }
     return View(t_qy_rzxq);
 }
Example #6
0
 public ActionResult SimpleCreate(T_QY_RZXQ t_qy_rzxq, FormCollection collection)
 {
     BindArea();
     BindIndustry();
     BindProperty();
     if (ModelState.IsValid)
     {
         t_qy_rzxq.Guarantee1 = collection["Guarantee1"] == null ? "" : "第三方保证";
         t_qy_rzxq.Guarantee2 = collection["Guarantee2"] == null ? "" : "抵押";
         t_qy_rzxq.Guarantee3 = collection["Guarantee3"] == null ? "" : "质押";
         t_qy_rzxq.Guarantee4 = collection["Guarantee4"] == null ? "" : "其他";
         t_qy_rzxq.IsValid = true;
         t_qy_rzxq.CreateTime = DateTime.Now;
         db.T_QY_RZXQ.Add(t_qy_rzxq);
         int result = db.SaveChanges();
         if (result > 0)
             return ReturnJson(true, "操作成功", "", "", true, "");
         else
             return ReturnJson(false, "操作失败", "", "", false, "");
     }
     return Json(new { });
 }
Example #7
0
 public ActionResult Edit(T_QY_RZXQ t_qy_rzxq, FormCollection collection)
 {
     BindPark(t_qy_rzxq.Park);
     if (ModelState.IsValid)
     {
         if (t_qy_rzxq.Industry == "其他")
             t_qy_rzxq.Industry = collection["txtIndustry"];
         t_qy_rzxq.Guarantee1 = collection["Guarantee1"] == null ? "" : "第三方保证";
         t_qy_rzxq.Guarantee2 = collection["Guarantee2"] == null ? "" : "抵押";
         t_qy_rzxq.Guarantee3 = collection["Guarantee3"] == null ? "" : "质押";
         t_qy_rzxq.Guarantee4 = collection["Guarantee4"] == null ? "" : "其他";
         t_qy_rzxq.UpdateTime = DateTime.Now;
         db.Entry(t_qy_rzxq).State = EntityState.Modified;
         db.SaveChanges();
         Response.Write("<script>alert('您的信息已提交成功!');</script>");
     }
     return View(t_qy_rzxq);
 }