<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: LR  
    $Date: 2013-8-15 下午01:35:36  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true">
    <a:init-procedure><![CDATA[
    ]]></a:init-procedure>
    <a:view>
        <a:link id="con712_contract_reschedule_link" url="${/request/@context_path}/modules/cont/CON711/con_contract_reschedule.lview"/>
        <script type="text/javascript"><![CDATA[
            function con712_con_contract_update_close() {
                if (Leaf.isEmpty(${/parameter/@create_flag})) {
                    $('con712_contract_reschedule_update_window').close();
                } else {
                    Leaf.go($('con712_contract_reschedule_link').getUrl());
                }
            }
            
            function con712_con_contract_update_submit() {}
        ]]></script>
        <a:dataSets>
            <a:dataSet id="con712_con_contract_update_query_ds">
                <a:fields>
                    <a:field name="batch_id" defaultValue="${/parameter/@batch_id}" required="true"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="con712_con_contract_update_ds" autoQuery="true" fetchAll="true" model="cont.CON711.con_contract_change_req" queryDataSet="con712_con_contract_update_query_ds">
                <a:fields>
                    <a:field name="reschedule_fee" required="true"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:gridButton click="con712_con_contract_update_close" text="HLS.RETURN"/>
                <a:gridButton bind="con712_con_contract_update_grid" type="save"/>
                <a:gridButton click="con712_con_contract_update_submit" text="HLS.SUBMIT"/>
            </a:screenTopToolbar>
            <a:grid id="con712_con_contract_update_grid" bindTarget="con712_con_contract_update_ds" marginHeight="100" marginWidth="30" navBar="false">
                <a:columns>
                    <a:column name="batch_id" prompt="CON711.BATCH_ID" width="50"/>
                    <a:column name="change_req_number" prompt="CON711.CHANGE_REQ_NUMBER" width="130"/>
                    <a:column name="contract_number" prompt="HLS.CONTRACT_NUMBER" width="120"/>
                    <a:column name="contract_name" prompt="HLS.CONTRACT_NAME" width="200"/>
                    <a:column name="cashflow_item_desc" prompt="HLS.CF_ITEM_DESC" width="100"/>
                    <a:column name="reschedule_fee" align="right" editor="con712_con_contract_update_grid_nf" prompt="HLS.AMOUNT" renderer="Leaf.formatNumber" width="100"/>
                    <a:column name="cf_direction" prompt="CON711.CF_DIRECTION"/>
                    <a:column name="reschedule_start_times" align="right" prompt="CON711.RESCHEDULE_START_TIMES" width="60"/>
                    <a:column name="reschedule_start_date" prompt="CON711.RESCHEDULE_START_DATE" renderer="Leaf.formatDate" width="90"/>
                    <a:column name="reschedule_new_date" prompt="CON711.RESCHEDULE_NEW_DATE" renderer="Leaf.formatDate" width="90"/>
                    <a:column name="reschedule_last_time" prompt="CON711.RESCHEDULE_LAST_TIME" width="60"/>
                    <a:column name="reschedule_total_times" align="right" prompt="CON711.RESCHEDULE_TOTAL_TIMES" width="60"/>
                    <a:column name="reschedule_days" align="right" prompt="CON711.RESCHEDULE_DAYS" width="60"/>
                </a:columns>
                <a:editors>
                    <a:numberField id="con712_con_contract_update_grid_nf" allowNegative="false"/>
                </a:editors>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>
