<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="execute">
            <bm:parameters>
                <bm:parameter name="change_req_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="ccr_fee" input="true" output="false"/>
                <bm:parameter name="ccr_penalty" input="true" output="false"/>
                <bm:parameter name="btb_payment_date" input="true" output="false"/>
                <bm:parameter name="user_id" dataType="java.lang.Long" input="true" output="false"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                begin
                    CON_CHANGE_REQ_CALC_ITFC_PKG.SUBMIT_CHANGE_REQ
                    (
                        p_change_req_id=>${@change_req_id},
                        p_ccr_fee=>${@ccr_fee},
                        p_ccr_penalty=>${@ccr_penalty},
                        p_btb_payment_date=>to_date(${@btb_payment_date},'yyyy-mm-dd'),
                        p_layout_code=>${@layout_code},
                        p_user_id=>${/session/@user_id}
                    );
                end;]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:parameters>
                <bm:parameter name="change_req_id" dataType="java.lang.Long" input="true" output="false"/>
                <bm:parameter name="user_id" dataType="java.lang.Long" input="true" output="false"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
                BEGIN
                    CON_CONTRACT_CHANGE_REQ_PKG.CHANGE_REQ_CONFIRM ( p_change_req_id=>${@change_req_id}, p_user_id=>${/session/@user_id} );
                END;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
