<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qianming  
    $Date: 2015-9-4 下午9:47:44  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="SYS_FUNCTION_V">
    <bm:fields>
        <bm:field name="function_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="FUNCTION_ID" prompt="SYS_FUNCTION_V.FUNCTION_ID"/>
        <bm:field name="function_code" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="120" forDisplay="true" forQuery="true" physicalName="FUNCTION_CODE" prompt="功能编码"/>
        <bm:field name="function_name" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="250" forDisplay="true" forQuery="true" physicalName="FUNCTION_NAME" prompt="功能名称"/>
    </bm:fields>
    <bm:data-filters>
        <bm:data-filter enforceOperations="query" expression="t1.function_type = &apos;F&apos;"/>
    </bm:data-filters>
    <bm:query-fields>
        <bm:query-field field="function_code" queryExpression="upper(t1.function_code) like &apos;%&apos; || upper(${@function_code}) || &apos;%&apos;"/>
        <bm:query-field field="function_name" queryExpression="upper(t1.function_name) like &apos;%&apos; || upper(${@function_name}) || &apos;%&apos;"/>
    </bm:query-fields>
</bm:model>
