<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qianming  
    $Date: 2015-6-29 下午3:48:01  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="SYS_USER_A_V">
    <bm:fields>
        <bm:field name="user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="USER_ID"/>
        <bm:field name="user_name" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="USER_NAME" prompt="用户编码"/>
        <bm:field name="user_desc" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="150" 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 name="1" enforceOperations="query" expression="t1.enabled_flag = &apos;Y&apos;"/>
    </bm:data-filters>
</bm:model>
