1 <!--增加按钮组-->
2 <bean id="actions" class="nc.ui.mmgp.uif2.container.MMGPActionList">
3 <constructor-arg>
4 <list>
5 <ref bean="addMenuAction" />
6 <ref bean="editAction" />
7 <ref bean="deleteAction" />
8 <ref bean="nullaction" />
9 <ref bean="queryAction" />
10 <ref bean="refreshAction" />
11 </list>
12 </constructor-arg>
13 </bean>
14 <bean id ="addMenuAction" class="nc.ui.pubapp.uif2app.actions.AddMenuAction">
15 <property name="billType" value="GSP9" />
16 <property name="model" ref="manageAppModel" />
17 <property name="actions">
18 <list>
19 <ref bean="curingplanAction"/>
20 <ref bean="curingtaskAction"/>
21 </list>
22 </property>
23 </bean>
24 <!--养护任务拉单-->
25 <bean id="curingtaskAction" class="nc.ui.qmst.drupcrok.action.CuringTaskAddMenuAction">
26 </bean>
27 <!--养护计划拉单-->
28 <bean id="curingplanAction" class="nc.ui.qmst.drupcrok.action.CuringPlanAddMenuAction">
29 </bean>
Action详细配置
1 package nc.ui.qmst.drupcrok.action; 2 3 import nc.ui.pubapp.uif2app.actions.AddAction; 4 5 6 @SuppressWarnings("serial") 7 public class CuringPlanAddMenuAction extends AddAction{ 8 public CuringPlanAddMenuAction() { 9 this.setBtnName("养护计划"); 10 } 11 }
package nc.ui.qmst.drupcrok.action; import nc.ui.pubapp.uif2app.actions.AddAction; @SuppressWarnings("serial") public class CuringTaskAddMenuAction extends AddAction{ public CuringTaskAddMenuAction() { this.setBtnName("养护任务"); } }