/**
  * 根据ID获得 IArchivesMedicalrecord
  *
  * @param context
  * @param request
  * @param pk
  */
 public ResultBean getIArchivesMedicalrecordByPk(
     ServletContext context, HttpServletRequest request, String pk) {
   IArchivesMedicalrecord iArchivesMedicalrecord =
       imedicalrecordService.getIArchivesMedicalrecordByPk(pk);
   logger.info("根据ID获得 IArchivesMedicalrecord...{}", iArchivesMedicalrecord.getPrimaryKey());
   return WebUtilWork.WebObjectPack(iArchivesMedicalrecord);
 }
 /**
  * 保存 IArchivesMedicalrecord
  *
  * @param context
  * @param request
  * @param iArchivesMedicalrecord
  */
 public ResultBean saveIArchivesMedicalrecord(
     ServletContext context,
     HttpServletRequest request,
     IArchivesMedicalrecord iArchivesMedicalrecord) {
   String empid = UtilTool.getEmployeeId(request);
   iArchivesMedicalrecord.initSave(empid);
   iArchivesMedicalrecord.setPrimaryKey(UtilPrimaryKey.getPrimaryKey());
   imedicalrecordService.saveIArchivesMedicalrecord(iArchivesMedicalrecord);
   logger.info("保存 IArchivesMedicalrecord...");
   return WebUtilWork.WebResultPack(null);
 }
 /**
  * 更新 IArchivesMedicalrecord
  *
  * @param context
  * @param request
  * @param iArchivesMedicalrecord
  */
 public ResultBean updateIArchivesMedicalrecord(
     ServletContext context,
     HttpServletRequest request,
     IArchivesMedicalrecord iArchivesMedicalrecord) {
   IArchivesMedicalrecord tmp =
       imedicalrecordService.getIArchivesMedicalrecordByPk(iArchivesMedicalrecord.getPrimaryKey());
   String empid = UtilTool.getEmployeeId(request);
   iArchivesMedicalrecord.initUpdate(empid);
   imedicalrecordService.saveIArchivesMedicalrecord(iArchivesMedicalrecord);
   logger.info("更新 IArchivesMedicalrecord...");
   return WebUtilWork.WebResultPack(null);
 }