<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: Clocc  
    $Date: 2015-6-10 下午3:34:58  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:view>
        <script type="text/javascript"><![CDATA[
            var body = $('${/parameter/@winId}').wrap;
            
            function csh514_write_off_reverse_return() {
                $('${/parameter/@winId}').close();
            }
            
            function csh514_formatDate(v) {
                if (v) {
                    return v.parseDate('yyyy-mm-dd hh24:mi:ss').format('yyyy-mm-dd');
                }else{
                    return '';
                }
            }
            
             function resetFunction() {
                $('con_write_off_reverse_detail_query_ds').reset();
            }
        
			function queryFunction(){
				$('con_write_off_reverse_detail_query_ds').query();
				 }	
				 			
        ]]></script>
        <a:dataSets>
            <a:dataSet id="con_write_off_reverse_detail_contract_result_ds" autoPageSize="true" autoQuery="true" model="cont.CON410.con_write_off_reverse_detail_contract_query" queryUrl="${/request/@context_path}/autocrud/cont.CON410.con_write_off_reverse_detail_contract_query/query?contract_id=${/parameter/@contract_id}"><![CDATA[
            ]]></a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:gridButton click="csh514_write_off_reverse_return" text="HLS.RETURN"/>
            </a:screenTopToolbar>
            <a:grid id="con_write_off_reverse_detail_contract_grid_ds" bindTarget="con_write_off_reverse_detail_contract_result_ds" marginHeight="100" marginWidth="50" navBar="true">
                <a:toolBar>
                    <a:button type="excel"/>
                </a:toolBar>
                <a:columns>
                    <a:column name="write_off_type_name" prompt="核销类型"/>
                    <a:column name="bank_slip_num" prompt="单据号"/>
                    <a:column name="write_off_date" renderer="Leaf.formatDate" width="80"/>
                    <a:column name="transaction_date" prompt="交易日期" renderer="Leaf.formatDate" width="80"/>
                    <a:column name="csh_write_off_amount" align="right" renderer="Leaf.formatMoney"/>
                    <a:column name="cf_item_name" prompt="CSH513.CF_TYPE" width="60"/>
                    <a:column name="write_off_due_amount" align="right" renderer="Leaf.formatMoney"/>
                    <a:column name="write_off_principal" align="right" renderer="Leaf.formatMoney"/>
                    <a:column name="write_off_interest" align="right" renderer="Leaf.formatMoney"/>
                    <!-- <a:column name="write_off_penalty" prompt="CSH513.WRITE_OFF_PENALTY"  renderer="Leaf.formatMoney"/> -->
                    <a:column name="due_date" prompt="CSH513.DUE_DATE" renderer="Leaf.formatDate" width="80"/>
                    <a:column name="times" align="right" prompt="期数"/>
                    <a:column name="contract_number" prompt="HLS.CONTRACT_NUMBER" width="110"/>
                    <a:column name="project_name" prompt="PRJ501.PRJ_PROJECT.PROJECT_NAME" width="180"/>
                    <a:column name="bp_name" prompt="CSH513.BP_TENANT" width="180"/>
                    <a:column name="reversed_flag_desc" prompt="反冲标志" width="80"/>
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>
