public ActionResult AjaxCreate(ContractInfoViewModel model)
 {
     ServiceResult result = new ServiceResult();
     if (!ModelState.IsValid)
     {
         result.Message = "表单输入有误,请仔细填写表单!";
         result.AddServiceError("表单输入有误,请仔细填写表单!");
     }
     else
     {
         try
         {
             var requiremodel = ContactRequireService.Find(model.RequireID);
             var entity = new ContactRequire()
             {
                 ID = requiremodel.ID,
                 Description = requiremodel.Description,
                 AttachmentPath = requiremodel.AttachmentPath,
                 IsRoot = requiremodel.IsRoot,
                 Status = 1,
                 Name = requiremodel.Name
             };
             ContactRequireService.Update(entity);
             ContractInfoService.Create(model);
             result.Message = "处理合同请求成功!";
         }
         catch (Exception ex)
         {
             result.Message = "处理合同请求失败!";
             result.AddServiceError(Utilities.GetInnerMostException(ex));
             LogHelper.WriteLog("用户:" + CookieHelper.MemberID + "处理合同请求失败!", ex);
         }
     }
     return Json(result);
 }
 public ActionResult AjaxCreate(int RequireID, int CompanyID, int SenderID)
 {
     var model = new ContractInfoViewModel()
     {
         RequireID = RequireID,
         CompanyID = CompanyID,
         SenderID = SenderID
     };
     ViewBag.Data_ContractCateID = Utilities.GetSelectListData(ContractCateService.GetALL(),
      x => x.ID,
      x => x.CateName,
      true);
     return PartialView(model);
 }