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

项目:AvoinApotti    文件:Logic.java   
private MyOrderComponentVo addComponentToTree(TreeNode node, SelectedComponentFromSelectOrderVo component, Image image)
{
    node.setTooltip(escapeAmpersandInTooltip(component.getTooltip()));
    node.setCollapsedImage(image);

    MyOrderComponentVo orderComponent = new MyOrderComponentVo();
    orderComponent.setID(component.getID());
    orderComponent.setComponentType(component.getComponentType());
    orderComponent.setText(component.getText());
    orderComponent.setCategory(component.getCategory());
    orderComponent.setTooltip(escapeAmpersandInTooltip(component.getTooltip()));
    orderComponent.setParentInvestigationId(component.getParentInvestigationId());
    orderComponent.setIsAddon(component.getIsAddon());
    orderComponent.setRequiresSite(component.getRequiresSite());
    orderComponent.setServiceID(component.getServiceID());
    orderComponent.setMinReOrderPeriod(component.getMinReOrderPeriod());
    orderComponent.setMinReOrderVal(component.getMinReOrderVal());
    orderComponent.setMinReOrderFemalePeriod(component.getMinReOrderFemalePeriod());
    orderComponent.setMinReOrderFemaleVal(component.getMinReOrderFemaleVal());
    orderComponent.setPhlebMayCollect(component.getPhlebMayCollect());
    orderComponent.setGenderSpecific(component.getGenderSpecific());
    orderComponent.setReOrderReason(component.getReOrderReason());//WDEV-16624

    return orderComponent;
}
项目: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(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

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

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

        if (component.getComponents() != null)
        {
            getUsedServices(component.getComponents(), serviceIDs);
        }

    }

    return serviceIDs;
}
项目:AvoinApotti    文件:Logic.java   
private CategoryCollection getUsedCategories(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

    CategoryCollection category = new CategoryCollection();

    for (MyOrderComponentVo component : voCollSelectedComponents)
    {
        if (component.getCategory() != null)
        {
            category.add(component.getCategory());
        }

        if (component.getComponents() != null)
        {
            getUsedCategories(component.getComponents(), category);
        }
    }

    return category;
}
项目:openMAXIMS    文件:Logic.java   
private MyOrderComponentVo addComponentToTree(TreeNode node, SelectedComponentFromSelectOrderVo component, Image image)
{
    node.setTooltip(escapeAmpersandInTooltip(component.getTooltip()));
    node.setCollapsedImage(image);

    MyOrderComponentVo orderComponent = new MyOrderComponentVo();
    orderComponent.setID(component.getID());
    orderComponent.setComponentType(component.getComponentType());
    orderComponent.setText(component.getText());
    orderComponent.setCategory(component.getCategory());
    orderComponent.setTooltip(escapeAmpersandInTooltip(component.getTooltip()));
    orderComponent.setParentInvestigationId(component.getParentInvestigationId());
    orderComponent.setIsAddon(component.getIsAddon());
    orderComponent.setRequiresSite(component.getRequiresSite());
    orderComponent.setServiceID(component.getServiceID());
    orderComponent.setMinReOrderPeriod(component.getMinReOrderPeriod());
    orderComponent.setMinReOrderVal(component.getMinReOrderVal());
    orderComponent.setMinReOrderFemalePeriod(component.getMinReOrderFemalePeriod());
    orderComponent.setMinReOrderFemaleVal(component.getMinReOrderFemaleVal());
    orderComponent.setPhlebMayCollect(component.getPhlebMayCollect());
    orderComponent.setGenderSpecific(component.getGenderSpecific());
    orderComponent.setReOrderReason(component.getReOrderReason());//WDEV-16624

    return orderComponent;
}
项目: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(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

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

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

        if (component.getComponents() != null)
        {
            getUsedServices(component.getComponents(), serviceIDs);
        }

    }

    return serviceIDs;
}
项目:openMAXIMS    文件:Logic.java   
private CategoryCollection getUsedCategories(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

    CategoryCollection category = new CategoryCollection();

    for (MyOrderComponentVo component : voCollSelectedComponents)
    {
        if (component.getCategory() != null)
        {
            category.add(component.getCategory());
        }

        if (component.getComponents() != null)
        {
            getUsedCategories(component.getComponents(), category);
        }
    }

    return category;
}
项目:openMAXIMS    文件:Logic.java   
private MyOrderComponentVo addComponentToTree(TreeNode node, SelectedComponentFromSelectOrderVo component, Image image)
{
    node.setTooltip(escapeAmpersandInTooltip(component.getTooltip()));
    node.setCollapsedImage(image);

    MyOrderComponentVo orderComponent = new MyOrderComponentVo();
    orderComponent.setID(component.getID());
    orderComponent.setComponentType(component.getComponentType());
    orderComponent.setText(component.getText());
    orderComponent.setCategory(component.getCategory());
    orderComponent.setTooltip(escapeAmpersandInTooltip(component.getTooltip()));
    orderComponent.setParentInvestigationId(component.getParentInvestigationId());
    orderComponent.setIsAddon(component.getIsAddon());
    orderComponent.setRequiresSite(component.getRequiresSite());
    orderComponent.setServiceID(component.getServiceID());
    orderComponent.setMinReOrderPeriod(component.getMinReOrderPeriod());
    orderComponent.setMinReOrderVal(component.getMinReOrderVal());
    orderComponent.setMinReOrderFemalePeriod(component.getMinReOrderFemalePeriod());
    orderComponent.setMinReOrderFemaleVal(component.getMinReOrderFemaleVal());
    orderComponent.setPhlebMayCollect(component.getPhlebMayCollect());
    orderComponent.setGenderSpecific(component.getGenderSpecific());
    orderComponent.setReOrderReason(component.getReOrderReason());//WDEV-16624

    return orderComponent;
}
项目: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(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

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

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

        if (component.getComponents() != null)
        {
            getUsedServices(component.getComponents(), serviceIDs);
        }

    }

    return serviceIDs;
}
项目:openMAXIMS    文件:Logic.java   
private CategoryCollection getUsedCategories(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

    CategoryCollection category = new CategoryCollection();

    for (MyOrderComponentVo component : voCollSelectedComponents)
    {
        if (component.getCategory() != null)
        {
            category.add(component.getCategory());
        }

        if (component.getComponents() != null)
        {
            getUsedCategories(component.getComponents(), category);
        }
    }

    return category;
}
项目:openmaxims-linux    文件:Logic.java   
private MyOrderComponentVo addComponentToTree(TreeNode node, SelectedComponentFromSelectOrderVo component, Image image)
{
    node.setTooltip(escapeAmpersandInTooltip(component.getTooltip()));
    node.setCollapsedImage(image);

    MyOrderComponentVo orderComponent = new MyOrderComponentVo();
    orderComponent.setID(component.getID());
    orderComponent.setComponentType(component.getComponentType());
    orderComponent.setText(component.getText());
    orderComponent.setCategory(component.getCategory());
    orderComponent.setTooltip(escapeAmpersandInTooltip(component.getTooltip()));
    orderComponent.setParentInvestigationId(component.getParentInvestigationId());
    orderComponent.setIsAddon(component.getIsAddon());
    orderComponent.setRequiresSite(component.getRequiresSite());
    orderComponent.setServiceID(component.getServiceID());
    orderComponent.setMinReOrderPeriod(component.getMinReOrderPeriod());
    orderComponent.setMinReOrderVal(component.getMinReOrderVal());
    orderComponent.setMinReOrderFemalePeriod(component.getMinReOrderFemalePeriod());
    orderComponent.setMinReOrderFemaleVal(component.getMinReOrderFemaleVal());
    orderComponent.setPhlebMayCollect(component.getPhlebMayCollect());
    orderComponent.setGenderSpecific(component.getGenderSpecific());
    orderComponent.setReOrderReason(component.getReOrderReason());//WDEV-16624

    return orderComponent;
}
项目: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(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

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

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

        if (component.getComponents() != null)
        {
            getUsedServices(component.getComponents(), serviceIDs);
        }

    }

    return serviceIDs;
}
项目:openmaxims-linux    文件:Logic.java   
private CategoryCollection getUsedCategories(MyOrderComponentVoCollection voCollSelectedComponents)
{
    if (voCollSelectedComponents == null)
        return null;

    CategoryCollection category = new CategoryCollection();

    for (MyOrderComponentVo component : voCollSelectedComponents)
    {
        if (component.getCategory() != null)
        {
            category.add(component.getCategory());
        }

        if (component.getComponents() != null)
        {
            getUsedCategories(component.getComponents(), category);
        }
    }

    return category;
}
项目:AvoinApotti    文件:Logic.java   
private void rebuildComponentsFromData(OcsOrderVo voOcsOrder)
{
    // gather the orderinvestigation records and populate the
    // MyOrderComponents Global Context
    MyOrderComponentVoCollection components = new MyOrderComponentVoCollection();

    if (voOcsOrder.getInvestigationsIsNotNull())
    {
        for (int i = 0; i < voOcsOrder.getInvestigations().size(); i++)
        {
            OrderInvestigationVo voOrderInv = voOcsOrder.getInvestigations().get(i);

            if (OrderInvStatus.CANCELLED.equals(voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus())
                    || OrderInvStatus.CANCEL_REQUEST.equals(voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus()))
                continue;

            MyOrderComponentVo component = new MyOrderComponentVo();
            component.setCategory(voOrderInv.getInvestigation().getInvestigationIndex().getCategory());
            component.setAdditionalLocationInfo(voOrderInv.getInvestigation().getNameWithLocationInfo());
            component.setComponentType(SelectAndOrderComponentType.INVESTIGATION);
            component.setGenderSpecific(voOrderInv.getInvestigation().getInvestigationIndex().getGenderSpecific());
            component.setHelpText(voOrderInv.getInvestigation().buildHelpTextTooltip());
            component.setID(voOrderInv.getInvestigation().getID_Investigation());
            component.setIsAddon(voOrderInv.getInvestigation().getIsAddon());
            component.setPhlebMayCollect(voOrderInv.getInvestigation().getInvestigationIndex().getPhlebMayCollect());
            component.setRequiresSite(voOrderInv.getInvestigation().getInvestigationIndex().getRequiresSiteSpecifier());
            component.setServiceID(voOrderInv.getInvestigation().getProviderService() != null && voOrderInv.getInvestigation().getProviderService().getLocationService() != null ? voOrderInv.getInvestigation().getProviderService().getLocationService().getService().getID_Service() : null);
            component.setText(voOrderInv.getInvestigation().getInvestigationIndex().getName());
            component.setTooltip(voOrderInv.getInvestigation().getInvestigationIndex().getDescription());

            components.add(component);
        }

        components.sort(new MyOrderComponentComparator());//WDEV-14912
        form.getGlobalContext().OCRR.setMyOrderComponents(components);
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean hasClinicalInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.CLINICAL.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean hasRadiologyInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.CLINICALIMAGING.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean hasPathologyInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.PATHOLOGY.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目: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);
                }
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
public int compare(MyOrderComponentVo o1, MyOrderComponentVo o2)
{
    if(o1 != null && o1.getTextIsNotNull() && o2 != null && o2.getTextIsNotNull())
            return order*o1.getText().compareToIgnoreCase(o2.getText());

    if (o1 == null || !o1.getTextIsNotNull())
        return -1 * order;

    if (o2 == null || !o2.getTextIsNotNull())
        return order;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
private void rebuildComponentsFromData(OcsOrderVo voOcsOrder)
{
    // gather the orderinvestigation records and populate the
    // MyOrderComponents Global Context
    MyOrderComponentVoCollection components = new MyOrderComponentVoCollection();

    if (voOcsOrder.getInvestigationsIsNotNull())
    {
        for (int i = 0; i < voOcsOrder.getInvestigations().size(); i++)
        {
            OrderInvestigationVo voOrderInv = voOcsOrder.getInvestigations().get(i);

            if (OrderInvStatus.CANCELLED.equals(voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus())
                    || OrderInvStatus.CANCEL_REQUEST.equals(voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus()))
                continue;

            MyOrderComponentVo component = new MyOrderComponentVo();
            component.setCategory(voOrderInv.getInvestigation().getInvestigationIndex().getCategory());
            component.setAdditionalLocationInfo(voOrderInv.getInvestigation().getNameWithLocationInfo());
            component.setComponentType(SelectAndOrderComponentType.INVESTIGATION);
            component.setGenderSpecific(voOrderInv.getInvestigation().getInvestigationIndex().getGenderSpecific());
            component.setHelpText(voOrderInv.getInvestigation().buildHelpTextTooltip());
            component.setID(voOrderInv.getInvestigation().getID_Investigation());
            component.setIsAddon(voOrderInv.getInvestigation().getIsAddon());
            component.setPhlebMayCollect(voOrderInv.getInvestigation().getInvestigationIndex().getPhlebMayCollect());
            component.setRequiresSite(voOrderInv.getInvestigation().getInvestigationIndex().getRequiresSiteSpecifier());
            component.setServiceID(voOrderInv.getInvestigation().getProviderService() != null && voOrderInv.getInvestigation().getProviderService().getLocationService() != null ? voOrderInv.getInvestigation().getProviderService().getLocationService().getService().getID_Service() : null);
            component.setText(voOrderInv.getInvestigation().getInvestigationIndex().getName());
            component.setTooltip(voOrderInv.getInvestigation().getInvestigationIndex().getDescription());

            components.add(component);
        }

        components.sort(new MyOrderComponentComparator());//WDEV-14912
        form.getGlobalContext().OCRR.setMyOrderComponents(components);
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean hasClinicalInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.CLINICAL.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean hasRadiologyInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.CLINICALIMAGING.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean hasPathologyInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.PATHOLOGY.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目: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   
public int compare(MyOrderComponentVo o1, MyOrderComponentVo o2)
{
    if(o1 != null && o1.getTextIsNotNull() && o2 != null && o2.getTextIsNotNull())
            return order*o1.getText().compareToIgnoreCase(o2.getText());

    if (o1 == null || !o1.getTextIsNotNull())
        return -1 * order;

    if (o2 == null || !o2.getTextIsNotNull())
        return order;

    return 0;
}
项目:openMAXIMS    文件:Logic.java   
private void rebuildComponentsFromData(OcsOrderVo voOcsOrder)
{
    // gather the orderinvestigation records and populate the
    // MyOrderComponents Global Context
    MyOrderComponentVoCollection components = new MyOrderComponentVoCollection();

    if (voOcsOrder.getInvestigationsIsNotNull())
    {
        for (int i = 0; i < voOcsOrder.getInvestigations().size(); i++)
        {
            OrderInvestigationVo voOrderInv = voOcsOrder.getInvestigations().get(i);

            if (OrderInvStatus.CANCELLED.equals(voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus())
                    || OrderInvStatus.CANCEL_REQUEST.equals(voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus()))
                continue;

            MyOrderComponentVo component = new MyOrderComponentVo();
            component.setCategory(voOrderInv.getInvestigation().getInvestigationIndex().getCategory());
            component.setAdditionalLocationInfo(voOrderInv.getInvestigation().getNameWithLocationInfo());
            component.setComponentType(SelectAndOrderComponentType.INVESTIGATION);
            component.setGenderSpecific(voOrderInv.getInvestigation().getInvestigationIndex().getGenderSpecific());
            component.setHelpText(voOrderInv.getInvestigation().buildHelpTextTooltip());
            component.setID(voOrderInv.getInvestigation().getID_Investigation());
            component.setIsAddon(voOrderInv.getInvestigation().getIsAddon());
            component.setPhlebMayCollect(voOrderInv.getInvestigation().getInvestigationIndex().getPhlebMayCollect());
            component.setRequiresSite(voOrderInv.getInvestigation().getInvestigationIndex().getRequiresSiteSpecifier());
            component.setServiceID(voOrderInv.getInvestigation().getProviderService() != null && voOrderInv.getInvestigation().getProviderService().getLocationService() != null ? voOrderInv.getInvestigation().getProviderService().getLocationService().getService().getID_Service() : null);
            component.setText(voOrderInv.getInvestigation().getInvestigationIndex().getName());
            component.setTooltip(voOrderInv.getInvestigation().getInvestigationIndex().getDescription());

            components.add(component);
        }

        components.sort(new MyOrderComponentComparator());//WDEV-14912
        form.getGlobalContext().OCRR.setMyOrderComponents(components);
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean hasClinicalInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.CLINICAL.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean hasRadiologyInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.CLINICALIMAGING.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean hasPathologyInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.PATHOLOGY.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目: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   
public int compare(MyOrderComponentVo o1, MyOrderComponentVo o2)
{
    if(o1 != null && o1.getTextIsNotNull() && o2 != null && o2.getTextIsNotNull())
            return order*o1.getText().compareToIgnoreCase(o2.getText());

    if (o1 == null || !o1.getTextIsNotNull())
        return -1 * order;

    if (o2 == null || !o2.getTextIsNotNull())
        return order;

    return 0;
}
项目:openmaxims-linux    文件:Logic.java   
private void rebuildComponentsFromData(OcsOrderVo voOcsOrder)
{
    // gather the orderinvestigation records and populate the
    // MyOrderComponents Global Context
    MyOrderComponentVoCollection components = new MyOrderComponentVoCollection();

    if (voOcsOrder.getInvestigationsIsNotNull())
    {
        for (int i = 0; i < voOcsOrder.getInvestigations().size(); i++)
        {
            OrderInvestigationVo voOrderInv = voOcsOrder.getInvestigations().get(i);

            if (OrderInvStatus.CANCELLED.equals(voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus())
                    || OrderInvStatus.CANCEL_REQUEST.equals(voOrderInv.getOrdInvCurrentStatus().getOrdInvStatus()))
                continue;

            MyOrderComponentVo component = new MyOrderComponentVo();
            component.setCategory(voOrderInv.getInvestigation().getInvestigationIndex().getCategory());
            component.setAdditionalLocationInfo(voOrderInv.getInvestigation().getNameWithLocationInfo());
            component.setComponentType(SelectAndOrderComponentType.INVESTIGATION);
            component.setGenderSpecific(voOrderInv.getInvestigation().getInvestigationIndex().getGenderSpecific());
            component.setHelpText(voOrderInv.getInvestigation().buildHelpTextTooltip());
            component.setID(voOrderInv.getInvestigation().getID_Investigation());
            component.setIsAddon(voOrderInv.getInvestigation().getIsAddon());
            component.setPhlebMayCollect(voOrderInv.getInvestigation().getInvestigationIndex().getPhlebMayCollect());
            component.setRequiresSite(voOrderInv.getInvestigation().getInvestigationIndex().getRequiresSiteSpecifier());
            component.setServiceID(voOrderInv.getInvestigation().getProviderService() != null && voOrderInv.getInvestigation().getProviderService().getLocationService() != null ? voOrderInv.getInvestigation().getProviderService().getLocationService().getService().getID_Service() : null);
            component.setText(voOrderInv.getInvestigation().getInvestigationIndex().getName());
            component.setTooltip(voOrderInv.getInvestigation().getInvestigationIndex().getDescription());

            components.add(component);
        }

        components.sort(new MyOrderComponentComparator());//WDEV-14912
        form.getGlobalContext().OCRR.setMyOrderComponents(components);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private boolean hasClinicalInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.CLINICAL.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean hasRadiologyInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.CLINICALIMAGING.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private boolean hasPathologyInvestigations(MyOrderComponentVoCollection myOrderComponents)
{
    if (myOrderComponents == null)
        return false;

    for (MyOrderComponentVo component : myOrderComponents)
    {
        if (Category.PATHOLOGY.equals(component.getCategory()))
            return true;
    }

    return false;
}
项目: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);
                }
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
public int compare(MyOrderComponentVo o1, MyOrderComponentVo o2)
{
    if(o1 != null && o1.getTextIsNotNull() && o2 != null && o2.getTextIsNotNull())
            return order*o1.getText().compareToIgnoreCase(o2.getText());

    if (o1 == null || !o1.getTextIsNotNull())
        return -1 * order;

    if (o2 == null || !o2.getTextIsNotNull())
        return order;

    return 0;
}