<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author:   hp
    $Date: 2013-4-11 上午09:46:28  
    $Revision: 1.0  
    $Purpose: 
-->
<bm:model xmlns:bm="http://www.leaf-framework.org/schema/bm" needAccessControl="false">
    <bm:operations>
        <bm:operation name="update">
            <bm:parameters>
                <bm:parameter name="req_hd_id" output="true" outputPath="/parameter/@req_hd_id"/>
                <bm:parameter name="document_category" input="true"/>
                <bm:parameter name="document_type" input="true"/>
                <bm:parameter name="business_type" input="true"/>
                <bm:parameter name="req_number" input="true"/>
                <bm:parameter name="description" input="true"/>
            </bm:parameters>
            <bm:update-sql><![CDATA[
            	begin
            	  cus_gps_open_pkg.ins_gps_open_req_hd(p_req_hd_id   =>${@req_hd_id},
                                p_company_id         =>${/session/@company_id},
                                p_document_category  =>'GPS',
                                p_document_type      =>'GPS',
                                p_business_type      =>'GPS',
                                p_req_number         =>${@req_number},
                                p_req_status         =>'NEW',
                                p_req_date           =>sysdate,
                                p_description        =>${@description},
                                p_user_id            =>${/session/@user_id});
            	end;
            ]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
