Ejemplo n.º 1
0
 public ActionResult Create(T_QY_TZXQ t_qy_tzxq, FormCollection collection)
 {
     BindIndustry();
     if (ModelState.IsValid)
     {
         t_qy_tzxq.AgencyNature = collection["AgencyNature"];
         t_qy_tzxq.AttIndustry = collection["AttIndustry"];
         t_qy_tzxq.AttCorpType = collection["AttCorpType"];
         db.T_QY_TZXQ.Add(t_qy_tzxq);
         int result = db.SaveChanges();
         if (result > 0)
             return ReturnJson(true, "操作成功", "", "", true, "");
         else
             return ReturnJson(false, "操作失败", "", "", false, "");
     }
     return Json(new { });
 }
Ejemplo n.º 2
0
 public ActionResult Create(T_QY_TZXQ t_qy_tzxq, FormCollection collection)
 {
     BindIndustry();
     if (collection["VCode"] == Session["ValidateCode"].ToString())
     {
         if (ModelState.IsValid)
         {
             t_qy_tzxq.AgencyNature = collection["AgencyNature"];
             t_qy_tzxq.AttIndustry = collection["AttIndustry"];
             t_qy_tzxq.AttCorpType = collection["AttCorpType"];
             db.T_QY_TZXQ.Add(t_qy_tzxq);
             int result = db.SaveChanges();
             if (result > 0)
                 Response.Write("<script>alert('您的信息已提交成功!');</script>");
         }
     }
     else
     {
         Response.Write("<script>alert('验证码错误,请重新输入!');</script>");
     }
     return View(t_qy_tzxq);
 }
Ejemplo n.º 3
0
 //
 // GET: /CorpInvInfo/Create
 public ActionResult Create()
 {
     BindIndustry();
     var t_qy_tzxq = new T_QY_TZXQ();
     return View(t_qy_tzxq);
 }