<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gaoyang  
    $Date: 2013-5-8 上午11:36:09  
    $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
            		hls_quotation_pkg.insert_hls_quotation(
            			p_calc_session_id   =>${@calc_session_id},
                        p_session_id        =>${/session/@session_id},
                        p_document_id       =>${@document_id},
                        p_document_category =>${@document_category},
                        p_user_id     =>${/session/@user_id}
            		);
            	end;
            ]]></bm:update-sql>
        </bm:operation>
        <bm:operation name="update">
            <bm:update-sql><![CDATA[
            	begin
            		hls_quotation_pkg.update_hls_quotation(
            			p_quotation_id   =>${@quotation_id},
            			p_document_id       =>${@document_id},
                        p_document_category =>${@document_category},
            			p_override_flag=>nvl(${@override_flag},'N'),
            			p_create_flag=>nvl(${@create_flag},'N'),
            			p_user_id     =>${/session/@user_id}
            		);
            	end;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
