<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: chenlingfeng  
    $Date: 2017-7-17 下午5:49:48  
    $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
  -- Call the procedure
  hn_document_grant_request_pkg.submit_document_grant_request(p_trx_category => ${@trx_category},
  															  p_trx_name=>${@trx_name},
                                                              p_trx_id => ${@trx_id},
                                                              p_document_owner_user_id => ${@document_owner_user_id},
                                                              p_start_date => to_date(${@start_date},'yyyy-mm-dd'),
                                                              p_end_date => to_date(${@end_date},'yyyy-mm-dd'),
                                                              p_user_id => ${/session/@user_id},
                                                              p_company_id =>${/session/@company_id});
end;
]]></bm:update-sql>
        </bm:operation>
    </bm:operations>
</bm:model>
