예제 #1
0
 public ActionResult Apply(入库申请用户 model)
 {
     string type = Request.Form["cator"];
     switch(type)
     {
         case "supplier": model.申请类型 = 申请类型.供应商; break;
         case "expert": model.申请类型 = 申请类型.专家; break;
     }
     if(ModelState.IsValid)
     {
         入库申请用户管理.添加入库申请用户(model);
     }
     else
     {
         if (type == "supplier")
         {
             return Content("<script>alert('请认真填写联系方式!');window.location='/WeChat/GysApply';</script>");
         }
         else
         {
             return Content("<script>alert('请认真填写联系方式!');window.location='/WeChat/ExpertApply';</script>");
         }
     }
     if (type == "supplier")
     {
         return Content("<script>alert('您已成功提交了您的联系方式,稍后我们会和您联系');window.location='/WeChat/GysApply';</script>");
     }
     else
     {
         return Content("<script>alert('您已成功提交了您的联系方式,稍后我们会和您联系');window.location='/WeChat/ExpertApply';</script>");
     }
 }
예제 #2
0
 public ActionResult GysApply()
 {
     入库申请用户 model = new 入库申请用户();
     return View(model);
 }