NC 财务会计应收应付功能扩展

1. 找到nchome\resources\arapworkflowconfig\default 这个目录

2. button\001 文件夹下的每一个文件夹都对应了每个功能节点,找到一个文件夹下的node.xml文件
配置如下 :

<node corp="0001" id="2006030101">
                <buttons>
                        <button btncode="打印" djlx="" hint="common@UC001-0000007"
                                id="fi_arap_on_Print_All" name="common@UC001-0000007"
                                pageid="0&1" parentid="print_action" power="5" sequence="20"
                                statusImpClass="nc.ui.arap.buttonstat.Print_AllStatListener">
                                <flow id="fi_arap#arap_on_Print_All" />
                        </button>
                </buttons>
        </node>

这里就是要添加到单据的按钮,主要是 statusImpClass,和<flow id = ""/>
statusImpClass: 控制按钮状态的类,它实现的是nc.ui.arap.engine.IButtonStatus 接口
<flow id = ""/> : 对应到flow.xml 文件的 id

 flow.xml文件在button文件夹同一级的flow/fi_arap文件夹下,配置如下 :

<flow desc="打印全部" id="fi_arap#arap_on_Print_All" name="打印全部"
        namespace="fi_arap" startActName="打印全部">
        <actions>
            <action id="fi_arap#on_Print_All" name="打印全部" namespace="fi_arap"/>
        </actions>
    </flow>

这里id = fi_arap#arap_on_Print_All 与node.xml文件对应的,<action id = "" / > 表示的action.xml中对应的id

action.xml文件在button文件夹同一级的action/fi_arap 文件夹下,配置如下:

<action desc="打印所有" id="fi_arap#on_Print_All"
impclass="nc.ui.arap.actions.PrintAction" method="on_Print_All"
name="打印所有" namespace="fi_arap" refid="" servflag="false"/>

这里配置的就是点击按钮执行的类和方法,impclass 是点击按钮走的类,它继承nc.ui.arap.actions.DefaultAction

method 是点击按钮走的方法

猜你喜欢

转载自jackzlz.iteye.com/blog/1172834
nc