<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qianming  
    $Date: 2015-7-27 上午11:52:33  
    $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" trace="true">
    <a:init-procedure>
        <a:model-query defaultWhereClause="t1.project_id=${/parameter/@project_id}" fetchAll="true" model="prj.PRJ501N.bgfl_project_report_v" rootPath="project_report_path"/>
        <a:model-query defaultWhereClause="t1.project_id=${/parameter/@project_id}" fetchAll="true" model="prj.PRJ501N.bgfl_project_report_t_stock_v" rootPath="prj_bp_stock_structure_path"/>
        <a:model-query defaultWhereClause="t1.project_id=${/parameter/@project_id}" fetchAll="true" model="prj.PRJ501N.bgfl_project_report_tc_stock_v" rootPath="prj_bpc_stock_structure_path"/>
        <a:model-query defaultWhereClause="t1.project_id=${/parameter/@project_id}" fetchAll="true" model="prj.PRJ501N.bgfl_loan_plan_ln_v" rootPath="bgfl_loan_plan_ln_path"/>
        <a:model-query defaultWhereClause="t1.project_id=${/parameter/@project_id}" fetchAll="true" model="prj.PRJ501N.prj_project_bp_guarantor_v" rootPath="prj_bp_guarantor_path"/>
        <a:model-query defaultWhereClause="t1.project_id=${/parameter/@project_id}" fetchAll="true" model="prj.PRJ501N.bgfl_project_report_verder_v" rootPath="prj_bp_report_verder_path"/>
        <a:model-query defaultWhereClause="t1.project_id=${/parameter/@project_id}" fetchAll="true" model="prj.PRJ501N.bgfl_project_report_sale_v" rootPath="prj_bp_report_sale_path"/>
        <a:model-query defaultWhereClause="t1.project_id=${/parameter/@project_id}" fetchAll="true" model="prj.PRJ501N.bgfl_project_report_quota_v" rootPath="prj_report_quotation_path"/>
        <a:model-query defaultWhereClause="t1.project_id=${/parameter/@project_id}" fetchAll="true" model="prj.PRJ501N.prj_project_lease_item_lv" rootPath="prj_report_lease_item_path"/>
        <a:model-query defaultWhereClause="t1.project_id=${/parameter/@project_id} and t1.bp_category = &apos;GUARANTOR&apos; and t1.bp_class= &apos;ORG&apos; " fetchAll="true" model="prj.PRJ501N.bgfl_project_report_guta_v" rootPath="prj_bp_report_path"/>
        <a:model-query defaultWhereClause="t1.project_id=${/parameter/@project_id} and t1.bp_category = &apos;GUARANTOR&apos; and t1.bp_class= &apos;NP&apos;" fetchAll="true" model="prj.PRJ501N.bgfl_project_report_guta_v" rootPath="prj_bp_report_np_path"/>
        <a:model-query defaultWhereClause="t1.project_id=${/parameter/@project_id}" fetchAll="true" model="prj.PRJ501N.prj_project_mortgage_lv" rootPath="prj_report_mortgage_path"/>
        <a:model-query defaultWhereClause="t1.project_id=${/parameter/@project_id}" fetchAll="true" model="prj.PRJ501N.prj_bp_org_stru_executives_v" rootPath="prj_bp_executive_path"/>
        <a:model-query defaultWhereClause="t1.data_type = &apos;STUDY&apos;" fetchAll="true" model="prj.PRJ501N.bgfl_prj_bp_org_executive_ln_v" rootPath="prj_bp_executive_ln_s_path"/>
        <a:model-query defaultWhereClause="t1.data_type = &apos;POSITION&apos;" fetchAll="true" model="prj.PRJ501N.bgfl_prj_bp_org_executive_ln_v" rootPath="prj_bp_executive_ln_p_path"/>
        <a:model-query defaultWhereClause="t1.project_id=${/parameter/@project_id}" fetchAll="true" model="prj.PRJ501N.prj_bp_stock_structure_v" rootPath="prj_bp_stock_path"/>
        <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="project_name" path="/model/project_report_path/record/@project_name"/>
                <w:replace name="project_number" path="/model/project_report_path/record/@project_number"/>
                <w:replace name="bp_name" path="/model/project_report_path/record/@bp_name"/>
                <w:replace name="lease_organization_n" path="/model/project_report_path/record/@lease_organization_n"/>
                <w:replace name="business_type_n" path="/model/project_report_path/record/@business_type_n"/>
                <w:replace name="project_source_n" path="/model/project_report_path/record/@project_source_n"/>
                <w:replace name="unit_name" path="/model/project_report_path/record/@unit_name"/>
                <w:replace name="prj_compliance_degree" path="/model/project_report_path/record/@prj_compliance_degree"/>
                <w:replace name="prj_key_point" path="/model/project_report_path/record/@prj_key_point"/>
                <w:replace name="prj_lease_scheme" path="/model/project_report_path/record/@prj_lease_scheme"/>
                <w:replace name="project_introduction" path="/model/project_report_path/record/@project_introduction"/>
                <w:replace name="setup_date" path="/model/project_report_path/record/@setup_date"/>
                <w:replace name="company_nature_n" path="/model/project_report_path/record/@company_nature_n"/>
                <w:replace name="industry" path="/model/project_report_path/record/@industry"/>
                <w:replace name="group_membership" path="/model/project_report_path/record/@group_membership"/>
                <w:replace name="legal_person" path="/model/project_report_path/record/@legal_person"/>
                <w:replace name="workers_number" path="/model/project_report_path/record/@workers_number"/>
                <w:replace name="address" path="/model/project_report_path/record/@address"/>
                <w:replace name="company_type_n" path="/model/project_report_path/record/@company_type_n"/>
                <w:replace name="registered_capital" path="/model/project_report_path/record/@registered_capital"/>
                <w:replace name="paid_up_capital" path="/model/project_report_path/record/@paid_up_capital"/>
                <w:replace name="bussiness_scope" path="/model/project_report_path/record/@bussiness_scope"/>
                <w:replace name="primary_business" path="/model/project_report_path/record/@primary_business"/>
                <w:replace name="description_stock_stru" path="/model/project_report_path/record/@description_stock_stru"/>
                <w:replace name="investment_situation" path="/model/project_report_path/record/@investment_situation"/>
                <w:replace name="primary_business_p" path="/model/project_report_path/record/@primary_business_p"/>
                <w:replace name="industry_status" path="/model/project_report_path/record/@industry_status"/>
                <w:replace name="product_supply_demand" path="/model/project_report_path/record/@product_supply_demand"/>
                <w:replace name="market_competition_analysis" path="/model/project_report_path/record/@market_competition_analysis"/>
                <w:replace name="profit_model" path="/model/project_report_path/record/@profit_model"/>
                <w:replace name="t_environment_condition" path="/model/project_report_path/record/@t_environment_condition"/>
                <w:replace name="development_resource" path="/model/project_report_path/record/@development_resource"/>
                <w:replace name="research_development_ability" path="/model/project_report_path/record/@research_development_ability"/>
                <w:replace name="investment_plan_progress" path="/model/project_report_path/record/@investment_plan_progress"/>
                <w:replace name="actual_financing" path="/model/project_report_path/record/@actual_financing"/>
                <w:replace name="requirement_purpose_analysis" path="/model/project_report_path/record/@requirement_purpose_analysis"/>
                <w:replace name="risk_reveal" path="/model/project_report_path/record/@risk_reveal"/>
                <w:replace name="risk_operating" path="/model/project_report_path/record/@risk_operating"/>
                <w:replace name="risk_control_estimate" path="/model/project_report_path/record/@risk_control_estimate"/>
                <w:replace name="financial_status" path="/model/project_report_path/record/@financial_status"/>
                <w:replace name="report_forms_discrepancy" path="/model/project_report_path/record/@report_forms_discrepancy"/>
                <w:replace name="forms_check_status" path="/model/project_report_path/record/@forms_check_status"/>
                <w:replace name="favorable_factor" path="/model/project_report_path/record/@favorable_factor"/>
                <w:replace name="negative_factor" path="/model/project_report_path/record/@negative_factor"/>
                <w:replace name="summarize" path="/model/project_report_path/record/@summarize"/>
                <w:replace name="payment_method_code" path="/model/project_report_path/record/@payment_method_code"/>
                <w:replace name="payment_method_code_n" path="/model/project_report_path/record/@payment_method_code_n"/>
                <w:replace name="loan_times" path="/model/project_report_path/record/@loan_times"/>
                <w:replace name="lease_item_insurance_way_n" path="/model/project_report_path/record/@lease_item_insurance_way_n"/>
                <w:replace name="risk_control_plan" path="/model/project_report_path/record/@risk_control_plan"/>
                <w:replace name="finance_amount" path="/model/prj_report_quotation_path/record/@finance_amount"/>
                <w:replace name="down_payment" path="/model/prj_report_quotation_path/record/@down_payment"/>
                <w:replace name="lease_mgt_fee" path="/model/prj_report_quotation_path/record/@lease_mgt_fee"/>
                <w:replace name="int_rate" path="/model/prj_report_quotation_path/record/@int_rate"/>
                <w:replace name="deposit" path="/model/prj_report_quotation_path/record/@deposit"/>
                <w:replace name="other_fee2" path="/model/prj_report_quotation_path/record/@other_fee2"/>
                <w:replace name="lease_term" path="/model/prj_report_quotation_path/record/@lease_term"/>
                <w:replace name="lease_charge" path="/model/prj_report_quotation_path/record/@lease_charge"/>
                <w:replace name="annual_pay_times" path="/model/prj_report_quotation_path/record/@annual_pay_times"/>
                <w:replace name="residual_value" path="/model/prj_report_quotation_path/record/@residual_value"/>
                <w:replace name="deposit_deduction" path="/model/prj_report_quotation_path/record/@deposit_deduction"/>
                <w:replace name="hd_user_col_n03" path="/model/prj_report_quotation_path/record/@hd_user_col_n03"/>
                <w:replace name="price_list" path="/model/prj_report_quotation_path/record/@price_list"/>
                <w:replace name="irr" path="/model/prj_report_quotation_path/record/@irr"/>
                <w:replace name="xirr" path="/model/prj_report_quotation_path/record/@xirr"/>
                <w:replace name="lease_item_short_name" path="/model/project_report_path/record/@lease_item_short_name"/>
            </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>