<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false" >
    <bm:fields>
        <bm:field name="bp_code" displayWidth="200" forDisplay="true" forQuery="true" prompt="代理店编码"/>
        <bm:field name="value_name" displayWidth="200" forDisplay="true" forQuery="true" prompt="代理店名称"/>
        <bm:field name="value_code"/>

    </bm:fields>
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
           select t1.*
  from (SELECT hbm.bp_id value_code, hbm.bp_name value_name, hbm.bp_code
          FROM hls_bp_master hbm
         WHERE hbm.enabled_flag = 'Y'
           AND hbm.bp_category = 'AGENT') t1

                #WHERE_CLAUSE#
    		]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
   <bm:query-fields>
        <bm:query-field field="bp_code" queryOperator="like" />
        <bm:query-field field="value_name" queryOperator="like" />

    </bm:query-fields>
</bm:model>

