public void onSelected(String string, Object o) { // TODO select entries in tables if (contentConcepts1 != null && contentConcepts2 != null) { try { logger.debug("select entries in tables, " + o.getClass().getCanonicalName()); CodeSystemEntityVersionAssociation cseva = (CodeSystemEntityVersionAssociation) o; String code1 = cseva .getCodeSystemEntityVersionByCodeSystemEntityVersionId1() .getCodeSystemConcepts() .get(0) .getCode(); String code2 = cseva .getCodeSystemEntityVersionByCodeSystemEntityVersionId2() .getCodeSystemConcepts() .get(0) .getCode(); Tree tree1 = contentConcepts1.getConcepts().getTreeConcepts(); Tree tree2 = contentConcepts2.getConcepts().getTreeConcepts(); selectCodeInTree(tree1, null, code1); selectCodeInTree(tree2, null, code2); } catch (Exception ex) { LoggingOutput.outputException(ex, this); Messagebox.show(ex.getLocalizedMessage()); } } else logger.debug("contentConcepts is null"); }
public void newAssociationConcept() { logger.debug("createConcept()"); Map<String, Object> data = new HashMap<String, Object>(); data.put("EditMode", PopupAssociationConcept.EDITMODES.CREATE); /*if (codeSystemVersionId > 0) data.put("ContentMode", PopupConcept.CONTENTMODE.CODESYSTEM); else if (valueSetVersionId > 0) data.put("ContentMode", PopupConcept.CONTENTMODE.VALUESET);*/ // data.put("CodeSystemId", codeSystemId); // data.put("ValueSetId", valueSetId); try { Window w = (Window) Executions.getCurrent() .createComponents("/gui/main/modules/PopupAssociationConcept.zul", null, data); ((PopupAssociationConcept) w).setUpdateListener(this); w.doModal(); } catch (Exception e) { LoggingOutput.outputException(e, this); } }