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

项目:AvoinApotti    文件:Logic.java   
private void populateqmbOrganisation(OrganisationLiteVoCollection orgVoColl)
{
    form.qmbOrganisation().clear();
    if(orgVoColl == null || orgVoColl.size() == 0)
        return;
    for(int i = 0; i < orgVoColl.size();i++)
    {
        if(orgVoColl.get(i) == null)
            continue;
        form.qmbOrganisation().newRow(orgVoColl.get(i), orgVoColl.get(i).getName());
    }
    if (orgVoColl.size() == 1)
        form.qmbOrganisation().setValue(orgVoColl.get(0));
    else
        form.qmbOrganisation().showOpened();
}
项目:AvoinApotti    文件:Logic.java   
private void initOrganisationsCombos() throws FormOpenException {
    form.cmbSOrganisation().getValues().clear();
    form.ctnDetails().lyrDetails().tabPage1().cmbOrganisation().clear(); //wdev-13616
    OrganisationLiteVoCollection orgs = domain.listActiveOrganisations();
    if (orgs == null || orgs.size() == 0)
        throw new FormOpenException("At least one active organisation must exist.");
    for (int i = 0 ; i < orgs.size() ; i++)
    {
        OrganisationLiteVo org = orgs.get(i);
        if (org==null)
            continue;
        form.cmbSOrganisation().newRow(org, org.getName());
        form.ctnDetails().lyrDetails().tabPage1().cmbOrganisation().newRow(org, org.getName()); //wdev-13616

    }
}
项目:AvoinApotti    文件:Logic.java   
private void loadOrganisation() 
{
    form.cmbContract().clear();

    OrganisationLiteVoCollection collOrg = domain.listOrganisation();

    // WDEV-12637 - Check for null
    if (collOrg == null)
        return;

    for(int i=0; i<collOrg.size(); i++)
    {
        if(collOrg.get(i) != null)
        {
            form.cmbContract().newRow(collOrg.get(i), collOrg.get(i).getName());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateqmbOrganisation(OrganisationLiteVoCollection orgVoColl)
{
    form.qmbOrganisation().clear();
    if(orgVoColl == null || orgVoColl.size() == 0)
        return;
    for(int i = 0; i < orgVoColl.size();i++)
    {
        if(orgVoColl.get(i) == null)
            continue;
        form.qmbOrganisation().newRow(orgVoColl.get(i), orgVoColl.get(i).getName());
    }
    if (orgVoColl.size() == 1)
        form.qmbOrganisation().setValue(orgVoColl.get(0));
    else
        form.qmbOrganisation().showOpened();
}
项目:openMAXIMS    文件:Logic.java   
private void initOrganisationsCombos() throws FormOpenException {
    form.cmbSOrganisation().getValues().clear();
    form.ctnDetails().lyrDetails().tabPage1().cmbOrganisation().clear(); //wdev-13616
    OrganisationLiteVoCollection orgs = domain.listActiveOrganisations();
    if (orgs == null || orgs.size() == 0)
        throw new FormOpenException("At least one active organisation must exist.");
    for (int i = 0 ; i < orgs.size() ; i++)
    {
        OrganisationLiteVo org = orgs.get(i);
        if (org==null)
            continue;
        form.cmbSOrganisation().newRow(org, org.getName());
        form.ctnDetails().lyrDetails().tabPage1().cmbOrganisation().newRow(org, org.getName()); //wdev-13616

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

    OrganisationLiteVoCollection collOrg = domain.listOrganisation();

    // WDEV-12637 - Check for null
    if (collOrg == null)
        return;

    for(int i=0; i<collOrg.size(); i++)
    {
        if(collOrg.get(i) != null)
        {
            form.cmbContract().newRow(collOrg.get(i), collOrg.get(i).getName());
        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateqmbOrganisation(OrganisationLiteVoCollection orgVoColl)
{
    form.qmbOrganisation().clear();
    if(orgVoColl == null || orgVoColl.size() == 0)
        return;
    for(int i = 0; i < orgVoColl.size();i++)
    {
        if(orgVoColl.get(i) == null)
            continue;
        form.qmbOrganisation().newRow(orgVoColl.get(i), orgVoColl.get(i).getName());
    }
    if (orgVoColl.size() == 1)
        form.qmbOrganisation().setValue(orgVoColl.get(0));
    else
        form.qmbOrganisation().showOpened();
}
项目:openMAXIMS    文件:Logic.java   
private void initOrganisationsCombos() throws FormOpenException {
    form.cmbSOrganisation().getValues().clear();
    form.ctnDetails().lyrDetails().tabPage1().cmbOrganisation().clear(); //wdev-13616
    OrganisationLiteVoCollection orgs = domain.listActiveOrganisations();
    if (orgs == null || orgs.size() == 0)
        throw new FormOpenException("At least one active organisation must exist.");
    for (int i = 0 ; i < orgs.size() ; i++)
    {
        OrganisationLiteVo org = orgs.get(i);
        if (org==null)
            continue;
        form.cmbSOrganisation().newRow(org, org.getName());
        form.ctnDetails().lyrDetails().tabPage1().cmbOrganisation().newRow(org, org.getName()); //wdev-13616

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

    OrganisationLiteVoCollection collOrg = domain.listOrganisation();

    // WDEV-12637 - Check for null
    if (collOrg == null)
        return;

    for(int i=0; i<collOrg.size(); i++)
    {
        if(collOrg.get(i) != null)
        {
            form.cmbContract().newRow(collOrg.get(i), collOrg.get(i).getName());
        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateqmbOrganisation(OrganisationLiteVoCollection orgVoColl)
{
    form.qmbOrganisation().clear();
    if(orgVoColl == null || orgVoColl.size() == 0)
        return;
    for(int i = 0; i < orgVoColl.size();i++)
    {
        if(orgVoColl.get(i) == null)
            continue;
        form.qmbOrganisation().newRow(orgVoColl.get(i), orgVoColl.get(i).getName());
    }
    if (orgVoColl.size() == 1)
        form.qmbOrganisation().setValue(orgVoColl.get(0));
    else
        form.qmbOrganisation().showOpened();
}
项目:AvoinApotti    文件:DirectoryOfServiceAdminImpl.java   
public OrganisationLiteVoCollection listOrganisations() {
    String hql = "from Organisation as org where  (org.type is not null  and org.type.id not in (:gpp,:supp,:pct) and org.isActive = 1 and org.parentOrganisation is null) order by org.upperName asc ";
    List<?> list = getDomainFactory().find(hql,new String[]{"gpp","supp","pct"},new Object[]{OrganisationType.GPP.getId(),OrganisationType.SUPPLIER.getId(),OrganisationType.NHS_PCT.getId()});
    if (list == null || list.size() == 0)
        return null;
    return OrganisationLiteVoAssembler.createOrganisationLiteVoCollectionFromOrganisation(list);
}
项目:AvoinApotti    文件:Logic.java   
protected void onQmbOrganisationTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.qmbOrganisation().clear();
    if (value == null || value.equals(""))
    {
        engine.showMessage("Please enter at least one character to search on");
        return;
    }
    OrganisationLiteVoCollection orgVoColl = domain.listActiveOrganisations(value);
    populateqmbOrganisation(orgVoColl);
}
项目:AvoinApotti    文件:LocationMultipleSelectDialogImpl.java   
public ims.core.vo.OrganisationLiteVoCollection listActiveOrganisations(String name)
{


    StringBuilder hqlBuilder = new StringBuilder("from Organisation as org where org.type.id not in (" +    getInvalidTypes()+  ") and org.isActive = 1 and org.isRIE is null  ");
    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    String and = "and ";

    if (name!=null && name.length()>0)
    {
        hqlBuilder.append(and);
        hqlBuilder.append(" upper(org.name) like :cName ");
        and = "and ";
        paramNames.add("cName");
        paramValues.add("%"+name.toUpperCase()+"%");
    }

    hqlBuilder.append(" order by upper(org.name)");

    List dos = getDomainFactory().find(hqlBuilder.toString(),paramNames,paramValues);

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

    return OrganisationLiteVoAssembler.createOrganisationLiteVoCollectionFromOrganisation(dos); 

}
项目:AvoinApotti    文件:ClinicListImpl.java   
public OrganisationLiteVoCollection listOrganisation() 
{
    String hql = "from Organisation as org where  (org.type is not null  and org.type.id not in (:gpp,:supp,:pct) and org.isActive = 1 and org.parentOrganisation is null) order by org.upperName asc ";
    List<?> list = getDomainFactory().find(hql,new String[]{"gpp","supp","pct"},new Object[]{OrganisationType.GPP.getId(),OrganisationType.SUPPLIER.getId(),OrganisationType.NHS_PCT.getId()});
    if (list == null || list.size() == 0)
        return null;
    return OrganisationLiteVoAssembler.createOrganisationLiteVoCollectionFromOrganisation(list);
}
项目:openMAXIMS    文件:DirectoryOfServiceAdminImpl.java   
public OrganisationLiteVoCollection listOrganisations() {
    String hql = "from Organisation as org where  (org.type is not null  and org.type.id not in (:gpp,:supp,:pct) and org.isActive = 1 and org.parentOrganisation is null) order by org.upperName asc ";
    List<?> list = getDomainFactory().find(hql,new String[]{"gpp","supp","pct"},new Object[]{OrganisationType.GPP.getId(),OrganisationType.SUPPLIER.getId(),OrganisationType.NHS_PCT.getId()});
    if (list == null || list.size() == 0)
        return null;
    return OrganisationLiteVoAssembler.createOrganisationLiteVoCollectionFromOrganisation(list);
}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbOrganisationTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.qmbOrganisation().clear();
    if (value == null || value.equals(""))
    {
        engine.showMessage("Please enter at least one character to search on");
        return;
    }
    OrganisationLiteVoCollection orgVoColl = domain.listActiveOrganisations(value);
    populateqmbOrganisation(orgVoColl);
}
项目:openMAXIMS    文件:LocationMultipleSelectDialogImpl.java   
public ims.core.vo.OrganisationLiteVoCollection listActiveOrganisations(String name)
{


    StringBuilder hqlBuilder = new StringBuilder("from Organisation as org where org.type.id not in (" +    getInvalidTypes()+  ") and org.isActive = 1 and org.isRIE is null  ");
    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    String and = "and ";

    if (name!=null && name.length()>0)
    {
        hqlBuilder.append(and);
        hqlBuilder.append(" org.upperName like :cName "); //WDEV-20219 upper(org.name)
        and = "and ";
        paramNames.add("cName");
        paramValues.add("%"+name.toUpperCase()+"%");
    }

    hqlBuilder.append(" order by org.upperName"); //WDEV-20219 upper(org.name)

    List dos = getDomainFactory().find(hqlBuilder.toString(),paramNames,paramValues);

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

    return OrganisationLiteVoAssembler.createOrganisationLiteVoCollectionFromOrganisation(dos); 

}
项目:openMAXIMS    文件:ClinicListImpl.java   
public OrganisationLiteVoCollection listOrganisation() 
{
    String hql = "from Organisation as org where  (org.type is not null  and org.type.id not in (:gpp,:supp,:pct) and org.isActive = 1 and org.parentOrganisation is null) order by org.upperName asc ";
    List<?> list = getDomainFactory().find(hql,new String[]{"gpp","supp","pct"},new Object[]{OrganisationType.GPP.getId(),OrganisationType.SUPPLIER.getId(),OrganisationType.NHS_PCT.getId()});
    if (list == null || list.size() == 0)
        return null;
    return OrganisationLiteVoAssembler.createOrganisationLiteVoCollectionFromOrganisation(list);
}
项目:openMAXIMS    文件:DirectoryOfServiceAdminImpl.java   
public OrganisationLiteVoCollection listOrganisations() {
    String hql = "from Organisation as org where  (org.type is not null  and org.type.id not in (:gpp,:supp,:pct) and org.isActive = 1 and org.parentOrganisation is null) order by org.upperName asc ";
    List<?> list = getDomainFactory().find(hql,new String[]{"gpp","supp","pct"},new Object[]{OrganisationType.GPP.getId(),OrganisationType.SUPPLIER.getId(),OrganisationType.NHS_PCT.getId()});
    if (list == null || list.size() == 0)
        return null;
    return OrganisationLiteVoAssembler.createOrganisationLiteVoCollectionFromOrganisation(list);
}
项目:openMAXIMS    文件:Logic.java   
protected void onQmbOrganisationTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.qmbOrganisation().clear();
    if (value == null || value.equals(""))
    {
        engine.showMessage("Please enter at least one character to search on");
        return;
    }
    OrganisationLiteVoCollection orgVoColl = domain.listActiveOrganisations(value);
    populateqmbOrganisation(orgVoColl);
}
项目:openMAXIMS    文件:LocationMultipleSelectDialogImpl.java   
public ims.core.vo.OrganisationLiteVoCollection listActiveOrganisations(String name)
{


    StringBuilder hqlBuilder = new StringBuilder("from Organisation as org where org.type.id not in (" +    getInvalidTypes()+  ") and org.isActive = 1 and org.isRIE is null  ");
    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    String and = "and ";

    if (name!=null && name.length()>0)
    {
        hqlBuilder.append(and);
        hqlBuilder.append(" upper(org.name) like :cName ");
        and = "and ";
        paramNames.add("cName");
        paramValues.add("%"+name.toUpperCase()+"%");
    }

    hqlBuilder.append(" order by upper(org.name)");

    List dos = getDomainFactory().find(hqlBuilder.toString(),paramNames,paramValues);

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

    return OrganisationLiteVoAssembler.createOrganisationLiteVoCollectionFromOrganisation(dos); 

}
项目:openMAXIMS    文件:ClinicListImpl.java   
public OrganisationLiteVoCollection listOrganisation() 
{
    String hql = "from Organisation as org where  (org.type is not null  and org.type.id not in (:gpp,:supp,:pct) and org.isActive = 1 and org.parentOrganisation is null) order by org.upperName asc ";
    List<?> list = getDomainFactory().find(hql,new String[]{"gpp","supp","pct"},new Object[]{OrganisationType.GPP.getId(),OrganisationType.SUPPLIER.getId(),OrganisationType.NHS_PCT.getId()});
    if (list == null || list.size() == 0)
        return null;
    return OrganisationLiteVoAssembler.createOrganisationLiteVoCollectionFromOrganisation(list);
}
项目:openmaxims-linux    文件:DirectoryOfServiceAdminImpl.java   
public OrganisationLiteVoCollection listOrganisations() {
    String hql = "from Organisation as org where  (org.type is not null  and org.type.id not in (:gpp,:supp,:pct) and org.isActive = 1 and org.parentOrganisation is null) order by org.upperName asc ";
    List<?> list = getDomainFactory().find(hql,new String[]{"gpp","supp","pct"},new Object[]{OrganisationType.GPP.getId(),OrganisationType.SUPPLIER.getId(),OrganisationType.NHS_PCT.getId()});
    if (list == null || list.size() == 0)
        return null;
    return OrganisationLiteVoAssembler.createOrganisationLiteVoCollectionFromOrganisation(list);
}
项目:openmaxims-linux    文件:Logic.java   
protected void onQmbOrganisationTextSubmited(String value) throws ims.framework.exceptions.PresentationLogicException
{
    form.qmbOrganisation().clear();
    if (value == null || value.equals(""))
    {
        engine.showMessage("Please enter at least one character to search on");
        return;
    }
    OrganisationLiteVoCollection orgVoColl = domain.listActiveOrganisations(value);
    populateqmbOrganisation(orgVoColl);
}
项目:openmaxims-linux    文件:LocationMultipleSelectDialogImpl.java   
public ims.core.vo.OrganisationLiteVoCollection listActiveOrganisations(String name)
{


    StringBuilder hqlBuilder = new StringBuilder("from Organisation as org where org.type.id not in (" +    getInvalidTypes()+  ") and org.isActive = 1 and org.isRIE is null  ");
    ArrayList<String> paramNames = new ArrayList<String>();
    ArrayList<Object> paramValues = new ArrayList<Object>();

    String and = "and ";

    if (name!=null && name.length()>0)
    {
        hqlBuilder.append(and);
        hqlBuilder.append(" upper(org.name) like :cName ");
        and = "and ";
        paramNames.add("cName");
        paramValues.add("%"+name.toUpperCase()+"%");
    }

    hqlBuilder.append(" order by upper(org.name)");

    List dos = getDomainFactory().find(hqlBuilder.toString(),paramNames,paramValues);

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

    return OrganisationLiteVoAssembler.createOrganisationLiteVoCollectionFromOrganisation(dos); 

}