private void open(TTAMedicationAndPharmacyRefVo excludeCurrent) { TTAMedicationAndPharmacyForTTAHistoryVoCollection ttas = domain.listTTAforPatient(form.getGlobalContext().Core.getPatientShort(), excludeCurrent); if (ttas == null || ttas.size() == 0) { engine.showMessage("No previous TTA records found."); return; } populateGrid(ttas); }
private void populateGrid(TTAMedicationAndPharmacyForTTAHistoryVoCollection ttas) { form.dyngrdTTA().getRows().clear(); if (ttas == null || ttas.size() == 0) return; for (int i = 0; i < ttas.size(); i++) { TTAMedicationAndPharmacyForTTAHistoryVo tta = ttas.get(i); if (tta == null) continue; addParentRow(tta); } }