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

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onCcSummaryValueChanged() throws PresentationLogicException
{
    if(form.lyrDetails().tabPageSummary().ccSummary().getLastEvent() != null)
    {
        if(form.lyrDetails().tabPageSummary().ccSummary().getLastEvent().equals(SummaryEventType.CREATESUMMARY))
        {
            form.getLocalContext().setSelectedSummaryInstance(form.lyrDetails().tabPageSummary().ccSummary().getValue());
            updateControlState(TAB_SUMM);
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    form.getLocalContext().setLastEvent(null);
    if(formName.equals(form.getForms().Clinical.EDischargeStartDialog) && result.equals(DialogResult.OK))
    {
        //WDEV-12920 - check for SOE
        if(form.getLocalContext().getSelectedInstance() == null || (form.getLocalContext().getSelectedInstanceIsNotNull() && form.getLocalContext().getSelectedInstance().getID_Summary() == null))
        {
            EDischargeSTHKSummaryVo summary = domain.getSummaryByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

            if(summary != null && summary.getID_SummaryIsNotNull()) //SOE
            {
                engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
                form.getLocalContext().setSelectedInstance(summary);
                form.getLocalContext().setLastEvent(SummaryEventType.CREATESUMMARY);
                form.fireCustomControlValueChanged();
                open();
                return;
            }
        }

        //WDEV-12696 - simulate SOE
        if(form.getLocalContext().getAllowChangeNeoNatalPlasticsIsNotNull() && form.getLocalContext().getAllowChangeNeoNatalPlastics() && Boolean.FALSE.equals(domain.allowChangeNeoNatalPlastics(form.getLocalContext().getSelectedInstance())))
        {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            open();
            return;
        }

        if(populateDischargeandSummary())
            open();
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcSummaryValueChanged() throws PresentationLogicException
{
    if(form.lyrDetails().tabPageSummary().ccSummary().getLastEvent() != null)
    {
        if(form.lyrDetails().tabPageSummary().ccSummary().getLastEvent().equals(SummaryEventType.CREATESUMMARY))
        {
            form.getLocalContext().setSelectedSummaryInstance(form.lyrDetails().tabPageSummary().ccSummary().getValue());
            updateControlState(TAB_SUMM);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    form.getLocalContext().setLastEvent(null);
    if(formName.equals(form.getForms().Clinical.EDischargeStartDialog) && result.equals(DialogResult.OK))
    {
        //WDEV-12920 - check for SOE
        if(form.getLocalContext().getSelectedInstance() == null || (form.getLocalContext().getSelectedInstanceIsNotNull() && form.getLocalContext().getSelectedInstance().getID_Summary() == null))
        {
            EDischargeSTHKSummaryVo summary = domain.getSummaryByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

            if(summary != null && summary.getID_SummaryIsNotNull()) //SOE
            {
                engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
                form.getLocalContext().setSelectedInstance(summary);
                form.getLocalContext().setLastEvent(SummaryEventType.CREATESUMMARY);
                form.fireCustomControlValueChanged();
                open();
                return;
            }
        }

        //WDEV-12696 - simulate SOE
        if(form.getLocalContext().getAllowChangeNeoNatalPlasticsIsNotNull() && form.getLocalContext().getAllowChangeNeoNatalPlastics() && Boolean.FALSE.equals(domain.allowChangeNeoNatalPlastics(form.getLocalContext().getSelectedInstance())))
        {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            open();
            return;
        }

        if(populateDischargeandSummary())
            open();
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onCcSummaryValueChanged() throws PresentationLogicException
{
    if(form.lyrDetails().tabPageSummary().ccSummary().getLastEvent() != null)
    {
        if(form.lyrDetails().tabPageSummary().ccSummary().getLastEvent().equals(SummaryEventType.CREATESUMMARY))
        {
            form.getLocalContext().setSelectedSummaryInstance(form.lyrDetails().tabPageSummary().ccSummary().getValue());
            updateControlState(TAB_SUMM);
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    form.getLocalContext().setLastEvent(null);
    if(formName.equals(form.getForms().Clinical.EDischargeStartDialog) && result.equals(DialogResult.OK))
    {
        //WDEV-12920 - check for SOE
        if(form.getLocalContext().getSelectedInstance() == null || (form.getLocalContext().getSelectedInstanceIsNotNull() && form.getLocalContext().getSelectedInstance().getID_Summary() == null))
        {
            EDischargeSTHKSummaryVo summary = domain.getSummaryByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

            if(summary != null && summary.getID_SummaryIsNotNull()) //SOE
            {
                engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
                form.getLocalContext().setSelectedInstance(summary);
                form.getLocalContext().setLastEvent(SummaryEventType.CREATESUMMARY);
                form.fireCustomControlValueChanged();
                open();
                return;
            }
        }

        //WDEV-12696 - simulate SOE
        if(form.getLocalContext().getAllowChangeNeoNatalPlasticsIsNotNull() && form.getLocalContext().getAllowChangeNeoNatalPlastics() && Boolean.FALSE.equals(domain.allowChangeNeoNatalPlastics(form.getLocalContext().getSelectedInstance())))
        {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            open();
            return;
        }

        if(populateDischargeandSummary())
            open();
    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onCcSummaryValueChanged() throws PresentationLogicException
{
    if(form.lyrDetails().tabPageSummary().ccSummary().getLastEvent() != null)
    {
        if(form.lyrDetails().tabPageSummary().ccSummary().getLastEvent().equals(SummaryEventType.CREATESUMMARY))
        {
            form.getLocalContext().setSelectedSummaryInstance(form.lyrDetails().tabPageSummary().ccSummary().getValue());
            updateControlState(TAB_SUMM);
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onFormDialogClosed(FormName formName, DialogResult result) throws PresentationLogicException
{
    form.getLocalContext().setLastEvent(null);
    if(formName.equals(form.getForms().Clinical.EDischargeStartDialog) && result.equals(DialogResult.OK))
    {
        //WDEV-12920 - check for SOE
        if(form.getLocalContext().getSelectedInstance() == null || (form.getLocalContext().getSelectedInstanceIsNotNull() && form.getLocalContext().getSelectedInstance().getID_Summary() == null))
        {
            EDischargeSTHKSummaryVo summary = domain.getSummaryByCareContext(form.getGlobalContext().Core.getCurrentCareContext());

            if(summary != null && summary.getID_SummaryIsNotNull()) //SOE
            {
                engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
                form.getLocalContext().setSelectedInstance(summary);
                form.getLocalContext().setLastEvent(SummaryEventType.CREATESUMMARY);
                form.fireCustomControlValueChanged();
                open();
                return;
            }
        }

        //WDEV-12696 - simulate SOE
        if(form.getLocalContext().getAllowChangeNeoNatalPlasticsIsNotNull() && form.getLocalContext().getAllowChangeNeoNatalPlastics() && Boolean.FALSE.equals(domain.allowChangeNeoNatalPlastics(form.getLocalContext().getSelectedInstance())))
        {
            engine.showMessage(ims.configuration.gen.ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue());
            open();
            return;
        }

        if(populateDischargeandSummary())
            open();
    }
}
项目:AvoinApotti    文件:Logic.java   
public SummaryEventType getLastEvent()
{
    return form.getLocalContext().getLastEvent();
}
项目:openMAXIMS    文件:Logic.java   
public SummaryEventType getLastEvent()
{
    return form.getLocalContext().getLastEvent();
}
项目:openMAXIMS    文件:Logic.java   
public SummaryEventType getLastEvent()
{
    return form.getLocalContext().getLastEvent();
}
项目:openmaxims-linux    文件:Logic.java   
public SummaryEventType getLastEvent()
{
    return form.getLocalContext().getLastEvent();
}