<?xml version="1.0" encoding="UTF-8"?>
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="delete">
            <bm:update-sql><![CDATA[
    			delete from hl_hsbc_doc_temp t where t.session_id = ${/session/@session_id}
    		]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="insert">
            <bm:update-sql><![CDATA[
            	begin
            		hl_hsbc_interface_pkg.insert_doc_temp_manage(
            			  p_session_id=>${/session/@session_id},
			              p_payment_req_ln_id=>${@payment_req_ln_id},
			              p_payment_req_id=>${@payment_req_id},
			              p_tranamount =>${@unpaid_amount},
			              p_user_id=>${/session/@user_id},
				          p_button_id => ${/parameter/@button_id},
				          p_division => ''
            		);
            	end;
            ]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
        		begin
				  hl_hsbc_interface_pkg.create_batch_manage(p_session_id => ${/session/@session_id},
				                                       p_bank_account_id => ${@bank_account_id},
				                                       p_user_id => ${/session/@user_id});
				end;
        	]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
