<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qianming  
    $Date: 2015-9-3 下午3:57:20  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="SYS_USER_A_V" needAccessControl="false">
    <bm:fields>
        <bm:field name="user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="USER_ID" prompt="SYS_USER_A_V.USER_ID"/>
        <bm:field name="user_name" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="160" forDisplay="true" forQuery="true" physicalName="USER_NAME" prompt="用户编码"/>
        <bm:field name="user_desc" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="200" forDisplay="true" forQuery="true" physicalName="USER_DESC" prompt="用户名称"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field field="user_name" queryExpression="upper(t1.user_name) like &apos;%&apos; || upper(${@user_name}) || &apos;%&apos;"/>
        <bm:query-field field="user_desc" queryExpression="upper(t1.user_desc) like &apos;%&apos; || upper(${@user_desc}) || &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>
