apzl_leasing/src_tenwa/com/tenwa/channelmanage/CustomerPartnerHandler.java
2018-06-03 22:26:41 +08:00

19 lines
608 B
Java

package com.tenwa.channelmanage;
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 CustomerPartnerHandler extends CommonHandler{
@Override
protected void initDisplayForAdd(BizObject bo) throws Exception {
JBOTransaction tx = JBOFactory.createJBOTransaction();
String cpnum = SerialNumberUtil.getCustomerPartnerNumber(tx);
tx.commit();
bo.setAttributeValue("PARTNER_NUM", cpnum);
super.initDisplayForAdd(bo);
}
}