<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: feng  
    $Date: 2013-9-11 下午15:13:20  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm">
    <bm:operations>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
            	begin
                    con_contract_closed_pkg.contract_use_seal_save(p_contract_id         => ${@contract_id},
                                                                   p_user_id             => ${/session/@user_id},
                                                                   p_instruments_types   => ${@instruments_types},
                                                                   p_common_seal         => ${@common_seal},
                                                                   p_corporate_visa_seal => ${@corporate_visa_seal},
                                                                   p_legal_seal          => ${@legal_seal},
                                                                   p_con_special_seal    => ${@con_special_seal},
                                                                   p_financial_seal      => ${@financial_seal},
                                                                   p_supervisio_seal     => ${@supervisio_seal},
                                                                   p_seal_number         => ${@seal_number});

            		con_contract_closed_pkg.terminate_contract(
            			p_contract_id  =>${@contract_id},
            			p_user_id       =>${/session/@user_id}
            		);
            	end;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
