private void addRow(grdDetailsRow row, ReferralsRecordingShortVo vo) { row.setColDateSent(vo.getDateSentIsNotNull() ? vo.getDateSent().toString() : ""); row.setColSpecialty(vo.getSpecialtyFunctionCodeIsNotNull() ? vo.getSpecialtyFunctionCode().getText() : ""); row.setColDiscipline(vo.getDisciplineIsNotNull() ? vo.getDiscipline().toString() : ""); row.setColStatus(vo.getReferralStatusIsNotNull() ? vo.getReferralStatus().toString() : ""); row.setColReferralSource(vo.getReferralSourceIsNotNull() ? vo.getReferralSource().toString() : ""); row.setColReferredTo(vo.getReferralHCPIsNotNull() ? vo.getReferralHCP().toString() : ""); row.setValue(vo); }
private void addRowRecord(ReferralsRecordingShortVo record) { if(record == null) return; ReferralsRecordingVo editedRecord = form.getLocalContext().getEditedRecord(); GenForm.grdListRow row = form.grdList().getRows().newRow(record.equals(editedRecord)); row.setColDate(record.getDateSentIsNotNull() ? record.getDateSent() : null) ; row.setColReferralTypeSource(record.getReferralTypeIsNotNull() ? record.getReferralType().toString() : "" +" / " + (record.getReferralSourceIsNotNull() ? record.getReferralSource().toString() : "")); row.setColDetails(record.getDetailsIsNotNull() ? record.getDetails() : ""); row.setValue(record); }
private void updateRowRecord(ReferralsRecordingVo record) { if (record == null) return; for (int j = 0; j < form.grdList().getRows().size(); j++) { ReferralsRecordingShortVo existingRecord = form.grdList().getRows().get(j).getValue(); if (existingRecord != null && existingRecord.equals(record)) { updateRowRecord(form.grdList().getRows().get(j), record); break; } } if (form.grdList().getSelectedRowIndex() >=0) { if (form.getLocalContext().getEditedRecordIsNotNull()) { if (form.getLocalContext().getEditedRecord().getSuppliedReferralProfessionalIsNotNull()) { form.ctnDetails().chkSupplyHcp().setValue(true); showSupplyHcp(true); } } } }
private ReferralsRecordingVo getAndDisplayRecord(ReferralsRecordingShortVo refRecord) { clear(); if(refRecord == null) return null; ReferralsRecordingVo record = domain.get(refRecord); form.getLocalContext().setEditedRecord(record); populateScreenFromData(record); return record; }
public ReferralsRecordingShortVo getReferralsRecording(ReferralsRecordingRefVo voRef) { if(voRef == null || voRef.getID_ReferralsRecording() == null) { throw new DomainRuntimeException("Invalid record"); } DomainFactory factory = getDomainFactory(); ReferralsRecording domainRecord = (ReferralsRecording)factory. getDomainObject(ReferralsRecording.class, voRef.getID_ReferralsRecording().intValue()); return ReferralsRecordingShortVoAssembler.create(domainRecord); }