yonda_hls_tl_interface.lview 17.2 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 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: gaoyang 
    $Date: 2014-12-8 下午01:22:16  
    $Revision: 1.0  
    $Purpose: 
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
    <a:init-procedure><![CDATA[
    ]]></a:init-procedure>
    <a:view>
        <script type="text/javascript"><![CDATA[
            function query_tl_itfc() {
                $('yonda_hls_tl_itfc_result_transfor_ds').query();
                $('yonda_hls_tl_itfc_result_dealing_ds').query();
                $('yonda_hls_tl_itfc_result_failure_ds').query();
                $('yonda_hls_tl_itfc_result_complete_ds').query();
            }
            
            function exit() {
                $('yonda_hls_tl_ln_winid').close();
            }
            
            function on_yonda_hls_tl_itfc_detail_renderer(value, record, name) {
                if (record.get('tl_itfc_line_id')) {
                    return '<a href="javascript:windowopen_yonda_tl_detail_logs(\'' + record.get('tl_itfc_line_id') + '\');">日志</a>';
                }
            }
            
            function windowopen_yonda_tl_detail_logs(tl_itfc_line_id) {
                new Leaf.Window({
                    id: 'yonda_hls_tl_logs_link_winid',
                    url: $('yonda_hls_tl_logs_link_id').getUrl(),
                    params: {
                        'source_id': tl_itfc_line_id,
                        'source_table': 'YONDA_HLS_TL_ITFC_LINE'
                    },
                    width: 550,
                    height: 400
                });
            }
            
            
        ]]></script>
        <a:dataSets>
            <a:dataSet id="tl_itfc_trx_status" lookupCode="CSH602_YONDA_HLS_TL_LN_STATUS"/>
            <a:dataSet id="con_write_off_flag_ds" lookupCode="CON_WRITE_OFF_FLAG"/>
            <a:dataSet id="yonda_hls_tl_itfc_query_ds" autoCreate="true">
                <a:fields>
                    <a:field name="bp_name"/>
                    <a:field name="dbtacc"/>
                    <a:field name="contract_number"/>
                    <a:field name="trx_status"/>
                    <a:field name="trx_status_display" displayField="code_value_name" options="tl_itfc_trx_status" returnField="trx_status" valueField="code_value"/>
                    <a:field name="due_date"/>
                    <a:field name="write_off_flag_display" displayField="code_value_name" options="con_write_off_flag_ds" returnField="write_off_flag" valueField="code_value"/>
                    <a:field name="cf_item"/>
                    <a:field name="cf_item_desc" displayField="cf_item_desc" options="cf_item_ds" returnField="cf_item" valueField="cf_item"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="yonda_hls_tl_itfc_result_transfor_ds" autoPageSize="true" autoQuery="true" model="csh.CSH602.yonda_hls_tl_itfc_v" queryDataSet="yonda_hls_tl_itfc_query_ds" queryUrl="${/request/@context_path}/autocrud/csh.CSH602.yonda_hls_tl_itfc_v/query?tl_itfc_header_id=${/parameter/@tl_itfc_header_id}&amp;line_trx_status=TRANSFOR"/>
            <a:dataSet id="yonda_hls_tl_itfc_result_dealing_ds" autoPageSize="true" autoQuery="true" model="csh.CSH602.yonda_hls_tl_itfc_v" queryDataSet="yonda_hls_tl_itfc_query_ds" queryUrl="${/request/@context_path}/autocrud/csh.CSH602.yonda_hls_tl_itfc_v/query?tl_itfc_header_id=${/parameter/@tl_itfc_header_id}&amp;line_trx_status=DEALING"/>
            <a:dataSet id="yonda_hls_tl_itfc_result_complete_ds" autoPageSize="true" autoQuery="true" model="csh.CSH602.yonda_hls_tl_itfc_v" queryDataSet="yonda_hls_tl_itfc_query_ds" queryUrl="${/request/@context_path}/autocrud/csh.CSH602.yonda_hls_tl_itfc_v/query?tl_itfc_header_id=${/parameter/@tl_itfc_header_id}&amp;line_trx_status=COMPLETE"/>
            <a:dataSet id="yonda_hls_tl_itfc_result_complete_not_writeoff_ds" autoPageSize="true" autoQuery="true" model="csh.CSH602.yonda_hls_tl_itfc_v" queryDataSet="yonda_hls_tl_itfc_query_ds" queryUrl="${/request/@context_path}/autocrud/csh.CSH602.yonda_hls_tl_itfc_v/query?tl_itfc_header_id=${/parameter/@tl_itfc_header_id}&amp;line_trx_status=COMPLETE_NOT_WRITEOFF"/>
            <a:dataSet id="yonda_hls_tl_itfc_result_failure_ds" autoPageSize="true" autoQuery="true" model="csh.CSH602.yonda_hls_tl_itfc_v" queryDataSet="yonda_hls_tl_itfc_query_ds" queryUrl="${/request/@context_path}/autocrud/csh.CSH602.yonda_hls_tl_itfc_v/query?tl_itfc_header_id=${/parameter/@tl_itfc_header_id}&amp;line_trx_status=FAILURE"/>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="query_tl_itfc" text="HLS.QUERY"/>
                <a:gridButton click="exit" text="退出"/>
            </a:screenTopToolbar>
            <a:form LabelWidth="120" column="4" title="HAP_QUERY_TITLE">
                <a:textField name="contract_number" bindTarget="yonda_hls_tl_itfc_query_ds" prompt="合同编号">
                    <a:events>
                        <a:event name="enterdown" handler="query_tl_itfc"/>
                    </a:events>
                </a:textField>
                <a:textField name="bp_name" bindTarget="yonda_hls_tl_itfc_query_ds" prompt="客户名">
                    <a:events>
                        <a:event name="enterdown" handler="query_tl_itfc"/>
                    </a:events>
                </a:textField>
                <a:textField name="ebank_account_num" bindTarget="yonda_hls_tl_itfc_query_ds" prompt="代扣账号">
                    <a:events>
                        <a:event name="enterdown" handler="query_tl_itfc"/>
                    </a:events>
                </a:textField>
                <a:comboBox name="write_off_flag_display" bindTarget="yonda_hls_tl_itfc_query_ds" prompt="核销状态">
                    <a:events>
                        <a:event name="enterdown" handler="query_tl_itfc"/>
                    </a:events>
                </a:comboBox>
            </a:form>
            <a:tabPanel marginHeight="230" marginWidth="50">
                <a:tabs>
                    <a:tab prompt="已传输" width="120">
                        <a:grid id="yonda_hls_tl_itfc_transfor_grid_id" bindTarget="yonda_hls_tl_itfc_result_transfor_ds" marginHeight="280" marginWidth="80" navBar="true">
                            <a:columns>
                                <a:column name="contract_number" align="center" lock="true" prompt="合同编号" width="120"/>
                                <a:column name="times" align="center" lock="true" prompt="期数" width="50"/>
                                <a:column name="due_date" align="center" lock="true" prompt="收款日" renderer="Leaf.formatDate" width="80"/>
                                <a:column name="logs" align="center" lock="true" prompt="日志" renderer="on_yonda_hls_tl_itfc_detail_renderer" width="80"/>
                                <a:column name="company_short_name" prompt="公司" width="200"/>
                                <a:column name="bp_name" align="left" prompt="客户名" width="200"/>
                                <a:column name="bank_name" prompt="银行" width="100"/>
                                <a:column name="ebank_type_desc" align="center" prompt="账号类型" width="70"/>
                                <a:column name="ebank_account_prop_desc" align="center" prompt="账号属性" width="70"/>
                                <a:column name="ebank_account_num" align="right" prompt="代扣账号" width="140"/>
                                <a:column name="ebank_account_name" prompt="代扣账号名" width="140"/>
                                <a:column name="cf_item_desc" align="center" prompt="性质" width="50"/>
                                <a:column name="currency" align="center" prompt="币种" width="70"/>
                                <a:column name="line_trx_status" align="center" prompt="处理状态" width="80"/>
                                <a:column name="write_off_flag_desc" align="center" prompt="核销状态" width="80"/>
                                <a:column name="submit_time" align="center" prompt="实际发送日期" renderer="Leaf.formatDate" width="100"/>
                            </a:columns>
                        </a:grid>
                    </a:tab>
                    <a:tab prompt="正在处理" width="120">
                        <a:grid id="yonda_hls_tl_itfc_dealing_grid_id" bindTarget="yonda_hls_tl_itfc_result_dealing_ds" marginHeight="280" marginWidth="80" navBar="true">
                            <a:columns>
                                <a:column name="contract_number" align="center" lock="true" prompt="合同编号" width="120"/>
                                <a:column name="times" align="center" lock="true" prompt="期数" width="50"/>
                                <a:column name="due_date" align="center" lock="true" prompt="收款日" renderer="Leaf.formatDate" width="80"/>
                                <a:column name="company_short_name" prompt="公司" width="200"/>
                                <a:column name="bp_name" align="left" prompt="客户名" width="200"/>
                                <a:column name="bank_name" prompt="银行" width="100"/>
                                <a:column name="ebank_type_desc" align="center" prompt="账号类型" width="70"/>
                                <a:column name="ebank_account_prop_desc" align="center" prompt="账号属性" width="70"/>
                                <a:column name="ebank_account_num" align="right" prompt="代扣账号" width="140"/>
                                <a:column name="ebank_account_name" prompt="代扣账号名" width="140"/>
                                <a:column name="cf_item_desc" align="center" prompt="性质" width="50"/>
                                <a:column name="currency" align="center" prompt="币种" width="70"/>
                                <a:column name="line_trx_status" align="center" prompt="处理状态" width="80"/>
                                <a:column name="write_off_flag_desc" align="center" prompt="核销状态" width="80"/>
                                <a:column name="submit_time" align="center" prompt="实际发送日期" renderer="Leaf.formatDate" width="100"/>
                                <a:column name="logs" align="center" prompt="日志" renderer="on_yonda_hls_tl_itfc_detail_renderer" width="80"/>
                            </a:columns>
                        </a:grid>
                    </a:tab>
                    <a:tab prompt="处理成功" width="120">
                        <a:grid id="yonda_hls_tl_itfc_complete_grid_id" bindTarget="yonda_hls_tl_itfc_result_complete_ds" marginHeight="280" marginWidth="80" navBar="true">
                            <a:columns>
                                <a:column name="contract_number" align="center" lock="true" prompt="合同编号" width="120"/>
                                <a:column name="times" align="center" lock="true" prompt="期数" width="50"/>
                                <a:column name="due_date" align="center" lock="true" prompt="收款日" renderer="Leaf.formatDate" width="80"/>
                                <a:column name="logs" align="center" lock="true" prompt="日志" renderer="on_yonda_hls_tl_itfc_detail_renderer" width="80"/>
                                <a:column name="company_short_name" prompt="公司" width="200"/>
                                <a:column name="bp_name" align="left" prompt="客户名" width="200"/>
                                <a:column name="bank_name" prompt="银行" width="100"/>
                                <a:column name="ebank_type_desc" align="center" prompt="账号类型" width="70"/>
                                <a:column name="ebank_account_prop_desc" align="center" prompt="账号属性" width="70"/>
                                <a:column name="ebank_account_num" align="right" prompt="代扣账号" width="140"/>
                                <a:column name="ebank_account_name" prompt="代扣账号名" width="140"/>
                                <a:column name="cf_item_desc" align="center" prompt="性质" width="50"/>
                                <a:column name="currency" align="center" prompt="币种" width="70"/>
                                <a:column name="line_trx_status" align="center" prompt="处理状态" width="80"/>
                                <a:column name="write_off_flag_desc" align="center" prompt="核销状态" width="80"/>
                                <a:column name="submit_time" align="center" prompt="实际发送日期" renderer="Leaf.formatDate" width="100"/>
                            </a:columns>
                        </a:grid>
                    </a:tab>
                    <a:tab prompt="代扣成功核销失败" width="120">
                        <a:grid id="yonda_hls_tl_itfc_complete_not_writeoff_grid_id" bindTarget="yonda_hls_tl_itfc_result_complete_not_writeoff_ds" marginHeight="280" marginWidth="80" navBar="true">
                            <a:columns>
                                <a:column name="contract_number" align="center" lock="true" prompt="合同编号" width="120"/>
                                <a:column name="times" align="center" lock="true" prompt="期数" width="50"/>
                                <a:column name="due_date" align="center" lock="true" prompt="收款日" renderer="Leaf.formatDate" width="80"/>
                                <a:column name="logs" align="center" lock="true" prompt="日志" renderer="on_yonda_hls_tl_itfc_detail_renderer" width="80"/>
                                <a:column name="company_short_name" prompt="公司" width="200"/>
                                <a:column name="bp_name" align="left" prompt="客户名" width="200"/>
                                <a:column name="bank_name" prompt="银行" width="100"/>
                                <a:column name="ebank_type_desc" align="center" prompt="账号类型" width="70"/>
                                <a:column name="ebank_account_prop_desc" align="center" prompt="账号属性" width="70"/>
                                <a:column name="ebank_account_num" align="right" prompt="代扣账号" width="140"/>
                                <a:column name="ebank_account_name" prompt="代扣账号名" width="140"/>
                                <a:column name="cf_item_desc" align="center" prompt="性质" width="50"/>
                                <a:column name="currency" align="center" prompt="币种" width="70"/>
                                <a:column name="line_trx_status" align="center" prompt="处理状态" width="80"/>
                                <a:column name="write_off_flag_desc" align="center" prompt="核销状态" width="80"/>
                                <a:column name="submit_time" align="center" prompt="实际发送日期" renderer="Leaf.formatDate" width="100"/>
                            </a:columns>
                        </a:grid>
                    </a:tab>
                    <a:tab prompt="异常事务" width="120">
                        <a:grid id="yonda_hls_tl_itfc_error_grid_id" bindTarget="yonda_hls_tl_itfc_result_failure_ds" marginHeight="280" marginWidth="80" navBar="true">
                            <a:columns>
                                <a:column name="contract_number" align="center" lock="true" prompt="合同编号" width="120"/>
                                <a:column name="times" align="center" lock="true" prompt="期数" width="50"/>
                                <a:column name="due_date" align="center" lock="true" prompt="收款日" renderer="Leaf.formatDate" width="80"/>
                                <a:column name="logs" align="center" lock="true" prompt="日志" renderer="on_yonda_hls_tl_itfc_detail_renderer" width="80"/>
                                <a:column name="company_short_name" prompt="公司" width="200"/>
                                <a:column name="bp_name" align="left" prompt="客户名" width="200"/>
                                <a:column name="bank_name" prompt="银行" width="100"/>
                                <a:column name="ebank_type_desc" align="center" prompt="账号类型" width="70"/>
                                <a:column name="ebank_account_prop_desc" align="center" prompt="账号属性" width="70"/>
                                <a:column name="ebank_account_num" align="right" prompt="代扣账号" width="140"/>
                                <a:column name="ebank_account_name" prompt="代扣账号名" width="140"/>
                                <a:column name="cf_item_desc" align="center" prompt="性质" width="50"/>
                                <a:column name="currency" align="center" prompt="币种" width="70"/>
                                <a:column name="line_trx_status" align="center" prompt="处理状态" width="80"/>
                                <a:column name="write_off_flag_desc" align="center" prompt="核销状态" width="80"/>
                                <a:column name="submit_time" align="center" prompt="实际发送日期" renderer="Leaf.formatDate" width="100"/>
                            </a:columns>
                        </a:grid>
                    </a:tab>
                </a:tabs>
            </a:tabPanel>
        </a:screenBody>
    </a:view>
</a:screen>