<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhangyu 
    $Date: 2016-3-15 下午14:21:22  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="trye">
    <a:init-procedure/>
    <a:view>
        <script type="text/javascript"><![CDATA[
            function rpt3020_report_reset() {
                $('rpt3020_report_query_ds').reset();
            }
            
            function rpt3020_report_query() {
                $('rpt3020_report_result_ds').query();
            }
        ]]></script>
        <a:dataSets>
            <a:dataSet id="rpt3020_report_query_ds"/>
            <a:dataSet id="rpt3020_report_result_ds" autoPageSize="true" autoQuery="true" model="rpt.RPT3020.rpt3020_report_query" queryDataSet="rpt3020_report_query_ds"/>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="rpt3020_report_reset" text="重置"/>
                <a:gridButton click="rpt3020_report_query" text="查询"/>
            </a:screenTopToolbar>
            <a:form column="4" labelWidth="180" marginWidth="100" title="查询条件">
                <a:textField name="virtual_con_number" bindTarget="rpt3020_report_query_ds" prompt="合同号"/>
                <a:textField name="bp_name" bindTarget="rpt3020_report_query_ds" prompt="企业名称"/>
                <a:numberField name="finance_amount_from" bindTarget="rpt3020_report_query_ds" prompt="合同金额从"/>
                <a:numberField name="finance_amount_to" bindTarget="rpt3020_report_query_ds" prompt="合同金额到"/>
                <a:numberField name="payment_amount_sum_from" bindTarget="rpt3020_report_query_ds" prompt="已放款金额从"/>
                <a:numberField name="payment_amount_sum_to" bindTarget="rpt3020_report_query_ds" prompt="已放款金额到"/>
                <a:numberField name="repaymrnt_amount_sum_from" bindTarget="rpt3020_report_query_ds" prompt="累计还款金额从"/>
                <a:numberField name="repaymrnt_amount_sum_to" bindTarget="rpt3020_report_query_ds" prompt="累计还款金额到"/>
                <a:numberField name="billing_amount_sum_from" bindTarget="rpt3020_report_query_ds" prompt="本金开票金额从"/>
                <a:numberField name="billing_amount_sum_to" bindTarget="rpt3020_report_query_ds" prompt="本金开票金额到"/>
            </a:form>
            <a:grid id="rpt3020_report_grid_id" bindTarget="rpt3020_report_result_ds" marginHeight="200" marginWidth="100" navBar="true" showRowNumber="true">
                <a:columns>
                    <a:column name="virtual_con_number" lock="true" prompt="合同号" width="120"/>
                    <a:column name="virtual_con_name" lock="true" prompt="合同名称" width="200"/>
                    <a:column name="bp_name" lock="true" prompt="企业名称" width="180"/>
                    <a:column name="finance_amount" align="right" prompt="合同金额" renderer="Leaf.formatMoney" width="120"/>
                    <a:column name="payment_amount_sum" align="right" prompt="已放款金额" renderer="Leaf.formatMoney" width="120"/>
                    <a:column name="received_principal_total" align="right" prompt="累计偿还本金" renderer="Leaf.formatMoney" width="120"/>
                    <a:column name="billing_amount_sum" align="right" prompt="本金开票金额" renderer="Leaf.formatMoney" width="120"/>
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>