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);

  • 相关阅读:
    .NetMVC过滤器
    Vue-cli配置
    回顾2019年到今天
    八皇后问题
    约瑟夫环问题
    斐波那契函数列
    提高学习效率的方法
    感受爱阅读笔记
    Android IO流汇总
    Android的AsyncTask
  • 原文地址:https://www.cnblogs.com/luojiabao/p/11087769.html
Copyright © 2011-2022 走看看