zoukankan      html  css  js  c++  java
  • eas之使用值对象集合给ComboBox控件赋值

    AssActTypeDefaultInfo value=(AsstActTypeDefaultInfo)asstActTypeColl.get(i);
    if(value.isIsDefaultAccountPayable())IAsstActTypeDefault iAsstActType=AssActTypeDefaultFactory.getRemotInstance();
    AsstActTypeDefaultCollection asstActTypeColl=iAsstActType.getAsstActTypeDefaultCollection("where isAccountCussent=1");
    AsstActTypeDefaultInfo defaultVal=null;
    int count=asstActTypeColl.size();
    Object[] typeValue=new Object[count];
    for(int i=0;i<count;i++){
    {
    defaultVal=value;
    }
    ObjectUuidPK pk=new ObjectUuidPK(BOSUuid.read(value.getAsstActType().getString(id)));
    AsstActtTypeInfo asstInfo=AsstActType.getRemoteInstance().getAsstActType(pk);
    String typeName=asstInfo.getName();
    String typeId=asstInfo.getId().toString();
    String typeQueryName=asstInfo.getDefaultQueryName();
    String typeTableName=asstInfo.getRelationDataObject();
    int csType=0;
    assActType=new AsstActTypeUtils(typeName,typeId,typeTableName,typeQueryName,csType);
    typeValue[i]=(Query)assActType;
    }
    this.kDComAccountCussentType.removeAllItems();
    this.kdComAccountCussentType.addItems(typeValue);
    this.kdComAccountCussentType.setSelectedIndex(0);

  • 相关阅读:
    谷歌浏览器解决跨域
    实现Linux共享Window文件
    linux安装显卡驱动
    jsduck 文档生成器
    linux 笔记
    Linux phpstorm 无法输入中文
    linux 安装composer
    Extjs动态生成表头(适用报表)
    关于git的配置与使用
    JSP解决中文乱码问题
  • 原文地址:https://www.cnblogs.com/luojiabao/p/11087769.html
Copyright © 2011-2022 走看看