26 lines
738 B
Java
26 lines
738 B
Java
package com.tenwa.voucher.cache;
|
|
|
|
import jbo.voucher.LV_AUXILIARY_ACCOUNT;
|
|
|
|
import com.amarsoft.are.jbo.BizObject;
|
|
import com.amarsoft.are.jbo.JBOException;
|
|
import com.amarsoft.are.jbo.JBOFactory;
|
|
|
|
public class LvStactsConfigCache {
|
|
|
|
public static String getAuxiliaryName(String AUXILIARY_TYPE) throws JBOException{
|
|
if(AUXILIARY_TYPE.length()==0){
|
|
return "";
|
|
}else{
|
|
String[] types=AUXILIARY_TYPE.split(",");
|
|
String name="";
|
|
for(int i=0;i<types.length;i++){
|
|
BizObject aux= JBOFactory.createBizObjectQuery(LV_AUXILIARY_ACCOUNT.CLASS_NAME,"id=:id").setParameter("id", types[i]).getSingleResult(false);
|
|
if(name.length()>0){name+=",";}
|
|
name+=aux.getAttribute("AUX_NAME").getString();
|
|
}
|
|
return name;
|
|
}
|
|
}
|
|
}
|