private PatientInvasiveDeviceVo getAndDisplayRecordDevice(PatientInvasiveDeviceRefVo refRecord) { if(refRecord == null) return null; clearTabVipInstanceControls(); clearTabDeviceInstanceControls(); form.ctnDetail().lyrDetails().showtabDevice(); form.ctnDetail().lyrDetails().tabVIP().setHeaderVisible(false); form.ctnDetail().lyrDetails().tabDevice().setHeaderVisible(true); PatientInvasiveDeviceVo record = domain.getPatientInvasiveDevice(refRecord); form.getLocalContext().setEditedDeviceRecord(record); populateScreenFromData(record); return record; }
public PatientInvasiveDeviceVo getPatientInvasiveDevice(PatientInvasiveDeviceRefVo id) { if(id == null || id.getID_PatientInvasiveDevice() == null) throw new DomainRuntimeException("Invalid record"); DomainFactory factory = getDomainFactory(); PatientInvasiveDevice domainRecord = (PatientInvasiveDevice)factory.getDomainObject(PatientInvasiveDevice.class, id.getID_PatientInvasiveDevice().intValue()); return PatientInvasiveDeviceVoAssembler.create(domainRecord); }