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

猜你喜欢

转载自www.cnblogs.com/luojiabao/p/11087769.html
今日推荐