private void addRecord() { form.getGlobalContext().OCRR.setCurrentInvestigation(null); if (form.cmbCategory().getValue() == null) { engine.showMessage("Please select a category !"); return; } clearDetails(); form.getLocalContext().setSelectedInvestigation(new InvestigationVo()); updateControlsState(MODE_EDIT_DETAIL_RECORD); updateControlsState(); loadStatusCombos(MODE_EDIT_DETAIL_RECORD); clearVisibleTabs(); //WDEV-16425 // default parent colour and status form.lyrInvestigations().tabGeneralDet().cmbTestColor().setValue(form.cmbColor().getValue()); form.lyrInvestigations().tabGeneralDet().cmbProviderService().clear(); if (form.cmbStatus().getValue() != null && !form.cmbStatus().getValue().equals(PreActiveActiveInactiveStatus.INACTIVE)) form.lyrInvestigations().tabGeneralDet().cmbTestStatus().setValue(form.cmbStatus().getValue()); form.lyrInvestigations().showtabGeneralDet(); }
private boolean isAnyComponentInvAdded(InvestigationIndexVo mainRecord) { if (mainRecord == null) throw new CodingRuntimeException("mainRecord is null in method isAnyComponentInvAdded"); for (int i = 0; i < mainRecord.getInvestigations().size(); i++) { InvestigationVo voInvest = mainRecord.getInvestigations().get(i); if (voInvest.getAssocInvestigationsIsNotNull() && voInvest.getAssocInvestigations().size() > 0) return true; } return false; }
public InvestigationVo getInvestigation(Integer idInvestigation) { DomainFactory factory = getDomainFactory(); return InvestigationVoAssembler.create((Investigation) factory.getDomainObject(Investigation.class, idInvestigation)); }