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

项目:AvoinApotti    文件:ServiceImpl.java   
public SpecialtyListVoCollection listService(Boolean bActive)
{
    DomainFactory factory = getDomainFactory();
    SpecialtyListVoCollection voCollReturn = new SpecialtyListVoCollection();

    List lstServices = factory.find("from Service s where s.isActive = :active", new String[]{"active"}, new Object[]{bActive});
    for (Iterator iter = lstServices.iterator(); iter.hasNext();)
    {
        Service doService = (Service) iter.next();
        SpecialtyListVo voBaseList = new SpecialtyListVo();
        voBaseList.setSingleID(doService.getId());
        voBaseList.setBoolValue(doService.isIsActive());
        voBaseList.setName(doService.getServiceName());

        if (doService.getTaxonomyMap() != null)
        {
            String sDescription = null;
            List taxonomyMap = doService.getTaxonomyMap();
            for (Iterator iter1 = taxonomyMap.iterator(); iter1.hasNext();)
            {
                TaxonomyMap doMap = (TaxonomyMap) iter1.next();
                {
                    if (doMap.getTaxonomyCode().equals(ims.core.vo.lookups.TaxonomyType.PAS))
                        sDescription = doMap.getTaxonomyCode();
                }
            }
            voBaseList.setDescription(sDescription);
        }
        voCollReturn.add(voBaseList);
    }
    return voCollReturn;
}
项目:openMAXIMS    文件:ServiceImpl.java   
public SpecialtyListVoCollection listService(Boolean bActive)
{
    DomainFactory factory = getDomainFactory();
    SpecialtyListVoCollection voCollReturn = new SpecialtyListVoCollection();

    List lstServices = factory.find("from Service s where s.isActive = :active", new String[]{"active"}, new Object[]{bActive});
    for (Iterator iter = lstServices.iterator(); iter.hasNext();)
    {
        Service doService = (Service) iter.next();
        SpecialtyListVo voBaseList = new SpecialtyListVo();
        voBaseList.setSingleID(doService.getId());
        voBaseList.setBoolValue(doService.isIsActive());
        voBaseList.setName(doService.getServiceName());

        if (doService.getTaxonomyMap() != null)
        {
            String sDescription = null;
            List taxonomyMap = doService.getTaxonomyMap();
            for (Iterator iter1 = taxonomyMap.iterator(); iter1.hasNext();)
            {
                TaxonomyMap doMap = (TaxonomyMap) iter1.next();
                {
                    if (doMap.getTaxonomyCode().equals(ims.core.vo.lookups.TaxonomyType.PAS))
                        sDescription = doMap.getTaxonomyCode();
                }
            }
            voBaseList.setDescription(sDescription);
        }
        voCollReturn.add(voBaseList);
    }
    return voCollReturn;
}
项目:openMAXIMS    文件:ServiceImpl.java   
public SpecialtyListVoCollection listService(Boolean bActive)
{
    DomainFactory factory = getDomainFactory();
    SpecialtyListVoCollection voCollReturn = new SpecialtyListVoCollection();

    List lstServices = factory.find("from Service s where s.isActive = :active", new String[]{"active"}, new Object[]{bActive});
    for (Iterator iter = lstServices.iterator(); iter.hasNext();)
    {
        Service doService = (Service) iter.next();
        SpecialtyListVo voBaseList = new SpecialtyListVo();
        voBaseList.setSingleID(doService.getId());
        voBaseList.setBoolValue(doService.isIsActive());
        voBaseList.setName(doService.getServiceName());

        if (doService.getTaxonomyMap() != null)
        {
            String sDescription = null;
            List taxonomyMap = doService.getTaxonomyMap();
            for (Iterator iter1 = taxonomyMap.iterator(); iter1.hasNext();)
            {
                TaxonomyMap doMap = (TaxonomyMap) iter1.next();
                {
                    if (doMap.getTaxonomyCode().equals(ims.core.vo.lookups.TaxonomyType.PAS))
                        sDescription = doMap.getTaxonomyCode();
                }
            }
            voBaseList.setDescription(sDescription);
        }
        voCollReturn.add(voBaseList);
    }
    return voCollReturn;
}
项目:openmaxims-linux    文件:ServiceImpl.java   
public SpecialtyListVoCollection listService(Boolean bActive)
{
    DomainFactory factory = getDomainFactory();
    SpecialtyListVoCollection voCollReturn = new SpecialtyListVoCollection();

    List lstServices = factory.find("from Service s where s.isActive = :active", new String[]{"active"}, new Object[]{bActive});
    for (Iterator iter = lstServices.iterator(); iter.hasNext();)
    {
        Service doService = (Service) iter.next();
        SpecialtyListVo voBaseList = new SpecialtyListVo();
        voBaseList.setSingleID(doService.getId());
        voBaseList.setBoolValue(doService.isIsActive());
        voBaseList.setName(doService.getServiceName());

        if (doService.getTaxonomyMap() != null)
        {
            String sDescription = null;
            List taxonomyMap = doService.getTaxonomyMap();
            for (Iterator iter1 = taxonomyMap.iterator(); iter1.hasNext();)
            {
                TaxonomyMap doMap = (TaxonomyMap) iter1.next();
                {
                    if (doMap.getTaxonomyCode().equals(ims.core.vo.lookups.TaxonomyType.PAS))
                        sDescription = doMap.getTaxonomyCode();
                }
            }
            voBaseList.setDescription(sDescription);
        }
        voCollReturn.add(voBaseList);
    }
    return voCollReturn;
}