<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qianming  
    $Date: 2015-9-3 下午3:43:50  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="SYS_ROLE_VL">
    <bm:fields>
        <bm:field name="role_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ROLE_ID" prompt="SYS_ROLE_VL.ROLE_ID"/>
        <bm:field name="role_code" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="200" forDisplay="true" forQuery="true" prompt="角色编码"/>
        <bm:field name="role_name" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="240" forDisplay="true" forQuery="true" prompt="角色名称"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field field="role_code" queryExpression="upper(t1.role_code) like &apos;%&apos; || upper(${@role_code}) || &apos;%&apos;"/>
        <bm:query-field field="role_name" queryExpression="upper(t1.role_name) like &apos;%&apos; || upper(${@role_name}) || &apos;%&apos;"/>
    </bm:query-fields>
    <bm:data-filters>
        <bm:data-filter enforceOperations="query" expression="t1.enabled_flag = &apos;Y&apos;"/>
    </bm:data-filters>
</bm:model>
