Java 类ims.clinical.vo.enums.DementiaEventEnumeration 实例源码

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onCcAMTSFollowUpValueChanged() throws PresentationLogicException
{
    if (DementiaEventEnumeration.RELOAD_AMTS_BROWSER.equals(form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().getSelectedEvent()))
    {
        form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().resetSelectedEvent();
        form.getLocalContext().setselectedDementia(domain.getDementia(form.getLocalContext().getselectedDementia()));
        loadRecordBrowser();
        initialiseFollowUp(FormMode.VIEW, false);
        form.setMode(FormMode.VIEW);
    }
    else if (DementiaEventEnumeration.EDIT.equals(form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().getSelectedEvent()))
    {
        form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().resetSelectedEvent();
        form.setMode(FormMode.EDIT);
    }
    else if ( DementiaEventEnumeration.SOE.equals(form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().getSelectedEvent()) )
    {
        form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().resetSelectedEvent();
        open();
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * 
 */
private boolean save()
{
    try
    {
        DementiaVo dementiaToSave = populateDataFromScreen((DementiaVo) form.getLocalContext().getselectedDementia().clone());

        String[] errors = dementiaToSave.validate(getUIErrors());
        if (errors != null && errors.length > 0)
        {
            engine.showErrors(errors);
            return false;
        }

        form.getLocalContext().setselectedDementia(domain.saveDementia(dementiaToSave,form.getForms().Clinical.DementiaAssessmentFINDComponent));//WDEV-16247

        return true;
    }
    catch (StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.SOE);
        form.fireCustomControlValueChanged();
        return false;
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcAMTSFollowUpValueChanged() throws PresentationLogicException
{
    if (DementiaEventEnumeration.RELOAD_AMTS_BROWSER.equals(form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().getSelectedEvent()))
    {
        form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().resetSelectedEvent();
        form.getLocalContext().setselectedDementia(domain.getDementia(form.getLocalContext().getselectedDementia()));
        loadRecordBrowser();
        initialiseFollowUp(FormMode.VIEW, false);
        form.setMode(FormMode.VIEW);
    }
    else if (DementiaEventEnumeration.EDIT.equals(form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().getSelectedEvent()))
    {
        form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().resetSelectedEvent();
        form.setMode(FormMode.EDIT);
    }
    else if ( DementiaEventEnumeration.SOE.equals(form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().getSelectedEvent()) )
    {
        form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().resetSelectedEvent();
        open();
    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onCcAMTSFollowUpValueChanged() throws PresentationLogicException
{
    if (DementiaEventEnumeration.RELOAD_AMTS_BROWSER.equals(form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().getSelectedEvent()))
    {
        form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().resetSelectedEvent();
        form.getLocalContext().setselectedDementia(domain.getDementia(form.getLocalContext().getselectedDementia()));
        loadRecordBrowser();
        initialiseFollowUp(FormMode.VIEW, false);
        form.setMode(FormMode.VIEW);
    }
    else if (DementiaEventEnumeration.EDIT.equals(form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().getSelectedEvent()))
    {
        form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().resetSelectedEvent();
        form.setMode(FormMode.EDIT);
    }
    else if ( DementiaEventEnumeration.SOE.equals(form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().getSelectedEvent()) )
    {
        form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().resetSelectedEvent();
        open();
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{   
    form.getLocalContext().setselectedDementia(domain.getDementia(form.getLocalContext().getselectedDementia()));
    populateScreenFromData(form.getLocalContext().getselectedDementia().getStepOneFind());

    form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.NEW);
    form.fireCustomControlValueChanged();
    form.setMode(FormMode.EDIT);
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getselectedDementiaIsNotNull() && form.getLocalContext().getselectedDementia().getStepOneFindIsNotNull())
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.CANCEL);
        form.fireCustomControlValueChanged();
    }
    else
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.CLOSE);
        form.fireCustomControlValueChanged();
    }

}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (domain.getHcpUser() == null)
    {
        engine.showMessage("Logged in user is not HCP!");
        return;
    }

    if (save())
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.SAVE);
        form.fireCustomControlValueChanged();
    }

}
项目:AvoinApotti    文件:Logic.java   
private boolean save()
{
    DementiaVo dementiaToSave = populateDataFromScreen((DementiaVo) form.getLocalContext().getselectedDementia().clone());

    String[] errors = dementiaToSave.validate(getUIErrors());
    if (errors != null && errors.length > 0)
    {
        engine.showErrors(errors);
        return false;
    }

    // Check SOE
    // if (surgicalAuditOpDetToSave.getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(surgicalAuditOpDetToSave))
    // {
    // engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
    // form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.CANCEL);
    // form.fireCustomControlValueChanged();
    // return false;

    // }

    try
    {
        form.getLocalContext().setselectedDementia(domain.saveDementia(dementiaToSave,form.getForms().Clinical.DementiaAssessmentFINDComponent));//WDEV-16247
    }
    catch (StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.SOE);
        form.fireCustomControlValueChanged();
        return false;
    }

    return true;
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName != null && formName.equals(form.getForms().Core.RieConfirmationDialog) && result != null && result.equals(DialogResult.OK))
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.MARK_RIE);
        form.fireCustomControlValueChanged();
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onCcAMTSValueChanged() throws PresentationLogicException
{
    if (DementiaEventEnumeration.SAVE.equals(form.lyrSteps().tabPageStep2().ccAMTS().getSelectedEvent()) 
        || DementiaEventEnumeration.CANCEL.equals(form.lyrSteps().tabPageStep2().ccAMTS().getSelectedEvent()))
    {
        form.lyrSteps().tabPageStep2().ccAMTS().resetSelectedEvent();
        form.getLocalContext().setselectedDementia(form.lyrSteps().tabPageStep2().ccAMTS().getValue());
        open();
        //in here needed to cater for situation that amts was shown and cancel is pressed.....the tab gets hidden and you have to reopen the dialog
        form.lyrSteps().tabPageStep2().setHeaderVisible( form.getLocalContext().getselectedDementia().getStepTwoAssessIsNotNull()
            ||  (form.getLocalContext().getselectedDementia().getCurrentWorklistStatusIsNotNull() 
                && DementiaWorklistStatus.STEP_TWO_ASSESS_INVESTIGATE_OUTSTANDING.equals(form.getLocalContext().getselectedDementia().getCurrentWorklistStatus().getStatus())));
        form.lyrSteps().showtabPageStep2();
        return;
    }
    else if (DementiaEventEnumeration.EDIT.equals(form.lyrSteps().tabPageStep2().ccAMTS().getSelectedEvent()))
    {
        form.lyrSteps().tabPageStep2().ccAMTS().resetSelectedEvent();
        form.setMode(FormMode.EDIT);
    }
    else if (DementiaEventEnumeration.CLOSE.equals(form.lyrSteps().tabPageStep2().ccAMTS().getSelectedEvent()))
    {
        form.lyrSteps().tabPageStep2().ccAMTS().resetSelectedEvent();
        engine.close(DialogResult.CANCEL);
    }
    else if (DementiaEventEnumeration.SOE.equals(form.lyrSteps().tabPageStep2().ccAMTS().getSelectedEvent()))
    {
        form.lyrSteps().tabPageStep2().ccAMTS().resetSelectedEvent(); // WDEV-16372 
        open();
    }
    else if (DementiaEventEnumeration.MARK_RIE.equals(form.lyrSteps().tabPageStep2().ccAMTS().getSelectedEvent()))
    {
        form.lyrSteps().tabPageStep2().ccAMTS().resetSelectedEvent();
        doRIE();
    }
}
项目:AvoinApotti    文件:Logic.java   
private void edit()
{
    form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.EDIT);
    form.fireCustomControlValueChanged();

    form.setMode(FormMode.EDIT);

    open();
    updateControlState();
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (save())
    {
        open();

        if (form.getLocalContext().getinFollowUpModeIsNotNull()
            && form.getLocalContext().getinFollowUpMode())
            form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.RELOAD_AMTS_BROWSER);
        else
            form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.SAVE);

        form.fireCustomControlValueChanged();
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnCancelClick() throws PresentationLogicException 
{
    hideShowBottomQuestionsBasedOnThreshold(false);

    open();
    form.setMode(FormMode.VIEW);            

    if (form.getLocalContext().getinFollowUpModeIsNotNull()
        && form.getLocalContext().getinFollowUpMode())
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.RELOAD_AMTS_BROWSER);
    else
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.CANCEL);
    form.fireCustomControlValueChanged();
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Core.RieConfirmationDialog) && DialogResult.OK.equals(result))
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.MARK_RIE);
        form.fireCustomControlValueChanged();
        open();
    }

}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnNewFollowUpClick() throws PresentationLogicException
{
    form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.EDIT);
    form.fireCustomControlValueChanged();

    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedAMTSRecord(null);
    clearAllControls();
    hideShowBottomQuestionsBasedOnThreshold(false);
    initializeAuthoringControls(null);
    updateControlState();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName != null && formName.equals(form.getForms().Core.RieConfirmationDialog) && result != null && result.equals(DialogResult.OK))
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.MARK_RIE);
        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
    protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
    {   
        form.getLocalContext().setselectedDementia(domain.getDementia(form.getLocalContext().getselectedDementia()));
        populateScreenFromData(form.getLocalContext().getselectedDementia());

        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.NEW);
        form.fireCustomControlValueChanged();
//      form.setMode(FormMode.EDIT);
    }
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (domain.getHcpUser() == null)
    {
        engine.showMessage("Logged in user is not HCP!");
        return;
    }

    if (save())
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.SAVE);
        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getselectedDementiaIsNotNull() && form.getLocalContext().getselectedDementia().getStepOneFindIsNotNull())
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.CANCEL);
        form.fireCustomControlValueChanged();
    }
    else
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.CLOSE);
        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcAMTSFollowUpValueChanged() throws PresentationLogicException
{
    if (DementiaEventEnumeration.RELOAD_AMTS_BROWSER.equals(form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().getSelectedEvent()))
    {
        // Reset event for component
        form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().resetSelectedEvent();
        // Refresh Dementia record value
        form.getLocalContext().setselectedDementia(domain.getDementia(form.getLocalContext().getselectedDementia()));

        open(DementiaWorklistOpenFormModeEnum.FOLLOWUP_AMTS_VIEW);
    }
    else if (DementiaEventEnumeration.NEW.equals(form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().getSelectedEvent()))
    {
        // Reset event for component
        form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().resetSelectedEvent();

        open(DementiaWorklistOpenFormModeEnum.FOLLOWUP_AMTS_NEW);
    }
    else if (DementiaEventEnumeration.EDIT.equals(form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().getSelectedEvent()))
    {
        // Reset event for component
        form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().resetSelectedEvent();

        open(DementiaWorklistOpenFormModeEnum.FOLLOWUP_AMTS_EDIT);
    }
    else if (DementiaEventEnumeration.SOE.equals(form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().getSelectedEvent()) )
    {
        // Reset event for component
        form.lyrSteps().tabPageFollowUp().ccAMTSFollowUp().resetSelectedEvent();

        open(DementiaWorklistOpenFormModeEnum.FOLLOWUP_AMTS_VIEW);
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
    protected void onBtnNewFollowUpClick() throws PresentationLogicException
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.NEW);
        form.fireCustomControlValueChanged();

//      form.setMode(FormMode.EDIT);
//      form.getLocalContext().setSelectedAMTSRecord(null);
//      clearControls();
//      hideShowBottomQuestionsBasedOnThreshold(false);
//      initializeAuthoringControls(null);
//      updateControlState();
    }
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (save())
    {
        if (Boolean.TRUE.equals(form.getLocalContext().getinFollowUpMode()))
            form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.RELOAD_AMTS_BROWSER);
        else
            form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.SAVE);

        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnCancelClick() throws PresentationLogicException 
    {
        hideShowBottomQuestionsBasedOnThreshold(false);

//      open();
        form.setMode(FormMode.VIEW);            

        if (form.getLocalContext().getinFollowUpModeIsNotNull()
            && form.getLocalContext().getinFollowUpMode())
            form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.RELOAD_AMTS_BROWSER);
        else
            form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.CANCEL);
        form.fireCustomControlValueChanged();
    }
项目:openMAXIMS    文件:Logic.java   
@Override
    protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
    {
        if (formName.equals(form.getForms().Core.RieConfirmationDialog) && DialogResult.OK.equals(result))
        {
            form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.MARK_RIE);
            form.fireCustomControlValueChanged();
//          open();
        }

    }
项目:openMAXIMS    文件:Logic.java   
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{   
    form.getLocalContext().setselectedDementia(domain.getDementia(form.getLocalContext().getselectedDementia()));
    populateScreenFromData(form.getLocalContext().getselectedDementia().getStepOneFind());

    form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.NEW);
    form.fireCustomControlValueChanged();
    form.setMode(FormMode.EDIT);
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getselectedDementiaIsNotNull() && form.getLocalContext().getselectedDementia().getStepOneFindIsNotNull())
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.CANCEL);
        form.fireCustomControlValueChanged();
    }
    else
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.CLOSE);
        form.fireCustomControlValueChanged();
    }

}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (domain.getHcpUser() == null)
    {
        engine.showMessage("Logged in user is not HCP!");
        return;
    }

    if (save())
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.SAVE);
        form.fireCustomControlValueChanged();
    }

}
项目:openMAXIMS    文件:Logic.java   
private boolean save()
{
    DementiaVo dementiaToSave = populateDataFromScreen((DementiaVo) form.getLocalContext().getselectedDementia().clone());

    String[] errors = dementiaToSave.validate(getUIErrors());
    if (errors != null && errors.length > 0)
    {
        engine.showErrors(errors);
        return false;
    }

    // Check SOE
    // if (surgicalAuditOpDetToSave.getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(surgicalAuditOpDetToSave))
    // {
    // engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
    // form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.CANCEL);
    // form.fireCustomControlValueChanged();
    // return false;

    // }

    try
    {
        form.getLocalContext().setselectedDementia(domain.saveDementia(dementiaToSave,form.getForms().Clinical.DementiaAssessmentFINDComponent));//WDEV-16247
    }
    catch (StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.SOE);
        form.fireCustomControlValueChanged();
        return false;
    }

    return true;
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName != null && formName.equals(form.getForms().Core.RieConfirmationDialog) && result != null && result.equals(DialogResult.OK))
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.MARK_RIE);
        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onCcAMTSValueChanged() throws PresentationLogicException
{
    if (DementiaEventEnumeration.SAVE.equals(form.lyrSteps().tabPageStep2().ccAMTS().getSelectedEvent()) 
        || DementiaEventEnumeration.CANCEL.equals(form.lyrSteps().tabPageStep2().ccAMTS().getSelectedEvent()))
    {
        form.lyrSteps().tabPageStep2().ccAMTS().resetSelectedEvent();
        form.getLocalContext().setselectedDementia(form.lyrSteps().tabPageStep2().ccAMTS().getValue());
        open();
        //in here needed to cater for situation that amts was shown and cancel is pressed.....the tab gets hidden and you have to reopen the dialog
        form.lyrSteps().tabPageStep2().setHeaderVisible( form.getLocalContext().getselectedDementia().getStepTwoAssessIsNotNull()
            ||  (form.getLocalContext().getselectedDementia().getCurrentWorklistStatusIsNotNull() 
                && DementiaWorklistStatus.STEP_TWO_ASSESS_INVESTIGATE_OUTSTANDING.equals(form.getLocalContext().getselectedDementia().getCurrentWorklistStatus().getStatus())));
        form.lyrSteps().showtabPageStep2();
        return;
    }
    else if (DementiaEventEnumeration.EDIT.equals(form.lyrSteps().tabPageStep2().ccAMTS().getSelectedEvent()))
    {
        form.lyrSteps().tabPageStep2().ccAMTS().resetSelectedEvent();
        form.setMode(FormMode.EDIT);
    }
    else if (DementiaEventEnumeration.CLOSE.equals(form.lyrSteps().tabPageStep2().ccAMTS().getSelectedEvent()))
    {
        form.lyrSteps().tabPageStep2().ccAMTS().resetSelectedEvent();
        engine.close(DialogResult.CANCEL);
    }
    else if (DementiaEventEnumeration.SOE.equals(form.lyrSteps().tabPageStep2().ccAMTS().getSelectedEvent()))
    {
        form.lyrSteps().tabPageStep2().ccAMTS().resetSelectedEvent(); // WDEV-16372 
        open();
    }
    else if (DementiaEventEnumeration.MARK_RIE.equals(form.lyrSteps().tabPageStep2().ccAMTS().getSelectedEvent()))
    {
        form.lyrSteps().tabPageStep2().ccAMTS().resetSelectedEvent();
        doRIE();
    }
}
项目:openMAXIMS    文件:Logic.java   
private void edit()
{
    form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.EDIT);
    form.fireCustomControlValueChanged();

    form.setMode(FormMode.EDIT);

    open();
    updateControlState();
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (save())
    {
        open();

        if (form.getLocalContext().getinFollowUpModeIsNotNull()
            && form.getLocalContext().getinFollowUpMode())
            form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.RELOAD_AMTS_BROWSER);
        else
            form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.SAVE);

        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnCancelClick() throws PresentationLogicException 
{
    hideShowBottomQuestionsBasedOnThreshold(false);

    open();
    form.setMode(FormMode.VIEW);            

    if (form.getLocalContext().getinFollowUpModeIsNotNull()
        && form.getLocalContext().getinFollowUpMode())
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.RELOAD_AMTS_BROWSER);
    else
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.CANCEL);
    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Core.RieConfirmationDialog) && DialogResult.OK.equals(result))
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.MARK_RIE);
        form.fireCustomControlValueChanged();
        open();
    }

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnNewFollowUpClick() throws PresentationLogicException
{
    form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.EDIT);
    form.fireCustomControlValueChanged();

    form.setMode(FormMode.EDIT);
    form.getLocalContext().setSelectedAMTSRecord(null);
    clearAllControls();
    hideShowBottomQuestionsBasedOnThreshold(false);
    initializeAuthoringControls(null);
    updateControlState();
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnEditClick() throws ims.framework.exceptions.PresentationLogicException
{   
    form.getLocalContext().setselectedDementia(domain.getDementia(form.getLocalContext().getselectedDementia()));
    populateScreenFromData(form.getLocalContext().getselectedDementia().getStepOneFind());

    form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.NEW);
    form.fireCustomControlValueChanged();
    form.setMode(FormMode.EDIT);
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getselectedDementiaIsNotNull() && form.getLocalContext().getselectedDementia().getStepOneFindIsNotNull())
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.CANCEL);
        form.fireCustomControlValueChanged();
    }
    else
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.CLOSE);
        form.fireCustomControlValueChanged();
    }

}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (domain.getHcpUser() == null)
    {
        engine.showMessage("Logged in user is not HCP!");
        return;
    }

    if (save())
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.SAVE);
        form.fireCustomControlValueChanged();
    }

}
项目:openmaxims-linux    文件:Logic.java   
private boolean save()
{
    DementiaVo dementiaToSave = populateDataFromScreen((DementiaVo) form.getLocalContext().getselectedDementia().clone());

    String[] errors = dementiaToSave.validate(getUIErrors());
    if (errors != null && errors.length > 0)
    {
        engine.showErrors(errors);
        return false;
    }

    // Check SOE
    // if (surgicalAuditOpDetToSave.getID_SurgicalAuditOperationDetailIsNotNull() && domain.isStale(surgicalAuditOpDetToSave))
    // {
    // engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
    // form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.CANCEL);
    // form.fireCustomControlValueChanged();
    // return false;

    // }

    try
    {
        form.getLocalContext().setselectedDementia(domain.saveDementia(dementiaToSave,form.getForms().Clinical.DementiaAssessmentFINDComponent));//WDEV-16247
    }
    catch (StaleObjectException e)
    {
        engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.SOE);
        form.fireCustomControlValueChanged();
        return false;
    }

    return true;
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName != null && formName.equals(form.getForms().Core.RieConfirmationDialog) && result != null && result.equals(DialogResult.OK))
    {
        form.getLocalContext().setSelectedEvent(DementiaEventEnumeration.MARK_RIE);
        form.fireCustomControlValueChanged();
    }
}