<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qianming 
    $Date: 2015-5-25 下午1:21:35  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" alias="t1" baseTable="HLS_CAR_SERIES_VL" defaultOrderBy="brand_id,series_id">
    <bm:fields>
        <bm:field name="series_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="SERIES_ID" prompt="HLS_CAR_SERIES_VL.SERIES_ID"/>
        <bm:field name="brand_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="BRAND_ID" prompt="HLS_CAR_SERIES_VL.BRAND_ID"/>
        <bm:field name="series_code" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="SERIES_CODE" prompt="车系编号"/>
        <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" forDisplay="true" forQuery="true" physicalName="DESCRIPTION" prompt="车系名称"/>
        <bm:field name="brand_name" expression="(select description from hls_car_brands_vl where brand_id = t1.brand_id)" forDisplay="true" prompt="所属品牌"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field field="brand_id" queryOperator="="/>
        <bm:query-field field="series_code" queryExpression="upper(t1.series_code) like &apos;%&apos; || upper(${@series_code}) || &apos;%&apos;"/>
        <bm:query-field field="description" queryExpression="upper(t1.description) like &apos;%&apos; || upper(${@description}) || &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>
