Ejemplo n.º 1
0
 public ActionResult AddEmployeeInfoNew(EditEmployeeInfoModel model)
 {
     if (ModelState.IsValid)
     {
         var result = EmployeeInfoBLL.AddEmployeeInfoNew(model, base.CurrentUserID);
         base.DoLog(OperationTypeEnum.Add, result, "EmployeeName:" + model.EmployeeName);
         return(Json(result));
     }
     else
     {
         // 证件类型
         model.CertificateTypeSelectList = new SelectList(EmployeeInfoBLL.GetCertificateTypes(), "CertificateTypeID", "CertificateTypeName");
         return(PartialView("_AddEmployeeInfoNew", model));
     }
 }