- 创建编辑后事件类
AceReceBillBodyAfterEditHandler .java
(类自己命名)
package nc.ui.arap.receivablebill.ace.handler;
import nc.ui.pubapp.uif2app.event.IAppEventHandler;
import nc.ui.pubapp.uif2app.event.card.CardBodyAfterEditEvent;
import nc.vo.pub.lang.UFDouble;
/**
* <b></b>
* <p></p>
* 创建时间: 2020年11月9日 下午4:02:33
* @author xuzihui
*
*/
public class AceReceBillBodyAfterEditHandler implements IAppEventHandler<CardBodyAfterEditEvent> {
@Override
public void handleAppEvent(CardBodyAfterEditEvent e) {
if("ncomplatescale".equals(e.getKey())){
//...编辑事件
}
}
}
- 创建事件XML文件
receivablebill_expand_handler.xml
(文件自己命名)
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="EventHandlerMediator" class="nc.ui.pubapp.uif2app.model.AppEventHandlerMediator">
<property name="model" ref="ManageAppModel" />
<property name="handlerGroup">
<list>
<bean class="nc.ui.pubapp.uif2app.event.EventHandlerGroup">
<property name="event" value="nc.ui.pubapp.uif2app.event.card.CardBodyAfterEditEvent" />
<property name="handler">
<bean class="nc.ui.arap.receivablebill.ace.handler.AceReceBillBodyAfterEditHandler" />
</property>
</bean>
</list>
</property>
</bean>
</beans>
- 把XML注册到对应单据,即功能注册节点对应单据
注意:参数注册,扩展增加的参数名称,前面命名规定为 PluginBeanConfigFilePath,例如 后面可以跟上自己的命名,
PluginBeanConfigFilePath_xxx
。