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

项目: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 updateMenuContext()
{
    if(form.getMode().equals(FormMode.VIEW))
    {
        form.getContextMenus().RefMan.hideAllServiceLocationMenuMenuItems();
        form.getContextMenus().RefMan.hideAllCCGContextMenuMenuItems();         //wdev-18409
    }
    else
    {

        form.getContextMenus().RefMan.getServiceLocationMenuAddServiceItem().setVisible(true);
        form.getContextMenus().RefMan.getServiceLocationMenuAddLocationItem().setVisible(form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode() != null && (form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode().getValue() instanceof  ServiceVoLiteVo || form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode() != null && form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode().getValue() instanceof  ConfigLocationLiteVo));
        form.getContextMenus().RefMan.getServiceLocationMenuRemoveServiceItem().setVisible(form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode() != null && form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode().getValue() instanceof  ServiceVoLiteVo );
        form.getContextMenus().RefMan.getServiceLocationMenuRemoveLocationItem().setVisible(form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode() != null && form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode().getValue() instanceof  ConfigLocationLiteVo);

        //wdev-18409
        form.getContextMenus().RefMan.hideAllCCGContextMenuMenuItems(); 
        form.getContextMenus().RefMan.getCCGContextMenuADDItem().setVisible(true);
        form.getContextMenus().RefMan.getCCGContextMenuEDITItem().setVisible(form.ctnDetails().lyrDetails().tabPageCCG().grdCCG().getSelectedRow() != null);
        form.getContextMenus().RefMan.getCCGContextMenuREMOVEItem().setVisible(form.ctnDetails().lyrDetails().tabPageCCG().grdCCG().getSelectedRow() != null);
        //------------

    }
}
项目: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 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 updateMenuContext()
{
    if(form.getMode().equals(FormMode.VIEW))
    {
        form.getContextMenus().RefMan.hideAllServiceLocationMenuMenuItems();
        form.getContextMenus().RefMan.hideAllCCGContextMenuMenuItems();         //wdev-18409
    }
    else
    {

        form.getContextMenus().RefMan.getServiceLocationMenuAddServiceItem().setVisible(true);
        form.getContextMenus().RefMan.getServiceLocationMenuAddLocationItem().setVisible(form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode() != null && (form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode().getValue() instanceof  ServiceVoLiteVo || form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode() != null && form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode().getValue() instanceof  ConfigLocationLiteVo));
        form.getContextMenus().RefMan.getServiceLocationMenuRemoveServiceItem().setVisible(form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode() != null && form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode().getValue() instanceof  ServiceVoLiteVo );
        form.getContextMenus().RefMan.getServiceLocationMenuRemoveLocationItem().setVisible(form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode() != null && form.ctnDetails().lyrDetails().tabPage2().treSericeLocation().getSelectedNode().getValue() instanceof  ConfigLocationLiteVo);

        //wdev-18409
        form.getContextMenus().RefMan.hideAllCCGContextMenuMenuItems(); 
        form.getContextMenus().RefMan.getCCGContextMenuADDItem().setVisible(true);
        form.getContextMenus().RefMan.getCCGContextMenuEDITItem().setVisible(form.ctnDetails().lyrDetails().tabPageCCG().grdCCG().getSelectedRow() != null);
        form.getContextMenus().RefMan.getCCGContextMenuREMOVEItem().setVisible(form.ctnDetails().lyrDetails().tabPageCCG().grdCCG().getSelectedRow() != null);
        //------------

    }
}
项目: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);
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean checkIfLocationIsInLocationSelectedGrid(ConfigLocationLiteVo  location)
{
    if(location == null)
        return false;

    for(int i = 0;i < form.grdSelectedLocations().getRows().size();i++)
    {
        ConfigLocationLiteVo tempVo = form.grdSelectedLocations().getRows().get(i).getValue();
        if(location.getID_LocationIsNotNull() && location.getID_Location().equals(tempVo.getID_Location()))
            return true;
    }
    return false;

}
项目:AvoinApotti    文件:Logic.java   
private boolean setLocInContractServiceLocWithLocNull(ConfigLocationLiteVo tempVo)
{
    if(tempVo == null)
        throw new CodingRuntimeException();
    ContractServiceLocationsConfigVoCollection tempColl = form.getLocalContext().getServiceAndLocation();
    if(tempColl  == null || tempColl.size()==0)
        return false;

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

        ContractServiceLocationsConfigVo contVo = tempColl.get(i);  
        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 && contVo.getServiceIsNotNull() && service.getID_ServiceIsNotNull() && service.getID_Service().equals(contVo.getService().getID_Service()))
            {
                if(contVo.getLocation() == null)
                {
                    tempColl.get(i).setLocation(tempVo);
                    form.getLocalContext().setServiceAndLocation(tempColl);
                    return true;
                }
            }
        }

    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private boolean checkIfLocationIsConectedToService(ConfigLocationLiteVo tempVo)
{
    if(tempVo == null)
        throw new CodingRuntimeException();

    ContractServiceLocationsConfigVoCollection tempColl = form.getLocalContext().getServiceAndLocation();
    if(tempColl == null || tempColl.size() == 0)
        return false;
    for(int i = 0;i<tempColl.size();i++)
    {
        ContractServiceLocationsConfigVo contVo = tempColl.get(i);
        if(contVo == null || contVo.getLocation() == null)
            continue;

        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 && contVo.getServiceIsNotNull() && service.getID_ServiceIsNotNull() && service.getID_Service().equals(contVo.getService().getID_Service()))
            {
                if(tempVo.getID_LocationIsNotNull() && tempVo.getID_Location().equals(contVo.getLocation().getID_Location()))
                    return true;
            }
        }
    }
    return false;

}
项目:openMAXIMS    文件:Logic.java   
private boolean checkIfLocationIsInLocationSelectedGrid(ConfigLocationLiteVo  location)
{
    if(location == null)
        return false;

    for(int i = 0;i < form.grdSelectedLocations().getRows().size();i++)
    {
        ConfigLocationLiteVo tempVo = form.grdSelectedLocations().getRows().get(i).getValue();
        if(location.getID_LocationIsNotNull() && location.getID_Location().equals(tempVo.getID_Location()))
            return true;
    }
    return false;

}
项目:openMAXIMS    文件:Logic.java   
private void updateMenuContext()
{
    if(form.getMode().equals(FormMode.VIEW))
    {
        form.getContextMenus().RefMan.hideAllServiceLocationMenuMenuItems();
        form.getContextMenus().RefMan.hideAllCCGContextMenuMenuItems();         //wdev-18409
    }
    else
    {
        //WDEV-20181
        form.getContextMenus().RefMan.getServiceLocationMenuAddServiceItem().setVisible(true);
        form.getContextMenus().RefMan.getServiceLocationMenuAddLocationItem().setVisible(form.ctnDetails().lyrDetails().tabPage2().dyngrdService().getSelectedRow() != null && (form.ctnDetails().lyrDetails().tabPage2().dyngrdService().getSelectedRow().getValue() instanceof  ServiceLiteVo || form.ctnDetails().lyrDetails().tabPage2().dyngrdService().getSelectedRow().getValue() instanceof  ConfigLocationLiteVo));
        form.getContextMenus().RefMan.getServiceLocationMenuRemoveServiceItem().setVisible(form.ctnDetails().lyrDetails().tabPage2().dyngrdService().getSelectedRow() != null && form.ctnDetails().lyrDetails().tabPage2().dyngrdService().getSelectedRow().getValue() instanceof  ServiceLiteVo );
        form.getContextMenus().RefMan.getServiceLocationMenuRemoveLocationItem().setVisible(form.ctnDetails().lyrDetails().tabPage2().dyngrdService().getSelectedRow() != null && form.ctnDetails().lyrDetails().tabPage2().dyngrdService().getSelectedRow().getValue() instanceof  ConfigLocationLiteVo);
        //WDEV-20945
        form.getContextMenus().RefMan.getServiceLocationMenuAddEditServiceKpiItem().setVisible(form.ctnDetails().lyrDetails().tabPage2().dyngrdService().getSelectedRow() != null && form.ctnDetails().lyrDetails().tabPage2().dyngrdService().getSelectedRow().getValue() instanceof ServiceLiteVo);

        //wdev-18409
        form.getContextMenus().RefMan.hideAllCCGContextMenuMenuItems(); 
        form.getContextMenus().RefMan.getCCGContextMenuADDItem().setVisible(true);
        form.getContextMenus().RefMan.getCCGContextMenuEDITItem().setVisible(form.ctnDetails().lyrDetails().tabPageCCG().grdCCG().getSelectedRow() != null &&
                                                                             form.ctnDetails().lyrDetails().tabPageCCG().grdCCG().getSelectedRow().isReadOnly());//WDEV-18908 
        form.getContextMenus().RefMan.getCCGContextMenuREMOVEItem().setVisible(form.ctnDetails().lyrDetails().tabPageCCG().grdCCG().getSelectedRow() != null);
        //------------

    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean setLocInContractServiceLocWithLocNull(ConfigLocationLiteVo tempVo)//WDEV-20181
{
    if(tempVo == null)
        throw new CodingRuntimeException();
    ContractServiceLocationsConfigVoCollection tempColl = form.getLocalContext().getServiceAndLocation();
    if(tempColl  == null || tempColl.size()==0)
        return false;

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

        ContractServiceLocationsConfigVo contVo = tempColl.get(i);  
        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 && contVo.getServiceIsNotNull() && service.getID_ServiceIsNotNull() && service.getID_Service().equals(contVo.getService().getID_Service()))
            {
                if(contVo.getLocation() == null)
                {
                    tempColl.get(i).setLocation(tempVo);
                    form.getLocalContext().setServiceAndLocation(tempColl);
                    return true;
                }
            }
        }

    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean checkIfLocationIsConectedToService(ConfigLocationLiteVo tempVo) //WDEV-20181
{
    if(tempVo == null)
        throw new CodingRuntimeException();

    ContractServiceLocationsConfigVoCollection tempColl = form.getLocalContext().getServiceAndLocation();
    if(tempColl == null || tempColl.size() == 0)
        return false;
    for(int i = 0;i<tempColl.size();i++)
    {
        ContractServiceLocationsConfigVo contVo = tempColl.get(i);
        if(contVo == null || contVo.getLocation() == null)
            continue;

        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 && contVo.getServiceIsNotNull() && service.getID_ServiceIsNotNull() && service.getID_Service().equals(contVo.getService().getID_Service()))
            {
                if(tempVo.getID_LocationIsNotNull() && tempVo.getID_Location().equals(contVo.getLocation().getID_Location()))
                    return true;
            }
        }
    }
    return false;

}
项目:openMAXIMS    文件:Logic.java   
private boolean checkIfLocationIsInLocationSelectedGrid(ConfigLocationLiteVo  location)
{
    if(location == null)
        return false;

    for(int i = 0;i < form.grdSelectedLocations().getRows().size();i++)
    {
        ConfigLocationLiteVo tempVo = form.grdSelectedLocations().getRows().get(i).getValue();
        if(location.getID_LocationIsNotNull() && location.getID_Location().equals(tempVo.getID_Location()))
            return true;
    }
    return false;

}
项目:openMAXIMS    文件:Logic.java   
private boolean setLocInContractServiceLocWithLocNull(ConfigLocationLiteVo tempVo)
{
    if(tempVo == null)
        throw new CodingRuntimeException();
    ContractServiceLocationsConfigVoCollection tempColl = form.getLocalContext().getServiceAndLocation();
    if(tempColl  == null || tempColl.size()==0)
        return false;

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

        ContractServiceLocationsConfigVo contVo = tempColl.get(i);  
        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 && contVo.getServiceIsNotNull() && service.getID_ServiceIsNotNull() && service.getID_Service().equals(contVo.getService().getID_Service()))
            {
                if(contVo.getLocation() == null)
                {
                    tempColl.get(i).setLocation(tempVo);
                    form.getLocalContext().setServiceAndLocation(tempColl);
                    return true;
                }
            }
        }

    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private boolean checkIfLocationIsConectedToService(ConfigLocationLiteVo tempVo)
{
    if(tempVo == null)
        throw new CodingRuntimeException();

    ContractServiceLocationsConfigVoCollection tempColl = form.getLocalContext().getServiceAndLocation();
    if(tempColl == null || tempColl.size() == 0)
        return false;
    for(int i = 0;i<tempColl.size();i++)
    {
        ContractServiceLocationsConfigVo contVo = tempColl.get(i);
        if(contVo == null || contVo.getLocation() == null)
            continue;

        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 && contVo.getServiceIsNotNull() && service.getID_ServiceIsNotNull() && service.getID_Service().equals(contVo.getService().getID_Service()))
            {
                if(tempVo.getID_LocationIsNotNull() && tempVo.getID_Location().equals(contVo.getLocation().getID_Location()))
                    return true;
            }
        }
    }
    return false;

}
项目:openmaxims-linux    文件:Logic.java   
private boolean checkIfLocationIsInLocationSelectedGrid(ConfigLocationLiteVo  location)
{
    if(location == null)
        return false;

    for(int i = 0;i < form.grdSelectedLocations().getRows().size();i++)
    {
        ConfigLocationLiteVo tempVo = form.grdSelectedLocations().getRows().get(i).getValue();
        if(location.getID_LocationIsNotNull() && location.getID_Location().equals(tempVo.getID_Location()))
            return true;
    }
    return false;

}
项目: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);
                }
            }

        }

    }

}
项目:openMAXIMS    文件:Logic.java   
private void addLocationRow(DynamicGridRow parentRow, ConfigLocationLiteVo location)
{
    DynamicGridRow locRow = parentRow.getRows().newRow();

    locRow.setValue(location);

    DynamicGridCell cellService = locRow.getCells().newCell(getColumn(COLUMN_SERVICE_LOCATION), DynamicCellType.STRING);
    cellService.setValue(location.getName());
    cellService.setReadOnly(true);  


}