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

项目:AvoinApotti    文件:ServiceImpl.java   
public ServiceVoCollection listService(Integer[] nServiceIds)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hqlStart = new StringBuffer();
    String hql;

    hqlStart.append("from Service s where s.id in ( ");
    for (int i = 0; i < nServiceIds.length; i++)
        hqlStart.append(nServiceIds[i] + ",");

    if (hqlStart.toString().endsWith(","))
        hql = hqlStart.toString().substring(0, hqlStart.length() - 1);
    else
        hql = hqlStart.toString();

    hql += " )";

    return ServiceVoAssembler.createServiceVoCollectionFromService(factory.find(hql));
}
项目:AvoinApotti    文件:PresentationComponentImpl.java   
@SuppressWarnings("unchecked")
public ServiceVo getService(Integer id)
{
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("select service from CatsReferral as catsRef join catsRef.referralDetails" +
            " as referal join referal.service as service where catsRef.id = "+id);

    List domService = factory.find(hql.toString());

    ServiceVoCollection serviceColl = ServiceVoAssembler.createServiceVoCollectionFromService(domService);
    if(serviceColl.size() > 0)
        return serviceColl.get(0);
    else
        return null;

}
项目:openMAXIMS    文件:ServiceImpl.java   
public ServiceVoCollection listService(Integer[] nServiceIds)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hqlStart = new StringBuffer();
    String hql;

    hqlStart.append("from Service s where s.id in ( ");
    for (int i = 0; i < nServiceIds.length; i++)
        hqlStart.append(nServiceIds[i] + ",");

    if (hqlStart.toString().endsWith(","))
        hql = hqlStart.toString().substring(0, hqlStart.length() - 1);
    else
        hql = hqlStart.toString();

    hql += " )";

    return ServiceVoAssembler.createServiceVoCollectionFromService(factory.find(hql));
}
项目:openMAXIMS    文件:PresentationComponentImpl.java   
@SuppressWarnings("unchecked")
public ServiceVo getService(Integer id)
{
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("select service from CatsReferral as catsRef join catsRef.referralDetails" +
            " as referal join referal.service as service where catsRef.id = "+id);

    List domService = factory.find(hql.toString());

    ServiceVoCollection serviceColl = ServiceVoAssembler.createServiceVoCollectionFromService(domService);
    if(serviceColl.size() > 0)
        return serviceColl.get(0);
    else
        return null;

}
项目:openMAXIMS    文件:ServiceImpl.java   
public ServiceVoCollection listService(Integer[] nServiceIds)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hqlStart = new StringBuffer();
    String hql;

    hqlStart.append("from Service s where s.id in ( ");
    for (int i = 0; i < nServiceIds.length; i++)
        hqlStart.append(nServiceIds[i] + ",");

    if (hqlStart.toString().endsWith(","))
        hql = hqlStart.toString().substring(0, hqlStart.length() - 1);
    else
        hql = hqlStart.toString();

    hql += " )";

    return ServiceVoAssembler.createServiceVoCollectionFromService(factory.find(hql));
}
项目:openMAXIMS    文件:PresentationComponentImpl.java   
@SuppressWarnings("unchecked")
public ServiceVo getService(Integer id)
{
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("select service from CatsReferral as catsRef join catsRef.referralDetails" +
            " as referal join referal.service as service where catsRef.id = "+id);

    List domService = factory.find(hql.toString());

    ServiceVoCollection serviceColl = ServiceVoAssembler.createServiceVoCollectionFromService(domService);
    if(serviceColl.size() > 0)
        return serviceColl.get(0);
    else
        return null;

}
项目:openmaxims-linux    文件:LocationServiceImpl.java   
public ServiceVoCollection listService(Boolean activeOnly)
{
    DomainFactory factory = getDomainFactory();
    if (activeOnly.booleanValue())
        return ServiceVoAssembler.createServiceVoCollectionFromService(factory.find("from Service service where service.isActive = :active", new String[]{"active"}, new Object[]{activeOnly}));

    return ServiceVoAssembler.createServiceVoCollectionFromService(factory.listDomainObjects(Service.class)).sort();
}
项目:openmaxims-linux    文件:ServiceImpl.java   
public ServiceVoCollection listService(Integer[] nServiceIds)
{
    DomainFactory factory = getDomainFactory();
    StringBuffer hqlStart = new StringBuffer();
    String hql;

    hqlStart.append("from Service s where s.id in ( ");
    for (int i = 0; i < nServiceIds.length; i++)
        hqlStart.append(nServiceIds[i] + ",");

    if (hqlStart.toString().endsWith(","))
        hql = hqlStart.toString().substring(0, hqlStart.length() - 1);
    else
        hql = hqlStart.toString();

    hql += " )";

    return ServiceVoAssembler.createServiceVoCollectionFromService(factory.find(hql));
}
项目:AvoinApotti    文件:Logic.java   
private void loadServiceCombo()
{
    ServiceCategoryCollection excludedColl = new ServiceCategoryCollection();
    excludedColl.add(ServiceCategory.PATHOLOGY_DISCIPLINE);
    excludedColl.add(ServiceCategory.RADIOLOGY_MODALITY);
    // WDEV-1913
    ServiceVoCollection voCollService = domain.listService(excludedColl);
    form.lyrProServices().tabServices().cmbService().clear();

    for (int i = 0; i < voCollService.size(); i++)
        form.lyrProServices().tabServices().cmbService().newRow(voCollService.get(i), voCollService.get(i).getServiceName());

}
项目:AvoinApotti    文件:SupportNetworkProfessionalServicesImpl.java   
public ServiceVoCollection listService(ServiceCategory serviceType)
{
    // will be called from servicefunction when implemented in Spinal
    DomainFactory factory = getDomainFactory();
    if (serviceType == null)
        return ServiceVoAssembler.createServiceVoCollectionFromService(factory.listDomainObjects(Service.class));

    String hql = "from Service s where s.serviceCategory = :serviceType and s.isActive = :active";
    java.util.List services = factory.find(hql, new String[]{"serviceType", "active"}, new Object[]{getDomLookup(serviceType), Boolean.TRUE});
    return ServiceVoAssembler.createServiceVoCollectionFromService(services);
}
项目:AvoinApotti    文件:SupportNetworkProfessionalServicesImpl.java   
public ServiceVoCollection listService(ServiceCategoryCollection excludedServices)
{
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("from Service s where s.isActive = :active");
    ArrayList paramNames = new ArrayList();
    ArrayList paramValues = new ArrayList();

    paramNames.add("active");
    paramValues.add(Boolean.TRUE);

    if (excludedServices != null)
    {
        int servicesSize = excludedServices.size();
        for (int i = 0; i < servicesSize; i++)
        {
            if (i == 0)
                hql.append(" and (");

            ServiceCategory serviceCategory = excludedServices.get(i);
            String serviceType = "serviceType" + Integer.toString(i);
            paramNames.add(serviceType);
            paramValues.add(new Integer(serviceCategory.getID()));

            hql.append("s.serviceCategory.id <> :" + serviceType);

            if (i == (servicesSize - 1))
                hql.append(")");
            else
                hql.append(" and ");
        }
    }
    hql.append(" order by UPPER(s.serviceName) asc  ");
    java.util.List services = factory.find(hql.toString(), paramNames, paramValues);

    return ServiceVoAssembler.createServiceVoCollectionFromService(services);
}
项目:AvoinApotti    文件:PMHChecklistConfigImpl.java   
public ServiceVoCollection listService(Boolean activeOnly) 
{
    ims.admin.domain.Service impl = (ims.admin.domain.Service) getDomainImpl(ServiceImpl.class);
    ims.core.vo.ServiceShortVo filter = new ims.core.vo.ServiceShortVo();
    filter.setIsActive(activeOnly);
    return impl.listService(filter);
}
项目:AvoinApotti    文件:Logic.java   
private void loadServiceCombo()
{
    ServiceCategoryCollection excludedColl = new ServiceCategoryCollection();
    excludedColl.add(ServiceCategory.PATHOLOGY_DISCIPLINE);
    excludedColl.add(ServiceCategory.RADIOLOGY_MODALITY);

    ServiceVoCollection voCollService = domain.listService(excludedColl);
    form.lyrSupportServices().tabPageServices().cmbService().clear();

    for (int i = 0; i < voCollService.size(); i++)
        form.lyrSupportServices().tabPageServices().cmbService().newRow(voCollService.get(i), voCollService.get(i).getServiceName());
}
项目:AvoinApotti    文件:SupportServicesImpl.java   
public ServiceVoCollection listService( ServiceCategoryCollection excludedServices) 
{
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("from Service s where s.isActive = :active");
    ArrayList paramNames = new ArrayList();
    ArrayList paramValues = new ArrayList();

    paramNames.add("active");
    paramValues.add(Boolean.TRUE);

    if (excludedServices != null)
    {
        int servicesSize = excludedServices.size();
        for (int i = 0; i < servicesSize; i++)
        {
            if (i == 0)
                hql.append(" and (");

            ServiceCategory serviceCategory = excludedServices.get(i);
            String serviceType = "serviceType" + Integer.toString(i);
            paramNames.add(serviceType);
            paramValues.add(new Integer(serviceCategory.getID()));

            hql.append("s.serviceCategory.id <> :" + serviceType);

            if (i == (servicesSize - 1))
                hql.append(")");
            else
                hql.append(" and ");
        }
    }
    //WDEV-18210
    hql.append(" order by UPPER(s.serviceName) asc");

    java.util.List services = factory.find(hql.toString(), paramNames, paramValues);

    return ServiceVoAssembler.createServiceVoCollectionFromService(services);
}
项目:AvoinApotti    文件:Logic.java   
private void loadServices()
{
    ServiceVoCollection voCollServices = domain.listServices();
    form.cmbFilterSpecialty().clear();

    for (int i = 0; i < voCollServices.size(); i++)
    {
        form.cmbFilterSpecialty().newRow(voCollServices.get(i), voCollServices.get(i).getServiceName());
        form.lyrDetails().tabGeneralDetails().cmbSpeciality().newRow(voCollServices.get(i), voCollServices.get(i).getServiceName());
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateServicesCombo()
{
    form.cmbService().clear();

    ServiceVoCollection voCollServices = domain.listServices();

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

}
项目:AvoinApotti    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException
{
    initalize();
    // Screen called from WorkQueue - display Patient and Case
    if (form.getGlobalContext().NTPF.getTargetObjectIdIsNotNull())
    {
        clearInstanceControls();

        ServiceVo voService = new ServiceVo();
        voService.setID_Service(form.getGlobalContext().NTPF.getTargetObjectId());
        form.getLocalContext().setSelectedRecord(domain.getServiceById(voService));

        if (form.getLocalContext().getSelectedRecordIsNotNull())
        {
            ServiceVoCollection voColl = new ServiceVoCollection();
            voColl.add(form.getLocalContext().getSelectedRecord());
            populateListControl(voColl);
            form.treService().setValue(form.getLocalContext().getSelectedRecord());

            selectionChange(form.treService().getSelectedNode());

            form.treService().getSelectedNode().setExpanded(true);

            treeExpandCollapse(form.treService().getSelectedNode());

        }

        form.getGlobalContext().NTPF.setTargetObjectId(null);

        form.lnkBack().setVisible(true);
        form.getLocalContext().setPreviousForm(getPrevForm());

        return;
    }
    else
        form.lnkBack().setVisible(false);

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

    if (voColl == null || voColl.size() == 0)
    {
        engine.showMessage("No results found.");
        return;
    }

    for (int i = 0; i < voColl.size(); i++)
    {
        ServiceVo voService = voColl.get(i);
        if (voService.getServiceNameIsNotNull())
        {
            TreeNode newNode = form.treService().getNodes().add(voService, (voService.getServiceNameIsNotNull() ? voService.getServiceName() : ""));
            newNode.setTooltip(formatServicevoTooltip(voService));
            newNode.setExpandedImage(form.getImages().Admin.Service);
            newNode.setCollapsedImage(form.getImages().Admin.Service);
            newNode.setSelectedImage(form.getImages().Admin.Service);
            if (voService.getIsActiveIsNotNull() && !voService.getIsActive().booleanValue())
                newNode.setTextColor(Color.Red);

            if (!ConfigFlag.UI.SERVICE_TABS.getValue(false).equalsIgnoreCase("NONE"))
                newNode.getNodes().add(null, "Loading Please wait...");
        }
    }
}
项目:AvoinApotti    文件:LocationServiceImpl.java   
public ServiceVoCollection listService(Boolean activeOnly)
{
    DomainFactory factory = getDomainFactory();
    if (activeOnly.booleanValue())
        return ServiceVoAssembler.createServiceVoCollectionFromService(factory.find("from Service service where service.isActive = :active", new String[]{"active"}, new Object[]{activeOnly}));

    return ServiceVoAssembler.createServiceVoCollectionFromService(factory.listDomainObjects(Service.class)).sort();
}
项目:openMAXIMS    文件:Logic.java   
private void loadServiceCombo()
{
    ServiceCategoryCollection excludedColl = new ServiceCategoryCollection();
    excludedColl.add(ServiceCategory.PATHOLOGY_DISCIPLINE);
    excludedColl.add(ServiceCategory.RADIOLOGY_MODALITY);
    // WDEV-1913
    ServiceVoCollection voCollService = domain.listService(excludedColl);
    form.lyrProServices().tabServices().cmbService().clear();

    for (int i = 0; i < voCollService.size(); i++)
        form.lyrProServices().tabServices().cmbService().newRow(voCollService.get(i), voCollService.get(i).getServiceName());

}
项目:openMAXIMS    文件:SupportNetworkProfessionalServicesImpl.java   
public ServiceVoCollection listService(ServiceCategory serviceType)
{
    // will be called from servicefunction when implemented in Spinal
    DomainFactory factory = getDomainFactory();
    if (serviceType == null)
        return ServiceVoAssembler.createServiceVoCollectionFromService(factory.listDomainObjects(Service.class));

    String hql = "from Service s where s.serviceCategory = :serviceType and s.isActive = :active";
    java.util.List services = factory.find(hql, new String[]{"serviceType", "active"}, new Object[]{getDomLookup(serviceType), Boolean.TRUE});
    return ServiceVoAssembler.createServiceVoCollectionFromService(services);
}
项目:openMAXIMS    文件:SupportNetworkProfessionalServicesImpl.java   
public ServiceVoCollection listService(ServiceCategoryCollection excludedServices)
{
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("from Service s where s.isActive = :active");
    ArrayList paramNames = new ArrayList();
    ArrayList paramValues = new ArrayList();

    paramNames.add("active");
    paramValues.add(Boolean.TRUE);

    if (excludedServices != null)
    {
        int servicesSize = excludedServices.size();
        for (int i = 0; i < servicesSize; i++)
        {
            if (i == 0)
                hql.append(" and (");

            ServiceCategory serviceCategory = excludedServices.get(i);
            String serviceType = "serviceType" + Integer.toString(i);
            paramNames.add(serviceType);
            paramValues.add(new Integer(serviceCategory.getID()));

            hql.append("s.serviceCategory.id <> :" + serviceType);

            if (i == (servicesSize - 1))
                hql.append(")");
            else
                hql.append(" and ");
        }
    }
    hql.append(" order by s.upperName asc  "); //WDEV-20219 UPPER(s.serviceName)
    java.util.List services = factory.find(hql.toString(), paramNames, paramValues);

    return ServiceVoAssembler.createServiceVoCollectionFromService(services);
}
项目:openMAXIMS    文件:PMHChecklistConfigImpl.java   
public ServiceVoCollection listService(Boolean activeOnly) 
{
    ims.admin.domain.Service impl = (ims.admin.domain.Service) getDomainImpl(ServiceImpl.class);
    ims.core.vo.ServiceShortVo filter = new ims.core.vo.ServiceShortVo();
    filter.setIsActive(activeOnly);
    return impl.listService(filter);
}
项目:openMAXIMS    文件:Logic.java   
private void loadServiceCombo()
{
    ServiceCategoryCollection excludedColl = new ServiceCategoryCollection();
    excludedColl.add(ServiceCategory.PATHOLOGY_DISCIPLINE);
    excludedColl.add(ServiceCategory.RADIOLOGY_MODALITY);

    ServiceVoCollection voCollService = domain.listService(excludedColl);
    form.lyrSupportServices().tabPageServices().cmbService().clear();

    for (int i = 0; i < voCollService.size(); i++)
        form.lyrSupportServices().tabPageServices().cmbService().newRow(voCollService.get(i), voCollService.get(i).getServiceName());
}
项目:openMAXIMS    文件:SupportServicesImpl.java   
public ServiceVoCollection listService( ServiceCategoryCollection excludedServices) 
{
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("from Service s where s.isActive = :active");
    ArrayList paramNames = new ArrayList();
    ArrayList paramValues = new ArrayList();

    paramNames.add("active");
    paramValues.add(Boolean.TRUE);

    if (excludedServices != null)
    {
        int servicesSize = excludedServices.size();
        for (int i = 0; i < servicesSize; i++)
        {
            if (i == 0)
                hql.append(" and (");

            ServiceCategory serviceCategory = excludedServices.get(i);
            String serviceType = "serviceType" + Integer.toString(i);
            paramNames.add(serviceType);
            paramValues.add(new Integer(serviceCategory.getID()));

            hql.append("s.serviceCategory.id <> :" + serviceType);

            if (i == (servicesSize - 1))
                hql.append(")");
            else
                hql.append(" and ");
        }
    }
    //WDEV-18210
    hql.append(" order by s.upperName asc"); //WDEV-20219 UPPER(s.serviceName)

    java.util.List services = factory.find(hql.toString(), paramNames, paramValues);

    return ServiceVoAssembler.createServiceVoCollectionFromService(services);
}
项目:openMAXIMS    文件:Logic.java   
private void populateServicesCombo()
{
    form.cmbService().clear();

    ServiceVoCollection voCollServices = domain.listServices();

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

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

    ServiceVoCollection voCollServices = domain.listServices();

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

}
项目:openMAXIMS    文件:Logic.java   
private void populateCmbService()
{
    ServiceVoCollection voCollServices = domain.listServices();
    form.cmbFilterSpecialty().clear();

    for (int i = 0; i < voCollServices.size(); i++)
    {
        form.cmbFilterSpecialty().newRow(voCollServices.get(i), voCollServices.get(i).getServiceName());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void loadServices()
{
    ServiceVoCollection voCollServices = domain.listServices();
    form.cmbFilterSpecialty().clear();

    for (int i = 0; i < voCollServices.size(); i++)
    {
        form.cmbFilterSpecialty().newRow(voCollServices.get(i), voCollServices.get(i).getServiceName());
        form.lyrDetails().tabGeneralDetails().cmbSpeciality().newRow(voCollServices.get(i), voCollServices.get(i).getServiceName());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateServicesCombo()
{
    form.cmbService().clear();

    ServiceVoCollection voCollServices = domain.listServices();

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

}
项目:openMAXIMS    文件:LocationServiceImpl.java   
public ServiceVoCollection listService(Boolean activeOnly)
{
    DomainFactory factory = getDomainFactory();
    if (activeOnly.booleanValue())
        return ServiceVoAssembler.createServiceVoCollectionFromService(factory.find("from Service service where service.isActive = :active order by service.serviceName asc  ", new String[]{"active"}, new Object[]{activeOnly})); //WDEV-22950

    return ServiceVoAssembler.createServiceVoCollectionFromService(factory.listDomainObjects(Service.class)).sort();
}
项目:openMAXIMS    文件:Logic.java   
private void loadServiceCombo()
{
    ServiceCategoryCollection excludedColl = new ServiceCategoryCollection();
    excludedColl.add(ServiceCategory.PATHOLOGY_DISCIPLINE);
    excludedColl.add(ServiceCategory.RADIOLOGY_MODALITY);
    // WDEV-1913
    ServiceVoCollection voCollService = domain.listService(excludedColl);
    form.lyrProServices().tabServices().cmbService().clear();

    for (int i = 0; i < voCollService.size(); i++)
        form.lyrProServices().tabServices().cmbService().newRow(voCollService.get(i), voCollService.get(i).getServiceName());

}
项目:openMAXIMS    文件:SupportNetworkProfessionalServicesImpl.java   
public ServiceVoCollection listService(ServiceCategory serviceType)
{
    // will be called from servicefunction when implemented in Spinal
    DomainFactory factory = getDomainFactory();
    if (serviceType == null)
        return ServiceVoAssembler.createServiceVoCollectionFromService(factory.listDomainObjects(Service.class));

    String hql = "from Service s where s.serviceCategory = :serviceType and s.isActive = :active";
    java.util.List services = factory.find(hql, new String[]{"serviceType", "active"}, new Object[]{getDomLookup(serviceType), Boolean.TRUE});
    return ServiceVoAssembler.createServiceVoCollectionFromService(services);
}
项目:openMAXIMS    文件:SupportNetworkProfessionalServicesImpl.java   
public ServiceVoCollection listService(ServiceCategoryCollection excludedServices)
{
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("from Service s where s.isActive = :active");
    ArrayList paramNames = new ArrayList();
    ArrayList paramValues = new ArrayList();

    paramNames.add("active");
    paramValues.add(Boolean.TRUE);

    if (excludedServices != null)
    {
        int servicesSize = excludedServices.size();
        for (int i = 0; i < servicesSize; i++)
        {
            if (i == 0)
                hql.append(" and (");

            ServiceCategory serviceCategory = excludedServices.get(i);
            String serviceType = "serviceType" + Integer.toString(i);
            paramNames.add(serviceType);
            paramValues.add(new Integer(serviceCategory.getID()));

            hql.append("s.serviceCategory.id <> :" + serviceType);

            if (i == (servicesSize - 1))
                hql.append(")");
            else
                hql.append(" and ");
        }
    }
    hql.append(" order by UPPER(s.serviceName) asc  ");
    java.util.List services = factory.find(hql.toString(), paramNames, paramValues);

    return ServiceVoAssembler.createServiceVoCollectionFromService(services);
}
项目:openMAXIMS    文件:PMHChecklistConfigImpl.java   
public ServiceVoCollection listService(Boolean activeOnly) 
{
    ims.admin.domain.Service impl = (ims.admin.domain.Service) getDomainImpl(ServiceImpl.class);
    ims.core.vo.ServiceShortVo filter = new ims.core.vo.ServiceShortVo();
    filter.setIsActive(activeOnly);
    return impl.listService(filter);
}
项目:openMAXIMS    文件:Logic.java   
private void loadServiceCombo()
{
    ServiceCategoryCollection excludedColl = new ServiceCategoryCollection();
    excludedColl.add(ServiceCategory.PATHOLOGY_DISCIPLINE);
    excludedColl.add(ServiceCategory.RADIOLOGY_MODALITY);

    ServiceVoCollection voCollService = domain.listService(excludedColl);
    form.lyrSupportServices().tabPageServices().cmbService().clear();

    for (int i = 0; i < voCollService.size(); i++)
        form.lyrSupportServices().tabPageServices().cmbService().newRow(voCollService.get(i), voCollService.get(i).getServiceName());
}
项目:openMAXIMS    文件:SupportServicesImpl.java   
public ServiceVoCollection listService( ServiceCategoryCollection excludedServices) 
{
    DomainFactory factory = getDomainFactory();

    StringBuffer hql = new StringBuffer("from Service s where s.isActive = :active");
    ArrayList paramNames = new ArrayList();
    ArrayList paramValues = new ArrayList();

    paramNames.add("active");
    paramValues.add(Boolean.TRUE);

    if (excludedServices != null)
    {
        int servicesSize = excludedServices.size();
        for (int i = 0; i < servicesSize; i++)
        {
            if (i == 0)
                hql.append(" and (");

            ServiceCategory serviceCategory = excludedServices.get(i);
            String serviceType = "serviceType" + Integer.toString(i);
            paramNames.add(serviceType);
            paramValues.add(new Integer(serviceCategory.getID()));

            hql.append("s.serviceCategory.id <> :" + serviceType);

            if (i == (servicesSize - 1))
                hql.append(")");
            else
                hql.append(" and ");
        }
    }
    //WDEV-18210
    hql.append(" order by UPPER(s.serviceName) asc");

    java.util.List services = factory.find(hql.toString(), paramNames, paramValues);

    return ServiceVoAssembler.createServiceVoCollectionFromService(services);
}
项目:openMAXIMS    文件:Logic.java   
private void loadServices()
{
    ServiceVoCollection voCollServices = domain.listServices();
    form.cmbFilterSpecialty().clear();

    for (int i = 0; i < voCollServices.size(); i++)
    {
        form.cmbFilterSpecialty().newRow(voCollServices.get(i), voCollServices.get(i).getServiceName());
        form.lyrDetails().tabGeneralDetails().cmbSpeciality().newRow(voCollServices.get(i), voCollServices.get(i).getServiceName());
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateServicesCombo()
{
    form.cmbService().clear();

    ServiceVoCollection voCollServices = domain.listServices();

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

}
项目:openMAXIMS    文件:Logic.java   
protected void onFormOpen() throws ims.framework.exceptions.PresentationLogicException
{
    initalize();
    // Screen called from WorkQueue - display Patient and Case
    if (form.getGlobalContext().NTPF.getTargetObjectIdIsNotNull())
    {
        clearInstanceControls();

        ServiceVo voService = new ServiceVo();
        voService.setID_Service(form.getGlobalContext().NTPF.getTargetObjectId());
        form.getLocalContext().setSelectedRecord(domain.getServiceById(voService));

        if (form.getLocalContext().getSelectedRecordIsNotNull())
        {
            ServiceVoCollection voColl = new ServiceVoCollection();
            voColl.add(form.getLocalContext().getSelectedRecord());
            populateListControl(voColl);
            form.treService().setValue(form.getLocalContext().getSelectedRecord());

            selectionChange(form.treService().getSelectedNode());

            form.treService().getSelectedNode().setExpanded(true);

            treeExpandCollapse(form.treService().getSelectedNode());

        }

        form.getGlobalContext().NTPF.setTargetObjectId(null);

        form.lnkBack().setVisible(true);
        form.getLocalContext().setPreviousForm(getPrevForm());

        return;
    }
    else
        form.lnkBack().setVisible(false);

    open();
}