<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhangyu  
    $Date: 2015-7-10 上午11:52:33  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:c="leaf.application.action" xmlns:s="leaf.plugin.script" 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 fetchAll="true" model="cont.CON500.con_contract_get_guid_file_name" rootPath="guid_file_name_path"/>
        <a:model-query fetchAll="true" model="cont.CON500N.bgfl_get_contract_print_file_path" rootPath="contract_file_path"/>
        <a:model-query defaultWhereClause="t1.contract_id=${/parameter/@contract_id}" fetchAll="true" model="cont.CON500N.con_contract_bp_master_info_lv" rootPath="con_contract_bp_info_path"/>
        <a:model-query defaultWhereClause="cf_type=3 and cf_item=3 and contract_id=${/parameter/@contract_id}" fetchAll="true" model="cont.CON500N.con_contract_cashflow_info" rootPath="charge_fee_path"/>
        <a:model-query defaultWhereClause="cf_type=7 and cf_item=71 and contract_id=${/parameter/@contract_id}" fetchAll="true" model="cont.CON500N.con_contract_cashflow_info" rootPath="insurance_fee_path"/>
        <a:model-query defaultWhereClause="cf_type=8 and cf_item=8 and contract_id=${/parameter/@contract_id}" fetchAll="true" model="cont.CON500N.con_contract_cashflow_info" rootPath="residual_value_path"/>
        <a:model-query defaultWhereClause="cf_type=5 and cf_item=51 and contract_id=${/parameter/@contract_id}" fetchAll="true" model="cont.CON500N.con_contract_cashflow_info" rootPath="deposit_path"/>
        <a:model-query defaultWhereClause="t1.contract_id=${/parameter/@contract_id}" fetchAll="true" model="cont.CON500N.con_tenant_sec_info_lv" rootPath="con_tenant_sec_info_path"/>
        <a:model-query fetchAll="true" model="cont.CON500N.guarantor_mortgage_pledge_names" rootPath="guarantor_mortgage_pledge_path"/>
        <a:model-query fetchAll="true" model="cont.CON500N.fnd_companies_print" rootPath="companies_info_path"/>
        <a:model-query defaultWhereClause="t1.contract_id=${/parameter/@contract_id}" fetchAll="true" model="cont.CON500N.hls_bp_master_vender_lv" rootPath="vender_info_path"/>
        <a:model-query defaultWhereClause="t1.contract_id=${/parameter/@contract_id}" fetchAll="true" model="cont.CON500N.con_contract_for_lease_item_v" rootPath="lease_item_path"/>
        <!-- <a:model-query fetchAll="true" model="cont.CON500.con_contract_basic_clause_print" rootPath="con_basic_clause_path"/> -->
        <w:word-export name="${/model/guid_file_name_path/record/@guid_file_name}.doc" savePath="${/parameter/@file_path}" template="leaf.plugin.export.word/${/parameter/@templt_name}" type="word">
            <w:replaces>
                <w:replace name="tt_bank_account_name" path="/model/con_contract_bp_info_path/record/@tt_bank_account_name"/>
                <w:replace name="tt_bank_account_num" path="/model/con_contract_bp_info_path/record/@tt_bank_account_num"/>
                <w:replace name="charge_fee" path="/model/charge_fee_path/record/@due_amount"/>
                <w:replace name="charge_fee_rmb" path="/model/charge_fee_path/record/@due_amount_rmb"/>
                <w:replace name="insurance_fee" path="/model/discount_residual_path/record/@insurance_fee"/>
                <w:replace name="insurance_fee_rmb" path="/model/discount_residual_path/record/@insurance_fee_rmb"/>
                <w:replace name="residual_value" path="/model/discount_residual_path/record/@residual_value"/>
                <w:replace name="residual_value_rmb" path="/model/discount_residual_path/record/@residual_value_rmb"/>
                <w:replace name="discount_residual_value" path="/model/discount_residual_path/record/@discount_residual_value"/>
                <w:replace name="discount_residual_value_rmb" path="/model/discount_residual_path/record/@discount_residual_value_rmb"/>
                <w:replace name="finance_amount" path="/model/con_contract_bp_info_path/record/@finance_amount"/>
                <w:replace name="finance_amount_rmb" path="/model/con_contract_bp_info_path/record/@finance_amount_rmb"/>
                <w:replace name="inception_of_lease_year" path="/model/con_contract_bp_info_path/record/@inception_of_lease_year"/>
                <w:replace name="inception_of_lease_month" path="/model/con_contract_bp_info_path/record/@inception_of_lease_month"/>
                <w:replace name="inception_of_lease_day" path="/model/con_contract_bp_info_path/record/@inception_of_lease_day"/>
                <w:replace name="lease_start_year" path="/model/con_contract_bp_info_path/record/@lease_start_year"/>
                <w:replace name="lease_start_month" path="/model/con_contract_bp_info_path/record/@lease_start_month"/>
                <w:replace name="lease_start_day" path="/model/con_contract_bp_info_path/record/@lease_start_day"/>
                <w:replace name="lease_end_day" path="/model/con_contract_bp_info_path/record/@lease_end_day"/>
                <w:replace name="guarantor_names" path="/model/guarantor_mortgage_pledge_path/record/@guarantor_names"/>
                <w:replace name="mortgage_names" path="/model/guarantor_mortgage_pledge_path/record/@mortgage_names"/>
                <w:replace name="pledge_names" path="/model/guarantor_mortgage_pledge_path/record/@pledge_names"/>
                <w:replace name="deposit" path="/model/deposit_path/record/@due_amount"/>
                <w:replace name="deposit_rmb" path="/model/deposit_path/record/@due_amount_rmb"/>
                <w:replace name="tenant_sec_name" path="/model/con_tenant_sec_info_path/record/@tenant_sec_name"/>
                <w:replace name="tenant_sec_legal_person" path="/model/con_tenant_sec_info_path/record/@tenant_sec_legal_person"/>
                <w:replace name="tenant_sec_company_address" path="/model/con_tenant_sec_info_path/record/@tenant_sec_company_address"/>
                <w:replace name="tenant_sec_company_phone" path="/model/con_tenant_sec_info_path/record/@tenant_sec_company_phone"/>
                <w:replace name="tenant_sec_company_fax" path="/model/con_tenant_sec_info_path/record/@tenant_sec_company_fax"/>
                <w:replace name="tenant_sec_contact_person" path="/model/con_tenant_sec_info_path/record/@contact_person"/>
                <w:replace name="tenant_sec_send_address" path="/model/con_tenant_sec_info_path/record/@tenant_sec_send_address"/>
                <w:replace name="tenant_sec_send_phone" path="/model/con_tenant_sec_info_path/record/@tenant_sec_send_phone"/>
                <w:replace name="tenant_sec_send_fax" path="/model/con_tenant_sec_info_path/record/@tenant_sec_send_fax"/>
                <w:replace name="contract_number" path="/model/con_contract_bp_info_path/record/@contract_number"/>
                <w:replace name="main_contract_number" path="/model/con_contract_bp_info_path/record/@main_contract_number"/>
                <w:replace name="business_contract_number" path="/model/con_contract_bp_info_path/record/@business_contract_number"/>
                <w:replace name="guarantee_contract_number_np" path="/model/con_contract_bp_info_path/record/@guarantee_contract_number_np"/>
                <w:replace name="guarantee_contract_number_org" path="/model/con_contract_bp_info_path/record/@guarantee_contract_number_org"/>
                <w:replace name="mortgage_contract_number" path="/model/con_contract_bp_info_path/record/@mortgage_contract_number"/>
                <w:replace name="pledge_contract_number" path="/model/con_contract_bp_info_path/record/@pledge_contract_number"/>
                <w:replace name="pledge_contract_number_gq" path="/model/con_contract_bp_info_path/record/@pledge_contract_number_gq"/>
                <w:replace name="pledge_contract_number_dj" path="/model/con_contract_bp_info_path/record/@pledge_contract_number_dj"/>
                <w:replace name="bank_account_num" path="/model/companies_info_path/record/@bank_account_num"/>
                <w:replace name="bank_branch_name" path="/model/companies_info_path/record/@bank_branch_name"/>
                <w:replace name="c_phone" path="/model/companies_info_path/record/@phone"/>
                <w:replace name="c_zipcode" path="/model/companies_info_path/record/@zipcode"/>
                <w:replace name="c_fax" path="/model/companies_info_path/record/@fax"/>
                <w:replace name="c_email" path="/model/companies_info_path/record/@email"/>
                <w:replace name="tenant_name" path="/model/con_contract_bp_info_path/record/@bp_name"/>
                <w:replace name="tenant_legal_person" path="/model/con_contract_bp_info_path/record/@legal_person"/>
                <w:replace name="tenant_company_address" path="/model/con_contract_bp_info_path/record/@tenant_company_address"/>
                <w:replace name="tenant_company_phone" path="/model/con_contract_bp_info_path/record/@tenant_company_phone"/>
                <w:replace name="tenant_company_fax" path="/model/con_contract_bp_info_path/record/@tenant_company_fax"/>
                <!-- <w:replace name="signing_date_year" path="/model//record/@signing_date_year"/> -->
                <!-- <w:replace name="signing_date_month" path="/model//record/@signing_date_month"/> -->
                <!-- <w:replace name="signing_date_day" path="/model//record/@signing_date_day"/> -->
                <!-- <w:replace name="signing_location" path="/model//record/@signing_location"/> -->
                <w:replace name="lease_item_amount_01_rmb" path="/model/con_contract_bp_info_path/record/@lease_item_amount_01_rmb"/>
                <w:replace name="lease_item_amount_01" path="/model/con_contract_bp_info_path/record/@lease_item_amount_01"/>
                <w:replace name="lease_times" path="/model/con_contract_bp_info_path/record/@lease_times"/>
                <w:replace name="lease_term_rate" path="/model/con_contract_bp_info_path/record/@lease_term_rate"/>
                <w:replace name="c_address" path="/model/companies_info_path/record/@address"/>
                <w:replace name="tenant_send_address" path="/model/con_contract_bp_info_path/record/@tenant_send_address"/>
                <w:replace name="tenant_send_phone" path="/model/con_contract_bp_info_path/record/@tenant_send_phone"/>
                <w:replace name="tenant_send_fax" path="/model/con_contract_bp_info_path/record/@tenant_send_fax"/>
                <w:replace name="contact_person" path="/model/companies_info_path/record/@contact_person"/>
                <w:replace name="lease_item_amount" path="/model/con_contract_bp_info_path/record/@lease_item_amount"/>
                <w:replace name="lease_item_amount_rmb" path="/model/con_contract_bp_info_path/record/@lease_item_amount_rmb"/>
                <w:replace name="tenant_contact_person" path="/model/con_contract_bp_info_path/record/@contact_person"/>
                <w:replace name="int_rate" path="/model/con_contract_bp_info_path/record/@int_rate"/>
                <w:replace name="month_int_rate" path="/model/con_contract_bp_info_path/record/@month_int_rate"/>
                <w:replace name="down_payment" path="/model/con_contract_bp_info_path/record/@down_payment"/>
                <w:replace name="down_payment_rmb" path="/model/con_contract_bp_info_path/record/@down_payment_rmb"/>
                <w:replace name="month_pay_times" path="/model/con_contract_bp_info_path/record/@month_pay_times"/>
                <w:replace name="tt_bank_branch_name" path="/model/con_contract_bp_info_path/record/@tt_bank_branch_name"/>
                <w:replace name="email" path="/model/con_contract_bp_info_path/record/@email"/>
                <w:replace name="tenant_send_email" path="/model/con_contract_bp_info_path/record/@tenant_send_email"/>
                <w:replace name="tenant_zip_code" path="/model/con_contract_bp_info_path/record/@tenant_zip_code"/>
                <w:replace name="lease_item_insurance_way" path="/model/con_contract_bp_info_path/record/@lease_item_insurance_way"/>
                <w:replace name="lease_item_insurance_type" path="/model/con_contract_bp_info_path/record/@lease_item_insurance_type"/>
                <w:replace name="lease_item_insurance_party" path="/model/con_contract_bp_info_path/record/@lease_item_insurance_party"/>
                <w:replace name="bp_name_pledge" path="/model/con_contract_bp_info_path/record/@bp_name_pledge"/>
            </w:replaces>
        </w:word-export>
        <s:server-script import="contract_print_path.js"><![CDATA[
        	println($ctx.parameter.file_name);
            print_insert_fnd_atm('doc');
        ]]></s:server-script>
    </a:init-procedure>
    <a:view>
        <script type="text/javascript"><![CDATA[
		    window.close();
		    ]]></script>
    </a:view>
</a:screen>
