凭证详情模板hangler
This commit is contained in:
parent
e1aa65c95e
commit
710bd3eb07
@ -0,0 +1,18 @@
|
||||
package com.tenwa.customer.handler.voucher;
|
||||
|
||||
import com.amarsoft.are.jbo.BizObject;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.dw.handler.impl.CommonHandler;
|
||||
import com.tenwa.util.SerialNumberUtil;
|
||||
|
||||
public class VoucherConfigHandler extends CommonHandler{
|
||||
@Override
|
||||
protected void initDisplayForAdd(BizObject bo) throws Exception {
|
||||
JBOTransaction tx = JBOFactory.createJBOTransaction();
|
||||
String VoucherNumber = SerialNumberUtil.getVoucherNumber(tx);
|
||||
tx.commit();
|
||||
bo.setAttributeValue("VOUCHER_NO", VoucherNumber);
|
||||
super.initDisplayForAdd(bo);
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user