NC65 卡片空行过滤器
作者:互联网
<!--====== 视图元素:[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" />
<!-- 空行过滤器,卡片界面根据此过滤器删除表体空行 -->
<property name="blankChildrenFilter">
<!-- 简单的根据一个字段是否为空的空行过滤器,因为多数情况下都是判断存货是否为空来过滤空行 -->
<bean
class="nc.ui.pubapp.uif2app.view.value.MultiFieldsBlankChildrenFilter">
<!-- 指定用来判断空行的字段名称,可能多数情况下是存货字段 -->
<property name="filterMap">
<map>
<entry>
<!--页签code -->
<key>
<value>pk_body</value>
</key>
<!--检验是否空行字段code -->
<list>
<value>function</value>
</list>
</entry>
<entry>
<!--页签code -->
<key>
<value>pk_handover</value>
</key>
<!--检验是否空行字段code -->
<list>
<value>pk_cardbilltype</value>
</list>
</entry>
<entry>
<!--页签code -->
<key>
<value>pk_handoverto</value>
</key>
<!--检验是否空行字段code -->
<list>
<value>pk_cardbilltype</value>
</list>
</entry>
</map>
</property>
</bean>
</property>
<!-- 表体行操作按钮注册,这只是一组默认设置,开发人员需要自己在此添加其他需要的表体行操作按钮 -->
<property name="bodyLineActions">
<list>
<bean class="nc.ui.pubapp.uif2app.actions.BodyAddLineAction" />
<bean class="nc.ui.pubapp.uif2app.actions.BodyInsertLineAction" />
<bean class="nc.ui.pubapp.uif2app.actions.BodyDelLineAction" />
<bean class="nc.ui.pubapp.uif2app.actions.BodyCopyLineAction" />
<bean class="nc.ui.pubapp.uif2app.actions.BodyPasteLineAction" />
<bean class="nc.ui.pubapp.uif2app.actions.BodyPasteToTailAction" />
<!-- 卡片编辑 -->
<bean class="nc.ui.pubapp.uif2app.actions.BodyLineEditAction" />
<!-- 最大最小化 -->
<bean class="nc.ui.pub.beans.ActionsBar$ActionsBarSeparator" />
<bean class="nc.ui.pubapp.uif2app.actions.DefaultBodyZoomAction">
<property name="pos" value="1" />
</bean>
</list>
</property>
</bean>
标签:空行,body,MultiFieldsBlankChildrenFilter,function,handover,NC65,pk,过滤器,cardbilltyp 来源: https://blog.csdn.net/siyi1219/article/details/120508583