/// <summary> /// /// </summary> /// <param name="dto"></param> /// <returns></returns> private SrvMatchEmsRstDTO GetSrvMatchEmsParamDTO(SrvMatchEmsParamDTO dto) { //EmsMatchRstDTO r = bdSrvService.getmedSrvMatchEms(dto); IEmsManagementService service = XapServiceMgr.find <IEmsManagementService>(); FMap map = service.medSrvMatchEms(new SrvMatchEmsParamDTO[] { dto }); SrvMatchEmsRstDTO r = null; if (map != null) { r = (SrvMatchEmsRstDTO)map[dto.Id_srv]; } return(r); }
/// <summary> /// /// </summary> /// <param name="paramDto"></param> /// <returns></returns> public SrvMatchEmsRstDTO getSrvMatchEmsParamDTO(SrvMatchEmsParamDTO paramDto) { //EmsMatchRstDTO emsMatchRstDTO = sheetModel.getmedSrvMatchEms(paramDto); IEmsManagementService service = XapServiceMgr.find <IEmsManagementService>(); FMap map = service.medSrvMatchEms(new SrvMatchEmsParamDTO[] { paramDto }); SrvMatchEmsRstDTO r = null; if (map != null) { r = (SrvMatchEmsRstDTO)map[paramDto.Id_srv]; } return(r); }