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

项目:AvoinApotti    文件:Logic.java   
private boolean processNodeSelection(ims.framework.controls.TreeNode node) throws PresentationLogicException
{
    if (node == null || node.getValue() == null)
        return false;

    if (node.getValue() instanceof OrderEntryTemplateShortVo)
    {
        OrderEntryTemplateShortVo template = (OrderEntryTemplateShortVo) node.getValue();
        form.lyrTemplates().tabTemplate().setCaption(template.getFormName());
        loadOrderEntryTemplate(template);
        switchToTemplateView();
    }
    if (node.getValue() instanceof String)
    {
        String name = (String) node.getValue();
        if (name.equals(searchNodeValue))
            switchToSearchView();
        if (name.equals(previewNodeValue))
            switchToPreviewView();
        if (name.equals(placeNodeValue))
        {
            gotoMyOrder(false);
            return true;
        }
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean isTemplateNodeSelected()
{
    TreeNode node = form.treDetails().getSelectedNode();
    if (node == null)
        return false;
    Object value = node.getValue();
    if (value == null)
        return false;

    return node.getValue() instanceof OrderEntryTemplateShortVo;
}
项目:openMAXIMS    文件:Logic.java   
private boolean processNodeSelection(ims.framework.controls.TreeNode node) throws PresentationLogicException
{
    if (node == null || node.getValue() == null)
        return false;

    if (node.getValue() instanceof OrderEntryTemplateShortVo)
    {
        OrderEntryTemplateShortVo template = (OrderEntryTemplateShortVo) node.getValue();
        form.lyrTemplates().tabTemplate().setCaption(template.getFormName());
        loadOrderEntryTemplate(template);
        switchToTemplateView();
    }
    if (node.getValue() instanceof String)
    {
        String name = (String) node.getValue();
        if (name.equals(searchNodeValue))
            switchToSearchView();
        if (name.equals(previewNodeValue))
            switchToPreviewView();
        if (name.equals(placeNodeValue))
        {
            gotoMyOrder(false);
            return true;
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isTemplateNodeSelected()
{
    TreeNode node = form.treDetails().getSelectedNode();
    if (node == null)
        return false;
    Object value = node.getValue();
    if (value == null)
        return false;

    return node.getValue() instanceof OrderEntryTemplateShortVo;
}
项目:openMAXIMS    文件:Logic.java   
private boolean processNodeSelection(ims.framework.controls.TreeNode node) throws PresentationLogicException
{
    if (node == null || node.getValue() == null)
        return false;

    if (node.getValue() instanceof OrderEntryTemplateShortVo)
    {
        OrderEntryTemplateShortVo template = (OrderEntryTemplateShortVo) node.getValue();
        form.lyrTemplates().tabTemplate().setCaption(template.getFormName());
        loadOrderEntryTemplate(template);
        switchToTemplateView();
    }
    if (node.getValue() instanceof String)
    {
        String name = (String) node.getValue();
        if (name.equals(searchNodeValue))
            switchToSearchView();
        if (name.equals(previewNodeValue))
            switchToPreviewView();
        if (name.equals(placeNodeValue))
        {
            gotoMyOrder(false);
            return true;
        }
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean isTemplateNodeSelected()
{
    TreeNode node = form.treDetails().getSelectedNode();
    if (node == null)
        return false;
    Object value = node.getValue();
    if (value == null)
        return false;

    return node.getValue() instanceof OrderEntryTemplateShortVo;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean processNodeSelection(ims.framework.controls.TreeNode node) throws PresentationLogicException
{
    if (node == null || node.getValue() == null)
        return false;

    if (node.getValue() instanceof OrderEntryTemplateShortVo)
    {
        OrderEntryTemplateShortVo template = (OrderEntryTemplateShortVo) node.getValue();
        form.lyrTemplates().tabTemplate().setCaption(template.getFormName());
        loadOrderEntryTemplate(template);
        switchToTemplateView();
    }
    if (node.getValue() instanceof String)
    {
        String name = (String) node.getValue();
        if (name.equals(searchNodeValue))
            switchToSearchView();
        if (name.equals(previewNodeValue))
            switchToPreviewView();
        if (name.equals(placeNodeValue))
        {
            gotoMyOrder(false);
            return true;
        }
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean isTemplateNodeSelected()
{
    TreeNode node = form.treDetails().getSelectedNode();
    if (node == null)
        return false;
    Object value = node.getValue();
    if (value == null)
        return false;

    return node.getValue() instanceof OrderEntryTemplateShortVo;
}
项目:AvoinApotti    文件:Logic.java   
private void populateTemplateIfSelected()
{
    Object value = form.treDetails().getValue();
    if (value != null && value instanceof OrderEntryTemplateShortVo)
        loadOrderEntryTemplate((OrderEntryTemplateShortVo) value);
}
项目:AvoinApotti    文件:Logic.java   
private void search()
{       
    form.grdDetails().getRows().clear();

    OrderEntryTemplateListSearchCriteriaVo searchCriteria = form.getGlobalContext().OCRR.getOrderEntryTemplateListSearchCriteria();
    if(searchCriteria == null)
        return;

    if(!isValidSearchCriteria())
    {
        form.getGlobalContext().OCRR.setOrderEntryTemplateListSearchCriteria(null);
        engine.showMessage("Please Enter Some Search Criteria");
        return;
    }

    OrderEntryTemplateShortVoCollection records = domain.listOrderEntryTemplates(searchCriteria);

    if(records != null)
    {
        records.sort();
        for(int x = 0; x < records.size(); x++)
        {
            OrderEntryTemplateShortVo item = records.get(x);
            GenForm.grdDetailsRow row = form.grdDetails().getRows().newRow(form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateIDIsNotNull() && form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateID().equals(item.getID_OrderEntryTemplate()));
            row.setValue(item);
            row.setcolImage(form.getImages().OCRR.OrderEntryTemplate);
            row.setcolName(item.getFormName());
            if(item.getActiveStatusIsNotNull())
                row.setcolStatus(item.getActiveStatus().getText());             
        }

        if(form.grdDetails().getSelectedRowIndex() < 0)
            form.getGlobalContext().OCRR.setSelectedOrderEntryTemplateID(null);
        //---------------------------------------------
        if(records.size() == 0)
            engine.showMessage("No Records Found!!!");
        //----------------------------------------------
    }       

    setContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
private void populateTemplateIfSelected()
{
    Object value = form.treDetails().getValue();
    if (value != null && value instanceof OrderEntryTemplateShortVo)
        loadOrderEntryTemplate((OrderEntryTemplateShortVo) value);
}
项目:openMAXIMS    文件:Logic.java   
private void search()
{       
    form.grdDetails().getRows().clear();

    OrderEntryTemplateListSearchCriteriaVo searchCriteria = form.getGlobalContext().OCRR.getOrderEntryTemplateListSearchCriteria();
    if(searchCriteria == null)
        return;

    if(!isValidSearchCriteria())
    {
        form.getGlobalContext().OCRR.setOrderEntryTemplateListSearchCriteria(null);
        engine.showMessage("Please Enter Some Search Criteria");
        return;
    }

    OrderEntryTemplateShortVoCollection records = domain.listOrderEntryTemplates(searchCriteria);

    if(records != null)
    {
        records.sort();
        for(int x = 0; x < records.size(); x++)
        {
            OrderEntryTemplateShortVo item = records.get(x);
            GenForm.grdDetailsRow row = form.grdDetails().getRows().newRow(form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateIDIsNotNull() && form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateID().equals(item.getID_OrderEntryTemplate()));
            row.setValue(item);
            row.setcolImage(form.getImages().OCRR.OrderEntryTemplate);
            row.setcolName(item.getFormName());
            if(item.getActiveStatusIsNotNull())
                row.setcolStatus(item.getActiveStatus().getText());             
        }

        if(form.grdDetails().getSelectedRowIndex() < 0)
            form.getGlobalContext().OCRR.setSelectedOrderEntryTemplateID(null);
        //---------------------------------------------
        if(records.size() == 0)
            engine.showMessage("No Records Found!!!");
        //----------------------------------------------
    }       

    setContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
private void populateTemplateIfSelected()
{
    Object value = form.treDetails().getValue();
    if (value != null && value instanceof OrderEntryTemplateShortVo)
        loadOrderEntryTemplate((OrderEntryTemplateShortVo) value);
}
项目:openMAXIMS    文件:Logic.java   
private void search()
{       
    form.grdDetails().getRows().clear();

    OrderEntryTemplateListSearchCriteriaVo searchCriteria = form.getGlobalContext().OCRR.getOrderEntryTemplateListSearchCriteria();
    if(searchCriteria == null)
        return;

    if(!isValidSearchCriteria())
    {
        form.getGlobalContext().OCRR.setOrderEntryTemplateListSearchCriteria(null);
        engine.showMessage("Please Enter Some Search Criteria");
        return;
    }

    OrderEntryTemplateShortVoCollection records = domain.listOrderEntryTemplates(searchCriteria);

    if(records != null)
    {
        records.sort();
        for(int x = 0; x < records.size(); x++)
        {
            OrderEntryTemplateShortVo item = records.get(x);
            GenForm.grdDetailsRow row = form.grdDetails().getRows().newRow(form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateIDIsNotNull() && form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateID().equals(item.getID_OrderEntryTemplate()));
            row.setValue(item);
            row.setcolImage(form.getImages().OCRR.OrderEntryTemplate);
            row.setcolName(item.getFormName());
            if(item.getActiveStatusIsNotNull())
                row.setcolStatus(item.getActiveStatus().getText());             
        }

        if(form.grdDetails().getSelectedRowIndex() < 0)
            form.getGlobalContext().OCRR.setSelectedOrderEntryTemplateID(null);
        //---------------------------------------------
        if(records.size() == 0)
            engine.showMessage("No Records Found!!!");
        //----------------------------------------------
    }       

    setContextMenu();
}
项目:openmaxims-linux    文件:Logic.java   
private void populateTemplateIfSelected()
{
    Object value = form.treDetails().getValue();
    if (value != null && value instanceof OrderEntryTemplateShortVo)
        loadOrderEntryTemplate((OrderEntryTemplateShortVo) value);
}
项目:openmaxims-linux    文件:Logic.java   
private void search()
{       
    form.grdDetails().getRows().clear();

    OrderEntryTemplateListSearchCriteriaVo searchCriteria = form.getGlobalContext().OCRR.getOrderEntryTemplateListSearchCriteria();
    if(searchCriteria == null)
        return;

    if(!isValidSearchCriteria())
    {
        form.getGlobalContext().OCRR.setOrderEntryTemplateListSearchCriteria(null);
        engine.showMessage("Please Enter Some Search Criteria");
        return;
    }

    OrderEntryTemplateShortVoCollection records = domain.listOrderEntryTemplates(searchCriteria);

    if(records != null)
    {
        records.sort();
        for(int x = 0; x < records.size(); x++)
        {
            OrderEntryTemplateShortVo item = records.get(x);
            GenForm.grdDetailsRow row = form.grdDetails().getRows().newRow(form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateIDIsNotNull() && form.getGlobalContext().OCRR.getSelectedOrderEntryTemplateID().equals(item.getID_OrderEntryTemplate()));
            row.setValue(item);
            row.setcolImage(form.getImages().OCRR.OrderEntryTemplate);
            row.setcolName(item.getFormName());
            if(item.getActiveStatusIsNotNull())
                row.setcolStatus(item.getActiveStatus().getText());             
        }

        if(form.grdDetails().getSelectedRowIndex() < 0)
            form.getGlobalContext().OCRR.setSelectedOrderEntryTemplateID(null);
        //---------------------------------------------
        if(records.size() == 0)
            engine.showMessage("No Records Found!!!");
        //----------------------------------------------
    }       

    setContextMenu();
}