java类ims.core.vo.lookups.SECSTypesCollection的实例源码

Logic.java 文件源码 项目:AvoinApotti 阅读 20 收藏 0 点赞 0 评论 0
public void populateParameterCombo( SECSTypesCollection usedItemsLookupCollection )
{
    form.cmbParameter().clear();
    SECSTypesCollection lookupCollection = LookupHelper.getSECSTypes(this.domain.getLookupService());
    for(int x = 0; x < lookupCollection.size(); x++)
    {
        boolean bAllowAdd = true;
        if(usedItemsLookupCollection != null)
        {
            for(int p=0;p<usedItemsLookupCollection.size();p++)
            {
                if(lookupCollection.get(x).equals(usedItemsLookupCollection.get(p)))
                {
                    bAllowAdd = false;
                    break;
                }
            }
        }
        if(bAllowAdd)
            form.cmbParameter().newRow(lookupCollection.get(x), lookupCollection.get(x).getText());
    }
}
Logic.java 文件源码 项目:AvoinApotti 阅读 17 收藏 0 点赞 0 评论 0
private SECSTypesCollection getUsedItemsLookupCollection()
{
    if(form.dyngrdSecs().getRows().size() == 0)
        return null;

    SECSTypesCollection collLookups = new SECSTypesCollection();
    if(form.getLocalContext().getSelectedInstance() != null)
    {
        SECSConfigurationVoCollection voCollConfig = form.getLocalContext().getSelectedInstance().getConfiguration();
        if(voCollConfig != null)
        {
            for(int i=0;i<voCollConfig.size();i++)
            {
                collLookups.add(voCollConfig.get(i).getType());
            }
        }
    } 

    return collLookups;
}
Logic.java 文件源码 项目:openMAXIMS 阅读 44 收藏 0 点赞 0 评论 0
public void populateParameterCombo( SECSTypesCollection usedItemsLookupCollection )
{
    form.cmbParameter().clear();
    SECSTypesCollection lookupCollection = LookupHelper.getSECSTypes(this.domain.getLookupService());
    for(int x = 0; x < lookupCollection.size(); x++)
    {
        boolean bAllowAdd = true;
        if(usedItemsLookupCollection != null)
        {
            for(int p=0;p<usedItemsLookupCollection.size();p++)
            {
                if(lookupCollection.get(x).equals(usedItemsLookupCollection.get(p)))
                {
                    bAllowAdd = false;
                    break;
                }
            }
        }
        if(bAllowAdd)
            form.cmbParameter().newRow(lookupCollection.get(x), lookupCollection.get(x).getText());
    }
}
Logic.java 文件源码 项目:openMAXIMS 阅读 20 收藏 0 点赞 0 评论 0
private SECSTypesCollection getUsedItemsLookupCollection()
{
    if(form.dyngrdSecs().getRows().size() == 0)
        return null;

    SECSTypesCollection collLookups = new SECSTypesCollection();
    if(form.getLocalContext().getSelectedInstance() != null)
    {
        SECSConfigurationVoCollection voCollConfig = form.getLocalContext().getSelectedInstance().getConfiguration();
        if(voCollConfig != null)
        {
            for(int i=0;i<voCollConfig.size();i++)
            {
                collLookups.add(voCollConfig.get(i).getType());
            }
        }
    } 

    return collLookups;
}
Logic.java 文件源码 项目:openmaxims-linux 阅读 22 收藏 0 点赞 0 评论 0
public void populateParameterCombo( SECSTypesCollection usedItemsLookupCollection )
{
    form.cmbParameter().clear();
    SECSTypesCollection lookupCollection = LookupHelper.getSECSTypes(this.domain.getLookupService());
    for(int x = 0; x < lookupCollection.size(); x++)
    {
        boolean bAllowAdd = true;
        if(usedItemsLookupCollection != null)
        {
            for(int p=0;p<usedItemsLookupCollection.size();p++)
            {
                if(lookupCollection.get(x).equals(usedItemsLookupCollection.get(p)))
                {
                    bAllowAdd = false;
                    break;
                }
            }
        }
        if(bAllowAdd)
            form.cmbParameter().newRow(lookupCollection.get(x), lookupCollection.get(x).getText());
    }
}
Logic.java 文件源码 项目:openmaxims-linux 阅读 19 收藏 0 点赞 0 评论 0
private SECSTypesCollection getUsedItemsLookupCollection()
{
    if(form.dyngrdSecs().getRows().size() == 0)
        return null;

    SECSTypesCollection collLookups = new SECSTypesCollection();
    if(form.getLocalContext().getSelectedInstance() != null)
    {
        SECSConfigurationVoCollection voCollConfig = form.getLocalContext().getSelectedInstance().getConfiguration();
        if(voCollConfig != null)
        {
            for(int i=0;i<voCollConfig.size();i++)
            {
                collLookups.add(voCollConfig.get(i).getType());
            }
        }
    } 

    return collLookups;
}
Logic.java 文件源码 项目:AvoinApotti 阅读 20 收藏 0 点赞 0 评论 0
private boolean areAllParametersUsed()
{
    SECSTypesCollection collSECSTypes = getUsedItemsLookupCollection();
    if(collSECSTypes==null)
        return false;

    int usedItems = collSECSTypes.size();

    if(usedItems > 0 && usedItems == form.cmbParameter().getValues().size())
        return true;

    return false;
}
Logic.java 文件源码 项目:openMAXIMS 阅读 37 收藏 0 点赞 0 评论 0
private boolean areAllParametersUsed()
{
    SECSTypesCollection collSECSTypes = getUsedItemsLookupCollection();
    if(collSECSTypes==null)
        return false;

    int usedItems = collSECSTypes.size();

    if(usedItems > 0 && usedItems == form.cmbParameter().getValues().size())
        return true;

    return false;
}
Logic.java 文件源码 项目:openmaxims-linux 阅读 29 收藏 0 点赞 0 评论 0
private boolean areAllParametersUsed()
{
    SECSTypesCollection collSECSTypes = getUsedItemsLookupCollection();
    if(collSECSTypes==null)
        return false;

    int usedItems = collSECSTypes.size();

    if(usedItems > 0 && usedItems == form.cmbParameter().getValues().size())
        return true;

    return false;
}


问题


面经


文章

微信
公众号

扫码关注公众号