<?xml version="1.0" encoding="UTF-8"?> <!-- $Author: mumu $Date: 2014-8-5 上午10:57:48 $Revision: 1.0 $Purpose: --> <bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm"> <bm:fields> <bm:field name="id" databaseType="NUMBER" datatype="java.lang.Long"/> <bm:field name="code" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="200" forDisplay="true" forQuery="true" prompt="审批组代码"/> <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="200" forDisplay="true" forQuery="true" prompt="审批组描述"/> </bm:fields> <bm:operations> <bm:operation name="query"> <bm:query-sql><![CDATA[ select t1.approver_group_id as id,t1.approver_group_code as code, t1.approver_group_desc as description from cfl_wfl_approver_group t1 #WHERE_CLAUSE# ]]></bm:query-sql> </bm:operation> </bm:operations> <bm:data-filters> <bm:data-filter enforceOperations="query" expression="t1.enabled_flag = 'Y'"/> </bm:data-filters> <bm:query-fields> <bm:query-field name="code" queryExpression="v.employee_code like '%'||${@code}||'%'"/> <bm:query-field name="description" queryExpression="v.approver_group_desc like '%'||${@description}||'%'"/> </bm:query-fields> </bm:model>