一、导入功能实现逻辑
NC63以上,留下了可以客户开发的重要节点,功能注册,在这个节点,你甚至可以开发一个节点,今天我们要讲的导入既是最基础的类的结合体,但是也是NC甲方公司最常用的功能,下面我们就先分析一下开发的代码逻辑。
代码逻辑很简单,拦截器+excel相关实现类,这些都是系统内置的类,首先我来介绍下拦截器,与spring的拦截器很像,在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 class="nc.ui.pubapp.plugin.action.InsertActionInfo">
<property name="actionContainer" ref="actionsOfList" />
<property name="actionType" value="notedit"/>
<property name="target