<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gaoyang  
    $Date: 2013-5-23 下午04:23:02  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
            	begin
           hlcm_cux_deposit_pkg.execute_deposit_transfer(
            			  p_session_id=>${/session/@session_id},
			              p_source_contract_id=>${@source_contract_id},
			              p_je_date=>to_date(${@je_date},'yyyy-mm-dd hh24:mi:ss'),
			              p_contract_id=>${@contract_id},
			              p_deposit_amount=>${@deposit_amount},
			              p_deposit_trans_type=>${@deposit_trans_type},
			              p_company_id=>${/session/@company_id},
			              p_user_id=>${/session/@user_id}
            		);
            	end;
            ]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
            	begin
           hlcm_cux_deposit_pkg.create_deposit_transfer_je(
			              p_contract_id=>${@source_contract_id},
			              p_user_id=>${/session/@user_id}
            		);
            	end;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
