<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:o="leaf.database.local.oracle" xmlns:bm="http://www.leaf-framework.org/schema/bm" xmlns:f="leaf.database.features" alias="t1" baseTable="HN_CON_PAYMENT_CONDITIONS" defaultOrderBy="condition_id,condition_code">
    <bm:fields>
        <bm:field name="condition_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONDITION_ID" prompt="HN_CON_PAYMENT_CONDITIONS.CONDITION_ID"/>
        <bm:field name="hd_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="HD_ID" prompt="HN_CON_PAYMENT_CONDITIONS.HD_ID"/>
        <bm:field name="description" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="DESCRIPTION" prompt="HN_CON_PAYMENT_CONDITIONS.DESCRIPTION"/>
        <bm:field name="attachment_number" databaseType="NUMBER" datatype="java.lang.Long" physicalName="ATTACHMENT_NUMBER" prompt="HN_CON_PAYMENT_CONDITIONS.ATTACHMENT_NUMBER"/>
        <bm:field name="confirm_flag" databaseType="VARCHAR2" datatype="java.lang.String" lookupCode="YES_NO" lookupField="confirm_flag_desc" physicalName="CONFIRM_FLAG"/>
        <bm:field name="confirm_flag_desc" forInsert="false" forUpdate="false" prompt="是否落实"/>
        <bm:field name="confirm_user_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="CONFIRM_USER_ID" prompt="HN_CON_PAYMENT_CONDITIONS.CONFIRM_USER_ID"/>
        <bm:field name="confirm_date" databaseType="DATE" datatype="java.util.Date" physicalName="CONFIRM_DATE" prompt="HN_CON_PAYMENT_CONDITIONS.CONFIRM_DATE"/>
        <bm:field name="note" databaseType="VARCHAR2" datatype="java.lang.String" physicalName="NOTE" prompt="HN_CON_PAYMENT_CONDITIONS.NOTE"/>
        <bm:field name="record_id" databaseType="NUMBER" datatype="java.lang.Long" physicalName="RECORD_ID" prompt="HN_CON_PAYMENT_CONDITIONS.RECORD_ID"/>
        <bm:field name="condition_code" expression="(select h.condition_code from hn_csh_payment_cond_define h where h.record_id=t1.record_id)" forInsert="false" forUpdate="false"/>
        <bm:field name="file_name" expression="(select bgfl_special_parameter_pkg.get_con_condition_file_names(t1.condition_id) from dual)" forInsert="false" forUpdate="false"/>
    </bm:fields>
    <bm:features>
        <f:standard-who/>
        <o:sequence-pk/>
    </bm:features>
    <bm:primary-key>
        <bm:pk-field name="condition_id"/>
    </bm:primary-key>
    <bm:data-filters>
        <bm:data-filter enforceOperations="query" expression="t1.hd_id=${@hd_id}"/>
    </bm:data-filters>
</bm:model>
