<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: wangwei  
    $Date: 2015-11-30 下午6:42:40  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="insert">
            <bm:update-sql><![CDATA[ 
            begin
               sdic_tre_loan_contract_pkg.insert_loan_con_batch_itfc(
               p_batch_id =>${@batch_id},
               p_user_id  =>${/session/@user_id});
            end;
            ]]></bm:update-sql>
            <bm:parameters>
                <bm:parameter name="batch_id" input="false" output="true" outputPath="@batch_id"/>
            </bm:parameters>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[ 
           begin
               sdic_tre_loan_contract_pkg.update_loan_write_off_itfc(p_batch_id  =>${../../@batch_id},
                                       p_repayment_plan_id =>${@repayment_plan_id},
                                       p_user_id   =>${/session/@user_id});
           end;                            
           ]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[ 
           begin
           sdic_tre_loan_contract_pkg.submit_loan_repayment(p_batch_id =>${@batch_id},
                                  p_user_id  =>${/session/@user_id});
           end;
        ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
