<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: chenlingfeng  
    $Date: 2014-12-17 下午1:24:02  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:c="leaf.application.action" xmlns:p="uncertain.proc" xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure>
        <a:model-query fetchAll="true" model="prj.PRJ600.prj_project_lease_scheme" rootPath="prj_lease_scheme"/>
    </a:init-procedure>
    <a:view>
        <a:link id="${/parameter/@project_id}prj_hls_fin_calculator_readonly_link_id" url="${/request/@context_path}/modules/hls/HLS500/hls_fin_calculator_readonly.lview"/>
        <script type="text/javascript"><![CDATA[
          function quote_link(document_id, calc_session_id) {
                url = $('${/parameter/@project_id}prj_hls_fin_calculator_readonly_link_id').getUrl();
                new Leaf.Window({
                    id: 'prj_project_wfl_hls_fin_calc_readonly_link_winid',
                    params: {
                        document_id: document_id,
                        document_category: 'PROJECT',
                        maintain_type: 'READONLY',
                        calc_session_id: calc_session_id,
                        winId: 'prj_project_wfl_hls_fin_calc_readonly_link_winid',
                        global_flag: 'Y',
                        calc_type: 'CLASSIC_CALCULATOR'
                    },
                    url: url,
                    fullScreen: true,
                    draggable: true
                });
            }
     ]]></script>
        <style><![CDATA[
        	.prompt{
        	    background-color:#E6E6FA;
        	    width:200px;
        	    text-align:right;
        	}
        	.valuefield{
        	    width:200px;
        	    text-align:right;
        	}
        	.prompt_calc{
        	    width:187.5px;
        	    text-align:right;
        	    background-color:#E6E6FA;
        	}
        	.valuefield_calc{
        	    width:157.5px;
        	    text-align:right;
        	}
        	.moneyfield{
        	    width:200px;
        	    text-align:right;
        	}
        	.trheight{
        	    height:25px;
        	}
        ]]></style>
        <a:screenBody>
            <a:tabPanel height="250" marginWidth="50">
                <a:tabs>
                    <a:placeHolder id="lease_scheme_ph"/>
                </a:tabs>
            </a:tabPanel>
        </a:screenBody>
    </a:view>
    <a:view-config>
        <c:create-config targetId="lease_scheme_ph">
            <p:loop source="/model/prj_lease_scheme">
                <c:process-config>
                    <a:tab height="200" prompt="方案${@rownum}" width="120">
                        <a:form marginWidth="80" title=" ">
                            <table border="1" bordercolor="#a0c6e5" style="border-collapse:collapse;">
                                <tr class="trheight">
                                    <td class="prompt"><![CDATA[项目总价款:]]></td>
                                    <td class="moneyfield"><![CDATA[${@lease_item_amount}]]></td>
                                    <td class="prompt"><![CDATA[融资额:]]></td>
                                    <td class="moneyfield"><![CDATA[${@finance_amount}]]></td>
                                    <td class="prompt"><![CDATA[首付比例:]]></td>
                                    <td class="valuefield"><![CDATA[${@down_payment_ratio}]]></td>
                                    <td class="prompt"><![CDATA[首付金额:]]></td>
                                    <td class="valuefield"><![CDATA[${@down_payment}]]></td>
                                </tr>
                                <tr class="trheight">
                                    <td class="prompt"><![CDATA[还款期数:]]></td>
                                    <td class="valuefield"><![CDATA[${@lease_times}]]></td>
                                    <td class="prompt"><![CDATA[支付频率:]]></td>
                                    <td class="valuefield"><![CDATA[${@annual_pay_times_n}]]></td>
                                    <td class="prompt"><![CDATA[租赁期限(年):]]></td>
                                    <td class="valuefield"><![CDATA[${@lease_term}]]></td>
                                    <td class="prompt"><![CDATA[租赁年利率:]]></td>
                                    <td class="moneyfield"><![CDATA[${@int_rate}]]></td>
                                </tr>
                                <tr class="trheight">
                                    <td class="prompt"><![CDATA[保证金比例:]]></td>
                                    <td class="moneyfield"><![CDATA[${@deposit_ratio}]]></td>
                                    <td class="prompt"><![CDATA[保证金:]]></td>
                                    <td class="moneyfield"><![CDATA[${@deposit}]]></td>
                                    <td class="prompt"><![CDATA[手续费比例:]]></td>
                                    <td class="moneyfield"><![CDATA[${@lease_charge_ratio}]]></td>
                                    <td class="prompt"><![CDATA[手续费:]]></td>
                                    <td class="moneyfield"><![CDATA[${@lease_charge}]]></td>
                                </tr>
                                <tr class="trheight">
                                    <td class="prompt"><![CDATA[优惠留购价款比例:]]></td>
                                    <td class="moneyfield"><![CDATA[${@residual_ratio}]]></td>
                                    <td class="prompt"><![CDATA[优惠留购价款:]]></td>
                                    <td class="moneyfield"><![CDATA[${@residual_value}]]></td>
                                    <td class="prompt"><![CDATA[租金总额:]]></td>
                                    <td class="moneyfield"><![CDATA[${@contract_amount}]]></td>
                                    <td class="prompt"><![CDATA[咨询服务费:]]></td>
                                    <td class="moneyfield"><![CDATA[${@hd_user_col_n03}]]></td>
                                </tr>
                                <tr class="trheight">
                                    <td class="prompt"><![CDATA[宽限期数:]]></td>
                                    <td class="moneyfield"><![CDATA[${@hd_user_col_n20}]]></td>
                                    <td class="prompt"><![CDATA[概算IRR:]]></td>
                                    <td class="moneyfield"><![CDATA[${@irr}]]></td>
                                    <td class="prompt"><![CDATA[支付类型:]]></td>
                                    <td class="valuefield"><![CDATA[${@pay_type_n}]]></td>
                                    <td class="prompt"><![CDATA[更多:]]></td>
                                    <td class="valuefield">
                                        <a href="javascript:quote_link(${@document_id},${@calc_session_id})">
                                            <font color="red"><![CDATA[点击查看明细]]></font>
                                        </a>
                                    </td>
                                </tr>
                            </table>
                        </a:form>
                    </a:tab>
                </c:process-config>
            </p:loop>
        </c:create-config>
    </a:view-config>
</a:screen>