gld_3c_book_detail.lview 3.89 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: hp  
    $Date: 2014-1-9 上午10:08:56  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure><![CDATA[
    ]]></a:init-procedure>
    <a:view>
        <script type="text/javascript"><![CDATA[
        
        ]]></script>
        <a:dataSets>
            <a:dataSet id="book3cDetailDs" autoQuery="true" fetchAll="true" model="gld.GLD320.gld_3c_book_vl" queryUrl="${/request/@context_path}/autocrud/gld.GLD320.gld_3c_book_vl/query?report_id=${/parameter/@report_id}&amp;account_id=${/parameter/@account_id}"><![CDATA[
            ]]></a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:switch test="/parameter/@functional_currency_flag">
                <a:case value="Y">
                    <a:grid bindTarget="book3cDetailDs" marginHeight="80" marginWidth="30" navBar="true">
                        <a:columns>
                            <a:column name="journal_date" prompt="凭证日期" renderer="Leaf.formatDate" sortable="true" width="80"/>
                            <a:column name="journal_num" prompt="凭证编号" width="110"/>
                            <a:column name="description" autoAdjust="false" prompt="摘要" showTitle="true" width="500"/>
                            <a:column name="currency_desc" prompt="币种" width="70"/>
                            <a:column name="amount_fuc_dr" align="right" prompt="借方" renderer="Leaf.formatMoney" sortable="true" width="110"/>
                            <a:column name="amount_fuc_cr" align="right" prompt="贷方" renderer="Leaf.formatMoney" sortable="true" width="110"/>
                            <a:column name="fuc_dir" align="center" prompt="借/贷" sortable="true" width="40"/>
                            <a:column name="fuc_balance" align="right" prompt="余额" renderer="Leaf.formatMoney" sortable="true" width="110"/>
                        </a:columns>
                    </a:grid>
                </a:case>
                <a:case value="*">
                    <a:grid bindTarget="book3cDetailDs" marginHeight="80" marginWidth="30" navBar="true">
                        <a:columns>
                            <a:column name="journal_date" prompt="凭证日期" renderer="Leaf.formatDate" width="80"/>
                            <a:column name="journal_num" prompt="凭证编号" width="110"/>
                            <a:column name="description" autoAdjust="false" prompt="摘要" showTitle="true" width="250"/>
                            <a:column name="currency_desc" prompt="币种" width="50"/>
                            <a:column name="amount_dr" align="right" prompt="原币借方" renderer="Leaf.formatMoney" sortable="true" width="110"/>
                            <a:column name="amount_cr" align="right" prompt="原币贷方" renderer="Leaf.formatMoney" sortable="true" width="110"/>
                            <a:column name="dir" align="center" prompt="借/贷" width="35"/>
                            <a:column name="balance" align="right" prompt="原币余额" renderer="Leaf.formatMoney" sortable="true" width="110"/>
                            <a:column name="amount_fuc_dr" align="right" prompt="本币借方" renderer="Leaf.formatMoney" sortable="true" width="110"/>
                            <a:column name="amount_fuc_cr" align="right" prompt="本币贷方" renderer="Leaf.formatMoney" sortable="true" width="110"/>
                            <a:column name="fuc_dir" align="center" prompt="借/贷" width="35"/>
                            <a:column name="fuc_balance" align="right" prompt="本币余额" renderer="Leaf.formatMoney" sortable="true" width="110"/>
                        </a:columns>
                    </a:grid>
                </a:case>
            </a:switch>
        </a:screenBody>
        <script type="text/javascript"><![CDATA[
        ]]></script>
    </a:view>
</a:screen>