<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: Administrator  
    $Date: 2016-12-20 下午4:23:53  
    $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
              con_collection_tool_pkg.update_col_car_recived_flag
              (p_col_id =>${@col_id} , 
              p_user_id =>${/session/@user_id} );
            end;
]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
                BEGIN
                    con_collection_tool_pkg.check_col_col_car_recived_flag( p_col_id => ${@col_id},p_type => 'SSH', p_user_id =>${/session/@user_id} );
                    con_collection_tool_pkg.visit_transfer_others( p_col_id =>${@col_id} , p_document_type =>${@document_type} , p_user_id => ${/session/@user_id} );
                END;
            ]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="delete">
            <bm:update-sql><![CDATA[
                BEGIN
                    con_collection_tool_pkg.check_col_col_car_recived_flag( p_col_id => ${@col_id},p_type => 'SH', p_user_id =>${/session/@user_id} );
                    con_collecton_wfl_pkg.con_collection_submit( p_col_id =>${@col_id} , p_user_id =>${/session/@user_id} );
                END;
            ]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
                BEGIN
                    con_collection_tool_pkg.check_col_col_car_recived_flag( p_col_id => ${@col_id}, p_type => 'SSH', p_user_id =>${/session/@user_id} );
                    con_collection_tool_pkg.con_collection_add_guar( p_col_id =>${@col_id} , p_contract_id =>${@contract_id} , p_user_id =>${/session/@user_id} );
                END;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
