private void populatePatientProblemControls(PatientProblemVo voPatientProblem) { GenForm.grdProblemsRow row = findPatientProblemRow(voPatientProblem.getProblem()); if (row != null) { row.setcolProblems(voPatientProblem.getProblem()); if (voPatientProblem.getPrimaryForCareSpellsIsNotNull()) row.setcolIsPrimary(isPrimaryProblem(voPatientProblem.getID_PatientProblem(), voPatientProblem.getPrimaryForCareSpells())); else row.setcolIsPrimary(false); row.setcolSelect(AbsentPresent.PRESENT); row.setcolOnset(voPatientProblem.getOnset()); row.setcolNotes(voPatientProblem.getPatientProblem()); row.setValue(voPatientProblem); setGridUIForPresent(row); //WDEV-6546 } }
@Override protected void onGrdProblemsSelectionChanged() throws PresentationLogicException { grdProblemsRow row = form.grdProblems().getSelectedRow(); if (row != null && form.getMode().equals(FormMode.EDIT) && row.getcolSelect() != null) { if (row.getcolSelect().equals(AbsentPresent.PRESENT)) enableUnlinkContextMenu(true); else enableUnlinkContextMenu(false); } else enableUnlinkContextMenu(false); updateControlsState(); }
private void populatePresentPatientProblemControls(PatientPresentingProblemsVo voPatientPresentingProblems) { GenForm.grdProblemsRow row = form.grdProblems().getRows().newRow(); row.setcolProblems(voPatientPresentingProblems.getProblem()); if (voPatientPresentingProblems.getPrimaryForCareSpellsIsNotNull()) row.setcolIsPrimary(isPrimaryProblem(voPatientPresentingProblems.getID_PatientProblem(), voPatientPresentingProblems.getPrimaryForCareSpells())); else row.setcolIsPrimary(false); row.setcolSelect(AbsentPresent.PRESENT); row.setcolOnset(voPatientPresentingProblems.getOnset()); row.setcolNotes(voPatientPresentingProblems.getProblemNote());// .getPatientProblem()); row.setValue(voPatientPresentingProblems); }
private void populateAbsentPatientProblemControls(AbsentPatientPresentingProblemVo voAbsentPatientPresentingProblem) { GenForm.grdProblemsRow row = form.grdProblems().getRows().newRow(); row.setcolProblems(voAbsentPatientPresentingProblem.getProblem()); row.setcolSelect(AbsentPresent.ABSENT); row.setcolNotes(voAbsentPatientPresentingProblem.getNote()); row.setValue(voAbsentPatientPresentingProblem); }
private void updateControlsState() { for (int i = 0; i < form.grdProblems().getRows().size(); i++) { if (form.grdProblems().getRows().get(i).getcolSelect() == null) { setGridUIForNone(form.grdProblems().getRows().get(i)); } else if (form.grdProblems().getRows().get(i).getcolSelect().equals(AbsentPresent.ABSENT)) { setGridUIForAbsent(form.grdProblems().getRows().get(i)); } else { setGridUIForPresent(form.grdProblems().getRows().get(i)); } // form.grdProblems().getRows().get(i).setcolSelectReadOnly(bReadOnly); } form.customControlAuthoringInfo().setIsRequiredPropertyToControls(true); form.btnNew().setVisible(form.getMode().equals(FormMode.VIEW) && form.getLocalContext().getSelectedInstance() == null); form.btnUpdate().setVisible(form.getMode().equals(FormMode.VIEW) && form.getLocalContext().getSelectedInstance() != null); form.getContextMenus().getPresentingProblemsAddCCIfromTaxonomyItem().setEnabled(form.getMode().equals(FormMode.EDIT)); form.getContextMenus().getPresentingProblemsAddCCIfromTaxonomyItem().setVisible(form.getMode().equals(FormMode.EDIT)); form.getContextMenus().getPresentingProblemsAddCCIfromLocalSearchItem().setEnabled(form.getMode().equals(FormMode.EDIT)); form.getContextMenus().getPresentingProblemsAddCCIfromLocalSearchItem().setVisible(form.getMode().equals(FormMode.EDIT)); }
protected void ongrdProblemsGridcolSelectColumnAnswerBoxValueChanged(grdProblemsRow row) throws PresentationLogicException { if (row.getcolSelect() != null) { if (row.getcolSelect().equals(AbsentPresent.ABSENT)) { setGridUIForAbsent(row); } else if (row.getcolSelect().equals(AbsentPresent.PRESENT)) { row.setcolNotesReadOnly(false); row.setcolNotes(row.getcolProblems().getPCName()); setGridUIForPresent(row); form.getContextMenus().getPresentingProblemsAddCCIfromLocalSearchItem().setEnabled(true); form.getContextMenus().getPresentingProblemsAddCCIfromLocalSearchItem().setVisible(true); } else { row.setValue(null); form.getContextMenus().getPresentingProblemsAddCCIfromLocalSearchItem().setEnabled(false); form.getContextMenus().getPresentingProblemsAddCCIfromLocalSearchItem().setVisible(false); } } else { row.setValue(null); } updateControlsState(); }