<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhangyu  
    $Date: 2015-10-27 下午16:45:44  
    $Revision: 1.0  
    $Purpose: 
-->
<a:service xmlns:c="leaf.application.action" xmlns:w="leaf.plugin.export.word" xmlns:s="leaf.plugin.script" xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" customizationEnabled="true" trace="true">
    <a:init-procedure participants="leaf.service.exception.ExceptionHandler">
        <!-- <a:model-query defaultWhereClause="t1.visit_report_id=${/parameter/@visit_report_id}" fetchAll="true" model="cont.CON801.bgfl_con_visit_report_v" rootPath="visit_report_print"/> -->
        <a:model-query fetchAll="true" model="cont.CON544.con_contract_info_for_print" rootPath="contract_info"/>
        <a:model-query fetchAll="true" model="cont.CON544.con_contract_info_approval_for_print" rootPath="approval_info"/>
        <w:word-export name="${/parameter/@file_name}" savePath="${/parameter/@file_path}" template="leaf.plugin.export.word/${/parameter/@templt_name}" type="word">
            <w:replaces>
                <w:replace name="contract_rec" path="/model/contract_info/record"/>
            </w:replaces>
        </w:word-export>
        <a:model-insert model="prj.PRJ501N.bgfl_generate_word_tmp"/>
    </a:init-procedure>
    <a:service-output output="/parameter"/>
</a:service>
