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

项目:AvoinApotti    文件:OrganisationAndLocationImpl.java   
public ClinicListVoCollection listLocationsMin(LocationType locType)
{
    DomainFactory factory = getDomainFactory();
    ClinicListVoCollection voCollReturn = new ClinicListVoCollection();
    List lstClinics = factory.find("from Location l where l.type = :type and l.isActive= :isActive and l.isVirtual= :isVirtual", new String[]{"type", "isActive", "isVirtual"}, new Object[]{getDomLookup(locType), Boolean.TRUE, Boolean.FALSE});//wdev-2730

    for (Iterator iter = lstClinics.iterator(); iter.hasNext();)
    {
        Location doLocation = (Location) iter.next();
        ClinicListVo voBaseList = new ClinicListVo();
        voBaseList.setSingleID(doLocation.getId());
        voBaseList.setBoolValue(doLocation.isIsActive());
        voBaseList.setName(doLocation.getName());
        voBaseList.setDescription(doLocation.getExtCode(TaxonomyType.PAS.getId()));

        voCollReturn.add(voBaseList);
    }

    return voCollReturn;
}
项目:openMAXIMS    文件:OrganisationAndLocationImpl.java   
public ClinicListVoCollection listLocationsMin(LocationType locType)
{
    DomainFactory factory = getDomainFactory();
    ClinicListVoCollection voCollReturn = new ClinicListVoCollection();
    List lstClinics = factory.find("from Location l where l.type = :type and l.isActive= :isActive and l.isVirtual= :isVirtual", new String[]{"type", "isActive", "isVirtual"}, new Object[]{getDomLookup(locType), Boolean.TRUE, Boolean.FALSE});//wdev-2730

    for (Iterator iter = lstClinics.iterator(); iter.hasNext();)
    {
        Location doLocation = (Location) iter.next();
        ClinicListVo voBaseList = new ClinicListVo();
        voBaseList.setSingleID(doLocation.getId());
        voBaseList.setBoolValue(doLocation.isIsActive());
        voBaseList.setName(doLocation.getName());
        voBaseList.setDescription(doLocation.getExtCode(TaxonomyType.PAS.getId()));

        voCollReturn.add(voBaseList);
    }

    return voCollReturn;
}
项目:openMAXIMS    文件:OrganisationAndLocationImpl.java   
public ClinicListVoCollection listLocationsMin(LocationType locType)
{
    DomainFactory factory = getDomainFactory();
    ClinicListVoCollection voCollReturn = new ClinicListVoCollection();
    List lstClinics = factory.find("from Location l where l.type = :type and l.isActive= :isActive and l.isVirtual= :isVirtual", new String[]{"type", "isActive", "isVirtual"}, new Object[]{getDomLookup(locType), Boolean.TRUE, Boolean.FALSE});//wdev-2730

    for (Iterator iter = lstClinics.iterator(); iter.hasNext();)
    {
        Location doLocation = (Location) iter.next();
        ClinicListVo voBaseList = new ClinicListVo();
        voBaseList.setSingleID(doLocation.getId());
        voBaseList.setBoolValue(doLocation.isIsActive());
        voBaseList.setName(doLocation.getName());
        voBaseList.setDescription(doLocation.getExtCode(TaxonomyType.PAS.getId()));

        voCollReturn.add(voBaseList);
    }

    return voCollReturn;
}
项目:openmaxims-linux    文件:OrganisationAndLocationImpl.java   
public ClinicListVoCollection listLocationsMin(LocationType locType)
{
    DomainFactory factory = getDomainFactory();
    ClinicListVoCollection voCollReturn = new ClinicListVoCollection();
    List lstClinics = factory.find("from Location l where l.type = :type and l.isActive= :isActive and l.isVirtual= :isVirtual", new String[]{"type", "isActive", "isVirtual"}, new Object[]{getDomLookup(locType), Boolean.TRUE, Boolean.FALSE});//wdev-2730

    for (Iterator iter = lstClinics.iterator(); iter.hasNext();)
    {
        Location doLocation = (Location) iter.next();
        ClinicListVo voBaseList = new ClinicListVo();
        voBaseList.setSingleID(doLocation.getId());
        voBaseList.setBoolValue(doLocation.isIsActive());
        voBaseList.setName(doLocation.getName());
        voBaseList.setDescription(doLocation.getExtCode(TaxonomyType.PAS.getId()));

        voCollReturn.add(voBaseList);
    }

    return voCollReturn;
}