prj_cdd_item_query.lview 2.82 KB
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qwm  
    $Date: 2013-12-21 下午4:00:09  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
    <a:init-procedure>
        <a:model-query fetchAll="true" model="basic.hls_sys_time_default_value" rootPath="default_value"/>
    </a:init-procedure>
    <a:view>
        <script type="text/javascript"><![CDATA[
            function cdd_item_return() {
                $('${/parameter/@winId}').close();
            }
           
        ]]></script>
        <a:dataSets>
            <a:dataSet id="csh_transaction_receipt_write_off_reverse_detail_head_ds" autoCreate="true">
                <a:fields>
                    <a:field name="reversed_date" required="true"/>
                    <a:field name="reversed_period_name" readOnly="true" required="true"/>
                    <a:field name="description"/>
                </a:fields>
                <a:events>
                    <a:event name="update" handler="on_write_off_reverse_detail_update"/>
                    <a:event name="add" handler="on_write_off_reverse_detail_add"/>
                </a:events>
            </a:dataSet>
            <a:dataSet id="prj_cdd_item_result_ds" autoQuery="true" model="csh.CSH514.csh_write_off" pageSize="15" queryUrl="${/request/@context_path}/autocrud/csh.CSH514.csh_write_off/query?csh_transaction_id=${/parameter/@transaction_id}&amp;reversed_flag=N" selectable="true"/>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:gridButton click="cdd_item_return" text="HLS.RETURN"/>
            </a:screenTopToolbar>
            <a:grid id="prj_cdd_item_grid_ds" bindTarget="prj_cdd_item_result_ds" marginHeight="170" marginWidth="50" navBar="true">
                <a:columns>
                    <a:column name="write_off_type_name"/>
                    <a:column name="write_off_date" renderer="Leaf.formatDate"/>
                    <a:column name="csh_write_off_amount" renderer="Leaf.formatMoney"/>
                    <a:column name="cf_type_name" prompt="CSH513.CF_TYPE"/>
                    <a:column name="write_off_due_amount" renderer="Leaf.formatMoney"/>
                    <a:column name="write_off_principal" renderer="Leaf.formatMoney"/>
                    <a:column name="write_off_interest" renderer="Leaf.formatMoney"/>
                    <a:column name="due_date" prompt="CSH513.DUE_DATE" renderer="csh514_formatDate"/>
                    <a:column name="contract_number" prompt="HLS.CONTRACT_NUMBER"/>
                    <a:column name="project_name" prompt="PRJ501.PRJ_PROJECT.PROJECT_NAME"/>
                    <a:column name="bp_name" prompt="CSH513.BP_TENANT"/>
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>