Java 类ims.clinical.vo.lookups.AbsentPresent 实例源码

项目:AvoinApotti    文件:Logic.java   
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
    }
}
项目:AvoinApotti    文件:Logic.java   
@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();
}
项目:openMAXIMS    文件:Logic.java   
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
    }
}
项目:openMAXIMS    文件:Logic.java   
@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();
}
项目:openMAXIMS    文件:Logic.java   
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
    }
}
项目:openMAXIMS    文件:Logic.java   
@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();
}
项目:openmaxims-linux    文件:Logic.java   
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
    }
}
项目:openmaxims-linux    文件:Logic.java   
@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();
}
项目:AvoinApotti    文件:Logic.java   
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);
}
项目:AvoinApotti    文件:Logic.java   
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);

}
项目:AvoinApotti    文件:Logic.java   
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));
}
项目:AvoinApotti    文件:Logic.java   
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();
}
项目:openMAXIMS    文件:Logic.java   
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);
}
项目:openMAXIMS    文件:Logic.java   
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);

}
项目:openMAXIMS    文件:Logic.java   
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));
}
项目:openMAXIMS    文件:Logic.java   
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();
}
项目:openMAXIMS    文件:Logic.java   
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);
}
项目:openMAXIMS    文件:Logic.java   
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);

}
项目:openMAXIMS    文件:Logic.java   
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));
}
项目:openMAXIMS    文件:Logic.java   
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();
}
项目:openmaxims-linux    文件:Logic.java   
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);
}
项目:openmaxims-linux    文件:Logic.java   
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);

}
项目:openmaxims-linux    文件:Logic.java   
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));
}
项目:openmaxims-linux    文件:Logic.java   
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();
}