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

项目:AvoinApotti    文件:Logic.java   
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
    ConfigLocationLiteVoCollection tempColl = new ConfigLocationLiteVoCollection();
    for(int i = 0;i < form.grdSelectedLocations().getRows().size();i++)
    {
        if(form.grdSelectedLocations().getRows().get(i).getColumnSelected())
            tempColl.add(form.grdSelectedLocations().getRows().get(i).getValue());
    }
    if(tempColl.size() < 1)
    {
        engine.showMessage("Select at least one Location");
        return;
    }

    form.getGlobalContext().RefMan.setLocationContract(tempColl);
    engine.close(DialogResult.OK);  }
项目:AvoinApotti    文件:Logic.java   
private void populateSelectedLocationGrid(ConfigLocationLiteVoCollection locationColl)
{

    if(locationColl == null || locationColl.size() < 1)
        return;
    for(int i = 0; i < locationColl.size();i++)
    {
        ConfigLocationLiteVo record = locationColl.get(i);
        if (record == null)
            continue;
        grdSelectedLocationsRow newRow = form.grdSelectedLocations().getRows().newRow();
        newRow.setColumnLocationName(record.getName());
        newRow.setColumnSelected(Boolean.TRUE);
        newRow.setValue(record);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void populateSearchLocationGrid(ConfigLocationLiteVoCollection locColl)
{
    form.grdSearchLocation().getRows().clear();
    if(locColl == null || locColl.size() < 1)
        return;
    for(int i = 0; i < locColl.size();i++)
    {
        ConfigLocationLiteVo record = locColl.get(i);
        if (record == null)
            continue;
        grdSearchLocationRow newRow = form.grdSearchLocation().getRows().newRow();
        newRow.setColumnLocationName(record.getName());
        newRow.setColumnSelect(Boolean.FALSE);
        newRow.setValue(record);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addLocationBegin(LocationConfigVo loc , ConfigLocationLiteVoCollection tempVoColl,String name)
{

    if(loc.getLocations() == null || loc.getLocations().size() == 0)
        return;
    for(int j = 0; j < loc.getLocations().size(); j++)
    {
        LocationConfigVo temVo = loc.getLocations().get(j);
        if(temVo != null && temVo.getNameIsNotNull() && temVo.getName().toUpperCase().startsWith(name))
        {
            if(Boolean.TRUE.equals(loc.getLocations().get(j).getIsActive()))
                tempVoColl.add(loc.getLocations().get(j));
        }

        addLocationBegin(temVo,tempVoColl,name);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addLocationEnd(LocationConfigVo loc , ConfigLocationLiteVoCollection tempVoColl,String name)
{

    if(loc.getLocations() == null || loc.getLocations().size() == 0)
        return;
    for(int j = 0; j < loc.getLocations().size(); j++)
    {
        LocationConfigVo temVo = loc.getLocations().get(j);
        if(temVo != null && temVo.getNameIsNotNull() && temVo.getName().toUpperCase().endsWith(name))
        {
            if(Boolean.TRUE.equals(loc.getLocations().get(j).getIsActive()))
                tempVoColl.add(loc.getLocations().get(j));
        }

        addLocationEnd(temVo,tempVoColl,name);
    }
}
项目:AvoinApotti    文件:Logic.java   
private void addLocationContain(LocationConfigVo loc , ConfigLocationLiteVoCollection tempVoColl,String name)
{

    if(loc.getLocations() == null || loc.getLocations().size() == 0)
        return;
    for(int j = 0; j < loc.getLocations().size(); j++)
    {
        LocationConfigVo temVo = loc.getLocations().get(j);
        if(temVo != null && temVo.getNameIsNotNull() && temVo.getName().toUpperCase().contains(name))
        {
            if(Boolean.TRUE.equals(loc.getLocations().get(j).getIsActive()))
                tempVoColl.add(loc.getLocations().get(j));
        }

        addLocationContain(temVo,tempVoColl,name);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
    ConfigLocationLiteVoCollection tempColl = new ConfigLocationLiteVoCollection();
    for(int i = 0;i < form.grdSelectedLocations().getRows().size();i++)
    {
        if(form.grdSelectedLocations().getRows().get(i).getColumnSelected())
            tempColl.add(form.grdSelectedLocations().getRows().get(i).getValue());
    }
    if(tempColl.size() < 1)
    {
        engine.showMessage("Select at least one Location");
        return;
    }

    form.getGlobalContext().RefMan.setLocationContract(tempColl);
    engine.close(DialogResult.OK);  }
项目:openMAXIMS    文件:Logic.java   
private void populateSelectedLocationGrid(ConfigLocationLiteVoCollection locationColl)
{

    if(locationColl == null || locationColl.size() < 1)
        return;
    for(int i = 0; i < locationColl.size();i++)
    {
        ConfigLocationLiteVo record = locationColl.get(i);
        if (record == null)
            continue;
        grdSelectedLocationsRow newRow = form.grdSelectedLocations().getRows().newRow();
        newRow.setColumnLocationName(record.getName());
        newRow.setColumnSelected(Boolean.TRUE);
        newRow.setValue(record);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateSearchLocationGrid(ConfigLocationLiteVoCollection locColl)
{
    form.grdSearchLocation().getRows().clear();
    if(locColl == null || locColl.size() < 1)
        return;
    for(int i = 0; i < locColl.size();i++)
    {
        ConfigLocationLiteVo record = locColl.get(i);
        if (record == null)
            continue;
        grdSearchLocationRow newRow = form.grdSearchLocation().getRows().newRow();
        newRow.setColumnLocationName(record.getName());
        newRow.setColumnSelect(Boolean.FALSE);
        newRow.setValue(record);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
    ConfigLocationLiteVoCollection tempColl = new ConfigLocationLiteVoCollection();
    for(int i = 0;i < form.grdSelectedLocations().getRows().size();i++)
    {
        if(form.grdSelectedLocations().getRows().get(i).getColumnSelected())
            tempColl.add(form.grdSelectedLocations().getRows().get(i).getValue());
    }
    if(tempColl.size() < 1)
    {
        engine.showMessage("Select at least one Location");
        return;
    }

    form.getGlobalContext().RefMan.setLocationContract(tempColl);
    engine.close(DialogResult.OK);  }
项目:openMAXIMS    文件:Logic.java   
private void populateSelectedLocationGrid(ConfigLocationLiteVoCollection locationColl)
{

    if(locationColl == null || locationColl.size() < 1)
        return;
    for(int i = 0; i < locationColl.size();i++)
    {
        ConfigLocationLiteVo record = locationColl.get(i);
        if (record == null)
            continue;
        grdSelectedLocationsRow newRow = form.grdSelectedLocations().getRows().newRow();
        newRow.setColumnLocationName(record.getName());
        newRow.setColumnSelected(Boolean.TRUE);
        newRow.setValue(record);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateSearchLocationGrid(ConfigLocationLiteVoCollection locColl)
{
    form.grdSearchLocation().getRows().clear();
    if(locColl == null || locColl.size() < 1)
        return;
    for(int i = 0; i < locColl.size();i++)
    {
        ConfigLocationLiteVo record = locColl.get(i);
        if (record == null)
            continue;
        grdSearchLocationRow newRow = form.grdSearchLocation().getRows().newRow();
        newRow.setColumnLocationName(record.getName());
        newRow.setColumnSelect(Boolean.FALSE);
        newRow.setValue(record);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addLocationBegin(LocationConfigVo loc , ConfigLocationLiteVoCollection tempVoColl,String name)
{

    if(loc.getLocations() == null || loc.getLocations().size() == 0)
        return;
    for(int j = 0; j < loc.getLocations().size(); j++)
    {
        LocationConfigVo temVo = loc.getLocations().get(j);
        if(temVo != null && temVo.getNameIsNotNull() && temVo.getName().toUpperCase().startsWith(name))
        {
            if(Boolean.TRUE.equals(loc.getLocations().get(j).getIsActive()))
                tempVoColl.add(loc.getLocations().get(j));
        }

        addLocationBegin(temVo,tempVoColl,name);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addLocationEnd(LocationConfigVo loc , ConfigLocationLiteVoCollection tempVoColl,String name)
{

    if(loc.getLocations() == null || loc.getLocations().size() == 0)
        return;
    for(int j = 0; j < loc.getLocations().size(); j++)
    {
        LocationConfigVo temVo = loc.getLocations().get(j);
        if(temVo != null && temVo.getNameIsNotNull() && temVo.getName().toUpperCase().endsWith(name))
        {
            if(Boolean.TRUE.equals(loc.getLocations().get(j).getIsActive()))
                tempVoColl.add(loc.getLocations().get(j));
        }

        addLocationEnd(temVo,tempVoColl,name);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void addLocationContain(LocationConfigVo loc , ConfigLocationLiteVoCollection tempVoColl,String name)
{

    if(loc.getLocations() == null || loc.getLocations().size() == 0)
        return;
    for(int j = 0; j < loc.getLocations().size(); j++)
    {
        LocationConfigVo temVo = loc.getLocations().get(j);
        if(temVo != null && temVo.getNameIsNotNull() && temVo.getName().toUpperCase().contains(name))
        {
            if(Boolean.TRUE.equals(loc.getLocations().get(j).getIsActive()))
                tempVoColl.add(loc.getLocations().get(j));
        }

        addLocationContain(temVo,tempVoColl,name);
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
    ConfigLocationLiteVoCollection tempColl = new ConfigLocationLiteVoCollection();
    for(int i = 0;i < form.grdSelectedLocations().getRows().size();i++)
    {
        if(form.grdSelectedLocations().getRows().get(i).getColumnSelected())
            tempColl.add(form.grdSelectedLocations().getRows().get(i).getValue());
    }
    if(tempColl.size() < 1)
    {
        engine.showMessage("Select at least one Location");
        return;
    }

    form.getGlobalContext().CareUk.setLocationContract(tempColl);
    engine.close(DialogResult.OK);  }
项目:openmaxims-linux    文件:Logic.java   
private void populateSelectedLocationGrid(ConfigLocationLiteVoCollection locationColl)
{

    if(locationColl == null || locationColl.size() < 1)
        return;
    for(int i = 0; i < locationColl.size();i++)
    {
        ConfigLocationLiteVo record = locationColl.get(i);
        if (record == null)
            continue;
        grdSelectedLocationsRow newRow = form.grdSelectedLocations().getRows().newRow();
        newRow.setColumnLocationName(record.getName());
        newRow.setColumnSelected(Boolean.TRUE);
        newRow.setValue(record);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateSearchLocationGrid(ConfigLocationLiteVoCollection locColl)
{
    form.grdSearchLocation().getRows().clear();
    if(locColl == null || locColl.size() < 1)
        return;
    for(int i = 0; i < locColl.size();i++)
    {
        ConfigLocationLiteVo record = locColl.get(i);
        if (record == null)
            continue;
        grdSearchLocationRow newRow = form.grdSearchLocation().getRows().newRow();
        newRow.setColumnLocationName(record.getName());
        newRow.setColumnSelect(Boolean.FALSE);
        newRow.setValue(record);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void addLocationBegin(LocationConfigVo loc , ConfigLocationLiteVoCollection tempVoColl,String name)
{

    if(loc.getLocations() == null || loc.getLocations().size() == 0)
        return;
    for(int j = 0; j < loc.getLocations().size(); j++)
    {
        LocationConfigVo temVo = loc.getLocations().get(j);
        if(temVo != null && temVo.getNameIsNotNull() && temVo.getName().toUpperCase().startsWith(name))
        {
            if(Boolean.TRUE.equals(loc.getLocations().get(j).getIsActive()))
                tempVoColl.add(loc.getLocations().get(j));
        }

        addLocationBegin(temVo,tempVoColl,name);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void addLocationEnd(LocationConfigVo loc , ConfigLocationLiteVoCollection tempVoColl,String name)
{

    if(loc.getLocations() == null || loc.getLocations().size() == 0)
        return;
    for(int j = 0; j < loc.getLocations().size(); j++)
    {
        LocationConfigVo temVo = loc.getLocations().get(j);
        if(temVo != null && temVo.getNameIsNotNull() && temVo.getName().toUpperCase().endsWith(name))
        {
            if(Boolean.TRUE.equals(loc.getLocations().get(j).getIsActive()))
                tempVoColl.add(loc.getLocations().get(j));
        }

        addLocationEnd(temVo,tempVoColl,name);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void addLocationContain(LocationConfigVo loc , ConfigLocationLiteVoCollection tempVoColl,String name)
{

    if(loc.getLocations() == null || loc.getLocations().size() == 0)
        return;
    for(int j = 0; j < loc.getLocations().size(); j++)
    {
        LocationConfigVo temVo = loc.getLocations().get(j);
        if(temVo != null && temVo.getNameIsNotNull() && temVo.getName().toUpperCase().contains(name))
        {
            if(Boolean.TRUE.equals(loc.getLocations().get(j).getIsActive()))
                tempVoColl.add(loc.getLocations().get(j));
        }

        addLocationContain(temVo,tempVoColl,name);
    }
}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnAddToListClick() throws ims.framework.exceptions.PresentationLogicException
{
    ConfigLocationLiteVoCollection  voColl = new ConfigLocationLiteVoCollection();
    boolean deleted = true;
    while(deleted)
    {

        deleted = false;
        for (int i = 0; i < form.grdSearchLocation().getRows().size(); i++)
        {
            if(form.grdSearchLocation().getRows().get(i) == null)
                continue;

            if (form.grdSearchLocation().getRows().get(i).getColumnSelect())
            {
                if(checkIfLocationIsInLocationSelectedGrid(form.grdSearchLocation().getRows().get(i).getValue()))
                {
                    engine.showMessage("The Location "+ form.grdSearchLocation().getRows().get(i).getValue().getName()+ " is already in Selected Locations Grid");
                    return;
                }
                voColl.add(form.grdSearchLocation().getRows().get(i).getValue());
                form.grdSearchLocation().getRows().remove(i);
                deleted = true;
                break;


            }
        }
    }
    if(voColl == null || voColl.size() == 0)
    {
        engine.showMessage("Select at least one location");
        return;
    }
    populateSelectedLocationGrid(voColl);

}
项目:AvoinApotti    文件:Logic.java   
protected void onBtnSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.grdSearchLocation().getRows().clear();
    if(form.qmbOrganisation().getValue() == null)
    {
        engine.showMessage("Please select an organisation");
        return;
    }
    OrganisationConfigVo orgVo = domain.getOrganisation(form.qmbOrganisation().getValue());
    ConfigLocationLiteVoCollection locVoColl = new ConfigLocationLiteVoCollection();
    if(orgVo == null)
    {
        engine.showMessage("No Location record found.");
        return;
    }
    else
    {

        String name = null;
        if( form.txtLocationName().getValue() != null )
            name = form.txtLocationName().getValue().trim();
        if(name != null)
            name = name.toUpperCase();


        getLocationsFromOrganisatio(orgVo,locVoColl,name);
        if(locVoColl != null && locVoColl.size() > 0)
            populateSearchLocationGrid(locVoColl);
        else
        {
            engine.showMessage("No Location record found.");
            return;
        }

    }
}
项目:AvoinApotti    文件:Logic.java   
private void addLocation(LocationConfigVo loc,ConfigLocationLiteVoCollection tempVoColl)
{
    if(loc.getLocations() == null || loc.getLocations().size() == 0)
        return;
    for(int j = 0; j < loc.getLocations().size(); j++)
    {
        if(loc.getLocations().get(j) != null &&  Boolean.TRUE.equals(loc.getLocations().get(j).getIsActive()))
            tempVoColl.add(loc.getLocations().get(j));
        addLocation(loc.getLocations().get(j),tempVoColl);
    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnAddToListClick() throws ims.framework.exceptions.PresentationLogicException
{
    ConfigLocationLiteVoCollection  voColl = new ConfigLocationLiteVoCollection();
    boolean deleted = true;
    while(deleted)
    {

        deleted = false;
        for (int i = 0; i < form.grdSearchLocation().getRows().size(); i++)
        {
            if(form.grdSearchLocation().getRows().get(i) == null)
                continue;

            if (form.grdSearchLocation().getRows().get(i).getColumnSelect())
            {
                if(checkIfLocationIsInLocationSelectedGrid(form.grdSearchLocation().getRows().get(i).getValue()))
                {
                    engine.showMessage("The Location "+ form.grdSearchLocation().getRows().get(i).getValue().getName()+ " is already in Selected Locations Grid");
                    return;
                }
                voColl.add(form.grdSearchLocation().getRows().get(i).getValue());
                form.grdSearchLocation().getRows().remove(i);
                deleted = true;
                break;


            }
        }
    }
    if(voColl == null || voColl.size() == 0)
    {
        engine.showMessage("Select at least one location");
        return;
    }
    populateSelectedLocationGrid(voColl);

}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.grdSearchLocation().getRows().clear();
    if(form.qmbOrganisation().getValue() == null)
    {
        engine.showMessage("Please select an organisation");
        return;
    }
    OrganisationConfigVo orgVo = domain.getOrganisation(form.qmbOrganisation().getValue());
    ConfigLocationLiteVoCollection locVoColl = new ConfigLocationLiteVoCollection();
    if(orgVo == null)
    {
        engine.showMessage("No location records were found that match the specified search criteria.", "No Data Found", MessageButtons.OK, MessageIcon.WARNING); //WDEV-18801
        return;
    }
    else
    {

        String name = null;
        if( form.txtLocationName().getValue() != null )
            name = form.txtLocationName().getValue().trim();
        if(name != null)
            name = name.toUpperCase();


        getLocationsFromOrganisatio(orgVo,locVoColl,name);
        if(locVoColl != null && locVoColl.size() > 0)
            populateSearchLocationGrid(locVoColl);
        else
        {
            engine.showMessage("No location records were found that match the specified search criteria.", "No Data Found", MessageButtons.OK, MessageIcon.WARNING); //WDEV-18801
            return;
        }

    }
}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnAddToListClick() throws ims.framework.exceptions.PresentationLogicException
{
    ConfigLocationLiteVoCollection  voColl = new ConfigLocationLiteVoCollection();
    boolean deleted = true;
    while(deleted)
    {

        deleted = false;
        for (int i = 0; i < form.grdSearchLocation().getRows().size(); i++)
        {
            if(form.grdSearchLocation().getRows().get(i) == null)
                continue;

            if (form.grdSearchLocation().getRows().get(i).getColumnSelect())
            {
                if(checkIfLocationIsInLocationSelectedGrid(form.grdSearchLocation().getRows().get(i).getValue()))
                {
                    engine.showMessage("The Location "+ form.grdSearchLocation().getRows().get(i).getValue().getName()+ " is already in Selected Locations Grid");
                    return;
                }
                voColl.add(form.grdSearchLocation().getRows().get(i).getValue());
                form.grdSearchLocation().getRows().remove(i);
                deleted = true;
                break;


            }
        }
    }
    if(voColl == null || voColl.size() == 0)
    {
        engine.showMessage("Select at least one location");
        return;
    }
    populateSelectedLocationGrid(voColl);

}
项目:openMAXIMS    文件:Logic.java   
protected void onBtnSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.grdSearchLocation().getRows().clear();
    if(form.qmbOrganisation().getValue() == null)
    {
        engine.showMessage("Please select an organisation");
        return;
    }
    OrganisationConfigVo orgVo = domain.getOrganisation(form.qmbOrganisation().getValue());
    ConfigLocationLiteVoCollection locVoColl = new ConfigLocationLiteVoCollection();
    if(orgVo == null)
    {
        engine.showMessage("No Location record found.");
        return;
    }
    else
    {

        String name = null;
        if( form.txtLocationName().getValue() != null )
            name = form.txtLocationName().getValue().trim();
        if(name != null)
            name = name.toUpperCase();


        getLocationsFromOrganisatio(orgVo,locVoColl,name);
        if(locVoColl != null && locVoColl.size() > 0)
            populateSearchLocationGrid(locVoColl);
        else
        {
            engine.showMessage("No Location record found.");
            return;
        }

    }
}
项目:openMAXIMS    文件:Logic.java   
private void addLocation(LocationConfigVo loc,ConfigLocationLiteVoCollection tempVoColl)
{
    if(loc.getLocations() == null || loc.getLocations().size() == 0)
        return;
    for(int j = 0; j < loc.getLocations().size(); j++)
    {
        if(loc.getLocations().get(j) != null &&  Boolean.TRUE.equals(loc.getLocations().get(j).getIsActive()))
            tempVoColl.add(loc.getLocations().get(j));
        addLocation(loc.getLocations().get(j),tempVoColl);
    }
}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnAddToListClick() throws ims.framework.exceptions.PresentationLogicException
{
    ConfigLocationLiteVoCollection  voColl = new ConfigLocationLiteVoCollection();
    boolean deleted = true;
    while(deleted)
    {

        deleted = false;
        for (int i = 0; i < form.grdSearchLocation().getRows().size(); i++)
        {
            if(form.grdSearchLocation().getRows().get(i) == null)
                continue;

            if (form.grdSearchLocation().getRows().get(i).getColumnSelect())
            {
                if(checkIfLocationIsInLocationSelectedGrid(form.grdSearchLocation().getRows().get(i).getValue()))
                {
                    engine.showMessage("The Location "+ form.grdSearchLocation().getRows().get(i).getValue().getName()+ " is already in Selected Locations Grid");
                    return;
                }
                voColl.add(form.grdSearchLocation().getRows().get(i).getValue());
                form.grdSearchLocation().getRows().remove(i);
                deleted = true;
                break;


            }
        }
    }
    if(voColl == null || voColl.size() == 0)
    {
        engine.showMessage("Select at least one location");
        return;
    }
    populateSelectedLocationGrid(voColl);

}
项目:openmaxims-linux    文件:Logic.java   
protected void onBtnSearchClick() throws ims.framework.exceptions.PresentationLogicException
{
    form.grdSearchLocation().getRows().clear();
    if(form.qmbOrganisation().getValue() == null)
    {
        engine.showMessage("Please select an organisation");
        return;
    }
    OrganisationConfigVo orgVo = domain.getOrganisation(form.qmbOrganisation().getValue());
    ConfigLocationLiteVoCollection locVoColl = new ConfigLocationLiteVoCollection();
    if(orgVo == null)
    {
        engine.showMessage("No Location record found.");
        return;
    }
    else
    {

        String name = null;
        if( form.txtLocationName().getValue() != null )
            name = form.txtLocationName().getValue().trim();
        if(name != null)
            name = name.toUpperCase();


        getLocationsFromOrganisatio(orgVo,locVoColl,name);
        if(locVoColl != null && locVoColl.size() > 0)
            populateSearchLocationGrid(locVoColl);
        else
        {
            engine.showMessage("No Location record found.");
            return;
        }

    }
}
项目:openmaxims-linux    文件:Logic.java   
private void addLocation(LocationConfigVo loc,ConfigLocationLiteVoCollection tempVoColl)
{
    if(loc.getLocations() == null || loc.getLocations().size() == 0)
        return;
    for(int j = 0; j < loc.getLocations().size(); j++)
    {
        if(loc.getLocations().get(j) != null &&  Boolean.TRUE.equals(loc.getLocations().get(j).getIsActive()))
            tempVoColl.add(loc.getLocations().get(j));
        addLocation(loc.getLocations().get(j),tempVoColl);
    }
}
项目:AvoinApotti    文件:Logic.java   
void populateChildsTree(ConfigLocationLiteVoCollection tempColl)
{
    if(tempColl == null || tempColl.size() == 0)
    {
        return;
    }
    for(int i = 0;i < tempColl.size();i++)
    {
        ConfigLocationLiteVo tempVo = tempColl.get(i);
        if(tempVo == null)
            continue;
        if(checkIfLocationIsConectedToService(tempVo))
            continue;
        if(setLocInContractServiceLocWithLocNull(tempVo))
            continue;
        else
        {
            ContractServiceLocationsConfigVoCollection tempContractColl = form.getLocalContext().getServiceAndLocation();
            if(tempContractColl == null)
                tempContractColl = new ContractServiceLocationsConfigVoCollection();
            if(form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode() != null && form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode().getValue()!= null )
            {
                ims.framework.controls.TreeNode nodeTree = (ims.framework.controls.TreeNode) form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode();
                while( nodeTree.getParent() != null)
                    nodeTree = nodeTree.getParent();   //get the parent (service node)

                ServiceVoLiteVo service = (ServiceVoLiteVo) nodeTree.getValue();
                if(service != null)
                {
                    ContractServiceLocationsConfigVo tempContractVo = new ContractServiceLocationsConfigVo();

                    tempContractVo.setService(service);
                    tempContractVo.setLocation(tempVo);
                    //tempContractVo.setIsActive(Boolean.TRUE);
                    tempContractColl.add(tempContractVo);
                    form.getLocalContext().setServiceAndLocation(tempContractColl);
                }
            }

        }

    }

}
项目:openMAXIMS    文件:Logic.java   
void populateChildsDynGrid(ConfigLocationLiteVoCollection tempColl) //WDEV-20181
{
    if(tempColl == null || tempColl.size() == 0)
    {
        return;
    }
    for(int i = 0;i < tempColl.size();i++)
    {
        ConfigLocationLiteVo tempVo = tempColl.get(i);
        if(tempVo == null)
            continue;
        if(checkIfLocationIsConectedToService(tempVo))
            continue;
        if(setLocInContractServiceLocWithLocNull(tempVo))
            continue;
        else
        {
            ContractServiceLocationsConfigVoCollection tempContractColl = form.getLocalContext().getServiceAndLocation();
            if(tempContractColl == null)
                tempContractColl = new ContractServiceLocationsConfigVoCollection();
            if(form.ctnDetails().lyrDetails().tabPage2().dyngrdService().getSelectedRow() != null && form.ctnDetails().lyrDetails().tabPage2().dyngrdService().getSelectedRow().getValue()!= null )
            {
                DynamicGridRow row = form.ctnDetails().lyrDetails().tabPage2().dyngrdService().getSelectedRow();
                while( row.getParent() != null)
                    row = row.getParent();   //get the parent (service node)

                ServiceLiteVo service = (ServiceLiteVo) row.getValue();
                if(service != null)
                {
                    ContractServiceLocationsConfigVo tempContractVo = new ContractServiceLocationsConfigVo();

                    tempContractVo.setService(service);
                    tempContractVo.setLocation(tempVo);
                    //tempContractVo.setIsActive(Boolean.TRUE);
                    tempContractColl.add(tempContractVo);
                    form.getLocalContext().setServiceAndLocation(tempContractColl);
                }
            }

        }

    }

}
项目:openMAXIMS    文件:Logic.java   
void populateChildsTree(ConfigLocationLiteVoCollection tempColl)
{
    if(tempColl == null || tempColl.size() == 0)
    {
        return;
    }
    for(int i = 0;i < tempColl.size();i++)
    {
        ConfigLocationLiteVo tempVo = tempColl.get(i);
        if(tempVo == null)
            continue;
        if(checkIfLocationIsConectedToService(tempVo))
            continue;
        if(setLocInContractServiceLocWithLocNull(tempVo))
            continue;
        else
        {
            ContractServiceLocationsConfigVoCollection tempContractColl = form.getLocalContext().getServiceAndLocation();
            if(tempContractColl == null)
                tempContractColl = new ContractServiceLocationsConfigVoCollection();
            if(form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode() != null && form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode().getValue()!= null )
            {
                ims.framework.controls.TreeNode nodeTree = (ims.framework.controls.TreeNode) form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode();
                while( nodeTree.getParent() != null)
                    nodeTree = nodeTree.getParent();   //get the parent (service node)

                ServiceVoLiteVo service = (ServiceVoLiteVo) nodeTree.getValue();
                if(service != null)
                {
                    ContractServiceLocationsConfigVo tempContractVo = new ContractServiceLocationsConfigVo();

                    tempContractVo.setService(service);
                    tempContractVo.setLocation(tempVo);
                    //tempContractVo.setIsActive(Boolean.TRUE);
                    tempContractColl.add(tempContractVo);
                    form.getLocalContext().setServiceAndLocation(tempContractColl);
                }
            }

        }

    }

}