<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: LR  
    $Date: 2013-8-13 上午10:30:25  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
    <a:view>
        <script type="text/javascript"><![CDATA[
    	function con_contract_split_detail_return(){
    	    $('con_contract_split_detail').close();
    	    $('con301_contract_result_ds').query();
    	}  
    
    	    
        ]]></script>
        <a:dataSets>
            <a:dataSet id="con_contract_split_query_ds" autoQuery="true" model="cont.CON303.con_contract_split_detail" queryUrl="${/request/@context_path}/autocrud/cont.CON303.con_contract_split_detail/query?contract_id=${/parameter/@contract_id}">
                <a:fields>
                    <a:field name="contract_number" readOnly="true"/>
                    <a:field name="contract_name" readOnly="true"/>
                    <a:field name="lease_item_amount" readOnly="true"/>
                    <a:field name="finance_amount" readOnly="true"/>
                    <a:field name="down_payment" readOnly="true"/>
                    <a:field name="lease_charge" readOnly="true"/>
                    <a:field name="deposit" readOnly="true"/>
                    <a:field name="residual_ratio" readOnly="true"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="con_contract_split_result_ds">
                <a:fields>
                    <a:field name="contract_num"/>
                    <a:field name="split_scale"/>
                    <a:field name="lease_item_amount"/>
                    <a:field name="finance_amount"/>
                    <a:field name="down_payment"/>
                    <a:field name="lease_charge"/>
                    <a:field name="deposit"/>
                    <a:field name="residual_ratio"/>
                    <a:field name="contract_quote"/>
                    <a:field name="description"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="" text="按比例算金额"/>
                <a:gridButton click="" text="按金额算比例"/>
                <a:gridButton click="" text="执行拆分"/>
                <a:gridButton click="con_contract_split_detail_return" text="返回"/>
            </a:screenTopToolbar>
            <a:form column="2">
                <a:vBox>
                    <a:hBox labelWidth="130">
                        <a:textField name="contract_number" bindTarget="con_contract_split_query_ds" prompt="合同编号"/>
                    </a:hBox>
                    <a:hBox labelWidth="130">
                        <a:textField name="lease_item_amount" bindTarget="con_contract_split_query_ds" prompt="租赁物总价款"/>
                    </a:hBox>
                    <a:hBox labelWidth="130">
                        <a:textField name="down_payment" bindTarget="con_contract_split_query_ds" prompt="首付款"/>
                    </a:hBox>
                    <a:hBox labelWidth="130">
                        <a:textField name="deposit" bindTarget="con_contract_split_query_ds" prompt="保证金"/>
                    </a:hBox>
                </a:vBox>
                <a:vBox>
                    <a:hBox labelWidth="130">
                        <a:textField name="contract_name" bindTarget="con_contract_split_query_ds" prompt="合同名称"/>
                    </a:hBox>
                    <a:hBox labelWidth="130">
                        <a:textField name="finance_amount" bindTarget="con_contract_split_query_ds" prompt="融资额"/>
                    </a:hBox>
                    <a:hBox labelWidth="130">
                        <a:textField name="lease_charge" bindTarget="con_contract_split_query_ds" prompt="手续费"/>
                    </a:hBox>
                    <a:hBox labelWidth="130">
                        <a:textField name="residual_ratio" bindTarget="con_contract_split_query_ds" prompt="留购价"/>
                    </a:hBox>
                </a:vBox>
            </a:form>
            <a:grid id="con_contract_split_grid_ds" bindTarget="con_contract_split_result_ds" marginHeight="265" marginWidth="30" navBar="true">
                <a:toolBar>
                    <a:button type="add"/>
                    <a:button type="delete"/>
                </a:toolBar>
                <a:columns>
                    <a:column name="contract_num" editor="grid_rid_textField_id" prompt="合同序号" width="120"/>
                    <a:column name="split_scale" editor="grid_rid_textField_id" prompt="拆分比例" width="120"/>
                    <a:column name="lease_item_amount" editor="grid_rid_textField_id" prompt="租赁物总价款" width="120"/>
                    <a:column name="finance_amount" editor="grid_rid_textField_id" prompt="融资额" width="70"/>
                    <a:column name="down_payment" editor="grid_rid_textField_id" prompt="首付款" width="120"/>
                    <a:column name="lease_charge" editor="grid_rid_textField_id" prompt="手续费" width="70"/>
                    <a:column name="deposit" editor="grid_rid_textField_id" prompt="保证金" width="120"/>
                    <a:column name="residual_ratio" editor="grid_rid_textField_id" prompt="留购价" width="120"/>
                    <a:column name="contract_quote" prompt="报价" width="70"/>
                    <a:column name="description" editor="grid_rid_textField_id" prompt="备注" width="120"/>
                </a:columns>
                <a:editors>
                    <a:textField id="grid_rid_textField_id"/>
                </a:editors>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>