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

项目:AvoinApotti    文件:Logic.java   
private Boolean isPhlebMayCollect(Integer invId)
{
    // go through the context and retrieve the component for this inv
    MyOrderComponentVoCollection voCollComponents = form.getGlobalContext().OCRR.getMyOrderComponents();
    if (voCollComponents == null)
        return null;

    for (int i = 0; i < voCollComponents.size(); i++)
    {
        MyOrderComponentVo voComponent = voCollComponents.get(i);
        if (voComponent.getIDIsNotNull() && voComponent.getID().equals(invId))
            return voComponent.getPhlebMayCollect();

        if (voComponent.getComponentsIsNotNull())
        {
            for (int p = 0; p < voComponent.getComponents().size(); p++)
            {
                MyOrderChildComponentVo voChildComponent = voComponent.getComponents().get(p);
                if (voChildComponent.getIDIsNotNull() && voChildComponent.getID().equals(invId))
                    return voChildComponent.getPhlebMayCollect();
            }
        }
    }

    return null;
}
项目:AvoinApotti    文件:Logic.java   
private ArrayList<Integer> getUsedServices(MyOrderChildComponentVoCollection components, ArrayList<Integer> serviceIDs)
{
    if (components == null)
        return serviceIDs;

    if (serviceIDs == null) serviceIDs = new ArrayList<Integer>();

    for (MyOrderChildComponentVo component : components)
    {
        if (component.getServiceID() != null)
        {
            serviceIDs.add(component.getServiceID());
        }
    }

    return serviceIDs;
}
项目:openMAXIMS    文件:Logic.java   
private Boolean isPhlebMayCollect(Integer invId)
{
    // go through the context and retrieve the component for this inv
    MyOrderComponentVoCollection voCollComponents = form.getGlobalContext().OCRR.getMyOrderComponents();
    if (voCollComponents == null)
        return null;

    for (int i = 0; i < voCollComponents.size(); i++)
    {
        MyOrderComponentVo voComponent = voCollComponents.get(i);
        if (voComponent.getIDIsNotNull() && voComponent.getID().equals(invId))
            return voComponent.getPhlebMayCollect();

        if (voComponent.getComponentsIsNotNull())
        {
            for (int p = 0; p < voComponent.getComponents().size(); p++)
            {
                MyOrderChildComponentVo voChildComponent = voComponent.getComponents().get(p);
                if (voChildComponent.getIDIsNotNull() && voChildComponent.getID().equals(invId))
                    return voChildComponent.getPhlebMayCollect();
            }
        }
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private ArrayList<Integer> getUsedServices(MyOrderChildComponentVoCollection components, ArrayList<Integer> serviceIDs)
{
    if (components == null)
        return serviceIDs;

    if (serviceIDs == null) serviceIDs = new ArrayList<Integer>();

    for (MyOrderChildComponentVo component : components)
    {
        if (component.getServiceID() != null)
        {
            serviceIDs.add(component.getServiceID());
        }
    }

    return serviceIDs;
}
项目:openMAXIMS    文件:Logic.java   
private Boolean isPhlebMayCollect(Integer invId)
{
    // go through the context and retrieve the component for this inv
    MyOrderComponentVoCollection voCollComponents = form.getGlobalContext().OCRR.getMyOrderComponents();
    if (voCollComponents == null)
        return null;

    for (int i = 0; i < voCollComponents.size(); i++)
    {
        MyOrderComponentVo voComponent = voCollComponents.get(i);
        if (voComponent.getIDIsNotNull() && voComponent.getID().equals(invId))
            return voComponent.getPhlebMayCollect();

        if (voComponent.getComponentsIsNotNull())
        {
            for (int p = 0; p < voComponent.getComponents().size(); p++)
            {
                MyOrderChildComponentVo voChildComponent = voComponent.getComponents().get(p);
                if (voChildComponent.getIDIsNotNull() && voChildComponent.getID().equals(invId))
                    return voChildComponent.getPhlebMayCollect();
            }
        }
    }

    return null;
}
项目:openMAXIMS    文件:Logic.java   
private ArrayList<Integer> getUsedServices(MyOrderChildComponentVoCollection components, ArrayList<Integer> serviceIDs)
{
    if (components == null)
        return serviceIDs;

    if (serviceIDs == null) serviceIDs = new ArrayList<Integer>();

    for (MyOrderChildComponentVo component : components)
    {
        if (component.getServiceID() != null)
        {
            serviceIDs.add(component.getServiceID());
        }
    }

    return serviceIDs;
}
项目:openmaxims-linux    文件:Logic.java   
private Boolean isPhlebMayCollect(Integer invId)
{
    // go through the context and retrieve the component for this inv
    MyOrderComponentVoCollection voCollComponents = form.getGlobalContext().OCRR.getMyOrderComponents();
    if (voCollComponents == null)
        return null;

    for (int i = 0; i < voCollComponents.size(); i++)
    {
        MyOrderComponentVo voComponent = voCollComponents.get(i);
        if (voComponent.getIDIsNotNull() && voComponent.getID().equals(invId))
            return voComponent.getPhlebMayCollect();

        if (voComponent.getComponentsIsNotNull())
        {
            for (int p = 0; p < voComponent.getComponents().size(); p++)
            {
                MyOrderChildComponentVo voChildComponent = voComponent.getComponents().get(p);
                if (voChildComponent.getIDIsNotNull() && voChildComponent.getID().equals(invId))
                    return voChildComponent.getPhlebMayCollect();
            }
        }
    }

    return null;
}
项目:openmaxims-linux    文件:Logic.java   
private ArrayList<Integer> getUsedServices(MyOrderChildComponentVoCollection components, ArrayList<Integer> serviceIDs)
{
    if (components == null)
        return serviceIDs;

    if (serviceIDs == null) serviceIDs = new ArrayList<Integer>();

    for (MyOrderChildComponentVo component : components)
    {
        if (component.getServiceID() != null)
        {
            serviceIDs.add(component.getServiceID());
        }
    }

    return serviceIDs;
}
项目:AvoinApotti    文件:Logic.java   
private void loadComponents(MyOrderComponentVoCollection components)
{
    for (int x = 0; x < components.size(); x++)
    {
        MyOrderComponentVo component = components.get(x);

        if (component != null)
        {
            boolean isProfile = false;
            TreeNode node = form.treeComponents().getNodes().add(component, component.getText());
            if (component.getTooltipIsNotNull())
                node.setTooltip(component.getTooltip());
            isProfile = component.getComponentTypeIsNotNull() && component.getComponentType().equals(SelectAndOrderComponentType.PROFILE);
            node.setExpandedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
            node.setCollapsedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
            node.setExpanded(true);

            if (component.getComponentsIsNotNull())
            {
                for (int y = 0; y < component.getComponents().size(); y++)
                {
                    MyOrderChildComponentVo childComponent = component.getComponents().get(y);

                    TreeNode childNode = node.getNodes().add(childComponent, childComponent.getText());
                    if (childComponent.getTooltipIsNotNull())
                        childNode.setTooltip(childComponent.getTooltip());
                    isProfile = childComponent.getComponentTypeIsNotNull() && childComponent.getComponentType().equals(SelectAndOrderComponentType.PROFILE);
                    childNode.setExpandedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
                    childNode.setCollapsedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadComponents(MyOrderComponentVoCollection components)
{
    for (int x = 0; x < components.size(); x++)
    {
        MyOrderComponentVo component = components.get(x);

        if (component != null)
        {
            boolean isProfile = false;
            TreeNode node = form.treeComponents().getNodes().add(component, component.getText());
            if (component.getTooltipIsNotNull())
                node.setTooltip(component.getTooltip());
            isProfile = component.getComponentTypeIsNotNull() && component.getComponentType().equals(SelectAndOrderComponentType.PROFILE);
            node.setExpandedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
            node.setCollapsedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
            node.setExpanded(true);

            if (component.getComponentsIsNotNull())
            {
                for (int y = 0; y < component.getComponents().size(); y++)
                {
                    MyOrderChildComponentVo childComponent = component.getComponents().get(y);

                    TreeNode childNode = node.getNodes().add(childComponent, childComponent.getText());
                    if (childComponent.getTooltipIsNotNull())
                        childNode.setTooltip(childComponent.getTooltip());
                    isProfile = childComponent.getComponentTypeIsNotNull() && childComponent.getComponentType().equals(SelectAndOrderComponentType.PROFILE);
                    childNode.setExpandedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
                    childNode.setCollapsedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadComponents(MyOrderComponentVoCollection components)
{
    for (int x = 0; x < components.size(); x++)
    {
        MyOrderComponentVo component = components.get(x);

        if (component != null)
        {
            boolean isProfile = false;
            TreeNode node = form.treeComponents().getNodes().add(component, component.getText());
            if (component.getTooltipIsNotNull())
                node.setTooltip(component.getTooltip());
            isProfile = component.getComponentTypeIsNotNull() && component.getComponentType().equals(SelectAndOrderComponentType.PROFILE);
            node.setExpandedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
            node.setCollapsedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
            node.setExpanded(true);

            if (component.getComponentsIsNotNull())
            {
                for (int y = 0; y < component.getComponents().size(); y++)
                {
                    MyOrderChildComponentVo childComponent = component.getComponents().get(y);

                    TreeNode childNode = node.getNodes().add(childComponent, childComponent.getText());
                    if (childComponent.getTooltipIsNotNull())
                        childNode.setTooltip(childComponent.getTooltip());
                    isProfile = childComponent.getComponentTypeIsNotNull() && childComponent.getComponentType().equals(SelectAndOrderComponentType.PROFILE);
                    childNode.setExpandedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
                    childNode.setCollapsedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
                }
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void loadComponents(MyOrderComponentVoCollection components)
{
    for (int x = 0; x < components.size(); x++)
    {
        MyOrderComponentVo component = components.get(x);

        if (component != null)
        {
            boolean isProfile = false;
            TreeNode node = form.treeComponents().getNodes().add(component, component.getText());
            if (component.getTooltipIsNotNull())
                node.setTooltip(component.getTooltip());
            isProfile = component.getComponentTypeIsNotNull() && component.getComponentType().equals(SelectAndOrderComponentType.PROFILE);
            node.setExpandedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
            node.setCollapsedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
            node.setExpanded(true);

            if (component.getComponentsIsNotNull())
            {
                for (int y = 0; y < component.getComponents().size(); y++)
                {
                    MyOrderChildComponentVo childComponent = component.getComponents().get(y);

                    TreeNode childNode = node.getNodes().add(childComponent, childComponent.getText());
                    if (childComponent.getTooltipIsNotNull())
                        childNode.setTooltip(childComponent.getTooltip());
                    isProfile = childComponent.getComponentTypeIsNotNull() && childComponent.getComponentType().equals(SelectAndOrderComponentType.PROFILE);
                    childNode.setExpandedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
                    childNode.setCollapsedImage(isProfile ? form.getImages().OCRR.Profile : form.getImages().OCRR.Investigation);
                }
            }
        }
    }
}