acr_invoice_hd.lwm 1.03 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    *
                FROM
                    (SELECT DISTINCT
                        t2.bp_name,
                        t1.bp_id
                    FROM
                        con_contract_bp t1,
                        hls_bp_master t2
                    WHERE
                        t1.bp_id       = t2.bp_id AND
                        t1.bp_category = 'TENANT'
                    ) t #WHERE_CLAUSE#
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="bp_name" displayWidth="250" forDisplay="true" forQuery="true" prompt="客户名称"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field name="bp_name" queryExpression="t.bp_name like ${@bp_name}"/>
    </bm:query-fields>
</bm:model>