【NC65扩展表体编辑后事件】

  1. 创建编辑后事件类 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())){
			//...编辑事件
		}
	}

}

  1. 创建事件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>
  1. 把XML注册到对应单据,即功能注册节点对应单据
    在这里插入图片描述

注意:参数注册,扩展增加的参数名称,前面命名规定为 PluginBeanConfigFilePath,例如 后面可以跟上自己的命名,PluginBeanConfigFilePath_xxx

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值