<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: niminmin
    $Date: 2019-10-24 上午09:52:30
    $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
            		con_contract_content_pkg.content_create_for_collection(
            			p_contract_id =>${@contract_id},
            			p_user_id     =>${/session/@user_id},
            			p_templet_code=>${@templet_code}
            		);
            	end;
            ]]></bm:update-sql>
        </bm:operation>

        <bm:operation name="execute">
            <bm:update-sql><![CDATA[
            	begin
            		con_contract_content_pkg.content_create_for_gua(
            			p_contract_id =>${@contract_id},
            			p_user_id     =>${/session/@user_id},
            			p_templet_code=>${@templet_code},
            			p_bp_code=>${@bp_code}
            		);
            	end;
            ]]></bm:update-sql>
        </bm:operation>

    </bm:operations>
</bm:model>
