Java 类ims.ocrr.vo.OrderEntryTemplateLiteVo 实例源码

项目:AvoinApotti    文件:Logic.java   
private void populateOrderTemplate(PatientICPActionFullVo patientICPAction)
{
    try
    {
        // Clear the order template controls
        form.lyrMain().tabPageForm().dynamicForm().clear();

        OrderEntryTemplateLiteVo template = patientICPAction.getAction().getLinkedOrderEntryTemplate();

        if (template != null)
        {
            Boolean readOnly = Boolean.FALSE.equals(form.getLocalContext().getUserHasEditRights());
            form.lyrMain().tabPageForm().dynamicForm().setReadOnly(readOnly);
            form.lyrMain().tabPageForm().dynamicForm().open(form.getForms().OCRR.SelectandOrder, new Object[] { template });
        }
    }
    catch (Exception exception)
    {
        // Treat any exceptions that might arise
        exception.printStackTrace();
        engine.showMessage("Error displaying linked form: " + exception.getMessage());
        return;
    }
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.grdTemplates().getRows().clear();

    if(form.txtName().getValue() == null)
    {
        engine.showErrors(new String[]{"Order Entry Template is mandatory"});
        return;
    }

    OrderEntryTemplateLiteVoCollection voCollTemplates = domain.listActiveOrderEntryTemplatesByName(form.txtName().getValue());
    if(voCollTemplates != null)
    {
        for(OrderEntryTemplateLiteVo voTemplate : voCollTemplates)
        {
            grdTemplatesRow row = form.grdTemplates().getRows().newRow();
            row.setcolName(voTemplate.getFormName());
            row.setValue(voTemplate);
        }

        if(voCollTemplates.size() == 0)
            engine.showMessage("No matching records found.");
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateOrderTemplate(PatientICPActionFullVo patientICPAction)
{
    try
    {
        // Clear the order template controls
        form.lyrMain().tabPageForm().dynamicForm().clear();

        OrderEntryTemplateLiteVo template = patientICPAction.getAction().getLinkedOrderEntryTemplate();

        if (template != null)
        {
            Boolean readOnly = Boolean.FALSE.equals(form.getLocalContext().getUserHasEditRights());
            form.lyrMain().tabPageForm().dynamicForm().setReadOnly(readOnly);
            form.lyrMain().tabPageForm().dynamicForm().open(form.getForms().OCRR.SelectandOrder, new Object[] { template });
        }
    }
    catch (Exception exception)
    {
        // Treat any exceptions that might arise
        exception.printStackTrace();
        engine.showMessage("Error displaying linked form: " + exception.getMessage());
        return;
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.grdTemplates().getRows().clear();

    if(form.txtName().getValue() == null)
    {
        engine.showErrors(new String[]{"Order Entry Template is mandatory"});
        return;
    }

    OrderEntryTemplateLiteVoCollection voCollTemplates = domain.listActiveOrderEntryTemplatesByName(form.txtName().getValue());
    if(voCollTemplates != null)
    {
        for(OrderEntryTemplateLiteVo voTemplate : voCollTemplates)
        {
            grdTemplatesRow row = form.grdTemplates().getRows().newRow();
            row.setcolName(voTemplate.getFormName());
            row.setValue(voTemplate);
        }

        if(voCollTemplates.size() == 0)
            engine.showMessage("No matching records found.");
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateOrderTemplate(PatientICPActionFullVo patientICPAction)
{
    try
    {
        // Clear the order template controls
        form.lyrMain().tabPageForm().dynamicForm().clear();

        OrderEntryTemplateLiteVo template = patientICPAction.getAction().getLinkedOrderEntryTemplate();

        if (template != null)
        {
            Boolean readOnly = Boolean.FALSE.equals(form.getLocalContext().getUserHasEditRights());
            form.lyrMain().tabPageForm().dynamicForm().setReadOnly(readOnly);
            form.lyrMain().tabPageForm().dynamicForm().open(form.getForms().OCRR.SelectandOrder, new Object[] { template });
        }
    }
    catch (Exception exception)
    {
        // Treat any exceptions that might arise
        exception.printStackTrace();
        engine.showMessage("Error displaying linked form: " + exception.getMessage());
        return;
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.grdTemplates().getRows().clear();

    if(form.txtName().getValue() == null)
    {
        engine.showErrors(new String[]{"Order Entry Template is mandatory"});
        return;
    }

    OrderEntryTemplateLiteVoCollection voCollTemplates = domain.listActiveOrderEntryTemplatesByName(form.txtName().getValue());
    if(voCollTemplates != null)
    {
        for(OrderEntryTemplateLiteVo voTemplate : voCollTemplates)
        {
            grdTemplatesRow row = form.grdTemplates().getRows().newRow();
            row.setcolName(voTemplate.getFormName());
            row.setValue(voTemplate);
        }

        if(voCollTemplates.size() == 0)
            engine.showMessage("No matching records found.");
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateOrderTemplate(PatientICPActionFullVo patientICPAction)
{
    try
    {
        // Clear the order template controls
        form.lyrMain().tabPageForm().dynamicForm().clear();

        OrderEntryTemplateLiteVo template = patientICPAction.getAction().getLinkedOrderEntryTemplate();

        if (template != null)
        {
            Boolean readOnly = Boolean.FALSE.equals(form.getLocalContext().getUserHasEditRights());
            form.lyrMain().tabPageForm().dynamicForm().setReadOnly(readOnly);
            form.lyrMain().tabPageForm().dynamicForm().open(form.getForms().OCRR.SelectandOrder, new Object[] { template });
        }
    }
    catch (Exception exception)
    {
        // Treat any exceptions that might arise
        exception.printStackTrace();
        engine.showMessage("Error displaying linked form: " + exception.getMessage());
        return;
    }
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onImbSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.grdTemplates().getRows().clear();

    if(form.txtName().getValue() == null)
    {
        engine.showErrors(new String[]{"Order Entry Template is mandatory"});
        return;
    }

    OrderEntryTemplateLiteVoCollection voCollTemplates = domain.listActiveOrderEntryTemplatesByName(form.txtName().getValue());
    if(voCollTemplates != null)
    {
        for(OrderEntryTemplateLiteVo voTemplate : voCollTemplates)
        {
            grdTemplatesRow row = form.grdTemplates().getRows().newRow();
            row.setcolName(voTemplate.getFormName());
            row.setValue(voTemplate);
        }

        if(voCollTemplates.size() == 0)
            engine.showMessage("No matching records found.");
    }
}