hls_journal_query.lview 4.98 KB
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gaoyang  
    $Date: 2013-12-3 上午11:18:39  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" trace="true">
    <a:view>
        <a:link id="welcome_link_id" url="${/request/@context_path}/welcome.lview"/>
        <a:link id="gh_nc_je_log_link" url="${/request/@context_path}/modules/nc/NC100/hls_nc_bp_log_query.lview"/>
        <script type="text/javascript"><![CDATA[
            //查询按钮
            
            function hls301_journal_query() {
                $('hls_journal_header_result_ds').query();
            }
            //重置按钮
            
            function hls301_journal_reset() {
                $('hls_journal_header_query').reset();
            }
            //退出按钮
            
            function hls301_journal_exit() {
                location.href = $('welcome_link_id').getUrl();
                parent.shMenu('show');
            }
            function log_renderer(value, record, name) {
            
                var result_id = record.get('result_id');
                return '<a href="javascript:openLogPage(\'' + result_id + '\')";>查看</a>';
            
            }
            
            function openLogPage(result_id) {
                new Leaf.Window({
                    id: 'hls_nc_bp_log_window',
                    url: $('gh_nc_je_log_link').getUrl() + '?result_id=' + result_id,
                    title: '日志信息',
                    height: 450,
                    width: 700
                });
            }
        ]]></script>
        <a:dataSets>
            <a:dataSet id="hls_journal_header_query">
                <a:fields>
                    <a:field name="journal_num"/>
                    <a:field name="js_company_short_name"/>
                    <a:field name="period_name"/>
                    <a:field name="total_amount_dr"/>
                    <a:field name="je_transaction_desc"/>
                    <a:field name="description"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="hls_journal_header_result_ds" autoPageSize="true" autoQuery="true" model="nc.NC100.gh_nc_je_query" queryDataSet="hls_journal_header_query" selectable="true"><![CDATA[
            ]]></a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <!-- <a:toolbarButton click="hls301_journal_exit" text="HLS.EXIT"/> -->
                <a:toolbarButton click="hls301_journal_reset" text="HLS.RESET"/>
                <a:toolbarButton click="hls301_journal_query" text="HLS.QUERY"/>
                <!-- <a:toolbarButton click="hls301_journal_post" text="HLS530.JOURNAL_POST_GL"/> -->
            </a:screenTopToolbar>
            <a:form column="3" labelSeparator=" " labelWidth="100" marginWidth="50" title="HAP_QUERY_TITLE">
                <a:textField name="journal_num" bindTarget="hls_journal_header_query" prompt="HLS530.JOURNAL_NUM"/>
                <a:textField name="js_company_short_name" bindTarget="hls_journal_header_query" prompt="HLS530.JOURNAL_COMPANY"/>
                <a:textField name="period_name" bindTarget="hls_journal_header_query" prompt="HLS530.PERIOD_NAME"/>
                <a:textField name="total_amount_dr" bindTarget="hls_journal_header_query" prompt="HLS.CURRENCY"/>
                <a:textField name="je_transaction_desc" bindTarget="hls_journal_header_query" prompt="HLS530.JE_TRANSACTION"/>
                <a:textField name="description" bindTarget="hls_journal_header_query" prompt="HLS530.JOURNAL_DESCRIPTION"/>
            </a:form>
            <a:grid id="hls_journal_headers_grid" bindTarget="hls_journal_header_result_ds" marginHeight="300" marginWidth="50" navBar="true">
                <a:columns>
                    <a:column name="journal_num" lock="true" prompt="HLS530.JOURNAL_NUM" width="120"/>
                    <a:column name="js_company_short_name" prompt="HLS530.JOURNAL_COMPANY" width="90"/>
                    <a:column name="period_name" align="center" prompt="HLS530.PERIOD_NAME" width="80"/>
                    <a:column name="total_amount_dr" align="right" prompt="HLS530.TOTAL_AMOUNT_DR" renderer="Leaf.formatMoney" width="120"/>
                    <a:column name="currency_desc" align="center" prompt="HLS.CURRENCY" width="80"/>
                    <a:column name="total_amount_fuc_dr" align="right" prompt="HLS530.TOTAL_AMOUNT_FUC_DR" renderer="Leaf.formatMoney" width="120"/>
                    <a:column name="je_transaction_desc" prompt="HLS530.JE_TRANSACTION" width="150"/>
                    <a:column name="description" prompt="HLS530.JOURNAL_DESCRIPTION" width="220"/>
                    <a:column name="time" prompt="传输时间" width="130"/>
                    <a:column name="result_state_n" prompt="状态" width="60"/>
                    <a:column name="resultdescription" prompt="日志" renderer="log_renderer" width="60"/>
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>