<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: zhangxing5129  
    $Date: 2013-9-9 上午09:50:26  
    $Revision: 1.0  
    $Purpose: 已收罚息
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:view>
        <script type="text/javascript"><![CDATA[
			function close()
			{
				$('con_contract_balance_fine_win').close();
			}
		]]></script>
        <a:dataSets>
            <a:dataSet id="con_contract_balance_fine_header_ds" autoQuery="true" model="cont.CON305.con_contract_balance_fine_header" queryUrl="${/request/@context_path}/autocrud/cont.CON305.con_contract_balance_fine_header/query?cashflow_id=${/parameter/@cashflow_id}">
                <a:fields>
                    <a:field name="contract_number" readOnly="true"/>
                    <a:field name="times" readOnly="true"/>
                    <a:field name="received_fine" readOnly="true"/>
                    <a:field name="due_date" readOnly="true"/>
                    <a:field name="due_amount" readOnly="true"/>
                    <a:field name="received_amount" readOnly="true"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="con_contract_balance_fine_line_ds" autoQuery="true" model="cont.CON305.con_contract_balance_fine_line" pageSize="8" queryUrl="${/request/@context_path}/autocrud/cont.CON305.con_contract_balance_fine_line/query?cashflow_id=${/parameter/@cashflow_id}"/>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:gridButton click="close" text="HLS.CLOSE"/>
            </a:screenTopToolbar>
            <a:form column="4" labelWidth="100" title="HLS.QUERY_TITLE">
                <a:textField name="contract_number" bindTarget="con_contract_balance_fine_header_ds" prompt="HLS.CONTRACT_NUMBER"/>
                <a:textField name="times" bindTarget="con_contract_balance_fine_header_ds" prompt="CON305.TIMES"/>
                <a:numberField name="received_fine" allowDecimals="true" allowFormat="true" bindTarget="con_contract_balance_fine_header_ds" prompt="CON305.RECEIVED_FINE"/>
                <a:datePicker name="due_date" bindTarget="con_contract_balance_fine_header_ds" prompt="CON305.DUE_DATE"/>
            </a:form>
            <a:grid bindTarget="con_contract_balance_fine_line_ds" height="400" navBar="true">
                <a:columns>
                    <a:column name="due_date" prompt="CON305.OVERDUE_BOOK_DATE" renderer="Leaf.formatDate"/>
                    <a:column name="transaction_date" prompt="CON305.WRITE_OFF_DATE" renderer="Leaf.formatDate"/>
                    <a:column name="overdue_days" align="right" prompt="CON305.OVERDUR_DAYS"/>
                    <a:column name="penalty_rate" align="right" prompt="CON305.PENALTY_RATE"/>
                    <a:column name="due_amount" align="right" prompt="CON305.DUE_AMOUNT_FINE" renderer="Leaf.formatMoney"/>
                    <a:column name="received_amount" align="right" prompt="CON305.RECEIVED_FINE" renderer="Leaf.formatMoney"/>
                    <a:column name="write_off_due_amount" align="right" prompt="CON305.WRITE_OFF_DUE_AMOUNT" renderer="Leaf.formatMoney"/>
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>
