private void initializeNoneAtPresent() { PatientNoSupportNetworkServicesInfoVo voPatientNoSupportNetworkServicesInfo = domain.getPatientNoSupportNetworkServicesInfo(form.getGlobalContext().Core.getPatientShort()); PatientNoSupportNetworkStatusInfoVo voPatientNoSupportNetworkStatusInfo = domain.getPatientNoSupportNetworkStatusInfo(form.getGlobalContext().Core.getPatientShort()); form.getLocalContext().setPatientNoSupportNetworkServicesInfo(voPatientNoSupportNetworkServicesInfo); form.getLocalContext().setPatientNoSupportNetworkStatusInfo(voPatientNoSupportNetworkStatusInfo); if(voPatientNoSupportNetworkServicesInfo != null && voPatientNoSupportNetworkServicesInfo.getSupportNetworkServiceStatusIsNotNull() && voPatientNoSupportNetworkServicesInfo.getSupportNetworkServiceStatus().equals(PatientSupportNetworkStatus.NONEATPRESENT)) { form.lyrProServices().tabServices().lblNoneAtPresentSer().setVisible(true); form.lyrProServices().tabServices().lblNoneAtPresentSer().setTooltip(voPatientNoSupportNetworkServicesInfo.getAuthoringInformationIsNotNull()? voPatientNoSupportNetworkServicesInfo.getAuthoringInformation().toString("<br>") : ""); } else { form.lyrProServices().tabProfessional().lblNoneAtPresentPro().setVisible(false); form.lyrProServices().tabServices().lblNoneAtPresentSer().setVisible(false); } if (voPatientNoSupportNetworkStatusInfo != null && voPatientNoSupportNetworkStatusInfo.getSupportNetworkStatusIsNotNull() && voPatientNoSupportNetworkStatusInfo.getSupportNetworkStatus().equals(PatientSupportNetworkStatus.NONEATPRESENT)) { form.lyrProServices().tabProfessional().lblNoneAtPresentPro().setVisible(true); form.lyrProServices().tabProfessional().lblNoneAtPresentPro().setTooltip(voPatientNoSupportNetworkStatusInfo.getAuthoringInformationIsNotNull() ? voPatientNoSupportNetworkStatusInfo.getAuthoringInformation().toString("<br>") : ""); } else { form.lyrProServices().tabProfessional().lblNoneAtPresentPro().setVisible(false); form.lyrProServices().tabServices().lblNoneAtPresentSer().setVisible(false); } }
public PatientNoSupportNetworkStatusInfoVo savePatientNoSupportNetworkStatusInfo(PatientNoSupportNetworkStatusInfoVo voPatientNoSupportNetworkStatusInfo) throws DomainInterfaceException, StaleObjectException, UniqueKeyViolationException { DomainFactory factory = getDomainFactory(); PatientNoSupportNetworkStatusInfo doPatientNoSupportNetworkStatusInfo = PatientNoSupportNetworkStatusInfoVoAssembler.extractPatientNoSupportNetworkStatusInfo(factory, voPatientNoSupportNetworkStatusInfo); factory.save(doPatientNoSupportNetworkStatusInfo); return (PatientNoSupportNetworkStatusInfoVoAssembler.create(doPatientNoSupportNetworkStatusInfo)); }
private void setProfessionalNoneAtPresent() { PatientNoSupportNetworkStatusInfoVo voPatientNoSupportNetworkStatusInfo = domain.getPatientNoSupportNetworkStatusInfo(form.getLocalContext().getPatientRef()); form.getLocalContext().setPatientNoSupportNetworkStatusInfo(voPatientNoSupportNetworkStatusInfo); if(voPatientNoSupportNetworkStatusInfo!=null && (voPatientNoSupportNetworkStatusInfo.getSupportNetworkStatusIsNotNull() && voPatientNoSupportNetworkStatusInfo.getSupportNetworkStatus().equals(PatientSupportNetworkStatus.NONEATPRESENT))) form.lyrSupportServices().tabPageProf().lblNoneAtPresentPro().setVisible(true); else form.lyrSupportServices().tabPageProf().lblNoneAtPresentPro().setVisible(false); }
public PatientNoSupportNetworkStatusInfoVo savePatientNoSupportNetworkStatusInfo(PatientNoSupportNetworkStatusInfoVo voPatientNoSupportNetworkStatusInfo) throws DomainInterfaceException, StaleObjectException { DomainFactory factory = getDomainFactory(); PatientNoSupportNetworkStatusInfo doPatientNoSupportNetworkStatusInfo = PatientNoSupportNetworkStatusInfoVoAssembler.extractPatientNoSupportNetworkStatusInfo(factory, voPatientNoSupportNetworkStatusInfo); factory.save(doPatientNoSupportNetworkStatusInfo); return (PatientNoSupportNetworkStatusInfoVoAssembler.create(doPatientNoSupportNetworkStatusInfo)); }
public PatientNoSupportNetworkStatusInfoVo getPatientNoSupportNetworkStatusInfo(PatientRefVo patientRefVo) { DomainFactory factory = getDomainFactory(); PatientNoSupportNetworkStatusInfo patientNoSupportNetworkStatusInfo = PatientNoSupportNetworkStatusInfo.getPatientNoSupportNetworkStatusInfoFromPatient(factory, patientRefVo.getID_Patient()); return PatientNoSupportNetworkStatusInfoVoAssembler.create(patientNoSupportNetworkStatusInfo); }