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

项目:AvoinApotti    文件:Logic.java   
private void enableFollowUpInstructions(boolean clearControls)
{
    if (form.getMode().equals(FormMode.EDIT) && !(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW)))
    {
        OpdFollowUp followUp = form.lyrTabs().tabOPDNote().cmbFollowUp().getValue();
        boolean enablefollowUpControls = true;
        if (followUp != null && followUp.equals(OpdFollowUp.DISCHARGEDFROMCLINIC))
            enablefollowUpControls = false;

        form.lyrTabs().tabOPDNote().cmbReview().setEnabled(enablefollowUpControls);
        form.lyrTabs().tabOPDNote().intReview().setEnabled(enablefollowUpControls);
        form.lyrTabs().tabOPDNote().richTextInstructions().setEnabled(enablefollowUpControls);
        if (enablefollowUpControls == false && clearControls)
        {
            form.lyrTabs().tabOPDNote().cmbReview().setValue(null);
            form.lyrTabs().tabOPDNote().intReview().setValue(null);
            form.lyrTabs().tabOPDNote().richTextInstructions().setValue("");
            form.lyrTabs().tabOPDNote().cmbReview().setFocus();
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void enableFollowUpInstructions(boolean clearControls)
{
    if(form.getMode().equals(FormMode.EDIT))
    {
        OpdFollowUp followUp = form.cmbFollowUp().getValue();
        boolean enablefollowUpControls = true;
        if(followUp != null && followUp.equals(OpdFollowUp.DISCHARGEDFROMCLINIC))
            enablefollowUpControls = false;

        form.cmbReview().setEnabled(enablefollowUpControls);
        form.intReview().setEnabled(enablefollowUpControls);
        form.richTextInstructions().setEnabled(enablefollowUpControls);
        if(enablefollowUpControls == false && clearControls)
        {
            form.cmbReview().setValue(null);
            form.intReview().setValue(null);
            form.richTextInstructions().setValue("");
            form.cmbReview().setFocus();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void enableFollowUpInstructions(boolean clearControls)
{
    if (form.getMode().equals(FormMode.EDIT) && !(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW)))
    {
        OpdFollowUp followUp = form.lyrTabs().tabOPDNote().cmbFollowUp().getValue();
        boolean enablefollowUpControls = true;
        if (followUp != null && followUp.equals(OpdFollowUp.DISCHARGEDFROMCLINIC))
            enablefollowUpControls = false;

        form.lyrTabs().tabOPDNote().cmbReview().setEnabled(enablefollowUpControls);
        form.lyrTabs().tabOPDNote().intReview().setEnabled(enablefollowUpControls);
        form.lyrTabs().tabOPDNote().richTextInstructions().setEnabled(enablefollowUpControls);
        if (enablefollowUpControls == false && clearControls)
        {
            form.lyrTabs().tabOPDNote().cmbReview().setValue(null);
            form.lyrTabs().tabOPDNote().intReview().setValue(null);
            form.lyrTabs().tabOPDNote().richTextInstructions().setValue("");
            form.lyrTabs().tabOPDNote().cmbReview().setFocus();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void enableFollowUpInstructions(boolean clearControls)
{
    if(form.getMode().equals(FormMode.EDIT))
    {
        OpdFollowUp followUp = form.cmbFollowUp().getValue();
        boolean enablefollowUpControls = true;
        if(followUp != null && followUp.equals(OpdFollowUp.DISCHARGEDFROMCLINIC))
            enablefollowUpControls = false;

        form.cmbReview().setEnabled(enablefollowUpControls);
        form.intReview().setEnabled(enablefollowUpControls);
        form.richTextInstructions().setEnabled(enablefollowUpControls);
        if(enablefollowUpControls == false && clearControls)
        {
            form.cmbReview().setValue(null);
            form.intReview().setValue(null);
            form.richTextInstructions().setValue("");
            form.cmbReview().setFocus();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void enableFollowUpInstructions(boolean clearControls)
{
    if (form.getMode().equals(FormMode.EDIT) && !(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW)))
    {
        OpdFollowUp followUp = form.lyrTabs().tabOPDNote().cmbFollowUp().getValue();
        boolean enablefollowUpControls = true;
        if (followUp != null && followUp.equals(OpdFollowUp.DISCHARGEDFROMCLINIC))
            enablefollowUpControls = false;

        form.lyrTabs().tabOPDNote().cmbReview().setEnabled(enablefollowUpControls);
        form.lyrTabs().tabOPDNote().intReview().setEnabled(enablefollowUpControls);
        form.lyrTabs().tabOPDNote().richTextInstructions().setEnabled(enablefollowUpControls);
        if (enablefollowUpControls == false && clearControls)
        {
            form.lyrTabs().tabOPDNote().cmbReview().setValue(null);
            form.lyrTabs().tabOPDNote().intReview().setValue(null);
            form.lyrTabs().tabOPDNote().richTextInstructions().setValue("");
            form.lyrTabs().tabOPDNote().cmbReview().setFocus();
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void enableFollowUpInstructions(boolean clearControls)
{
    if(form.getMode().equals(FormMode.EDIT))
    {
        OpdFollowUp followUp = form.cmbFollowUp().getValue();
        boolean enablefollowUpControls = true;
        if(followUp != null && followUp.equals(OpdFollowUp.DISCHARGEDFROMCLINIC))
            enablefollowUpControls = false;

        form.cmbReview().setEnabled(enablefollowUpControls);
        form.intReview().setEnabled(enablefollowUpControls);
        form.richTextInstructions().setEnabled(enablefollowUpControls);
        if(enablefollowUpControls == false && clearControls)
        {
            form.cmbReview().setValue(null);
            form.intReview().setValue(null);
            form.richTextInstructions().setValue("");
            form.cmbReview().setFocus();
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void enableFollowUpInstructions(boolean clearControls)
{
    if (form.getMode().equals(FormMode.EDIT) && !(form.getGlobalContext().Core.getClinicalNotingModeIsNotNull() && form.getGlobalContext().Core.getClinicalNotingMode().equals(ClinicalNotingMode.REVIEW)))
    {
        OpdFollowUp followUp = form.lyrTabs().tabOPDNote().cmbFollowUp().getValue();
        boolean enablefollowUpControls = true;
        if (followUp != null && followUp.equals(OpdFollowUp.DISCHARGEDFROMCLINIC))
            enablefollowUpControls = false;

        form.lyrTabs().tabOPDNote().cmbReview().setEnabled(enablefollowUpControls);
        form.lyrTabs().tabOPDNote().intReview().setEnabled(enablefollowUpControls);
        form.lyrTabs().tabOPDNote().richTextInstructions().setEnabled(enablefollowUpControls);
        if (enablefollowUpControls == false && clearControls)
        {
            form.lyrTabs().tabOPDNote().cmbReview().setValue(null);
            form.lyrTabs().tabOPDNote().intReview().setValue(null);
            form.lyrTabs().tabOPDNote().richTextInstructions().setValue("");
            form.lyrTabs().tabOPDNote().cmbReview().setFocus();
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void enableFollowUpInstructions(boolean clearControls)
{
    if(form.getMode().equals(FormMode.EDIT))
    {
        OpdFollowUp followUp = form.cmbFollowUp().getValue();
        boolean enablefollowUpControls = true;
        if(followUp != null && followUp.equals(OpdFollowUp.DISCHARGEDFROMCLINIC))
            enablefollowUpControls = false;

        form.cmbReview().setEnabled(enablefollowUpControls);
        form.intReview().setEnabled(enablefollowUpControls);
        form.richTextInstructions().setEnabled(enablefollowUpControls);
        if(enablefollowUpControls == false && clearControls)
        {
            form.cmbReview().setValue(null);
            form.intReview().setValue(null);
            form.richTextInstructions().setValue("");
            form.cmbReview().setFocus();
        }
    }
}