hls051_fnd_city.lwm 1.63 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 29 30 31 32 33 34 35 36 37 38 39 40
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: liukang
    $Date: 2016年4月06日 上午11:41:34  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[
                SELECT
                    *
                FROM
                    (SELECT
                        t.province_id,
                        t.city_id,
                        t.city_code,
                        t.description
                    FROM
                        fnd_city t
                    WHERE
                        t.enabled_flag='Y'
                    )#WHERE_CLAUSE#
                ORDER BY
                    city_code
            ]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="city_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CITY_ID"/>
        <bm:field name="city_code" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="100" forDisplay="true" forQuery="true" physicalName="CITY_CODE" prompt="城市代码"/>
        <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="200" forDisplay="true" forQuery="true" physicalName="DESCRIPTION" prompt="城市名称"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field name="province_id" queryExpression="province_id =${:@province_id}"/>
        <bm:query-field field="city_code" queryOperator="like"/>
        <bm:query-field field="description" queryOperator="like"/>
    </bm:query-fields>
</bm:model>