CoreBillBaseCollection coreBillBaseColl = new CoreBillBaseCollection();
coreBillBaseColl.add((CoreBillBaseInfo)model);
BOTMappingInfo botMappingInfo = null;
try
{
botMappingInfo = BOTMappingFactory.getLocalInstance(ctx).getBOTMappingInfo("where name='" + botpName + "'");
}
catch(Exception e)
{
throw new InvException(InvException.BOTPERROR, new String[] {
botpName
});
}
if(!botMappingInfo.getExtRule().isIsEffected())
throw new InvException(InvException.BOTPERROR, new String[] {
botpName
});
BTPTransformResult transformResult = BTPManagerFactory.getLocalInstance(ctx).transform(coreBillBaseColl, botMappingInfo);
IObjectCollection infos = transformResult.getBills();
代码调用进行BOTP单据转换
最新推荐文章于 2022-04-06 17:04:18 发布