Java 类ims.core.vo.MosOrgLocVo 实例源码

项目:AvoinApotti    文件:Logic.java   
/**
 * @param voCollMosOrgLoc
 * @param newNode
 */
private void showOrgForMos(MosOrgLocVoCollection voCollMosOrgLoc, TreeNode mosNode)
{
    mosNode.getNodes().clear();
    for (int i = 0; i < voCollMosOrgLoc.size(); i++)
    {
        MosOrgLocVo vo = voCollMosOrgLoc.get(i);
        TreeNode orgNode = mosNode.getNodes().add(vo.getOrganisation(), vo.getOrganisation().getName());
        orgNode.setCollapsedImage(form.getImages().Admin.Organisation);
        HCPLocationLiteVo.mixedSort(vo.getHCPLocations());
        for (int j = 0; j < vo.getHCPLocations().size(); j++)
        {
            HCPLocationLiteVo locVo = vo.getHCPLocations().get(j);

            StringBuffer sb = new StringBuffer();
            sb.append(locVo.getLocation().getName());
            sb.append(locVo.getAccreditationStatusIsNotNull() ? " ," + locVo.getAccreditationStatus().toString() : "");

            TreeNode locNode = orgNode.getNodes().add(locVo, sb.toString());
            if (j == 0)
                locNode.setExpanded(true);

            if (locVo.getLocation() instanceof LocSiteVo || locVo.getLocation() instanceof LocSiteShortVo)
            {
                locNode.setCollapsedImage(form.getImages().Admin.LocationSite);
                locNode.setExpandedImage(form.getImages().Admin.LocationSite);
            }
            else
            {
                locNode.setCollapsedImage(form.getImages().Admin.Location);
                locNode.setExpandedImage(form.getImages().Admin.Location);
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
/**
 * @param voCollMosOrgLoc
 * @param newNode
 */
private void showOrgForMos(MosOrgLocVoCollection voCollMosOrgLoc, TreeNode mosNode)
{
    mosNode.getNodes().clear();
    for (int i = 0; i < voCollMosOrgLoc.size(); i++)
    {
        MosOrgLocVo vo = voCollMosOrgLoc.get(i);
        TreeNode orgNode = mosNode.getNodes().add(vo.getOrganisation(), vo.getOrganisation().getName());
        orgNode.setCollapsedImage(form.getImages().Admin.Organisation);
        HCPLocationLiteVo.mixedSort(vo.getHCPLocations());
        for (int j = 0; j < vo.getHCPLocations().size(); j++)
        {
            HCPLocationLiteVo locVo = vo.getHCPLocations().get(j);

            StringBuffer sb = new StringBuffer();
            sb.append(locVo.getLocation().getName());
            sb.append(locVo.getAccreditationStatusIsNotNull() ? " ," + locVo.getAccreditationStatus().toString() : "");

            TreeNode locNode = orgNode.getNodes().add(locVo, sb.toString());
            if (j == 0)
                locNode.setExpanded(true);

            if (locVo.getLocation() instanceof LocSiteVo || locVo.getLocation() instanceof LocSiteShortVo)
            {
                locNode.setCollapsedImage(form.getImages().Admin.LocationSite);
                locNode.setExpandedImage(form.getImages().Admin.LocationSite);
            }
            else
            {
                locNode.setCollapsedImage(form.getImages().Admin.Location);
                locNode.setExpandedImage(form.getImages().Admin.Location);
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
/**
 * @param voCollMosOrgLoc
 * @param newNode
 */
private void showOrgForMos(MosOrgLocVoCollection voCollMosOrgLoc, TreeNode mosNode)
{
    mosNode.getNodes().clear();
    for (int i = 0; i < voCollMosOrgLoc.size(); i++)
    {
        MosOrgLocVo vo = voCollMosOrgLoc.get(i);
        TreeNode orgNode = mosNode.getNodes().add(vo.getOrganisation(), vo.getOrganisation().getName());
        orgNode.setCollapsedImage(form.getImages().Admin.Organisation);
        HCPLocationLiteVo.mixedSort(vo.getHCPLocations());
        for (int j = 0; j < vo.getHCPLocations().size(); j++)
        {
            HCPLocationLiteVo locVo = vo.getHCPLocations().get(j);

            StringBuffer sb = new StringBuffer();
            sb.append(locVo.getLocation().getName());
            sb.append(locVo.getAccreditationStatusIsNotNull() ? " ," + locVo.getAccreditationStatus().toString() : "");

            TreeNode locNode = orgNode.getNodes().add(locVo, sb.toString());
            if (j == 0)
                locNode.setExpanded(true);

            if (locVo.getLocation() instanceof LocSiteVo || locVo.getLocation() instanceof LocSiteShortVo)
            {
                locNode.setCollapsedImage(form.getImages().Admin.LocationSite);
                locNode.setExpandedImage(form.getImages().Admin.LocationSite);
            }
            else
            {
                locNode.setCollapsedImage(form.getImages().Admin.Location);
                locNode.setExpandedImage(form.getImages().Admin.Location);
            }
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
/**
 * @param voCollMosOrgLoc
 * @param newNode
 */
private void showOrgForMos(MosOrgLocVoCollection voCollMosOrgLoc, TreeNode mosNode)
{
    mosNode.getNodes().clear();
    for (int i = 0; i < voCollMosOrgLoc.size(); i++)
    {
        MosOrgLocVo vo = voCollMosOrgLoc.get(i);
        TreeNode orgNode = mosNode.getNodes().add(vo.getOrganisation(), vo.getOrganisation().getName());
        orgNode.setCollapsedImage(form.getImages().Admin.Organisation);
        HCPLocationLiteVo.mixedSort(vo.getHCPLocations());
        for (int j = 0; j < vo.getHCPLocations().size(); j++)
        {
            HCPLocationLiteVo locVo = vo.getHCPLocations().get(j);

            StringBuffer sb = new StringBuffer();
            sb.append(locVo.getLocation().getName());
            sb.append(locVo.getAccreditationStatusIsNotNull() ? " ," + locVo.getAccreditationStatus().toString() : "");

            TreeNode locNode = orgNode.getNodes().add(locVo, sb.toString());
            if (j == 0)
                locNode.setExpanded(true);

            if (locVo.getLocation() instanceof LocSiteVo || locVo.getLocation() instanceof LocSiteShortVo)
            {
                locNode.setCollapsedImage(form.getImages().Admin.LocationSite);
                locNode.setExpandedImage(form.getImages().Admin.LocationSite);
            }
            else
            {
                locNode.setCollapsedImage(form.getImages().Admin.Location);
                locNode.setExpandedImage(form.getImages().Admin.Location);
            }
        }
    }

}