NC编辑前后事件

本文主要介绍了如何修改按钮的配置文件以及实现相应的编辑事件类,详细阐述了在编辑过程中涉及的关键步骤和技术要点。
  1.  修改按钮配置文件
<?xml version="1.0" encoding="GBK"?>

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>

	<!-- 环境变量 -->
	<bean id="context" class="nc.vo.uif2.LoginContext"></bean>

	<!-- 模型部分配置*********************************************************** -->

	<!-- 应用服务类,负责进行模型操作的处理 -->
	<bean id="bmModelModelService" class="nc.ui.proadmin.threemeetings.ace.serviceproxy.AceThreemeetingsMaintainProxy"/>

	
	<!-- 对象转换器工厂,由此获取操作对象的特征信息 -->
	<bean id="BOAdapterFactory" class="nc.vo.bd.meta.GeneralBDObjectAdapterFactory">
		<property name="mode" value="MD"/>
	</bean>

   
	<!-- 层次结构构造策略 -->

	<!-- 模型元素 -->
	<!--========= 模型元素:[PUBAPP平面模型(BillManageModel)实例对象] ==========-->
	<bean id="bmModel" class="nc.ui.pubapp.uif2app.model.BillManageModel">
		<property name="context"><ref bean="context"/></property>
		<property name="businessObjectAdapterFactory"><ref bean="BOAdapterFactory"/></property>
	</bean>

	
	<!-- 数据模型管理器,主要负责各种方式的模型初始化 -->
	<bean id="bmModelModelDataManager" class="nc.ui.pubapp.uif2app.query2.model.ModelDataManager">
		<property name="model"><ref bean="bmModel"/></property>
		<property name="service"><ref bean="bmModelModelService" /></property>
	</bean>

	
	<!-- Mediator,模型之间监听关系部分 -->


    <!-- 组织面板//newadd -->

	<!-- 卡片界面的工具栏和返回按钮 -->


	<!-- 模板容器,负责对模板的统一装载 -->
	<bean id="templateContainer" class="nc.ui.pubapp.uif2app.view.TemplateContainer"  init-method="load">
		<property name="context" ref="context"/>
		<property name="nodeKeies">
			<list>
				<value>bt</value>
			</list>
		</property>
	</bean>


	<!-- 界面元素 ***********************************************************-->
	<!--====== 视图元素:[查询区域控件实例对象] ==============-->
	<bean id="viewa" class="nc.ui.pubapp.uif2app.tangramlayout.UEQueryAreaShell" init-method="initUI">
		<property name="queryAreaCreator" ref="defaultQueryAction" />
	</bean>

	<!--====== 视图元素:[PUBAPP列表视图控件(ShowUpableBillListView)实例对象] ==============-->
	<bean id="billListView" class="nc.ui.pubapp.uif2app.view.ShowUpableBillListView" init-method="initUI">
		<property name="model"><ref bean="bmModel" /></property>
		<property name="nodekey" value="bt" />
		<property name="multiSelectionEnable" value="false" />
		<property name="templateContainer" ref="templateContainer"/>
	</bean>

	<!--====== 视图元素:[卡片界面工具栏和返回按钮控件实例对象] ==============-->
	<bean id="viewb" class="nc.ui.pubapp.uif2app.tangramlayout.UECardLayoutToolbarPanel" >
		<property name="model"><ref bean="bmModel" /></property>
		<property name="titleAction">
			<bean id="returnAction" class="nc.ui.pubapp.uif2app.actions.UEReturnAction">
				<property name="goComponent" ref="billListView" />
				<property name="saveAction" ref="saveScriptAction" />
				<property name="model" ref="bmModel" />
			</bean>
		</property>
	</bean>

	<!--====== 视图元素:[PUBAPP表单控件(ShowUpableBillForm)实例对象] ==============-->
	<bean id="billForm" class="nc.ui.pubapp.uif2app.view.ShowUpableBillForm" init-method="initUI">
		<property name="model"><ref bean="bmModel" /></property>
		<property name="nodekey" value="bt" />
	</bean>

	
	<!-- 界面布局总装*********************************************************** -->
	<bean id="container" class="nc.ui.uif2.TangramContainer" init-method="initUI">
		<property name="tangramLayoutRoot">
					<bean class="nc.ui.uif2.tangramlayout.node.TBNode">
				<property name="tabs">
					<list>
						<bean class="nc.ui.uif2.tangramlayout.node.HSNode">
							<property name="left">
								<bean class="nc.ui.uif2.tangramlayout.node.CNode">
									<property name="component">
										<ref bean="viewa" />
									</property>
								</bean>
							</property>
							<property name="right">
								<bean class="nc.ui.uif2.tangramlayout.node.CNode">
									<property name="component">
										<ref bean="billListView" />
									</property>
								</bean>
							</property>
							<property name="dividerLocation" value="215.0f" />
							<property name="name" value="列表" />
						</bean>
						<bean class="nc.ui.uif2.tangramlayout.node
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值