public ActionResult EditEmployeeInfoNew(int id) { var result = EmployeeInfoBLL.GetNewEmployeeInfoByID(id); if (result.DataResult == null) { return(Content(result.Message)); } var model = result.DataResult; // 证件类型 model.CertificateTypeSelectList = new SelectList(EmployeeInfoBLL.GetCertificateTypes(), "CertificateTypeID", "CertificateTypeName"); // 获取当前员工已经被哪些车使用过 如果对应的员工类型已经关联了相关的车辆 单位信息就不能修改 List <VehicleEmployeeInfoDDLModel> list = EmployeeInfoBLL.GetEmployeeInfoUsedToVehicle(model.ID); model.OldStrucID = model.StrucID.Value; ViewBag.IsUpdateStruc = 1; if (list != null && list.Count > 0) { ViewBag.IsUpdateStruc = 0; } return(PartialView("_EditEmployeeInfoNew", result.DataResult)); }