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

项目:AvoinApotti    文件:Logic.java   
protected void onCmbDocumentCategoryValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setDocumentCategoryMapping(null);
    if(form.cmbDocumentCategory().getValue() != null )
    {
        LookupInstVo inst = LookupHelper.getDocumentCategoryInstance(this.domain.getLookupService(),form.cmbDocumentCategory().getValue().getID());
        LookupInstVo instMap = domain.getMappings(inst);
        LookupMappingVoCollection tempColl = instMap.getMappings().sort();

        for(int i = 0; tempColl != null && i < tempColl.size();i++)
        {
            if(tempColl.get(i) != null && TaxonomyType.EDRM.getText().equals(tempColl.get(i).getExtSystem()))
            {
                TaxonomySeedVo taxSeedVo = new TaxonomySeedVo();
                taxSeedVo.setID_TaxonomySeed(form.cmbDocumentCategory().getValue().getID());
                taxSeedVo.setExtCode(tempColl.get(i).getExtCode());
                taxSeedVo.setExtSystem(tempColl.get(i).getExtSystem());
                form.getLocalContext().setDocumentCategoryMapping(taxSeedVo);
                break;
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
protected void onCmbDocumentCategoryValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setDocumentCategoryMapping(null);
    if(form.cmbDocumentCategory().getValue() != null )
    {
        LookupInstVo inst = LookupHelper.getDocumentCategoryInstance(this.domain.getLookupService(),form.cmbDocumentCategory().getValue().getID());
        LookupInstVo instMap = domain.getMappings(inst);
        LookupMappingVoCollection tempColl = instMap.getMappings().sort();

        for(int i = 0; tempColl != null && i < tempColl.size();i++)
        {
            if(tempColl.get(i) != null && TaxonomyType.EDRM.getText().equals(tempColl.get(i).getExtSystem()))
            {
                TaxonomySeedVo taxSeedVo = new TaxonomySeedVo();
                taxSeedVo.setID_TaxonomySeed(form.cmbDocumentCategory().getValue().getID());
                taxSeedVo.setExtCode(tempColl.get(i).getExtCode());
                taxSeedVo.setExtSystem(tempColl.get(i).getExtSystem());
                form.getLocalContext().setDocumentCategoryMapping(taxSeedVo);
                break;
            }
        }
    }

}
项目:openMAXIMS    文件:Logic.java   
protected void onCmbDocumentCategoryValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setDocumentCategoryMapping(null);
    if(form.cmbDocumentCategory().getValue() != null )
    {
        LookupInstVo inst = LookupHelper.getDocumentCategoryInstance(this.domain.getLookupService(),form.cmbDocumentCategory().getValue().getID());
        LookupInstVo instMap = domain.getMappings(inst);
        LookupMappingVoCollection tempColl = instMap.getMappings().sort();

        for(int i = 0; tempColl != null && i < tempColl.size();i++)
        {
            if(tempColl.get(i) != null && TaxonomyType.EDRM.getText().equals(tempColl.get(i).getExtSystem()))
            {
                TaxonomySeedVo taxSeedVo = new TaxonomySeedVo();
                taxSeedVo.setID_TaxonomySeed(form.cmbDocumentCategory().getValue().getID());
                taxSeedVo.setExtCode(tempColl.get(i).getExtCode());
                taxSeedVo.setExtSystem(tempColl.get(i).getExtSystem());
                form.getLocalContext().setDocumentCategoryMapping(taxSeedVo);
                break;
            }
        }
    }

}
项目:openmaxims-linux    文件:Logic.java   
protected void onCmbDocumentCategoryValueChanged() throws ims.framework.exceptions.PresentationLogicException
{
    form.getLocalContext().setDocumentCategoryMapping(null);
    if(form.cmbDocumentCategory().getValue() != null )
    {
        LookupInstVo inst = LookupHelper.getDocumentCategoryInstance(this.domain.getLookupService(),form.cmbDocumentCategory().getValue().getID());
        LookupInstVo instMap = domain.getMappings(inst);
        LookupMappingVoCollection tempColl = instMap.getMappings().sort();

        for(int i = 0; tempColl != null && i < tempColl.size();i++)
        {
            if(tempColl.get(i) != null && TaxonomyType.EDRM.getText().equals(tempColl.get(i).getExtSystem()))
            {
                TaxonomySeedVo taxSeedVo = new TaxonomySeedVo();
                taxSeedVo.setID_TaxonomySeed(form.cmbDocumentCategory().getValue().getID());
                taxSeedVo.setExtCode(tempColl.get(i).getExtCode());
                taxSeedVo.setExtSystem(tempColl.get(i).getExtSystem());
                form.getLocalContext().setDocumentCategoryMapping(taxSeedVo);
                break;
            }
        }
    }

}