NC65 向导生成主子表单据按钮组分开为卡片列表按钮

需求:卡片列表如果都放在同一个按钮组 会造成不能人为控制卡片有哪些按钮和列表有哪些按钮 所以最好分开

原配置文件如下:从界面布局总装开始.

<!-- 界面布局总装*********************************************************** -->
	<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.VSNode">
							<property name="up">
								<bean class="nc.ui.uif2.tangramlayout.node.CNode">
									<property name="component">
										<ref bean="viewb" />
									</property>
								</bean>
							</property>
							<property name="down">
								<bean class="nc.ui.uif2.tangramlayout.node.CNode">
									<property name="component">
										<ref bean="billForm" />
									</property>
								</bean>
							</property>
							<property name="dividerLocation" value="43.0f" />
							<property name="name" value="卡片" />
						</bean>
					</list>
				</property>
				<property name="name" value="cardLayout" />
			<property name="showMode" value="CardLayout" />
			</bean>

		</property>
		<property name="actions">
			<list>
				<ref bean="addAction" />
				<ref bean="editAction" />
				<ref bean="deleteScriptAction" />
				<ref bean="defaultQueryAction" />
				<ref bean="copyAction" />
				<ref bean="separatorAction" />
				<ref bean="defaultRefreshAction" />
				<ref bean="separatorAction" />
				<ref bean="commitScriptAction" />
				<ref bean="unCommitScriptAction" />
				<ref bean="approveScriptAction" />
				<ref bean="uNApproveScriptAction" />
				<ref bean="separatorAction" />
				<ref bean="linkQueryAction" />
				<ref bean="separatorAction" />
				<ref bean="metaDataBasedPrintAction" />
				<ref bean="metaDataBasedPrintActiona" />
				<ref bean="outputAction" />
				<ref bean="separatorAction" />
				<ref bean="pFApproveStatusInfoAction" />

			</list>
		</property>
		
		<property name="editActions">
			<list>
				<ref bean="saveScriptAction" />
				<ref bean="cancelAction" />
				
			</list>
		</property>

		<property name="model">
			<ref bean="bmModel" />
		</property>		
		<!--
		<property name="model">
			<ref bean="$vmObject.topActionDependModel"/>
		</property>
		-->
	</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.VSNode">
							<property name="up">
								<bean class="nc.ui.uif2.tangramlayout.node.CNode">
									<property name="component">
										<ref bean="viewb" />
									</property>
								</bean>
							</property>
							<property name="down">
								<bean class="nc.ui.uif2.tangramlayout.node.CNode">
									<property name="component">
										<ref bean="billForm" />
									</property>
								</bean>
							</property>
							<property name="dividerLocation" value="43.0f" />
							<property name="name" value="卡片" />
						</bean>
					</list>
				</property>
				<property name="name" value="cardLayout" />
			<property name="showMode" value="CardLayout" />
			</bean>

		</property>
		<property name="model">
			<ref bean="bmModel" />
		</property>		
		<!--
		<property name="model">
			<ref bean="$vmObject.topActionDependModel"/>
		</property>
		-->
	</bean>
<!-- Actions  -->
	<bean id="toftpanelActionContributors" class="nc.ui.uif2.actions.ActionContributors">
		<property name="contributors">
			<list>
				<ref bean="actionsOfList" />
				<ref bean="actionsOfCard" />
			</list>
		</property>
	</bean>

	<!-- 列表显示下的按钮 -->
	<bean id="actionsOfList" class="nc.ui.uif2.actions.StandAloneToftPanelActionContainer">
		<constructor-arg ref="billListView" />
		<property name="model" ref="bmModel" />		
				<property name="actions">
			<list>
			 	<ref bean="addAction" />
				<ref bean="editAction" />
				<ref bean="deleteScriptAction" />
				<ref bean="defaultQueryAction" />
				<ref bean="copyAction" />
				<ref bean="separatorAction" />
				<ref bean="defaultRefreshAction" />
				<ref bean="separatorAction" />
				<ref bean="commitScriptAction" />
				<ref bean="unCommitScriptAction" />
				<ref bean="approveScriptAction" />
				<ref bean="uNApproveScriptAction" />
				<ref bean="separatorAction" />
				<ref bean="linkQueryAction" />
				<ref bean="separatorAction" />
				<ref bean="metaDataBasedPrintAction" />
				<ref bean="metaDataBasedPrintActiona" />
				<ref bean="outputAction" />
				<ref bean="separatorAction" />
				<ref bean="pFApproveStatusInfoAction" />
			</list>
		</property>
			<property name="editActions">
			<list>
				<ref bean="saveScriptAction" />
				<ref bean="cancelAction" />
			</list>
		</property>
			</bean>
	
	<!-- 卡片显示下的按钮 -->
	<bean id="actionsOfCard" class="nc.ui.uif2.actions.StandAloneToftPanelActionContainer">
		<constructor-arg ref="billForm" />
		<property name="model" ref="bmModel" />
				<property name="actions">
			<list>
			   	<ref bean="addAction" />
				<ref bean="editAction" />
				<ref bean="deleteScriptAction" />
				<ref bean="defaultQueryAction" />
				<ref bean="copyAction" />
				<ref bean="separatorAction" />
				<ref bean="defaultRefreshAction" />
				<ref bean="separatorAction" />
				<ref bean="commitScriptAction" />
				<ref bean="unCommitScriptAction" />
				<ref bean="approveScriptAction" />
				<ref bean="uNApproveScriptAction" />
				<ref bean="separatorAction" />
				<ref bean="linkQueryAction" />
				<ref bean="separatorAction" />
				<ref bean="metaDataBasedPrintAction" />
				<ref bean="metaDataBasedPrintActiona" />
				<ref bean="outputAction" />
				<ref bean="separatorAction" />
				<ref bean="pFApproveStatusInfoAction" />
			</list>
		</property>
			<property name="editActions">
			<list>
				<ref bean="saveScriptAction" />
				<ref bean="cancelAction" />
			</list>
		</property>
   </bean>	

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值