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

项目:AvoinApotti    文件:Logic.java   
private void populateServicesGrid(ServiceShortVoCollection services)
{
    form.lyrTabs().tabServices().grdServices().getRows().clear();
    if( services != null )
    {

        for(int i = 0;i < services.size();i++)
        {
            grdServicesRow row = form.lyrTabs().tabServices().grdServices().getRows().newRow();
            row.setColService(services.get(i).getServiceNameIsNotNull() ? services.get(i).getServiceName():"");
            row.setValue(services.get(i));
        }

    }
    refreshGroupContextMenu();
}
项目:AvoinApotti    文件:Logic.java   
/**
 * populates the screen from data from specified Vo Collection
 * 
 * @param ServiceVoCollection
 * @return void
 */
public void populateListControl(ServiceShortVoCollection voColl)
{
    form.lyr1().Edit().grdService().getRows().clear();

    if (voColl != null)
    {
        grdServiceRow row;
        for (int i = 0; i < voColl.size(); i++)
        {
            ServiceShortVo voService = voColl.get(i);
            // check service compatibility to Location

            if (voService.getServiceNameIsNotNull())
            {
                row = form.lyr1().Edit().grdService().getRows().newRow();
                row.setValue(voColl.get(i));
                row.setService(voColl.get(i).getServiceName());
                row.setTooltip(formatServicevoTooltip(voService));
            }
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void loadDiscipline(Category value)
{
    form.cmbDiscipline().clear();
    if (value == null)
        return;

    ServiceShortVoCollection voCollServiceShort = new ServiceShortVoCollection();

    //WDEV-17122
    if (form.cmbCategory().getValue().equals(Category.PATHOLOGY))
        voCollServiceShort = domain.listServiceforCategoryByType(ServiceCategory.PATHOLOGY_DISCIPLINE);
    else if (Category.CLINICALIMAGING.equals(form.cmbCategory().getValue()))
        voCollServiceShort = domain.listServiceforCategoryByType(ServiceCategory.RADIOLOGY_MODALITY);
    else
        voCollServiceShort = domain.listServiceforCategoryByType(ServiceCategory.CLINICAL);

    for (int i = 0; i < voCollServiceShort.size(); i++)
    {
        form.cmbDiscipline().newRow(voCollServiceShort.get(i), voCollServiceShort.get(i).getServiceName());
    }

}
项目:AvoinApotti    文件:Logic.java   
private void loadDiscipline(Category value)
{
    form.cmbDiscipline().clear();

    if(value == null)
        return;

    ServiceShortVoCollection voCollServiceShort = new ServiceShortVoCollection();

    if(form.cmbCategory().getValue().equals(Category.PATHOLOGY))
        voCollServiceShort = domain.listServiceforLocationByType(LocationType.PATHOLOGYLABORATORY);
    else
        voCollServiceShort = domain.listServiceforLocationByType(LocationType.CLINICALIMAGINGDEPARTMENT);

    for(int i=0;i<voCollServiceShort.size();i++)
    {
        form.cmbDiscipline().newRow(voCollServiceShort.get(i), voCollServiceShort.get(i).getServiceName());
    }
}
项目:AvoinApotti    文件:TestListImpl.java   
public ServiceShortVoCollection listServiceforCategoryByType(ServiceCategory serviceCategory)
{
    DomainFactory factory = getDomainFactory();

    String hql = "Select serv from Service as serv where serv.serviceCategory = :serviceCategory and serv.isActive = :isActive";
    List services = factory.find(hql,new String[]{"serviceCategory","isActive"},new Object[]{getDomLookup(serviceCategory),Boolean.TRUE});

    return ServiceShortVoAssembler.createServiceShortVoCollectionFromService(services);
}
项目:openMAXIMS    文件:Logic.java   
private void populateServicesGrid(ServiceShortVoCollection referralServiceSearchList)
{
    form.grdServices().getRows().clear();

    if (referralServiceSearchList == null || referralServiceSearchList.size() == 0)
        return;

    for (int i = 0; i < referralServiceSearchList.size(); i++)
    {
        ServiceShortVo service = referralServiceSearchList.get(i);

        if (service == null)
            continue;

        ims.core.forms.pendingemergencytheatreworklist.GenForm.grdServicesRow row = form.grdServices().getRows().newRow();

        row.setColService(service.getServiceName());
        row.setValue(service);
    }       
}
项目:openMAXIMS    文件:PendingEmergencyTheatreWorklistImpl.java   
private String getServicesIds(ServiceShortVoCollection services)
{
    String ids = "";

    for (int i = 0; i < services.size(); i++)
    {

        if (services.get(i) == null || services.get(i).getID_Service() == null)
            continue;

        if (ids == "")
            ids += services.get(i).getID_Service().toString();
        else
            ids += ", " + services.get(i).getID_Service().toString();

    }   

    return ids.length() > 0 ? ids : "NULL";
}
项目:openMAXIMS    文件:Logic.java   
private void populateServicesGrid(ServiceShortVoCollection services)
{
    form.lyrTabs().tabServices().grdServices().getRows().clear();
    if( services != null )
    {

        for(int i = 0;i < services.size();i++)
        {
            grdServicesRow row = form.lyrTabs().tabServices().grdServices().getRows().newRow();
            row.setColService(services.get(i).getServiceNameIsNotNull() ? services.get(i).getServiceName():"");
            row.setValue(services.get(i));
        }

    }
    refreshGroupContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
private void populateServiceCombo()
{
    form.cmbService().clear();

    ServiceShortVoCollection services = domain.getDosServicesForSpecialtyAndLocation(form.getLocalContext().getService(), form.getLocalContext().getLocation());

    if (services == null)
        return;

    for (int i = 0; i < services.size(); i++)
    {
        if (services.get(i) == null)
            continue;

        form.cmbService().newRow(services.get(i), services.get(i).getServiceName());
    }
}
项目:openMAXIMS    文件:Logic.java   
/**
 * populates the screen from data from specified Vo Collection
 * 
 * @param ServiceVoCollection
 * @return void
 */
public void populateListControl(ServiceShortVoCollection voColl)
{
    form.lyr1().Edit().grdService().getRows().clear();

    if (voColl != null)
    {
        grdServiceRow row;
        for (int i = 0; i < voColl.size(); i++)
        {
            ServiceShortVo voService = voColl.get(i);
            // check service compatibility to Location

            if (voService.getServiceNameIsNotNull())
            {
                row = form.lyr1().Edit().grdService().getRows().newRow();
                row.setValue(voColl.get(i));
                row.setService(voColl.get(i).getServiceName());
                row.setTooltip(formatServicevoTooltip(voService));
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadDiscipline(Category value)
{
    form.cmbDiscipline().clear();
    if (value == null)
        return;

    ServiceShortVoCollection voCollServiceShort = new ServiceShortVoCollection();

    //WDEV-17122
    if (form.cmbCategory().getValue().equals(Category.PATHOLOGY))
        voCollServiceShort = domain.listServiceforCategoryByType(ServiceCategory.PATHOLOGY_DISCIPLINE);
    else if (Category.CLINICALIMAGING.equals(form.cmbCategory().getValue()))
        voCollServiceShort = domain.listServiceforCategoryByType(ServiceCategory.RADIOLOGY_MODALITY);
    else
        voCollServiceShort = domain.listServiceforCategoryByType(ServiceCategory.CLINICAL);

    for (int i = 0; i < voCollServiceShort.size(); i++)
    {
        form.cmbDiscipline().newRow(voCollServiceShort.get(i), voCollServiceShort.get(i).getServiceName());
    }

}
项目:openMAXIMS    文件:Logic.java   
private void loadDiscipline(Category value)
{
    form.cmbDiscipline().clear();

    if(value == null)
        return;

    ServiceShortVoCollection voCollServiceShort = new ServiceShortVoCollection();

    if(form.cmbCategory().getValue().equals(Category.PATHOLOGY))
        voCollServiceShort = domain.listServiceforLocationByType(LocationType.PATHOLOGYLABORATORY);
    else
        voCollServiceShort = domain.listServiceforLocationByType(LocationType.CLINICALIMAGINGDEPARTMENT);

    for(int i=0;i<voCollServiceShort.size();i++)
    {
        form.cmbDiscipline().newRow(voCollServiceShort.get(i), voCollServiceShort.get(i).getServiceName());
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbServiceTextSubmited(String value) throws PresentationLogicException
{
    form.qmbService().clear();

    ServiceShortVoCollection services = domain.getReferralServices(value);

    for(ServiceShortVo service : services)
    {
        if(service == null)
            continue;

        form.qmbService().newRow(service, service.getServiceName());
    }

    form.qmbService().showOpened();
}
项目:openMAXIMS    文件:Logic.java   
private void bindRedirectServiceCombo()
{
    form.lyrTriage().tabPageRedirectReferral().cmbRedirectedService().clear();

    //WDEV-20976
    if (form.getGlobalContext().RefMan.getCatsReferralIsNotNull())
    {
        ServiceShortVoCollection servicesColl = domain.getServicesForCatsReferral(form.getGlobalContext().RefMan.getCatsReferral());
        if (servicesColl != null && servicesColl.size() > 0)
        {
            for (ServiceShortVo serviceShortVo : servicesColl)
            {
                if (form.getLocalContext().getCurrentService() == null || !serviceShortVo.getID_Service().equals(form.getLocalContext().getCurrentService().getID_Service()))
                {
                    form.lyrTriage().tabPageRedirectReferral().cmbRedirectedService().newRow(serviceShortVo, serviceShortVo.getServiceName());
                }
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateScreenFromData(ServiceShortVoCollection services)
{
    form.grdReferralService().getRows().clear();

    if(services == null)
        return;

    for(int i = 0 ; i < services.size(); i++ )
    {
        ServiceShortVo servVo = services.get(i);

        if( servVo == null || !Boolean.TRUE.equals(servVo.getIsActive()))
            continue;

        grdReferralServiceRow row = form.grdReferralService().getRows().newRow();
        row.setColService(servVo.getServiceName());
        row.setValue(servVo);
    }
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onBtnAddClick() throws PresentationLogicException
{
    ServiceShortVoCollection coll = new ServiceShortVoCollection();

    coll = getServices(coll);

    for(int i=0; i<form.grdReferralService().getRows().size(); i++)
    {
        grdReferralServiceRow row = form.grdReferralService().getRows().get(i);

        if(row.getColSelect())
            coll.add(row.getValue());
    }

    coll.sort();
    populateSelectedGrid(coll);
}
项目:openMAXIMS    文件:Logic.java   
private void populateSelectedGrid(ServiceShortVoCollection services)
{
    form.grdSelected().getRows().clear();

    if(services == null)
        return;

    for(int i = 0 ; i < services.size(); i++ )
    {
        ServiceShortVo servVo = services.get(i);

        if(servVo == null)
            continue;

        grdSelectedRow row = form.grdSelected().getRows().newRow();
        row.setColService(servVo.getServiceName());
        row.setValue(servVo);

        row.setColSelect(true);
    }
}
项目:openMAXIMS    文件:ReferralTriageImpl.java   
public ServiceShortVoCollection getServicesForCatsReferral(CatsReferralRefVo catsRefVo)
{
    if (catsRefVo == null || !catsRefVo.getID_CatsReferralIsNotNull())
        return null;

    CatsReferral catsReferral = (CatsReferral) getDomainFactory().getDomainObject(CatsReferral.class, catsRefVo.getID_CatsReferral());
    if (catsReferral != null && catsReferral.getContract() != null && catsReferral.getContract().getServiceLocations() != null)
    {
        List <?> lstServices = catsReferral.getContract().getServiceLocations();

        List <Service> listServices = new ArrayList<Service>();
        for (Object object : lstServices)
        {
            ContractServiceLocationsConfig contractServiceLocConfig = (ContractServiceLocationsConfig) object;
            Service service = contractServiceLocConfig.getService();
            listServices.add(service);
        }
        if(listServices != null && listServices.size() > 0)
        {
            return ServiceShortVoAssembler.createServiceShortVoCollectionFromService(listServices).sort();
        }
        return null;
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbServiceTextSubmited(String value) throws PresentationLogicException
{
    form.qmbService().clear();

    ServiceShortVoCollection services = domain.getReferralServices(value);

    for(ServiceShortVo service : services)
    {
        if(service == null)
            continue;

        form.qmbService().newRow(service, service.getServiceName());
    }

    form.qmbService().showOpened();
}
项目:openMAXIMS    文件:ReferralStatusListImpl.java   
public ServiceShortVoCollection listServicesForLoggedHCP(HcpRefVo hcp)
{
    if(hcp == null || hcp.getID_Hcp() == null)
        return null;

    //WDEV-20710
    ArrayList<String> paramName= new ArrayList<String>();
    ArrayList<Object> paramValue = new ArrayList<Object>();

    String query = "select s from Hcp as h left join h.serviceFunction as hsf left join hsf.service as s, ReferralService as rs left join rs.referralServices as rss where hsf.isActive = :isActive and s.id = rss.id and h.id = :HcpId order by s.upperName asc";

    paramName.add("HcpId");     paramValue.add(hcp.getID_Hcp());
    paramName.add("isActive");      paramValue.add(Boolean.TRUE);
    List serviceList = getDomainFactory().find(query, paramName, paramValue);
    //WDEV-20710 ends here


    return ServiceShortVoAssembler.createServiceShortVoCollectionFromService(serviceList);
}
项目:openMAXIMS    文件:ChangeServiceDialogImpl.java   
public ServiceShortVoCollection getServicesForCatsReferral(CatsReferralRefVo catsRefVo)
{
    if (catsRefVo == null || !catsRefVo.getID_CatsReferralIsNotNull())
        return null;

    CatsReferral catsReferral = (CatsReferral) getDomainFactory().getDomainObject(CatsReferral.class, catsRefVo.getID_CatsReferral());
    if (catsReferral != null && catsReferral.getContract() != null && catsReferral.getContract().getServiceLocations() != null)
    {
        List <?> lstServices = catsReferral.getContract().getServiceLocations();

        List <Service> listServices = new ArrayList<Service>();
        for (Object object : lstServices)
        {
            ContractServiceLocationsConfig contractServiceLocConfig = (ContractServiceLocationsConfig) object;
            Service service = contractServiceLocConfig.getService();
            listServices.add(service);
        }
        if(listServices != null && listServices.size() > 0)
        {
            return ServiceShortVoAssembler.createServiceShortVoCollectionFromService(listServices).sort();
        }
        return null;
    }
    return null;
}
项目:openMAXIMS    文件:Logic.java   
private void populateServicesGrid(ServiceShortVoCollection services)
{
    form.lyrTabs().tabServices().grdServices().getRows().clear();
    if( services != null )
    {

        for(int i = 0;i < services.size();i++)
        {
            grdServicesRow row = form.lyrTabs().tabServices().grdServices().getRows().newRow();
            row.setColService(services.get(i).getServiceNameIsNotNull() ? services.get(i).getServiceName():"");
            row.setValue(services.get(i));
        }

    }
    refreshGroupContextMenu();
}
项目:openMAXIMS    文件:Logic.java   
/**
 * populates the screen from data from specified Vo Collection
 * 
 * @param ServiceVoCollection
 * @return void
 */
public void populateListControl(ServiceShortVoCollection voColl)
{
    form.lyr1().Edit().grdService().getRows().clear();

    if (voColl != null)
    {
        grdServiceRow row;
        for (int i = 0; i < voColl.size(); i++)
        {
            ServiceShortVo voService = voColl.get(i);
            // check service compatibility to Location

            if (voService.getServiceNameIsNotNull())
            {
                row = form.lyr1().Edit().grdService().getRows().newRow();
                row.setValue(voColl.get(i));
                row.setService(voColl.get(i).getServiceName());
                row.setTooltip(formatServicevoTooltip(voService));
            }
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadDiscipline(Category value)
{
    form.cmbDiscipline().clear();
    if (value == null)
        return;

    ServiceShortVoCollection voCollServiceShort = new ServiceShortVoCollection();

    //WDEV-17122
    if (form.cmbCategory().getValue().equals(Category.PATHOLOGY))
        voCollServiceShort = domain.listServiceforCategoryByType(ServiceCategory.PATHOLOGY_DISCIPLINE);
    else if (Category.CLINICALIMAGING.equals(form.cmbCategory().getValue()))
        voCollServiceShort = domain.listServiceforCategoryByType(ServiceCategory.RADIOLOGY_MODALITY);
    else
        voCollServiceShort = domain.listServiceforCategoryByType(ServiceCategory.CLINICAL);

    for (int i = 0; i < voCollServiceShort.size(); i++)
    {
        form.cmbDiscipline().newRow(voCollServiceShort.get(i), voCollServiceShort.get(i).getServiceName());
    }

}
项目:openMAXIMS    文件:Logic.java   
private void loadDiscipline(Category value)
{
    form.cmbDiscipline().clear();

    if(value == null)
        return;

    ServiceShortVoCollection voCollServiceShort = new ServiceShortVoCollection();

    if(form.cmbCategory().getValue().equals(Category.PATHOLOGY))
        voCollServiceShort = domain.listServiceforLocationByType(LocationType.PATHOLOGYLABORATORY);
    else
        voCollServiceShort = domain.listServiceforLocationByType(LocationType.CLINICALIMAGINGDEPARTMENT);

    for(int i=0;i<voCollServiceShort.size();i++)
    {
        form.cmbDiscipline().newRow(voCollServiceShort.get(i), voCollServiceShort.get(i).getServiceName());
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateServicesGrid(ServiceShortVoCollection services)
{
    form.lyrTabs().tabServices().grdServices().getRows().clear();
    if( services != null )
    {

        for(int i = 0;i < services.size();i++)
        {
            grdServicesRow row = form.lyrTabs().tabServices().grdServices().getRows().newRow();
            row.setColService(services.get(i).getServiceNameIsNotNull() ? services.get(i).getServiceName():"");
            row.setValue(services.get(i));
        }

    }
    refreshGroupContextMenu();
}
项目:openmaxims-linux    文件:Logic.java   
/**
 * populates the screen from data from specified Vo Collection
 * 
 * @param ServiceVoCollection
 * @return void
 */
public void populateListControl(ServiceShortVoCollection voColl)
{
    form.lyr1().Edit().grdService().getRows().clear();

    if (voColl != null)
    {
        grdServiceRow row;
        for (int i = 0; i < voColl.size(); i++)
        {
            ServiceShortVo voService = voColl.get(i);
            // check service compatibility to Location

            if (voService.getServiceNameIsNotNull())
            {
                row = form.lyr1().Edit().grdService().getRows().newRow();
                row.setValue(voColl.get(i));
                row.setService(voColl.get(i).getServiceName());
                row.setTooltip(formatServicevoTooltip(voService));
            }
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void loadDiscipline(Category value)
{
    form.cmbDiscipline().clear();
    if (value == null)
        return;

    ServiceShortVoCollection voCollServiceShort = new ServiceShortVoCollection();

    //WDEV-17122
    if (form.cmbCategory().getValue().equals(Category.PATHOLOGY))
        voCollServiceShort = domain.listServiceforCategoryByType(ServiceCategory.PATHOLOGY_DISCIPLINE);
    else if (Category.CLINICALIMAGING.equals(form.cmbCategory().getValue()))
        voCollServiceShort = domain.listServiceforCategoryByType(ServiceCategory.RADIOLOGY_MODALITY);
    else
        voCollServiceShort = domain.listServiceforCategoryByType(ServiceCategory.CLINICAL);

    for (int i = 0; i < voCollServiceShort.size(); i++)
    {
        form.cmbDiscipline().newRow(voCollServiceShort.get(i), voCollServiceShort.get(i).getServiceName());
    }

}
项目:openmaxims-linux    文件:Logic.java   
private void loadDiscipline(Category value)
{
    form.cmbDiscipline().clear();

    if(value == null)
        return;

    ServiceShortVoCollection voCollServiceShort = new ServiceShortVoCollection();

    if(form.cmbCategory().getValue().equals(Category.PATHOLOGY))
        voCollServiceShort = domain.listServiceforLocationByType(LocationType.PATHOLOGYLABORATORY);
    else
        voCollServiceShort = domain.listServiceforLocationByType(LocationType.CLINICALIMAGINGDEPARTMENT);

    for(int i=0;i<voCollServiceShort.size();i++)
    {
        form.cmbDiscipline().newRow(voCollServiceShort.get(i), voCollServiceShort.get(i).getServiceName());
    }
}
项目:AvoinApotti    文件:OcsIfInboundImpl.java   
public ServiceShortVoCollection listServicesWithAlternateCode(String alternateCode)
{
    DomainFactory factory = getDomainFactory();

    String hql = "from Service s where s.alternateServiceCode = :alternateCode";
    List lst = factory.find(hql, new String[]{"alternateCode"}, new Object[]{alternateCode});
    return ServiceShortVoAssembler.createServiceShortVoCollectionFromService(lst);
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException
{
    ServiceShortVoCollection serviceCol = new ServiceShortVoCollection();

    for ( int i = 0; i < form.grdHotlist().getRows().size(); i++ )
    {
        if ( form.grdHotlist().getRows().get(i).getColPresent() )
        {
            serviceCol.add(form.grdHotlist().getRows().get(i).getValue());
        }
    }

    form.getGlobalContext().ClinicalAdmin.setServices(serviceCol);
    engine.close(DialogResult.OK);
}
项目:AvoinApotti    文件:Logic.java   
private void populateServiceGrid()
{
    form.grdHotlist().getRows().clear();
    ServiceShortVoCollection shortVoCol = domain.listServices();
    if(shortVoCol != null && shortVoCol.size() > 0)
    {
        for(int i = 0; i < shortVoCol.size();i++)
        {
            grdHotlistRow row = form.grdHotlist().getRows().newRow();
            row.setColHotlist(shortVoCol.get(i).getServiceNameIsNotNull()?shortVoCol.get(i).getServiceName():"");
            row.setValue(shortVoCol.get(i));
        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private void checkPresentServices()
{
    if(form.getGlobalContext().ClinicalAdmin.getServicesIsNotNull())
    {
        ServiceShortVoCollection shortVoColl = domain.getServicesInList(form.getGlobalContext().ClinicalAdmin.getServices());
        ServiceShortVoCollection savedAndInactiveService = new ServiceShortVoCollection();
        if(shortVoColl != null)
        {
            for(int i = 0;i < shortVoColl.size();i++)
            {
                if( Boolean.FALSE.equals(shortVoColl.get(i).getIsActive()))
                {
                    savedAndInactiveService.add(shortVoColl.get(i));
                    continue;
                }
                for(int j = 0;j < form.grdHotlist().getRows().size(); j++ )
                {
                    if ( form.grdHotlist().getRows().get(j).getValue().equals(shortVoColl.get(i)))
                    {
                        form.grdHotlist().getRows().get(j).setColPresent(true);
                    }
                }
            }
            if(savedAndInactiveService != null && savedAndInactiveService.size() > 0)
            {
                for(int i = 0; i < savedAndInactiveService.size();i++)
                {
                    grdHotlistRow row = form.grdHotlist().getRows().newRow();
                    row.setColHotlist(savedAndInactiveService.get(i).getServiceNameIsNotNull()?savedAndInactiveService.get(i).getServiceName():"");
                    row.setValue(savedAndInactiveService.get(i));
                    row.setColPresent(true);
                }
            }

        }

    }
}
项目:AvoinApotti    文件:Logic.java   
private ServiceShortVoCollection getServices()
{
    ServiceShortVoCollection tempColl = new ServiceShortVoCollection();
    for(int i = 0;i < form.lyrTabs().tabServices().grdServices().getRows().size();i++)
    {
        tempColl.add(form.lyrTabs().tabServices().grdServices().getRows().get(i).getValue());
    }
    return tempColl;
}
项目:AvoinApotti    文件:Logic.java   
private void updateServicies()
{
    ServiceShortVoCollection shortVoColl = new ServiceShortVoCollection();
    for(int i = 0; i < form.lyrTabs().tabServices().grdServices().getRows().size();i++)
    {
        shortVoColl.add(form.lyrTabs().tabServices().grdServices().getRows().get(i).getValue());
    }
    form.getGlobalContext().ClinicalAdmin.setServices(shortVoColl);
    engine.open(form.getForms().ClinicalAdmin.ServicesHotListDialog);
}
项目:AvoinApotti    文件:Logic.java   
private ServiceShortVoCollection listServices(String value)
{
    ServiceShortVo voService = new ServiceShortVo();
    voService.setServiceName(value);
    voService.setIsActive(Boolean.TRUE);
    return domain.listService(voService);
}
项目:AvoinApotti    文件:Logic.java   
private void loadDefaultData()
{
    form.txtNameFilter().setFocus();
    // Load SpecialityFilter and Speciality combos
    form.cmbServiceFilter().clear();
    form.cmbService().clear();
    ServiceShortVoCollection voCollServices = listServices(null);
    for (int i = 0; i < voCollServices.size(); i++)
    {
        form.cmbServiceFilter().newRow(voCollServices.get(i), voCollServices.get(i).getServiceName());
        form.cmbService().newRow(voCollServices.get(i), voCollServices.get(i).getServiceName());
    }
    /*WDEV-11662
    OrganisationLiteVoCollection listOrganisations = domain.listOrganisations();

    form.cmbOrganisation().clear();
    for (int i = 0; listOrganisations != null && i < listOrganisations.size(); i++)
    {
        form.cmbOrganisation().newRow(listOrganisations.get(i), listOrganisations.get(i).getName());
    }*/

    ContractConfigShortVoCollection contracts = domain.listActiveContracts();
    form.cmbContract().clear();
    for (int i = 0; contracts != null && i < contracts.size(); i++)
    {
        form.cmbContract().newRow(contracts.get(i), contracts.get(i).getContractName());
    }
    //WDEV-11662 End

}
项目:AvoinApotti    文件:Logic.java   
private void loadServices()
{
    form.cmbSpecialty().clear();
    ServiceShortVoCollection voCollServices = domain.listActiveService();
    for (int i = 0; i < voCollServices.size(); i++)
        form.cmbSpecialty().newRow(voCollServices.get(i), voCollServices.get(i).getServiceName());
}
项目:AvoinApotti    文件:LocationServiceImpl.java   
public ServiceShortVoCollection listServices(String serviceName)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hql = new StringBuffer(" ");
    String query = "from Service s ";
    ArrayList markers = new ArrayList();
    ArrayList values = new ArrayList();
    String andStr = " ";

    if (serviceName != null)
    {
        String name = serviceName.toUpperCase();
        if (name.endsWith("%"))
            name = name.substring(0, name.length() - 1);

        hql.append(andStr + " (s.upperName like :serviceName ");
        markers.add("serviceName");
        values.add("%" + name + "%");
        hql.append(")");
        andStr = " and ";
    }

    hql.append(andStr + " s.isActive = :isActive");
    markers.add("isActive");
    values.add(new Boolean(true));
    andStr = " and ";

    if (markers.size() > 0)
        query += " where ";
    query += hql.toString();
    int configAmount = ConfigFlag.DOM.CLINICAL_ADMIN_SEARCH_MAX_SIZE.getValue();
    List services = factory.find(query, markers, values, configAmount);

    return ServiceShortVoAssembler.createServiceShortVoCollectionFromService(services).sort();
}
项目:AvoinApotti    文件:TestListImpl.java   
public ServiceShortVoCollection listServiceforLocationByType(LocationType locationType) 
{
    DomainFactory factory = getDomainFactory();

    String hql = "Select distinct locService.service from LocationService locService where locService.location.type = :locationType and locService.service.isActive = :isActive";
    List services = factory.find(hql,new String[]{"locationType","isActive"},new Object[]{getDomLookup(locationType),Boolean.TRUE});

    return ServiceShortVoAssembler.createServiceShortVoCollectionFromService(services);
}