<?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 
  lr.*,
  lr.over_0_l||'/'||lr.over_0_r over_0,
  lr.over_1_l||'/'||lr.over_1_r over_1,
  lr.over_2_l||'/'||lr.over_2_r over_2,
  lr.over_3_l||'/'||lr.over_3_r over_3,
  lr.over_4_l||'/'||lr.over_4_r over_4
from CUS_RPT3037 lr 
#WHERE_CLAUSE#]]></bm:query-sql>
        </bm:operation>
    </bm:operations>
    <bm:query-fields>
        <bm:query-field name="over_type" queryExpression="lr.over_type = ${@over_type}"/>
        <bm:query-field name="province_id" queryExpression="lr.province_id = ${@province_id}"/>
        <bm:query-field name="branch_company" queryExpression="lr.branch_company=${@branch_company}"/>
    </bm:query-fields>
    <bm:data-filters>
        <bm:data-filter name="init" enforceOperations="query" expression="lr.control_id = ${@control_id}"/>
    </bm:data-filters>
</bm:model>
