csh_banks_vl.lwm 2.06 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
<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="query">
            <bm:query-sql><![CDATA[select t.bank_code,
               t.bank_code||'-'||t.bank_short_name bank_code_name,
		       t.bank_short_name bank_name,
		       t.bank_full_name BANK_NAME_ALT,
		       t.bank_type,
		       t.zero_amounts_allowed,
		       t.enabled_flag
  		from csh_bank_v t
		#WHERE_CLAUSE#  order by bank_code]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:fields>
        <bm:field name="bank_code" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="200" forDisplay="true" forQuery="true" physicalName="BANK_CODE" prompt="HLS.BANK_CODE"/>
        <bm:field name="bank_name" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_NAME"/>
        <bm:field name="bank_name_alt" databaseType="VARCHAR2" datatype="java.lang.String" displayWidth="300" forDisplay="true" forQuery="true" physicalName="BANK_NAME_ALT" prompt="HLS.BANK_FULL_NAME"/>
        <bm:field name="bank_type" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="BANK_TYPE"/>
        <bm:field name="zero_amounts_allowed" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ZERO_AMOUNTS_ALLOWED"/>
        <bm:field name="enabled_flag" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="ENABLED_FLAG"/>
        <bm:field name="bank_code_name"/>
    </bm:fields>
    <bm:query-fields>
        <bm:query-field name="bank_code" queryExpression="bank_code like  &apos;%&apos;||upper(${@bank_code})||&apos;%&apos;"/>
        <bm:query-field name="bank_name" queryExpression="bank_short_name like  &apos;%&apos;||${@bank_name}||&apos;%&apos;"/>
        <bm:query-field name="bank_name_alt" queryExpression="bank_full_name like &apos;%&apos;||${@bank_name_alt}||&apos;%&apos;"/>
        <bm:query-field name="bank_type" queryExpression="bank_type = ${@bank_type}"/>
        <bm:query-field field="enabled_flag" queryOperator="="/>
    </bm:query-fields>
</bm:model>