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

项目:AvoinApotti    文件:Logic.java   
/**
 * 
 */
private void fillHospitalListCombo()
{
    LocMostVo locationFilter = new LocMostVo();
    locationFilter.setType(LocationType.HOSP);
    locationFilter.setIsActive(Boolean.TRUE);
    // Wards are used in 2 different tabs so if wards already retrieved dont
    // hit DB
    LocMostVoCollection voCollHospitals = null;
    voCollHospitals = domain.listLocations(locationFilter);
    if (voCollHospitals != null)
    {
        for (int i = 0; i < voCollHospitals.size(); i++)
        {
            form.cmbHospital().newRow(voCollHospitals.get(i), voCollHospitals.get(i).getName());
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
private void fillWardListCombo()
{
    LocMostVo filter = new LocMostVo();
    filter.setType(LocationType.WARD);
    filter.setParentLocation(form.cmbHospital().getValue());
    filter.setIsActive(Boolean.TRUE);
    filter.setIsVirtual(Boolean.FALSE);


    LocMostVoCollection voColl = domain.listLocations(filter);
    for (int i = 0; i < voColl.size(); i++)
    {
        LocMostVo ward = voColl.get(i);
        form.cmbWard().newRow(ward, ward.getName());
    }

}
项目:AvoinApotti    文件:Logic.java   
private void fillHospitalListCombo()
{
    LocMostVo locationFilter = new LocMostVo();
    locationFilter.setType(LocationType.HOSP);
    locationFilter.setIsActive(Boolean.TRUE);
    // Wards are used in 2 different tabs so if wards already retrieved dont
    // hit DB
    LocMostVoCollection voCollHospitals = null;
    voCollHospitals = domain.listLocations(locationFilter);
    if (voCollHospitals != null)
    {
        for (int i = 0; i < voCollHospitals.size(); i++)
        {
            form.cmbHospital().newRow(voCollHospitals.get(i), voCollHospitals.get(i).getName());
        }
    }

}
项目:AvoinApotti    文件:Logic.java   
private void fillWardListCombo()
{
    form.imbRefresh().setEnabled(false);
    LocMostVo filter = new LocMostVo();
    filter.setType(LocationType.WARD);
    filter.setIsActive(Boolean.TRUE);
    filter.setParentLocation(form.cmbHospital().getValue());

    LocMostVoCollection voColl = domain.listLocations(filter);
    for (int i = 0; i < voColl.size(); i++)
    {
        LocMostVo ward = voColl.get(i);
        form.cmbWard().newRow(ward, ward.getName());
    }

}
项目:AvoinApotti    文件:Logic.java   
private void populateLocations(LocMostVoCollection voColl, TreeNode node)
{
    TreeNode myNode = null;

    if (voColl == null)
        return;

    voColl.sort();
    for (int i = 0; i < voColl.size(); i++)
    {
        myNode = node.getNodes().add(voColl.get(i), voColl.get(i).getName());

        myNode.setCollapsedImage(form.getImages().Admin.Location);
        myNode.setExpandedImage(form.getImages().Admin.Location);

        populateLocations(voColl.get(i).getLocations(), myNode);
    }
}
项目:AvoinApotti    文件:OrgTreeHelper.java   
private void populateLocations(LocMostVoCollection locations, TreeNode parentNode)
{
    if (locations == null)
        return;

    TreeNode locNode = null;
    for(int i=0; i < locations.size(); i++)
    {
        LocMostVo voLoc = locations.get(i); 
        if (voLoc.getIsActive().booleanValue() == false && !showInactive)
            continue;

        Image img = voLoc.getIsActive().booleanValue() ? locImg: locDisImg;         

        //WDEV-6444 - if node is inactive disable drag dropping for that node
        if(voLoc.getIsActive().booleanValue() == false)
            locNode = parentNode.getNodes().add(voLoc, voLoc.getName());
        else
            locNode = parentNode.getNodes().add(voLoc, voLoc.getName(), LOC_NODE, new int[]{LS_NODE,LOC_NODE}, true);

        locNode.setCollapsedImage(img);
        locNode.setExpandedImage(img);  
        locNode.setCheckBoxVisible(showCheckBoxes);
        populateLocations(voLoc.getLocations().sort(), locNode);
    }       
}
项目:AvoinApotti    文件:OrganisationAndLocationImpl.java   
public LocMostVoCollection listLocation(LocMostVo locationFilter)
    {
        List locations;
        if (locationFilter == null)
        {
//          wdev-2730
            StringBuffer hql = new StringBuffer();
            hql.append(" from LocSite as ls");
            hql.append(" where");
            hql.append(" and ls.isActive =:active");
            hql.append(" and ls.isRIE is null");
            hql.append(" and ls.isVirtual =:virtual");

            locations = getDomainFactory().find(hql.toString(), new String[]{"active", "virtual"}, new Object[]{Boolean.TRUE, Boolean.FALSE});
        }
        else
        {
            locations = listLocationsByParentLocation(locationFilter.getType(),locationFilter.getParentLocation(),locationFilter.getIsActive(),locationFilter.getReferringHospital(),locationFilter.getTreatingHosp(), null);
        }

        return LocMostVoAssembler.createLocMostVoCollectionFromLocation(locations).sort();
    }
项目:openMAXIMS    文件:Logic.java   
/**
 * 
 */
private void fillHospitalListCombo()
{
    LocMostVo locationFilter = new LocMostVo();
    locationFilter.setType(LocationType.HOSP);
    locationFilter.setIsActive(Boolean.TRUE);
    // Wards are used in 2 different tabs so if wards already retrieved dont
    // hit DB
    LocMostVoCollection voCollHospitals = null;
    voCollHospitals = domain.listLocations(locationFilter);
    if (voCollHospitals != null)
    {
        for (int i = 0; i < voCollHospitals.size(); i++)
        {
            form.cmbHospital().newRow(voCollHospitals.get(i), voCollHospitals.get(i).getName());
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void fillWardListCombo()
{
    LocMostVo filter = new LocMostVo();
    filter.setType(LocationType.WARD);
    filter.setParentLocation(form.cmbHospital().getValue());
    filter.setIsActive(Boolean.TRUE);
    filter.setIsVirtual(Boolean.FALSE);


    LocMostVoCollection voColl = domain.listLocations(filter);
    for (int i = 0; i < voColl.size(); i++)
    {
        LocMostVo ward = voColl.get(i);
        form.cmbWard().newRow(ward, ward.getName());
    }

}
项目:openMAXIMS    文件:Logic.java   
private void fillHospitalListCombo()
{
    LocMostVo locationFilter = new LocMostVo();
    locationFilter.setType(LocationType.HOSP);
    locationFilter.setIsActive(Boolean.TRUE);
    // Wards are used in 2 different tabs so if wards already retrieved dont
    // hit DB
    LocMostVoCollection voCollHospitals = null;
    voCollHospitals = domain.listLocations(locationFilter);
    if (voCollHospitals != null)
    {
        for (int i = 0; i < voCollHospitals.size(); i++)
        {
            form.cmbHospital().newRow(voCollHospitals.get(i), voCollHospitals.get(i).getName());
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void fillWardListCombo()
{
    form.imbRefresh().setEnabled(false);
    LocMostVo filter = new LocMostVo();
    filter.setType(LocationType.WARD);
    filter.setIsActive(Boolean.TRUE);
    filter.setParentLocation(form.cmbHospital().getValue());

    LocMostVoCollection voColl = domain.listLocations(filter);
    for (int i = 0; i < voColl.size(); i++)
    {
        LocMostVo ward = voColl.get(i);
        form.cmbWard().newRow(ward, ward.getName());
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateLocations(LocMostVoCollection voColl, TreeNode node)
{
    TreeNode myNode = null;

    if (voColl == null)
        return;

    voColl.sort();
    for (int i = 0; i < voColl.size(); i++)
    {
        myNode = node.getNodes().add(voColl.get(i), voColl.get(i).getName());

        myNode.setCollapsedImage(form.getImages().Admin.Location);
        myNode.setExpandedImage(form.getImages().Admin.Location);

        populateLocations(voColl.get(i).getLocations(), myNode);
    }
}
项目:openMAXIMS    文件:OrganisationAndLocationImpl.java   
public LocMostVoCollection listLocation(LocMostVo locationFilter)
    {
        List locations;
        if (locationFilter == null)
        {
//          wdev-2730
            StringBuffer hql = new StringBuffer();
            hql.append(" from LocSite as ls");
            hql.append(" where");
            hql.append(" and ls.isActive =:active");
            hql.append(" and ls.isRIE is null");
            hql.append(" and ls.isVirtual =:virtual");

            locations = getDomainFactory().find(hql.toString(), new String[]{"active", "virtual"}, new Object[]{Boolean.TRUE, Boolean.FALSE});
        }
        else
        {
            locations = listLocationsByParentLocation(locationFilter.getType(),locationFilter.getParentLocation(),locationFilter.getIsActive(),locationFilter.getReferringHospital(),locationFilter.getTreatingHosp(),null, null); //WDEV-20395
        }

        return LocMostVoAssembler.createLocMostVoCollectionFromLocation(locations).sort();
    }
项目:openMAXIMS    文件:Logic.java   
/**
 * 
 */
private void fillHospitalListCombo()
{
    LocMostVo locationFilter = new LocMostVo();
    locationFilter.setType(LocationType.HOSP);
    locationFilter.setIsActive(Boolean.TRUE);
    // Wards are used in 2 different tabs so if wards already retrieved dont
    // hit DB
    LocMostVoCollection voCollHospitals = null;
    voCollHospitals = domain.listLocations(locationFilter);
    if (voCollHospitals != null)
    {
        for (int i = 0; i < voCollHospitals.size(); i++)
        {
            form.cmbHospital().newRow(voCollHospitals.get(i), voCollHospitals.get(i).getName());
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void fillWardListCombo()
{
    LocMostVo filter = new LocMostVo();
    filter.setType(LocationType.WARD);
    filter.setParentLocation(form.cmbHospital().getValue());
    filter.setIsActive(Boolean.TRUE);
    filter.setIsVirtual(Boolean.FALSE);


    LocMostVoCollection voColl = domain.listLocations(filter);
    for (int i = 0; i < voColl.size(); i++)
    {
        LocMostVo ward = voColl.get(i);
        form.cmbWard().newRow(ward, ward.getName());
    }

}
项目:openMAXIMS    文件:Logic.java   
private void fillHospitalListCombo()
{
    LocMostVo locationFilter = new LocMostVo();
    locationFilter.setType(LocationType.HOSP);
    locationFilter.setIsActive(Boolean.TRUE);
    // Wards are used in 2 different tabs so if wards already retrieved dont
    // hit DB
    LocMostVoCollection voCollHospitals = null;
    voCollHospitals = domain.listLocations(locationFilter);
    if (voCollHospitals != null)
    {
        for (int i = 0; i < voCollHospitals.size(); i++)
        {
            form.cmbHospital().newRow(voCollHospitals.get(i), voCollHospitals.get(i).getName());
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
private void fillWardListCombo()
{
    form.imbRefresh().setEnabled(false);
    LocMostVo filter = new LocMostVo();
    filter.setType(LocationType.WARD);
    filter.setIsActive(Boolean.TRUE);
    filter.setParentLocation(form.cmbHospital().getValue());

    LocMostVoCollection voColl = domain.listLocations(filter);
    for (int i = 0; i < voColl.size(); i++)
    {
        LocMostVo ward = voColl.get(i);
        form.cmbWard().newRow(ward, ward.getName());
    }

}
项目:openMAXIMS    文件:Logic.java   
private void populateLocations(LocMostVoCollection voColl, TreeNode node)
{
    TreeNode myNode = null;

    if (voColl == null)
        return;

    voColl.sort();
    for (int i = 0; i < voColl.size(); i++)
    {
        myNode = node.getNodes().add(voColl.get(i), voColl.get(i).getName());

        myNode.setCollapsedImage(form.getImages().Admin.Location);
        myNode.setExpandedImage(form.getImages().Admin.Location);

        populateLocations(voColl.get(i).getLocations(), myNode);
    }
}
项目:openMAXIMS    文件:OrgTreeHelper.java   
private void populateLocations(LocMostVoCollection locations, TreeNode parentNode)
{
    if (locations == null)
        return;

    TreeNode locNode = null;
    for(int i=0; i < locations.size(); i++)
    {
        LocMostVo voLoc = locations.get(i); 
        if (voLoc.getIsActive().booleanValue() == false && !showInactive)
            continue;

        Image img = voLoc.getIsActive().booleanValue() ? locImg: locDisImg;         

        //WDEV-6444 - if node is inactive disable drag dropping for that node
        if(voLoc.getIsActive().booleanValue() == false)
            locNode = parentNode.getNodes().add(voLoc, voLoc.getName());
        else
            locNode = parentNode.getNodes().add(voLoc, voLoc.getName(), LOC_NODE, new int[]{LS_NODE,LOC_NODE}, true);

        locNode.setCollapsedImage(img);
        locNode.setExpandedImage(img);  
        locNode.setCheckBoxVisible(showCheckBoxes);
        populateLocations(voLoc.getLocations().sort(), locNode);
    }       
}
项目:openMAXIMS    文件:OrganisationAndLocationImpl.java   
public LocMostVoCollection listLocation(LocMostVo locationFilter)
    {
        List locations;
        if (locationFilter == null)
        {
//          wdev-2730
            StringBuffer hql = new StringBuffer();
            hql.append(" from LocSite as ls");
            hql.append(" where");
            hql.append(" and ls.isActive =:active");
            hql.append(" and ls.isRIE is null");
            hql.append(" and ls.isVirtual =:virtual");

            locations = getDomainFactory().find(hql.toString(), new String[]{"active", "virtual"}, new Object[]{Boolean.TRUE, Boolean.FALSE});
        }
        else
        {
            locations = listLocationsByParentLocation(locationFilter.getType(),locationFilter.getParentLocation(),locationFilter.getIsActive(),locationFilter.getReferringHospital(),locationFilter.getTreatingHosp(), null);
        }

        return LocMostVoAssembler.createLocMostVoCollectionFromLocation(locations).sort();
    }
项目:openmaxims-linux    文件:Logic.java   
/**
 * 
 */
private void fillHospitalListCombo()
{
    LocMostVo locationFilter = new LocMostVo();
    locationFilter.setType(LocationType.HOSP);
    locationFilter.setIsActive(Boolean.TRUE);
    // Wards are used in 2 different tabs so if wards already retrieved dont
    // hit DB
    LocMostVoCollection voCollHospitals = null;
    voCollHospitals = domain.listLocations(locationFilter);
    if (voCollHospitals != null)
    {
        for (int i = 0; i < voCollHospitals.size(); i++)
        {
            form.cmbHospital().newRow(voCollHospitals.get(i), voCollHospitals.get(i).getName());
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void fillWardListCombo()
{
    LocMostVo filter = new LocMostVo();
    filter.setType(LocationType.WARD);
    filter.setParentLocation(form.cmbHospital().getValue());
    filter.setIsActive(Boolean.TRUE);
    filter.setIsVirtual(Boolean.FALSE);


    LocMostVoCollection voColl = domain.listLocations(filter);
    for (int i = 0; i < voColl.size(); i++)
    {
        LocMostVo ward = voColl.get(i);
        form.cmbWard().newRow(ward, ward.getName());
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void fillHospitalListCombo()
{
    LocMostVo locationFilter = new LocMostVo();
    locationFilter.setType(LocationType.HOSP);
    locationFilter.setIsActive(Boolean.TRUE);
    // Wards are used in 2 different tabs so if wards already retrieved dont
    // hit DB
    LocMostVoCollection voCollHospitals = null;
    voCollHospitals = domain.listLocations(locationFilter);
    if (voCollHospitals != null)
    {
        for (int i = 0; i < voCollHospitals.size(); i++)
        {
            form.cmbHospital().newRow(voCollHospitals.get(i), voCollHospitals.get(i).getName());
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void fillWardListCombo()
{
    form.imbRefresh().setEnabled(false);
    LocMostVo filter = new LocMostVo();
    filter.setType(LocationType.WARD);
    filter.setIsActive(Boolean.TRUE);
    filter.setParentLocation(form.cmbHospital().getValue());

    LocMostVoCollection voColl = domain.listLocations(filter);
    for (int i = 0; i < voColl.size(); i++)
    {
        LocMostVo ward = voColl.get(i);
        form.cmbWard().newRow(ward, ward.getName());
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void populateLocations(LocMostVoCollection voColl, TreeNode node)
{
    TreeNode myNode = null;

    if (voColl == null)
        return;

    voColl.sort();
    for (int i = 0; i < voColl.size(); i++)
    {
        myNode = node.getNodes().add(voColl.get(i), voColl.get(i).getName());

        myNode.setCollapsedImage(form.getImages().Admin.Location);
        myNode.setExpandedImage(form.getImages().Admin.Location);

        populateLocations(voColl.get(i).getLocations(), myNode);
    }
}
项目:openmaxims-linux    文件:OrgTreeHelper.java   
private void populateLocations(LocMostVoCollection locations, TreeNode parentNode)
{
    if (locations == null)
        return;

    TreeNode locNode = null;
    for(int i=0; i < locations.size(); i++)
    {
        LocMostVo voLoc = locations.get(i); 
        if (voLoc.getIsActive().booleanValue() == false && !showInactive)
            continue;

        Image img = voLoc.getIsActive().booleanValue() ? locImg: locDisImg;         

        //WDEV-6444 - if node is inactive disable drag dropping for that node
        if(voLoc.getIsActive().booleanValue() == false)
            locNode = parentNode.getNodes().add(voLoc, voLoc.getName());
        else
            locNode = parentNode.getNodes().add(voLoc, voLoc.getName(), LOC_NODE, new int[]{LS_NODE,LOC_NODE}, true);

        locNode.setCollapsedImage(img);
        locNode.setExpandedImage(img);  
        locNode.setCheckBoxVisible(showCheckBoxes);
        populateLocations(voLoc.getLocations().sort(), locNode);
    }       
}
项目:openmaxims-linux    文件:OrganisationAndLocationImpl.java   
public LocMostVoCollection listLocation(LocMostVo locationFilter)
    {
        List locations;
        if (locationFilter == null)
        {
//          wdev-2730
            StringBuffer hql = new StringBuffer();
            hql.append(" from LocSite as ls");
            hql.append(" where");
            hql.append(" and ls.isActive =:active");
            hql.append(" and ls.isRIE is null");
            hql.append(" and ls.isVirtual =:virtual");

            locations = getDomainFactory().find(hql.toString(), new String[]{"active", "virtual"}, new Object[]{Boolean.TRUE, Boolean.FALSE});
        }
        else
        {
            locations = listLocationsByParentLocation(locationFilter.getType(),locationFilter.getParentLocation(),locationFilter.getIsActive(),locationFilter.getReferringHospital(),locationFilter.getTreatingHosp(), null);
        }

        return LocMostVoAssembler.createLocMostVoCollectionFromLocation(locations).sort();
    }
项目:AvoinApotti    文件:CarePlanReviewImpl.java   
/**
 *  list wards
 */
public LocMostVoCollection listWards()
{
    ims.admin.domain.OrganisationAndLocation wardImpl = (ims.admin.domain.OrganisationAndLocation)getDomainImpl(ims.admin.domain.impl.OrganisationAndLocationImpl.class);
    LocMostVo filter = new LocMostVo();
    filter.setType(LocationType.WARD);
    return wardImpl.listLocation(filter);       
}
项目:AvoinApotti    文件:OrganisationAndLocationImpl.java   
private void populateLocationCollection(LocMostVoCollection voCollLocationSite, LocMostVoCollection voCollLocations)
{
    for (int i = 0; i < voCollLocationSite.size(); i++)
    {
        if (voCollLocationSite.get(i).getIsVirtualIsNotNull()
            && ! voCollLocationSite.get(i).getIsVirtual().booleanValue()) //wdev-2730
        {
            voCollLocations.add(voCollLocationSite.get(i));
        }
        populateLocationCollection(voCollLocationSite.get(i).getLocations(), voCollLocations);
    }

}
项目:AvoinApotti    文件:OrganisationAndLocationImpl.java   
private void checkChildsForDuplicateTaxonoy(LocMostVoCollection childs,Map<?, ?> doMap,DomainFactory factory) throws UniqueKeyViolationException
{
    for (int i = 0 ; i < childs.size(); i++)
    {
        LocMostVo locMostVo = childs.get(i);
        Object doObj = doMap.get(locMostVo);
        if (doObj instanceof Location)
        {
            String dupMessage = Keywords.checkDuplicateTaxonomy(factory, doObj, "codeMappings", locMostVo.getCodeMappings(), "getName");
            if (dupMessage!=null)
                throw new UniqueKeyViolationException(dupMessage);
        }
    }
}
项目:AvoinApotti    文件:OrganisationAndLocationImpl.java   
public LocMostVoCollection listLocSite(OrgShortVo organisation)
{
    LocMostVoCollection voCollLocation = new LocMostVoCollection();
    DomainFactory factory = getDomainFactory();
    Organisation doOrganisation = (Organisation) factory.getDomainObject(Organisation.class, organisation.getID_Organisation());
    populateLocationCollection(LocMostVoAssembler.createLocMostVoCollectionFromLocation(doOrganisation.getLocationSites()), voCollLocation);
    return voCollLocation;
}
项目:openMAXIMS    文件:CarePlanReviewImpl.java   
/**
 *  list wards
 */
public LocMostVoCollection listWards()
{
    ims.admin.domain.OrganisationAndLocation wardImpl = (ims.admin.domain.OrganisationAndLocation)getDomainImpl(ims.admin.domain.impl.OrganisationAndLocationImpl.class);
    LocMostVo filter = new LocMostVo();
    filter.setType(LocationType.WARD);
    return wardImpl.listLocation(filter);       
}
项目:openMAXIMS    文件:OrgTreeHelper.java   
private void populateLocations(LocMostVoCollection locations, TreeNode parentNode)
{
    if (locations == null)
        return;

    TreeNode locNode = null;
    for(int i=0; i < locations.size(); i++)
    {
        LocMostVo voLoc = locations.get(i); 

        if ((voLoc.getIsActive().booleanValue() == false && !showInactive) || (voLoc.getIsVirtual().booleanValue() && !showVirtual) || ((LocationType.CASE_NOTE_FOLDER_LOCATION.equals(voLoc.getType()) || LocationType.MEDICAL_RECORDS.equals(voLoc.getType())) && !showCaseNoteLocations && !showLocationsMarkedAsCaseNoteFolderOnly) || (showLocationsMarkedAsCaseNoteFolderOnly && !Boolean.TRUE.equals(voLoc.getCaseNoteFolderLocation()))) //WDEV-19532 //WDEV-19545
            continue;

        Image img = voLoc.getIsActive().booleanValue() ? locImg: locDisImg;         

        //WDEV-6444 - if node is inactive disable drag dropping for that node
        if(voLoc.getIsActive().booleanValue() == false)
            locNode = parentNode.getNodes().add(voLoc, voLoc.getName());
        else
            locNode = parentNode.getNodes().add(voLoc, voLoc.getName(), LOC_NODE, new int[]{LS_NODE,LOC_NODE}, true);

        locNode.setCollapsedImage(img);
        locNode.setExpandedImage(img);  
        locNode.setCheckBoxVisible(showCheckBoxes);
        locNode.setEnabled(showLocationsMarkedAsCaseNoteFolderOnly ? Boolean.TRUE.equals(voLoc.getCaseNoteFolderLocation()) : true); //WDEV-19518
        populateLocations(voLoc.getLocations().sort(), locNode);
    }       
}
项目:openMAXIMS    文件:OrganisationAndLocationImpl.java   
private void populateLocationCollection(LocMostVoCollection voCollLocationSite, LocMostVoCollection voCollLocations)
{
    for (int i = 0; i < voCollLocationSite.size(); i++)
    {
        if (voCollLocationSite.get(i).getIsVirtualIsNotNull()
            && ! voCollLocationSite.get(i).getIsVirtual().booleanValue()) //wdev-2730
        {
            voCollLocations.add(voCollLocationSite.get(i));
        }
        populateLocationCollection(voCollLocationSite.get(i).getLocations(), voCollLocations);
    }

}
项目:openMAXIMS    文件:OrganisationAndLocationImpl.java   
private void checkChildsForDuplicateTaxonoy(LocMostVoCollection childs,Map<?, ?> doMap,DomainFactory factory) throws UniqueKeyViolationException
{
    for (int i = 0 ; i < childs.size(); i++)
    {
        LocMostVo locMostVo = childs.get(i);
        Object doObj = doMap.get(locMostVo);
        if (doObj instanceof Location)
        {
            String dupMessage = Keywords.checkDuplicateTaxonomy(factory, doObj, "codeMappings", locMostVo.getCodeMappings(), "getName");
            if (dupMessage!=null)
                throw new UniqueKeyViolationException(dupMessage);
        }
    }
}
项目:openMAXIMS    文件:OrganisationAndLocationImpl.java   
public LocMostVoCollection listLocSite(OrgShortVo organisation)
{
    LocMostVoCollection voCollLocation = new LocMostVoCollection();
    DomainFactory factory = getDomainFactory();
    Organisation doOrganisation = (Organisation) factory.getDomainObject(Organisation.class, organisation.getID_Organisation());
    populateLocationCollection(LocMostVoAssembler.createLocMostVoCollectionFromLocation(doOrganisation.getLocationSites()), voCollLocation);
    return voCollLocation;
}
项目:openMAXIMS    文件:CarePlanReviewImpl.java   
/**
 *  list wards
 */
public LocMostVoCollection listWards()
{
    ims.admin.domain.OrganisationAndLocation wardImpl = (ims.admin.domain.OrganisationAndLocation)getDomainImpl(ims.admin.domain.impl.OrganisationAndLocationImpl.class);
    LocMostVo filter = new LocMostVo();
    filter.setType(LocationType.WARD);
    return wardImpl.listLocation(filter);       
}
项目:openMAXIMS    文件:OrganisationAndLocationImpl.java   
private void populateLocationCollection(LocMostVoCollection voCollLocationSite, LocMostVoCollection voCollLocations)
{
    for (int i = 0; i < voCollLocationSite.size(); i++)
    {
        if (voCollLocationSite.get(i).getIsVirtualIsNotNull()
            && ! voCollLocationSite.get(i).getIsVirtual().booleanValue()) //wdev-2730
        {
            voCollLocations.add(voCollLocationSite.get(i));
        }
        populateLocationCollection(voCollLocationSite.get(i).getLocations(), voCollLocations);
    }

}
项目:openMAXIMS    文件:OrganisationAndLocationImpl.java   
private void checkChildsForDuplicateTaxonoy(LocMostVoCollection childs,Map<?, ?> doMap,DomainFactory factory) throws UniqueKeyViolationException
{
    for (int i = 0 ; i < childs.size(); i++)
    {
        LocMostVo locMostVo = childs.get(i);
        Object doObj = doMap.get(locMostVo);
        if (doObj instanceof Location)
        {
            String dupMessage = Keywords.checkDuplicateTaxonomy(factory, doObj, "codeMappings", locMostVo.getCodeMappings(), "getName");
            if (dupMessage!=null)
                throw new UniqueKeyViolationException(dupMessage);
        }
    }
}
项目:openMAXIMS    文件:OrganisationAndLocationImpl.java   
public LocMostVoCollection listLocSite(OrgShortVo organisation)
{
    LocMostVoCollection voCollLocation = new LocMostVoCollection();
    DomainFactory factory = getDomainFactory();
    Organisation doOrganisation = (Organisation) factory.getDomainObject(Organisation.class, organisation.getID_Organisation());
    populateLocationCollection(LocMostVoAssembler.createLocMostVoCollectionFromLocation(doOrganisation.getLocationSites()), voCollLocation);
    return voCollLocation;
}