gh_nc_csh_payment.lview 4.4 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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: qwm  
    $Date: 2013-8-30 上午11:11:35  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:view>
        <a:link id="gh_nc_csh_payment_log_link" url="${/request/@context_path}/modules/nc/NC100/hls_nc_bp_log_query.lview"/>
        <script type="text/javascript"><![CDATA[
            function csh502_payment_query() {
                $('csh_payment_req_queryDs').query();
            }
            
            function csh502_payment_reset() {
                $('csh_payment_req_query_ds').reset();
            }
            
            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_csh_payment_log_link').getUrl() + '?result_id=' + result_id,
                    title: '日志信息',
                    height: 450,
                    width: 700
                });
            }
        ]]></script>
        <a:dataSets>
            <a:dataSet id="csh_payment_req_query_ds">
                <a:fields>
                    <a:field name="payment_req_number"/>
                    <a:field name="contract_number"/>
                    <a:field name="bp_name"/>
                    <a:field name="bp_num"/>
                    <a:field name="bp_bank_account_name"/>
                    <a:field name="bank_full_name"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="csh_payment_req_queryDs" autoPageSize="true" autoQuery="true" model="nc.NC100.csh_payment_query" queryDataSet="csh_payment_req_query_ds" selectable="true"><![CDATA[
            ]]></a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:gridButton click="csh502_payment_query" text="HAP_QUERY"/>
                <a:gridButton click="csh502_payment_reset" text="HLS.RESET"/>
            </a:screenTopToolbar>
            <a:form column="3" labelWidth="100" marginWidth="50" title="CSH502.CSH_PAYMENT_REQ_QUERY">
                <a:textField name="payment_req_number" bindTarget="csh_payment_req_query_ds" prompt="CSH502.CSH_REQ_NO"/>
                <a:textField name="contract_number" bindTarget="csh_payment_req_query_ds" prompt="合同编号"/>
                <a:textField name="bp_name" bindTarget="csh_payment_req_query_ds" prompt="CSH501.CSH_PAYMENT_OBJ_NAME"/>
                <a:textField name="bp_num" bindTarget="csh_payment_req_query_ds" prompt="对象账号"/>
                <a:textField name="bp_bank_account_name" bindTarget="csh_payment_req_query_ds" prompt="账户名称"/>
                <a:textField name="bank_full_name" bindTarget="csh_payment_req_query_ds" prompt="银行"/>
            </a:form>
            <a:grid id="csh_payment_req_grid_ds" bindTarget="csh_payment_req_queryDs" marginHeight="300" marginWidth="50" navBar="true">
                <a:columns>
                    <a:column name="payment_req_number" lock="true" prompt="CSH502.CSH_REQ_NO" width="140"/>
                    <a:column name="req_date" align="center" prompt="CSH502.CSH_REQ_DATE" renderer="Leaf.formatDate" width="80"/>
                    <a:column name="contract_number" prompt="合同编号" width="140"/>
                    <a:column name="bp_name" prompt="CSH501.CSH_PAYMENT_OBJ_NAME" width="100"/>
                    <a:column name="bp_num" prompt="对象账号" width="130"/>
                    <a:column name="bp_bank_account_name" prompt="账户名称" width="100"/>
                    <a:column name="bank_full_name" prompt="银行" width="100"/>
                    <a:column name="amount" align="right" prompt="申请总金额" renderer="Leaf.formatMoney"/>
                    <a:column name="sum_act_amount" prompt="实际申请金额" renderer="Leaf.formatMoney" width="100"/>
                    <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>