<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: nyl  
    $Date: 
    $Revision: 1.0  
    $Purpose:  type="pdf" savePath="${/parameter/@file_path}"
-->
<a:screen xmlns:c="leaf.application.action" xmlns:w="leaf.plugin.export.word" xmlns:a="http://www.leaf-framework.org/application" xmlns:p="uncertain.proc" customizationEnabled="true" trace="true">
    <a:init-procedure>
        <a:model-query defaultWhereClause="t1.contract_id = ${/parameter/@contract_id}" model="cont.CON620N.con_contract_lease_item_lv" rootPath="con_contract_lease_item"/>
        <a:model-query defaultWhereClause="t1.policy_id = ${/parameter/@policy_id}" model="ins.INS500.ins_con_insurance_policy_lv" rootPath="con_insurance_policy"/>
        <a:model-query defaultWhereClause="t1.policy_id = ${/parameter/@policy_id}" model="ins.INS500.ins_prj_insurance_policy_lv" rootPath="prj_insurance_policy"/>
        <w:word-export name="${/parameter/@ins_name}.pdf" savePath="${/parameter/@file_path}" template="leaf.plugin.export.word/${/parameter/@templt_name}" type="pdf">
            <w:replaces>
                <w:replace name="bp_id_tenant_n" path="/model/prj_insurance_policy/record/@bp_id_tenant_n"/>
                <w:replace name="machine_number" path="/model/prj_insurance_policy/record/@machine_number"/>
                <w:replace name="policy_number" path="/model/prj_insurance_policy/record/@policy_number"/>
                <w:replace name="valid_from" path="/model/prj_insurance_policy/record/@valid_from"/>
                <w:replace name="valid_to" path="/model/prj_insurance_policy/record/@valid_to"/>
                <w:replace name="first_beneficiary" path="/model/prj_insurance_policy/record/@first_beneficiary"/>
                <w:replace name="insurance_fee" path="/model/prj_insurance_policy/record/@insurance_fee"/>
                <w:replace name="insurance_rate" path="/model/prj_insurance_policy/record/@insurance_rate"/>
                <w:replace name="lsh_pay_insurance_amount" path="/model/prj_insurance_policy/record/@lsh_pay_insurance_amount"/>
                <w:replace name="lshfl_pay_insurance_amount" path="/model/prj_insurance_policy/record/@lshfl_pay_insurance_amount"/>
                <w:replace name="cuntom_pay_insurance_amount" path="/model/prj_insurance_policy/record/@cuntom_pay_insurance_amount"/>
                <w:replace name="full_name" path="/model/prj_insurance_policy/record/@full_name"/>
                <w:replace name="bp_id_vender_n" path="/model/prj_insurance_policy/record/@bp_id_vender_n"/>
                <w:replace name="bp_id_tenant_address" path="/model/prj_insurance_policy/record/@bp_id_tenant_address"/>
                <w:replace name="bp_id_tenant_zipcode" path="/model/prj_insurance_policy/record/@bp_id_tenant_zipcode"/>
                <w:replace name="bp_id_tenant_id_no" path="/model/prj_insurance_policy/record/@bp_id_tenant_id_no"/>
                <w:replace name="specification" path="/model/prj_insurance_policy/record/@specification"/>
                <w:replace name="serial_number" path="/model/prj_insurance_policy/record/@serial_number"/>
                <w:replace name="engine_number" path="/model/prj_insurance_policy/record/@engine_number"/>
                <w:replace name="lease_times" path="/model/prj_insurance_policy/record/@lease_times"/>
                <w:replace name="bp_id_machine_n" path="/model/prj_insurance_policy/record/@bp_id_machine_n"/>
                <w:replace name="bp_id_machine_prn" path="/model/prj_insurance_policy/record/@bp_id_machine_prn"/>
                <w:replace name="price" path="/model/prj_insurance_policy/record/@price"/>
                <w:replace name="quantity" path="/model/prj_insurance_policy/record/@quantity"/>
                <w:replace name="single_price" path="/model/prj_insurance_policy/record/@single_price"/>
                <w:replace name="bp_id_tenant_ci_name" path="/model/prj_insurance_policy/record/@bp_id_tenant_ci_name"/>
                <w:replace name="bp_id_tenant_ci_phone" path="/model/prj_insurance_policy/record/@bp_id_tenant_ci_phone"/>
                <w:replace name="lessor_id_n" path="/model/prj_insurance_policy/record/@lessor_id_n"/>
                <w:replace name="bp_id_tenant_ci_name_pe" path="/model/con_insurance_policy/record/@bp_id_tenant_ci_name"/>
                <w:replace name="bp_id_tenant_ci_phone_pe" path="/model/con_insurance_policy/record/@bp_id_tenant_ci_phone"/>
                <w:replace name="policy_man" path="/model/con_insurance_policy/record/@policy_man"/>
                <w:replace name="valid_from_pe" path="/model/con_insurance_policy/record/@valid_from"/>
                <w:replace name="valid_to_pe" path="/model/con_insurance_policy/record/@valid_to"/>
                <w:replace name="lessor_id_n_pe" path="/model/con_insurance_policy/record/@lessor_id_n"/>
                <w:replace name="bp_id_tenant_n_pe" path="/model/con_insurance_policy/record/@bp_id_tenant_n"/>
                <w:replace name="insurance_fee_pe" path="/model/con_insurance_policy/record/@insurance_fee"/>
                <w:replace name="lease_item_amount_pe" path="/model/con_insurance_policy/record/@lease_item_amount"/>
                <w:replace name="insurance_rate_pe" path="/model/con_insurance_policy/record/@insurance_rate"/>
                <w:replace name="installation_sites_pe" path="/model/con_insurance_policy/record/@installation_sites"/>
                <w:replace name="price_pe" path="/model/con_contract_lease_item/record/@price"/>
            </w:replaces>
        </w:word-export>
    </a:init-procedure>
</a:screen>