<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: DJ  
    $Date: 2013-6-13 下午02:32:50  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
SELECT *
            FROM (SELECT h.bp_name, h.bp_id
            FROM hls_bp_master h
            WHERE h.bp_category = 'VENDER'
            AND h.enabled_flag = 'Y'
            UNION ALL
            SELECT '买断机' bp_name, -100 bp_id
            FROM dual)
            #WHERE_CLAUSE#
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="bp_name" displayWidth="200" forDisplay="true" prompt="厂商名称"/>
        <bm:field name="bp_id" displayWidth="200" forDisplay="true" forQuery="true" prompt="厂商代码"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field field="bp_name" queryOperator="like"/>
        <bm:query-field field="bp_id" queryOperator="like"/>
    </bm:query-fields>
   <!-- <bm:data-filters>
        <bm:data-filter enforceOperations="query" expression="h.enabled_flag=&apos;Y&apos;"/>
    </bm:data-filters>-->
</bm:model>
