20 lines
667 B
Java
20 lines
667 B
Java
package com.tenwa.customer.handler.group;
|
|
|
|
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 CustomerGroupCompanyHandler extends CommonHandler{
|
|
@Override
|
|
protected void initDisplayForAdd(BizObject bo) throws Exception {
|
|
JBOTransaction tx = JBOFactory.createJBOTransaction();
|
|
String groupCompanyNumber = SerialNumberUtil.getGroupCompanyNumber(tx);
|
|
tx.commit();
|
|
//¼¯ÍűàºÅÊÇ·ñ×Ô¶¯Éú³É
|
|
bo.setAttributeValue("group_no", groupCompanyNumber);
|
|
super.initDisplayForAdd(bo);
|
|
}
|
|
}
|