<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: WANGWEI  
    $Date: 2016-3-3 上午11:20:31  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure/>
    <a:view>
        <script type="text/javascript"><![CDATA[
        	 function sdic130_query(){
        	     $('sdic_contract_calc_interest_ds').query();
        	 }
        	 
        	 function sdic130_export(){
        	     $('sdic_contract_calc_interest_ds_id')._export();
        	 }
		]]></script>
        <a:dataSets>
            <a:dataSet id="for_query_ds" autoCreate="true">
                <a:fields>
                    <a:field name="contract_number"/>
                    <a:field name="contract_name"/>
                    <a:field name="tenant_name"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="sdic_contract_calc_interest_ds" autoPageSize="true" autoQuery="true" model="sdic.SDIC140.sdic_contract_calc_interest" queryDataSet="for_query_ds"><![CDATA[
            ]]></a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="sdic130_query" text="查询"/>
                <a:gridButton click="sdic130_export" text="导出"/>
            </a:screenTopToolbar>
            <a:form column="4" marginWidth="50" title="查询条件">
                <a:textField name="contract_number" bindTarget="for_query_ds" prompt="合同序号"/>
                <a:textField name="contract_name" bindTarget="for_query_ds" prompt="合同名称"/>
                <a:textField name="tenant_name" bindTarget="for_query_ds" prompt="承租人名称" width="380"/>
            </a:form>
            <a:grid id="sdic_contract_calc_interest_ds_id" bindTarget="sdic_contract_calc_interest_ds" marginHeight="200" marginWidth="50" navBar="true">
                <a:columns>
                    <a:column name="contract_number" align="center" prompt="合同序号" width="210"/>
                    <a:column name="contract_name" prompt="合同名称" width="210"/>
                    <a:column name="tenant_name" prompt="承租人名称" width="210"/>
                    <a:column name="due_date" align="center" prompt="计算日" renderer="Leaf.formatDate" width="100"/>
                    <a:column name="times" align="center" prompt="期数"/>
                    <a:column name="calc_interest" align="right" prompt="实际利息收入" renderer="Leaf.formatMoney" width="140"/>
                    <a:column name="interest_balance" align="right" prompt="租赁投资净额余额" renderer="Leaf.formatMoney" width="140"/>
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>
