<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gaoyang 
    $Date: 2015-8-13 下午03:05:00  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="CUS_RPT_CUS360_O" defaultOrderBy="t1.division">
    <bm:fields>
        <bm:field name="control_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONTROL_ID" prompt="CUS_RPT_CUS360_O.CONTROL_ID"/>
        <bm:field name="division" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DIVISION" prompt="CUS_RPT_CUS360_O.DIVISION"/>
        <bm:field name="division_n" expression="(select hd.description from hls_division hd where hd.division=t1.division)" forInsert="false" forUpdate="false"/>
        <bm:field name="receivable_current" databaseType="NUMBER" datatype="java.lang.Double" physicalName="RECEIVABLE_CURRENT" prompt="CUS_RPT_CUS360_O.RECEIVABLE_CURRENT"/>
        <bm:field name="receivable_overdue" databaseType="NUMBER" datatype="java.lang.Double" physicalName="RECEIVABLE_OVERDUE" prompt="CUS_RPT_CUS360_O.RECEIVABLE_OVERDUE"/>
        <bm:field name="collection_current" databaseType="NUMBER" datatype="java.lang.Double" physicalName="COLLECTION_CURRENT" prompt="CUS_RPT_CUS360_O.COLLECTION_CURRENT"/>
        <bm:field name="collection_overdue" databaseType="NUMBER" datatype="java.lang.Double" physicalName="COLLECTION_OVERDUE" prompt="CUS_RPT_CUS360_O.COLLECTION_OVERDUE"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
    </bm:features>
    <bm:data-filters>
        <bm:data-filter name="control_id" enforceOperations="query" expression="t1.control_id=${@control_id}"/>
    </bm:data-filters>
</bm:model>
