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); } }