Java 类ims.core.vo.enums.ADTAdmissionDetailEvent 实例源码

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Core.ExternalResourceSearch) && DialogResult.OK.equals(result))
    {
        if (ADTAdmissionDetailEvent.REFERRED_FROM_SEARCH.equals(form.getLocalContext().getSelectedEvent()))
        {
            form.getLocalContext().setSelectedExternalResourceForReferredFrom(form.getGlobalContext().Core.getExternalResourceSelected());
            populateReferrerDetails(form.getLocalContext().getSelectedExternalResourceForReferredFrom());
            if (ExternalResourceType.ERT_HOSPITAL.equals(form.cmbReferredFrom().getValue()))
            {
                form.cmbAdmittedFrom().setValue(ExternalResourceType.ERT_HOSPITAL);
                populateAdmittedFromDetails(form.getLocalContext().getSelectedExternalResourceForReferredFrom());
                updateControlsState();
                form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(form.getGlobalContext().Core.getExternalResourceSelected());

            }
        }
        else if (ADTAdmissionDetailEvent.ADMITTED_FROM_SEARCH.equals(form.getLocalContext().getSelectedEvent()))
        {
            form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(form.getGlobalContext().Core.getExternalResourceSelected());
            populateAdmittedFromDetails(form.getLocalContext().getSelectedExternalResourceForAdmittedFrom());
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnUndoDischargeClick() throws ims.framework.exceptions.PresentationLogicException
{
    //wdev-16428
    PatientShort tempVo = domain.getPatientShort(form.getLocalContext().getPatientShort());
    if( tempVo != null && tempVo.getWardIsNotNull() )
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCEL);
        form.fireCustomControlValueChanged();
        return;
    }

    String patientName = form.getLocalContext().getPatientShortIsNotNull() && form.getLocalContext().getPatientShort().getNameIsNotNull() ? form.getLocalContext().getPatientShort().getName().toString():"";
    //String wardName = form.getLocalContext().getDischargedEpisodeIsNotNull() && form.getLocalContext().getDischargedEpisode().getPasEventIsNotNull() && form.getLocalContext().getDischargedEpisode().getPasEvent().getLocationIsNotNull() && form.getLocalContext().getDischargedEpisode().getPasEvent().getLocation().getNameIsNotNull() ? form.getLocalContext().getDischargedEpisode().getPasEvent().getLocation().getName():"" ; 
    String wardName = form.getLocalContext().getCareContextShortVoIsNotNull() && form.getLocalContext().getCareContextShortVo().getPasEventIsNotNull() && form.getLocalContext().getCareContextShortVo().getPasEvent().getLocationIsNotNull() && form.getLocalContext().getCareContextShortVo().getPasEvent().getLocation().getNameIsNotNull() ? form.getLocalContext().getCareContextShortVo().getPasEvent().getLocation().getName():"" ;
    form.getLocalContext().setConfimUndoDischargeMsgBoxId(engine.showMessage( "Confirm " + patientName + " is to be re-instated into " + wardName,"Please Confirm", MessageButtons.YESNO, MessageIcon.QUESTION));


}
项目:AvoinApotti    文件:Logic.java   
protected void onMessageBoxClosed(int messageBoxId, DialogResult result) throws PresentationLogicException
{
    if( form.getLocalContext().getConfimUndoDischargeMsgBoxIdIsNotNull() && form.getLocalContext().getConfimUndoDischargeMsgBoxId().intValue()==messageBoxId)
    {
        if( result.equals(DialogResult.YES))
        {
            if( undoDischarge())
            {
                form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.UNDODISCHARGE);
                form.fireCustomControlValueChanged();
            }
        }
        else
        {
            form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCEL);
            form.fireCustomControlValueChanged();
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onCcAdmissionDetailsValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (ADTAdmissionDetailEvent.SAVE.equals(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getSelectedEvent()) || ADTAdmissionDetailEvent.CANCEL.equals(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getSelectedEvent()))
    {
        form.getLocalContext().setCurrentAdmissionDetail(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getValue());
        form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().resetSelectedEvent();
        open();
        return;

    }
    else if (ADTAdmissionDetailEvent.SAVE.equals(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getSelectedEvent()))
    {

        form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().resetSelectedEvent();
    }
    FormMode admissionDetailMode = form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getMode();
    form.setMode(admissionDetailMode);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Core.ExternalResourceSearch) && DialogResult.OK.equals(result))
    {
        if (ADTAdmissionDetailEvent.REFERRED_FROM_SEARCH.equals(form.getLocalContext().getSelectedEvent()))
        {
            form.getLocalContext().setSelectedExternalResourceForReferredFrom(form.getGlobalContext().Core.getExternalResourceSelected());
            populateReferrerDetails(form.getLocalContext().getSelectedExternalResourceForReferredFrom());
            if (ExternalResourceType.ERT_HOSPITAL.equals(form.cmbReferredFrom().getValue()))
            {
                form.cmbAdmittedFrom().setValue(ExternalResourceType.ERT_HOSPITAL);
                populateAdmittedFromDetails(form.getLocalContext().getSelectedExternalResourceForReferredFrom());
                updateControlsState();
                form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(form.getGlobalContext().Core.getExternalResourceSelected());

            }
        }
        else if (ADTAdmissionDetailEvent.ADMITTED_FROM_SEARCH.equals(form.getLocalContext().getSelectedEvent()))
        {
            form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(form.getGlobalContext().Core.getExternalResourceSelected());
            populateAdmittedFromDetails(form.getLocalContext().getSelectedExternalResourceForAdmittedFrom());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnUndoDischargeClick() throws ims.framework.exceptions.PresentationLogicException
{
    //wdev-16428
    PatientShort tempVo = domain.getPatientShort(form.getLocalContext().getPatientShort());
    if( tempVo != null && tempVo.getWardIsNotNull() )
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCEL);
        form.fireCustomControlValueChanged();
        return;
    }

    String patientName = form.getLocalContext().getPatientShortIsNotNull() && form.getLocalContext().getPatientShort().getNameIsNotNull() ? form.getLocalContext().getPatientShort().getName().toString():"";
    //String wardName = form.getLocalContext().getDischargedEpisodeIsNotNull() && form.getLocalContext().getDischargedEpisode().getPasEventIsNotNull() && form.getLocalContext().getDischargedEpisode().getPasEvent().getLocationIsNotNull() && form.getLocalContext().getDischargedEpisode().getPasEvent().getLocation().getNameIsNotNull() ? form.getLocalContext().getDischargedEpisode().getPasEvent().getLocation().getName():"" ; 
    String wardName = form.getLocalContext().getCareContextShortVoIsNotNull() && form.getLocalContext().getCareContextShortVo().getPasEventIsNotNull() && form.getLocalContext().getCareContextShortVo().getPasEvent().getLocationIsNotNull() && form.getLocalContext().getCareContextShortVo().getPasEvent().getLocation().getNameIsNotNull() ? form.getLocalContext().getCareContextShortVo().getPasEvent().getLocation().getName():"" ;
    form.getLocalContext().setConfimUndoDischargeMsgBoxId(engine.showMessage( "Confirm " + patientName + " is to be re-instated into " + wardName,"Please Confirm", MessageButtons.YESNO, MessageIcon.QUESTION));


}
项目:openMAXIMS    文件:Logic.java   
protected void onMessageBoxClosed(int messageBoxId, DialogResult result) throws PresentationLogicException
{
    if( form.getLocalContext().getConfimUndoDischargeMsgBoxIdIsNotNull() && form.getLocalContext().getConfimUndoDischargeMsgBoxId().intValue()==messageBoxId)
    {
        if( result.equals(DialogResult.YES))
        {
            if( undoDischarge())
            {
                form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.UNDODISCHARGE);
                form.fireCustomControlValueChanged();
            }
        }
        else
        {
            form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCEL);
            form.fireCustomControlValueChanged();
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcAdmissionDetailsValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (ADTAdmissionDetailEvent.SAVE.equals(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getSelectedEvent()) || ADTAdmissionDetailEvent.CANCEL.equals(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getSelectedEvent()))
    {
        form.getLocalContext().setCurrentAdmissionDetail(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getValue());
        form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().resetSelectedEvent();
        open();
        return;

    }
    else if (ADTAdmissionDetailEvent.SAVE.equals(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getSelectedEvent()))
    {

        form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().resetSelectedEvent();
    }
    FormMode admissionDetailMode = form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getMode();
    form.setMode(admissionDetailMode);
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Core.ExternalResourceSearch) && DialogResult.OK.equals(result))
    {
        if (ADTAdmissionDetailEvent.REFERRED_FROM_SEARCH.equals(form.getLocalContext().getSelectedEvent()))
        {
            form.getLocalContext().setSelectedExternalResourceForReferredFrom(form.getGlobalContext().Core.getExternalResourceSelected());
            populateReferrerDetails(form.getLocalContext().getSelectedExternalResourceForReferredFrom());
            if (ExternalResourceType.ERT_HOSPITAL.equals(form.cmbReferredFrom().getValue()))
            {
                form.cmbAdmittedFrom().setValue(ExternalResourceType.ERT_HOSPITAL);
                populateAdmittedFromDetails(form.getLocalContext().getSelectedExternalResourceForReferredFrom());
                updateControlsState();
                form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(form.getGlobalContext().Core.getExternalResourceSelected());

            }
        }
        else if (ADTAdmissionDetailEvent.ADMITTED_FROM_SEARCH.equals(form.getLocalContext().getSelectedEvent()))
        {
            form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(form.getGlobalContext().Core.getExternalResourceSelected());
            populateAdmittedFromDetails(form.getLocalContext().getSelectedExternalResourceForAdmittedFrom());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnUndoDischargeClick() throws ims.framework.exceptions.PresentationLogicException
{
    //wdev-16428
    PatientShort tempVo = domain.getPatientShort(form.getLocalContext().getPatientShort());
    if( tempVo != null && tempVo.getWardIsNotNull() )
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCEL);
        form.fireCustomControlValueChanged();
        return;
    }

    String patientName = form.getLocalContext().getPatientShortIsNotNull() && form.getLocalContext().getPatientShort().getNameIsNotNull() ? form.getLocalContext().getPatientShort().getName().toString():"";
    //String wardName = form.getLocalContext().getDischargedEpisodeIsNotNull() && form.getLocalContext().getDischargedEpisode().getPasEventIsNotNull() && form.getLocalContext().getDischargedEpisode().getPasEvent().getLocationIsNotNull() && form.getLocalContext().getDischargedEpisode().getPasEvent().getLocation().getNameIsNotNull() ? form.getLocalContext().getDischargedEpisode().getPasEvent().getLocation().getName():"" ; 
    String wardName = form.getLocalContext().getCareContextShortVoIsNotNull() && form.getLocalContext().getCareContextShortVo().getPasEventIsNotNull() && form.getLocalContext().getCareContextShortVo().getPasEvent().getLocationIsNotNull() && form.getLocalContext().getCareContextShortVo().getPasEvent().getLocation().getNameIsNotNull() ? form.getLocalContext().getCareContextShortVo().getPasEvent().getLocation().getName():"" ;
    form.getLocalContext().setConfimUndoDischargeMsgBoxId(engine.showMessage( "Confirm " + patientName + " is to be re-instated into " + wardName,"Please Confirm", MessageButtons.YESNO, MessageIcon.QUESTION));


}
项目:openMAXIMS    文件:Logic.java   
protected void onMessageBoxClosed(int messageBoxId, DialogResult result) throws PresentationLogicException
{
    if( form.getLocalContext().getConfimUndoDischargeMsgBoxIdIsNotNull() && form.getLocalContext().getConfimUndoDischargeMsgBoxId().intValue()==messageBoxId)
    {
        if( result.equals(DialogResult.YES))
        {
            if( undoDischarge())
            {
                form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.UNDODISCHARGE);
                form.fireCustomControlValueChanged();
            }
        }
        else
        {
            form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCEL);
            form.fireCustomControlValueChanged();
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcAdmissionDetailsValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (ADTAdmissionDetailEvent.SAVE.equals(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getSelectedEvent()) || ADTAdmissionDetailEvent.CANCEL.equals(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getSelectedEvent()))
    {
        form.getLocalContext().setCurrentAdmissionDetail(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getValue());
        form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().resetSelectedEvent();
        open();
        return;

    }
    else if (ADTAdmissionDetailEvent.SAVE.equals(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getSelectedEvent()))
    {

        form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().resetSelectedEvent();
    }
    FormMode admissionDetailMode = form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getMode();
    form.setMode(admissionDetailMode);
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    if (formName.equals(form.getForms().Core.ExternalResourceSearch) && DialogResult.OK.equals(result))
    {
        if (ADTAdmissionDetailEvent.REFERRED_FROM_SEARCH.equals(form.getLocalContext().getSelectedEvent()))
        {
            form.getLocalContext().setSelectedExternalResourceForReferredFrom(form.getGlobalContext().Core.getExternalResourceSelected());
            populateReferrerDetails(form.getLocalContext().getSelectedExternalResourceForReferredFrom());
            if (ExternalResourceType.ERT_HOSPITAL.equals(form.cmbReferredFrom().getValue()))
            {
                form.cmbAdmittedFrom().setValue(ExternalResourceType.ERT_HOSPITAL);
                populateAdmittedFromDetails(form.getLocalContext().getSelectedExternalResourceForReferredFrom());
                updateControlsState();
                form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(form.getGlobalContext().Core.getExternalResourceSelected());

            }
        }
        else if (ADTAdmissionDetailEvent.ADMITTED_FROM_SEARCH.equals(form.getLocalContext().getSelectedEvent()))
        {
            form.getLocalContext().setSelectedExternalResourceForAdmittedFrom(form.getGlobalContext().Core.getExternalResourceSelected());
            populateAdmittedFromDetails(form.getLocalContext().getSelectedExternalResourceForAdmittedFrom());
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnUndoDischargeClick() throws ims.framework.exceptions.PresentationLogicException
{
    //wdev-16428
    PatientShort tempVo = domain.getPatientShort(form.getLocalContext().getPatientShort());
    if( tempVo != null && tempVo.getWardIsNotNull() )
    {
        engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCEL);
        form.fireCustomControlValueChanged();
        return;
    }

    String patientName = form.getLocalContext().getPatientShortIsNotNull() && form.getLocalContext().getPatientShort().getNameIsNotNull() ? form.getLocalContext().getPatientShort().getName().toString():"";
    //String wardName = form.getLocalContext().getDischargedEpisodeIsNotNull() && form.getLocalContext().getDischargedEpisode().getPasEventIsNotNull() && form.getLocalContext().getDischargedEpisode().getPasEvent().getLocationIsNotNull() && form.getLocalContext().getDischargedEpisode().getPasEvent().getLocation().getNameIsNotNull() ? form.getLocalContext().getDischargedEpisode().getPasEvent().getLocation().getName():"" ; 
    String wardName = form.getLocalContext().getCareContextShortVoIsNotNull() && form.getLocalContext().getCareContextShortVo().getPasEventIsNotNull() && form.getLocalContext().getCareContextShortVo().getPasEvent().getLocationIsNotNull() && form.getLocalContext().getCareContextShortVo().getPasEvent().getLocation().getNameIsNotNull() ? form.getLocalContext().getCareContextShortVo().getPasEvent().getLocation().getName():"" ;
    form.getLocalContext().setConfimUndoDischargeMsgBoxId(engine.showMessage( "Confirm " + patientName + " is to be re-instated into " + wardName,"Please Confirm", MessageButtons.YESNO, MessageIcon.QUESTION));


}
项目:openmaxims-linux    文件:Logic.java   
protected void onMessageBoxClosed(int messageBoxId, DialogResult result) throws PresentationLogicException
{
    if( form.getLocalContext().getConfimUndoDischargeMsgBoxIdIsNotNull() && form.getLocalContext().getConfimUndoDischargeMsgBoxId().intValue()==messageBoxId)
    {
        if( result.equals(DialogResult.YES))
        {
            if( undoDischarge())
            {
                form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.UNDODISCHARGE);
                form.fireCustomControlValueChanged();
            }
        }
        else
        {
            form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCEL);
            form.fireCustomControlValueChanged();
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onCcAdmissionDetailsValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    if (ADTAdmissionDetailEvent.SAVE.equals(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getSelectedEvent()) || ADTAdmissionDetailEvent.CANCEL.equals(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getSelectedEvent()))
    {
        form.getLocalContext().setCurrentAdmissionDetail(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getValue());
        form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().resetSelectedEvent();
        open();
        return;

    }
    else if (ADTAdmissionDetailEvent.SAVE.equals(form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getSelectedEvent()))
    {

        form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().resetSelectedEvent();
    }
    FormMode admissionDetailMode = form.lyrADT().tabAdmissionDetails().ccAdmissionDetails().getMode();
    form.setMode(admissionDetailMode);
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.EDIT);
    form.fireCustomControlValueChanged();
    newInstance();
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getCurrentAdmissionDetail() == null && form.dtimAdmissionDateTime().getValue()!=null)
    {
        form.getLocalContext().setlistEpisodesOfCare(domain.listEpisodesOfCare(form.getGlobalContext().Core.getPatientShort(), form.dtimAdmissionDateTime().getValue().getDate()));

        if (form.getLocalContext().getlistEpisodesOfCare() == null || (form.getLocalContext().getlistEpisodesOfCareIsNotNull() && form.getLocalContext().getlistEpisodesOfCare().size() == 0))
        {
            // create careSpell, episodeOfCare, careContext
            form.getLocalContext().setCareSpell(createCareSpell());
        }
        else if (form.getLocalContext().getlistEpisodesOfCareIsNotNull() && form.getLocalContext().getlistEpisodesOfCare().size() > 0)
        {
            // if exists episodes of care that meet the conditions, the most episode of care will be used for admission
            form.getLocalContext().setEpisodeOfCare(domain.getEpisodeOfCare(form.getLocalContext().getlistEpisodesOfCare().get(0)));
            form.getLocalContext().setCareContext(createOrUpdateCareContext(form.getLocalContext().getEpisodeOfCare(), null));
        }
    }
    else if (form.getLocalContext().getCurrentAdmissionDetail() != null && form.getLocalContext().getCareContextIsNotNull()) // on Edit Admission  Details
    {
        form.getLocalContext().setCareContext(createOrUpdateCareContext(null, form.getLocalContext().getCareContext()));
    }

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

    if (save())
    {
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.SAVE);
        form.fireCustomControlValueChanged();
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    if( form.getLocalContext().getIsOpenedFromInpatientListFormIsNotNull() && form.getLocalContext().getIsOpenedFromInpatientListForm().equals(Boolean.TRUE))
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCELANDCLOSE);
    else
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCEL);


    form.fireCustomControlValueChanged();
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if( save())
    {
        if( form.getLocalContext().getIsOpenedFromInpatientListFormIsNotNull() && form.getLocalContext().getIsOpenedFromInpatientListForm().equals(Boolean.TRUE))
            form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.SAVEANDCLOSE);
        else
            form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.SAVE);
        form.fireCustomControlValueChanged();
    }

}
项目:AvoinApotti    文件:Logic.java   
protected void onCcDischargeDetailsValueChanged() throws PresentationLogicException
{
    if( ADTAdmissionDetailEvent.SAVE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()) || ADTAdmissionDetailEvent.CANCEL.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()) || ADTAdmissionDetailEvent.UNDODISCHARGE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()))
    {
        form.lyrADT().tabDischargeDetails().ccDischargeDetails().resetSelectedEvent();
        open();
        return;

    }
    else if( ADTAdmissionDetailEvent.SAVEANDCLOSE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()))
    {

        form.lyrADT().tabDischargeDetails().ccDischargeDetails().resetSelectedEvent();
        engine.open(form.getForms().Core.InpatientList);
        return;
    }
    else if( ADTAdmissionDetailEvent.CANCELANDCLOSE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()))
    {

        form.lyrADT().tabDischargeDetails().ccDischargeDetails().resetSelectedEvent();
        engine.open(form.getForms().Core.InpatientList);
        return;
    }
    FormMode dischargeDetailMode = form.lyrADT().tabDischargeDetails().ccDischargeDetails().getMode();
    form.setMode(dischargeDetailMode);

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.EDIT);
    form.fireCustomControlValueChanged();
    newInstance();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getCurrentAdmissionDetail() == null && form.dtimAdmissionDateTime().getValue()!=null)
    {
        form.getLocalContext().setlistEpisodesOfCare(domain.listEpisodesOfCare(form.getGlobalContext().Core.getPatientShort(), form.dtimAdmissionDateTime().getValue().getDate()));

        if (form.getLocalContext().getlistEpisodesOfCare() == null || (form.getLocalContext().getlistEpisodesOfCareIsNotNull() && form.getLocalContext().getlistEpisodesOfCare().size() == 0))
        {
            // create careSpell, episodeOfCare, careContext
            form.getLocalContext().setCareSpell(createCareSpell());
        }
        else if (form.getLocalContext().getlistEpisodesOfCareIsNotNull() && form.getLocalContext().getlistEpisodesOfCare().size() > 0)
        {
            // if exists episodes of care that meet the conditions, the most episode of care will be used for admission
            form.getLocalContext().setEpisodeOfCare(domain.getEpisodeOfCare(form.getLocalContext().getlistEpisodesOfCare().get(0)));
            form.getLocalContext().setCareContext(createOrUpdateCareContext(form.getLocalContext().getEpisodeOfCare(), null));
        }
    }
    else if (form.getLocalContext().getCurrentAdmissionDetail() != null && form.getLocalContext().getCareContextIsNotNull()) // on Edit Admission  Details
    {
        form.getLocalContext().setCareContext(createOrUpdateCareContext(null, form.getLocalContext().getCareContext()));
    }

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

    if (save())
    {
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.SAVE);
        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    if( form.getLocalContext().getIsOpenedFromInpatientListFormIsNotNull() && form.getLocalContext().getIsOpenedFromInpatientListForm().equals(Boolean.TRUE))
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCELANDCLOSE);
    else
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCEL);


    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if( save())
    {
        if( form.getLocalContext().getIsOpenedFromInpatientListFormIsNotNull() && form.getLocalContext().getIsOpenedFromInpatientListForm().equals(Boolean.TRUE))
            form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.SAVEANDCLOSE);
        else
            form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.SAVE);
        form.fireCustomControlValueChanged();
    }

}
项目:openMAXIMS    文件:Logic.java   
protected void onCcDischargeDetailsValueChanged() throws PresentationLogicException
{
    if( ADTAdmissionDetailEvent.SAVE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()) || ADTAdmissionDetailEvent.CANCEL.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()) || ADTAdmissionDetailEvent.UNDODISCHARGE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()))
    {
        form.lyrADT().tabDischargeDetails().ccDischargeDetails().resetSelectedEvent();
        open();
        return;

    }
    else if( ADTAdmissionDetailEvent.SAVEANDCLOSE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()))
    {

        form.lyrADT().tabDischargeDetails().ccDischargeDetails().resetSelectedEvent();
        engine.open(form.getForms().Core.InpatientList);
        return;
    }
    else if( ADTAdmissionDetailEvent.CANCELANDCLOSE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()))
    {

        form.lyrADT().tabDischargeDetails().ccDischargeDetails().resetSelectedEvent();
        engine.open(form.getForms().Core.InpatientList);
        return;
    }
    FormMode dischargeDetailMode = form.lyrADT().tabDischargeDetails().ccDischargeDetails().getMode();
    form.setMode(dischargeDetailMode);

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.EDIT);
    form.fireCustomControlValueChanged();
    newInstance();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getCurrentAdmissionDetail() == null && form.dtimAdmissionDateTime().getValue()!=null)
    {
        form.getLocalContext().setlistEpisodesOfCare(domain.listEpisodesOfCare(form.getGlobalContext().Core.getPatientShort(), form.dtimAdmissionDateTime().getValue().getDate()));

        if (form.getLocalContext().getlistEpisodesOfCare() == null || (form.getLocalContext().getlistEpisodesOfCareIsNotNull() && form.getLocalContext().getlistEpisodesOfCare().size() == 0))
        {
            // create careSpell, episodeOfCare, careContext
            form.getLocalContext().setCareSpell(createCareSpell());
        }
        else if (form.getLocalContext().getlistEpisodesOfCareIsNotNull() && form.getLocalContext().getlistEpisodesOfCare().size() > 0)
        {
            // if exists episodes of care that meet the conditions, the most episode of care will be used for admission
            form.getLocalContext().setEpisodeOfCare(domain.getEpisodeOfCare(form.getLocalContext().getlistEpisodesOfCare().get(0)));
            form.getLocalContext().setCareContext(createOrUpdateCareContext(form.getLocalContext().getEpisodeOfCare(), null));
        }
    }
    else if (form.getLocalContext().getCurrentAdmissionDetail() != null && form.getLocalContext().getCareContextIsNotNull()) // on Edit Admission  Details
    {
        form.getLocalContext().setCareContext(createOrUpdateCareContext(null, form.getLocalContext().getCareContext()));
    }

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

    if (save())
    {
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.SAVE);
        form.fireCustomControlValueChanged();
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    if( form.getLocalContext().getIsOpenedFromInpatientListFormIsNotNull() && form.getLocalContext().getIsOpenedFromInpatientListForm().equals(Boolean.TRUE))
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCELANDCLOSE);
    else
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCEL);


    form.fireCustomControlValueChanged();
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if( save())
    {
        if( form.getLocalContext().getIsOpenedFromInpatientListFormIsNotNull() && form.getLocalContext().getIsOpenedFromInpatientListForm().equals(Boolean.TRUE))
            form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.SAVEANDCLOSE);
        else
            form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.SAVE);
        form.fireCustomControlValueChanged();
    }

}
项目:openMAXIMS    文件:Logic.java   
protected void onCcDischargeDetailsValueChanged() throws PresentationLogicException
{
    if( ADTAdmissionDetailEvent.SAVE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()) || ADTAdmissionDetailEvent.CANCEL.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()) || ADTAdmissionDetailEvent.UNDODISCHARGE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()))
    {
        form.lyrADT().tabDischargeDetails().ccDischargeDetails().resetSelectedEvent();
        open();
        return;

    }
    else if( ADTAdmissionDetailEvent.SAVEANDCLOSE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()))
    {

        form.lyrADT().tabDischargeDetails().ccDischargeDetails().resetSelectedEvent();
        engine.open(form.getForms().Core.InpatientList);
        return;
    }
    else if( ADTAdmissionDetailEvent.CANCELANDCLOSE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()))
    {

        form.lyrADT().tabDischargeDetails().ccDischargeDetails().resetSelectedEvent();
        engine.open(form.getForms().Core.InpatientList);
        return;
    }
    FormMode dischargeDetailMode = form.lyrADT().tabDischargeDetails().ccDischargeDetails().getMode();
    form.setMode(dischargeDetailMode);

}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnNewClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.EDIT);
    form.fireCustomControlValueChanged();
    newInstance();
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if (form.getLocalContext().getCurrentAdmissionDetail() == null && form.dtimAdmissionDateTime().getValue()!=null)
    {
        form.getLocalContext().setlistEpisodesOfCare(domain.listEpisodesOfCare(form.getGlobalContext().Core.getPatientShort(), form.dtimAdmissionDateTime().getValue().getDate()));

        if (form.getLocalContext().getlistEpisodesOfCare() == null || (form.getLocalContext().getlistEpisodesOfCareIsNotNull() && form.getLocalContext().getlistEpisodesOfCare().size() == 0))
        {
            // create careSpell, episodeOfCare, careContext
            form.getLocalContext().setCareSpell(createCareSpell());
        }
        else if (form.getLocalContext().getlistEpisodesOfCareIsNotNull() && form.getLocalContext().getlistEpisodesOfCare().size() > 0)
        {
            // if exists episodes of care that meet the conditions, the most episode of care will be used for admission
            form.getLocalContext().setEpisodeOfCare(domain.getEpisodeOfCare(form.getLocalContext().getlistEpisodesOfCare().get(0)));
            form.getLocalContext().setCareContext(createOrUpdateCareContext(form.getLocalContext().getEpisodeOfCare(), null));
        }
    }
    else if (form.getLocalContext().getCurrentAdmissionDetail() != null && form.getLocalContext().getCareContextIsNotNull()) // on Edit Admission  Details
    {
        form.getLocalContext().setCareContext(createOrUpdateCareContext(null, form.getLocalContext().getCareContext()));
    }

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

    if (save())
    {
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.SAVE);
        form.fireCustomControlValueChanged();
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    if( form.getLocalContext().getIsOpenedFromInpatientListFormIsNotNull() && form.getLocalContext().getIsOpenedFromInpatientListForm().equals(Boolean.TRUE))
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCELANDCLOSE);
    else
        form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCEL);


    form.fireCustomControlValueChanged();
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    if( save())
    {
        if( form.getLocalContext().getIsOpenedFromInpatientListFormIsNotNull() && form.getLocalContext().getIsOpenedFromInpatientListForm().equals(Boolean.TRUE))
            form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.SAVEANDCLOSE);
        else
            form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.SAVE);
        form.fireCustomControlValueChanged();
    }

}
项目:openmaxims-linux    文件:Logic.java   
protected void onCcDischargeDetailsValueChanged() throws PresentationLogicException
{
    if( ADTAdmissionDetailEvent.SAVE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()) || ADTAdmissionDetailEvent.CANCEL.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()) || ADTAdmissionDetailEvent.UNDODISCHARGE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()))
    {
        form.lyrADT().tabDischargeDetails().ccDischargeDetails().resetSelectedEvent();
        open();
        return;

    }
    else if( ADTAdmissionDetailEvent.SAVEANDCLOSE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()))
    {

        form.lyrADT().tabDischargeDetails().ccDischargeDetails().resetSelectedEvent();
        engine.open(form.getForms().Core.InpatientList);
        return;
    }
    else if( ADTAdmissionDetailEvent.CANCELANDCLOSE.equals(form.lyrADT().tabDischargeDetails().ccDischargeDetails().getSelectedEvent()))
    {

        form.lyrADT().tabDischargeDetails().ccDischargeDetails().resetSelectedEvent();
        engine.open(form.getForms().Core.InpatientList);
        return;
    }
    FormMode dischargeDetailMode = form.lyrADT().tabDischargeDetails().ccDischargeDetails().getMode();
    form.setMode(dischargeDetailMode);

}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.CANCEL);
    form.fireCustomControlValueChanged();
}
项目:AvoinApotti    文件:Logic.java   
public ADTAdmissionDetailEvent getSelectedEvent()
{
    return form.getLocalContext().getSelectedEvent();
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onImbAdmittedFromSearchClick() throws PresentationLogicException
{
    form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.ADMITTED_FROM_SEARCH);
    engine.open(form.getForms().Core.ExternalResourceSearch, new Object[] { (ExternalResourceType) form.cmbAdmittedFrom().getValue() });
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onImbReferredFromSearchClick() throws PresentationLogicException
{
    form.getLocalContext().setSelectedEvent(ADTAdmissionDetailEvent.REFERRED_FROM_SEARCH);
    engine.open(form.getForms().Core.ExternalResourceSearch, new Object[] { (ExternalResourceType) form.cmbReferredFrom().getValue() });
}