Java 类ims.admin.vo.ServiceForElectiveListConfigVoCollection 实例源码

项目:AvoinApotti    文件:Logic.java   
@Override
protected void onQmbServiceTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.ctnDetails().qmbService().clear();

    ServiceForElectiveListConfigVoCollection voCollService = domain.listServices(value);
    if (voCollService==null || voCollService.size() == 0)
    {
        return;
    }

    for (int i = 0; i < voCollService.size(); i++)
    {
        form.ctnDetails().qmbService().newRow(voCollService.get(i), voCollService.get(i).getServiceName());
    }

    if (form.ctnDetails().qmbService().size() == 1)
        form.ctnDetails().qmbService().setValue(voCollService.get(0));
    else
        form.ctnDetails().qmbService().showOpened();

    populateSpecialtyFromDetailsContainer(form.ctnDetails().qmbService().getValue()); //WDEV-18561
}
项目:AvoinApotti    文件:Logic.java   
@Override
protected void onQmbServiceSearchTextSubmited(String value) throws PresentationLogicException
{
    form.qmbServiceSearch().clear();

    ServiceForElectiveListConfigVoCollection voCollService = domain.listServices(value);
    if (voCollService==null || voCollService.size() == 0)
    {
        return;
    }

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

    if (form.qmbServiceSearch().size() == 1)
        form.qmbServiceSearch().setValue(voCollService.get(0));
    else
        form.qmbServiceSearch().showOpened();

    populateSpecialtyFromSearchCriteria(form.qmbServiceSearch().getValue());//WDEV-18561
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbServiceTextSubmited(String value) throws PresentationLogicException
{
    form.qmbService().clear();

    ServiceForElectiveListConfigVoCollection voCollService = domain.listServices(value);
    if (voCollService==null || voCollService.size() == 0)
    {
        return;
    }

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

    if (form.qmbService().size() == 1)
        form.qmbService().setValue(voCollService.get(0));
    else
        form.qmbService().showOpened();

}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbServiceTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.ctnDetails().qmbService().clear();

    ServiceForElectiveListConfigVoCollection voCollService = domain.listServices(value);
    if (voCollService==null || voCollService.size() == 0)
    {
        return;
    }

    for (int i = 0; i < voCollService.size(); i++)
    {
        form.ctnDetails().qmbService().newRow(voCollService.get(i), voCollService.get(i).getServiceName());
    }

    if (form.ctnDetails().qmbService().size() == 1)
        form.ctnDetails().qmbService().setValue(voCollService.get(0));
    else
        form.ctnDetails().qmbService().showOpened();

    populateSpecialtyFromDetailsContainer(form.ctnDetails().qmbService().getValue()); //WDEV-18561
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbServiceSearchTextSubmited(String value) throws PresentationLogicException
{
    form.qmbServiceSearch().clear();

    ServiceForElectiveListConfigVoCollection voCollService = domain.listServices(value);
    if (voCollService==null || voCollService.size() == 0)
    {
        return;
    }

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

    if (form.qmbServiceSearch().size() == 1)
        form.qmbServiceSearch().setValue(voCollService.get(0));
    else
        form.qmbServiceSearch().showOpened();

    populateSpecialtyFromSearchCriteria(form.qmbServiceSearch().getValue());//WDEV-18561
}
项目:openMAXIMS    文件:Logic.java   
/**
 * Function used to populate Service list to query combo-box
 * @param services
 */
private void populateServices(ServiceForElectiveListConfigVoCollection services)
{
    // Clear Service query combo-box
    form.lyrMain().tabPageSearchCriteria().qmbService().clear();

    // Check if the service collection has data
    if (services == null)
        return;

    // Add services to query combo-box
    for (ServiceForElectiveListConfigVo service : services)
    {
        form.lyrMain().tabPageSearchCriteria().qmbService().newRow(service, service.getServiceName());
    }

    // If there is only one value - default to it, else show the query combo-box opened
    if (services.size() == 1)
        form.lyrMain().tabPageSearchCriteria().qmbService().setValue(services.get(0));
    else
        form.lyrMain().tabPageSearchCriteria().qmbService().showOpened();
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbServiceTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.ctnDetails().qmbService().clear();

    ServiceForElectiveListConfigVoCollection voCollService = domain.listServices(value);
    if (voCollService==null || voCollService.size() == 0)
    {
        return;
    }

    for (int i = 0; i < voCollService.size(); i++)
    {
        form.ctnDetails().qmbService().newRow(voCollService.get(i), voCollService.get(i).getServiceName());
    }

    if (form.ctnDetails().qmbService().size() == 1)
        form.ctnDetails().qmbService().setValue(voCollService.get(0));
    else
        form.ctnDetails().qmbService().showOpened();

    populateSpecialtyFromDetailsContainer(form.ctnDetails().qmbService().getValue()); //WDEV-18561
}
项目:openMAXIMS    文件:Logic.java   
@Override
protected void onQmbServiceSearchTextSubmited(String value) throws PresentationLogicException
{
    form.qmbServiceSearch().clear();

    ServiceForElectiveListConfigVoCollection voCollService = domain.listServices(value);
    if (voCollService==null || voCollService.size() == 0)
    {
        return;
    }

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

    if (form.qmbServiceSearch().size() == 1)
        form.qmbServiceSearch().setValue(voCollService.get(0));
    else
        form.qmbServiceSearch().showOpened();

    populateSpecialtyFromSearchCriteria(form.qmbServiceSearch().getValue());//WDEV-18561
}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbServiceTextSubmited(String value) throws PresentationLogicException
{
    form.qmbService().clear();

    ServiceForElectiveListConfigVoCollection voCollService = domain.listServices(value);
    if (voCollService==null || voCollService.size() == 0)
    {
        return;
    }

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

    if (form.qmbService().size() == 1)
        form.qmbService().setValue(voCollService.get(0));
    else
        form.qmbService().showOpened();

}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onQmbServiceTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.ctnDetails().qmbService().clear();

    ServiceForElectiveListConfigVoCollection voCollService = domain.listServices(value);
    if (voCollService==null || voCollService.size() == 0)
    {
        return;
    }

    for (int i = 0; i < voCollService.size(); i++)
    {
        form.ctnDetails().qmbService().newRow(voCollService.get(i), voCollService.get(i).getServiceName());
    }

    if (form.ctnDetails().qmbService().size() == 1)
        form.ctnDetails().qmbService().setValue(voCollService.get(0));
    else
        form.ctnDetails().qmbService().showOpened();

    populateSpecialtyFromDetailsContainer(form.ctnDetails().qmbService().getValue()); //WDEV-18561
}
项目:openmaxims-linux    文件:Logic.java   
@Override
protected void onQmbServiceSearchTextSubmited(String value) throws PresentationLogicException
{
    form.qmbServiceSearch().clear();

    ServiceForElectiveListConfigVoCollection voCollService = domain.listServices(value);
    if (voCollService==null || voCollService.size() == 0)
    {
        return;
    }

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

    if (form.qmbServiceSearch().size() == 1)
        form.qmbServiceSearch().setValue(voCollService.get(0));
    else
        form.qmbServiceSearch().showOpened();

    populateSpecialtyFromSearchCriteria(form.qmbServiceSearch().getValue());//WDEV-18561
}
项目:AvoinApotti    文件:TransferElectiveListDialogImpl.java   
public ServiceForElectiveListConfigVoCollection listServices(String name) 
{
    ElectiveListManagement impl = (ElectiveListManagement) getDomainImpl(ElectiveListManagementImpl.class);
    return impl.listServices(name);
}
项目:openMAXIMS    文件:TransferElectiveListDialogImpl.java   
public ServiceForElectiveListConfigVoCollection listServices(String name) 
{
    ElectiveListManagement impl = (ElectiveListManagement) getDomainImpl(ElectiveListManagementImpl.class);
    return impl.listServices(name);
}
项目:openMAXIMS    文件:ElectiveListManagementImpl.java   
public ServiceForElectiveListConfigVoCollection listServices(String name)
{
    if (name == null)
        return null;

    StringBuilder query = new StringBuilder("SELECT service FROM Service AS service ");

    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    query.append(" WHERE service.upperName LIKE :NAME AND service.isActive = 1 ");

    paramNames.add("NAME");
    paramValues.add(name.toUpperCase() + "%");

    query.append(" ORDER BY service.upperName");

    return ServiceForElectiveListConfigVoAssembler.createServiceForElectiveListConfigVoCollectionFromService(getDomainFactory().find(query.toString(), paramNames, paramValues)); 
}
项目:openMAXIMS    文件:TransferElectiveListDialogImpl.java   
public ServiceForElectiveListConfigVoCollection listServices(String name) 
{
    ElectiveListManagement impl = (ElectiveListManagement) getDomainImpl(ElectiveListManagementImpl.class);
    return impl.listServices(name);
}