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

项目:AvoinApotti    文件:Logic.java   
private void loadBays(WardBayConfigVo voWardBayConfig, DynamicGridRow row)
{       
    if(row == null || voWardBayConfig == null)
        throw new CodingRuntimeException("madatory parameters not present in method loadBays");

    BayConfigVoCollection bays = voWardBayConfig.getBays();
    if(bays != null)
    {
        for(int x = 0; x < bays.size(); x++)            
        {
         //wdev-13964
         if (bays.get(x).getIsActive())
         {
             addBay(row, bays.get(x)); 
         }

        }
    }
}
项目:AvoinApotti    文件:Logic.java   
private boolean isThisRecordDuplicate(BayConfigVo voBayConfig, BayConfigVoCollection voCollBayConfig)
{
    if (voCollBayConfig == null)
        throw new CodingRuntimeException("voCollBayConfig cannot be null in method isThisRecordDuplicate");
    if (voBayConfig == null)
        throw new CodingRuntimeException("voCollBayConfig cannot be null in method isThisRecordDuplicate");

    for (BayConfigVo voBayConfiglstItem : voCollBayConfig)
    {
        if(voBayConfiglstItem.getBayIsNotNull() &&  voBayConfiglstItem.getBay().getNameIsNotNull() && voBayConfiglstItem.getBayIsNotNull() &&  voBayConfiglstItem.getBayIsNotNull() &&  voBayConfiglstItem.getBay().getNameIsNotNull())
        {
            if(voBayConfiglstItem.getBay().getName().equals(voBayConfig.getBay().getName()))
            {
                return true;
            }
        }   
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void loadBays(WardBayConfigVo voWardBayConfig, DynamicGridRow row)
{       
    if(row == null || voWardBayConfig == null)
        throw new CodingRuntimeException("madatory parameters not present in method loadBays");

    BayConfigVoCollection bays = voWardBayConfig.getBays();
    if(bays != null)
    {
        BayConfigVoCollection baysSorted = bays.sort(new BayComparator(SortOrder.ASCENDING)); //WDEV-20228
        for(int x = 0; x < baysSorted.size(); x++)          
        {
            //wdev-13964
            if (baysSorted.get(x).getIsActive())
            {
                addBay(row, baysSorted.get(x)); 
            }

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean isThisRecordDuplicate(BayConfigVo voBayConfig, BayConfigVoCollection voCollBayConfig)
{
    if (voCollBayConfig == null)
        return false;
    if (voBayConfig == null)
        return false;

    for (BayConfigVo voBayConfiglstItem : voCollBayConfig)
    {
        if(voBayConfiglstItem.getBayIsNotNull() &&  voBayConfiglstItem.getBay().getNameIsNotNull() && Boolean.TRUE.equals(voBayConfiglstItem.getIsActive()) && Boolean.TRUE.equals(voBayConfig.getIsActive()))
        {
            if(voBayConfiglstItem.getBay().getName().equals(voBayConfig.getBay().getName()))
            {
                return true;
            }
        }   
    }

    return false;
}
项目:openMAXIMS    文件:Logic.java   
private void loadBays(WardBayConfigVo voWardBayConfig, DynamicGridRow row)
{       
    if(row == null || voWardBayConfig == null)
        throw new CodingRuntimeException("madatory parameters not present in method loadBays");

    BayConfigVoCollection bays = voWardBayConfig.getBays();
    if(bays != null)
    {
        for(int x = 0; x < bays.size(); x++)            
        {
         //wdev-13964
         if (bays.get(x).getIsActive())
         {
             addBay(row, bays.get(x)); 
         }

        }
    }
}
项目:openMAXIMS    文件:Logic.java   
private boolean isThisRecordDuplicate(BayConfigVo voBayConfig, BayConfigVoCollection voCollBayConfig)
{
    if (voCollBayConfig == null)
        throw new CodingRuntimeException("voCollBayConfig cannot be null in method isThisRecordDuplicate");
    if (voBayConfig == null)
        throw new CodingRuntimeException("voCollBayConfig cannot be null in method isThisRecordDuplicate");

    for (BayConfigVo voBayConfiglstItem : voCollBayConfig)
    {
        if(voBayConfiglstItem.getBayIsNotNull() &&  voBayConfiglstItem.getBay().getNameIsNotNull() && voBayConfiglstItem.getBayIsNotNull() &&  voBayConfiglstItem.getBayIsNotNull() &&  voBayConfiglstItem.getBay().getNameIsNotNull())
        {
            if(voBayConfiglstItem.getBay().getName().equals(voBayConfig.getBay().getName()))
            {
                return true;
            }
        }   
    }

    return false;
}
项目:openmaxims-linux    文件:Logic.java   
private void loadBays(WardBayConfigVo voWardBayConfig, DynamicGridRow row)
{       
    if(row == null || voWardBayConfig == null)
        throw new CodingRuntimeException("madatory parameters not present in method loadBays");

    BayConfigVoCollection bays = voWardBayConfig.getBays();
    if(bays != null)
    {
        for(int x = 0; x < bays.size(); x++)            
        {
         //wdev-13964
         if (bays.get(x).getIsActive())
         {
             addBay(row, bays.get(x)); 
         }

        }
    }
}
项目:openmaxims-linux    文件:Logic.java   
private boolean isThisRecordDuplicate(BayConfigVo voBayConfig, BayConfigVoCollection voCollBayConfig)
{
    if (voCollBayConfig == null)
        throw new CodingRuntimeException("voCollBayConfig cannot be null in method isThisRecordDuplicate");
    if (voBayConfig == null)
        throw new CodingRuntimeException("voCollBayConfig cannot be null in method isThisRecordDuplicate");

    for (BayConfigVo voBayConfiglstItem : voCollBayConfig)
    {
        if(voBayConfiglstItem.getBayIsNotNull() &&  voBayConfiglstItem.getBay().getNameIsNotNull() && voBayConfiglstItem.getBayIsNotNull() &&  voBayConfiglstItem.getBayIsNotNull() &&  voBayConfiglstItem.getBay().getNameIsNotNull())
        {
            if(voBayConfiglstItem.getBay().getName().equals(voBayConfig.getBay().getName()))
            {
                return true;
            }
        }   
    }

    return false;
}
项目:AvoinApotti    文件:Logic.java   
private void populateBayConfigsGridFromData(BayConfigVoCollection voCollBayConf)
{
    form.grdLayouts().getRows().clear();

    if(voCollBayConf == null)
        return;

    for (BayConfigVo voBayConfig : voCollBayConf)
    {
        grdLayoutsRow row = form.grdLayouts().getRows().newRow();

        if(voBayConfig.getBayIsNotNull())
        {
            row.setBayValue(voBayConfig.getBay());
            row.setBay(voBayConfig.getBay().getName());

            //WDEV-13964
            row.setActive(voBayConfig.getBay().getIsActive());
        }
        if(voBayConfig.getFloorBedSpaceLayoutIsNotNull())
        {
            row.getBayBedSpaceLayout().newRow(voBayConfig.getFloorBedSpaceLayout(), voBayConfig.getFloorBedSpaceLayout().getName());
            row.getBayBedSpaceLayout().setValue(voBayConfig.getFloorBedSpaceLayout());          
            row.setBayBedSpaceLayoutReadOnly(true);
        }
        addAvailableFloorLayouts(row);
        row.setValue(voBayConfig);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateBayConfigsGridFromData(BayConfigVoCollection voCollBayConf)
{
    form.grdLayouts().getRows().clear();

    if(voCollBayConf == null)
        return;

    for (BayConfigVo voBayConfig : voCollBayConf)
    {
        grdLayoutsRow row = form.grdLayouts().getRows().newRow();

        if(voBayConfig.getBayIsNotNull())
        {
            row.setBayValue(voBayConfig.getBay());
            row.setBay(voBayConfig.getBay().getName());

            //WDEV-13964
            row.setActive(voBayConfig.getBay().getIsActive());
        }

        if(voBayConfig.getFloorBedSpaceLayoutIsNotNull())
        {
            row.getBayBedSpaceLayout().newRow(voBayConfig.getFloorBedSpaceLayout(), voBayConfig.getFloorBedSpaceLayout().getName());
            row.getBayBedSpaceLayout().setValue(voBayConfig.getFloorBedSpaceLayout());          
            row.setBayBedSpaceLayoutReadOnly(true);
            row.setColFemale(Boolean.TRUE.equals(voBayConfig.getFemale()) ? true : false);
            row.setColMale(Boolean.TRUE.equals(voBayConfig.getMale()) ? true : false);
            row.setColPaediatric(Boolean.TRUE.equals(voBayConfig.getPaediatric()) ? true : false);
            row.setColWeekDay(Boolean.TRUE.equals(voBayConfig.getWeekdaysOnly()) ? true : false);
            row.setColDependencyLevel(voBayConfig.getDependency());
            row.setColOpeningTime(voBayConfig.getOpeningTime());
            row.setColClosingTime(voBayConfig.getClosingTime());
        }

        addAvailableFloorLayouts(row);
        row.setValue(voBayConfig);
    }
}
项目:openMAXIMS    文件:Logic.java   
private void populateBayConfigsGridFromData(BayConfigVoCollection voCollBayConf)
{
    form.grdLayouts().getRows().clear();

    if(voCollBayConf == null)
        return;

    for (BayConfigVo voBayConfig : voCollBayConf)
    {
        grdLayoutsRow row = form.grdLayouts().getRows().newRow();

        if(voBayConfig.getBayIsNotNull())
        {
            row.setBayValue(voBayConfig.getBay());
            row.setBay(voBayConfig.getBay().getName());

            //WDEV-13964
            row.setActive(voBayConfig.getBay().getIsActive());
        }
        if(voBayConfig.getFloorBedSpaceLayoutIsNotNull())
        {
            row.getBayBedSpaceLayout().newRow(voBayConfig.getFloorBedSpaceLayout(), voBayConfig.getFloorBedSpaceLayout().getName());
            row.getBayBedSpaceLayout().setValue(voBayConfig.getFloorBedSpaceLayout());          
            row.setBayBedSpaceLayoutReadOnly(true);
        }
        addAvailableFloorLayouts(row);
        row.setValue(voBayConfig);
    }
}
项目:openmaxims-linux    文件:Logic.java   
private void populateBayConfigsGridFromData(BayConfigVoCollection voCollBayConf)
{
    form.grdLayouts().getRows().clear();

    if(voCollBayConf == null)
        return;

    for (BayConfigVo voBayConfig : voCollBayConf)
    {
        grdLayoutsRow row = form.grdLayouts().getRows().newRow();

        if(voBayConfig.getBayIsNotNull())
        {
            row.setBayValue(voBayConfig.getBay());
            row.setBay(voBayConfig.getBay().getName());

            //WDEV-13964
            row.setActive(voBayConfig.getBay().getIsActive());
        }
        if(voBayConfig.getFloorBedSpaceLayoutIsNotNull())
        {
            row.getBayBedSpaceLayout().newRow(voBayConfig.getFloorBedSpaceLayout(), voBayConfig.getFloorBedSpaceLayout().getName());
            row.getBayBedSpaceLayout().setValue(voBayConfig.getFloorBedSpaceLayout());          
            row.setBayBedSpaceLayoutReadOnly(true);
        }
        addAvailableFloorLayouts(row);
        row.setValue(voBayConfig);
    }
}