private void open() { form.grdCategory().getRows().clear(); CategoryCollection lkpCollCategory = LookupHelper.getCategory(domain.getLookupService()); ImportResultsConfigVo voImportResultsConfig = domain.getImportResultsConfig(); form.getLocalContext().setImportResultsConfigVo(voImportResultsConfig); if(lkpCollCategory!=null) for (int i = 0 ; i < lkpCollCategory.size() ; i++) { grdCategoryRow row = form.grdCategory().getRows().newRow(); row.setColCategory(lkpCollCategory.get(i).getText()); row.setValue(lkpCollCategory.get(i)); } if(voImportResultsConfig!=null) for (int i = 0 ; i < voImportResultsConfig.getCategories().size() ; i++) { selectCategory(voImportResultsConfig.getCategories().get(i)); } }
private ImportResultsConfigVo populateInstancesData() { ImportResultsConfigVo voImportResultsConfig = new ImportResultsConfigVo(); CategoryCollection collCategory = new CategoryCollection(); for (int i = 0; i < form.grdCategory().getRows().size(); i++) { grdCategoryRow row = form.grdCategory().getRows().get(i); if(row.getColSelect()) collCategory.add(row.getValue()); } voImportResultsConfig.setCategories(collCategory); return voImportResultsConfig; }
private boolean configCategory(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv) { ImportResultsConfigVo voImportResultsConfig = form.getLocalContext().getImportResultsConfigVo(); for (int i = 0 ; voImportResultsConfig != null && voImportResultsConfig.getCategories() != null && i < voImportResultsConfig.getCategories().size() ; i++) //WDEV-18184 { if(voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndex().getCategoryIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndex().getCategory().equals(voImportResultsConfig.getCategories().get(i))) return true; } return false; }
private boolean configCategory(ReferralAppointmentDetailsOrderInvestigationVo voOrderInv) { ImportResultsConfigVo voImportResultsConfig = form.getLocalContext().getImportResultsConfigVo(); if(voImportResultsConfig!=null) for (int i = 0 ; i < voImportResultsConfig.getCategories().size() ; i++) { if(voOrderInv.getInvestigationIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndexIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndex().getCategoryIsNotNull() && voOrderInv.getInvestigation().getInvestigationIndex().getCategory().equals(voImportResultsConfig.getCategories().get(i))) return true; } return false; }
public ImportResultsConfigVo getImportResultsConfig() { ImportResultsCategory impl = (ImportResultsCategory) getDomainImpl(ImportResultsCategoryImpl.class); return impl.getImportResultsConfig(); }