<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qwm  
    $Date: 2013-6-20 上午10:06:11  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:fields>
        <bm:field name="account_id_n"/>
        <bm:field name="account_name"/>
    </bm:fields>
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    g.account_code account_id_n,
                    g.account_desc account_name,
                    g.account_id account_id
                FROM
                    gld_accounts_v g #WHERE_CLAUSE#
                WHERE
                    g.account_code IN ('1531000300', '1531000301', '1532000300') AND
                    g.ref_v01      IS NULL
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:query-fields>
        <bm:query-field name="account_id_n" queryOperator="="/>
        <bm:query-field name="account_name" queryOperator="="/>
    </bm:query-fields>
</bm:model>
