csh_bank_transfer_confirme.lview 33.9 KB
Newer Older
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 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392
<?xml version="1.0" encoding="UTF-8"?>
<!--
    $Author: chenlingfeng
    $Date: 2018-08-16 15:56:24
    $Revision: 1.0
    $Purpose:
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application">
    <a:init-procedure>
        <a:model-query model="csh.CSH531N.csh_batch_status_default" rootPath="batch_status_default"/>
        <a:model-query model="csh.CSH531N.csh_query_position" rootPath="result_position"/>
        <a:model-query
                defaultWhereClause="v.code=&apos;CSH511_TRANSACTION_TYPE&apos; and v.code_value in (&apos;RECEIPT&apos;,&apos;ADVANCE_RECEIPT&apos;)"
                fetchAll="true" model="basic.sys_code_default_value" rootPath="sys_code_default_value_path"/>
    </a:init-procedure>
    <a:view>
        <a:link id="general_import_upload_link"
                url="${/request/@context_path}/modules/csh/CSH531N/csh_gathering_import.lview"/>
        <a:link id="batch_detail_link"
                url="${/request/@context_path}/modules/csh/CSH531N/csh_write_off_interface.lview"/>
        <!-- <a:link id="csh_error_message" url="${/request/@context_path}/modules/csh/CSH531N/csh_error_message.lview"/> -->
        <a:link id="csh_confirm_data_link" model="csh.CSH531N.csh_data_confirm" modelaction="batch_update"/>
        <a:link id="csh_data_confirm_check_link" model="csh.CSH531N.csh_data_confirm_check" modelaction="execute"/>
        <a:link id="csh_data_confirm_delete_link" model="csh.CSH531N.csh_data_confirm_check" modelaction="delete"/>
        <a:link id="csh_auto_write_off_link" model="csh.CSH531N.csh_auto_write_off" modelaction="batch_update"/>
        <a:link id="csh_reverse_write_off_link" model="csh.CSH531N.csh_reverse_write_off" modelaction="update"/>
        <a:link id="csh_modify_info_window_link"
                url="${/request/@context_path}/modules/csh/CSH531N/csh_modify_info.lview"/>
        <a:link id="csh_write_off_upload_link"
                url="${/request/@context_path}/modules/csh/CSH531N/csh_write_off_import.lview"/>
        <a:link id="csh_bank_transfer_processing_link"
                url="${/request/@context_path}/modules/csh/CSH531N/csh_bank_transfer_processing.lview"/>

        <a:link id="import_upload_link"
                url="${/request/@context_path}/modules/csh/CSH531N/csh_pos_input.lview"/>

        <a:link id="csh_write_off_detail_link"
                url="${/request/@context_path}/modules/csh/CSH301/csh_transaction_receipt_write_off_detail_query.lview"/>


        <a:link id="csh_terminal_manager_link"
                url="${/request/@context_path}/modules/csh/CSH531N/csh_terminal_manager.lview"/>


        <script type="text/javascript"><![CDATA[

        function csh531n_lock_current_window(msg) {
            Leaf.Masker.mask(Ext.getBody(), msg);
        }

        function csh531n_unlock_current_window() {
            Leaf.Masker.unmask(Ext.getBody());
        }

        function csh531_reset() {
            $('csh_transaction_receipt_write_off_query_ds').reset();
        }

        function cshBatchDetail(value, record, name) {
            var batch_id = record.get('batch_id');
            var batch_status = record.get('batch_status');
            return '<a href="javascript:csh_detail_link(' + batch_id + ',\'' + batch_status + '\')">${l:TRE502.DETAILS}</a>';
        }


        function csh531_import_gathering() {
            new Leaf.Window({
                id: 'csh_upload_window',
                url: $('general_import_upload_link').getUrl(),
                params: {winid: 'csh_upload_window'},
                title: '${l:HLS.IMPORT}',
                width: 420,
                height: 275
            });
        }

        function do_data_confirm(post_data) {

            csh531n_lock_current_window();
            Leaf.request({
                url: $('csh_confirm_data_link').getUrl(),
                para: post_data,
                success: function () {
                    csh531n_unlock_current_window();
                    Leaf.showMessage('${l:PROMPT}', '数据已确认!');
                    $('csh531n_sap_bankflow_info_result_ds').query();
                },

                failure: function () {
                    csh531n_unlock_current_window();
                },
                error: function () {
                    csh531n_unlock_current_window();
                },
                scope: this
            });

        }

        function csh_show_message(post_data) {
            // 
            Leaf.showConfirm('${l:PROMPT}', '存在未完全分配的收款,您确认吗?', function () {
                do_data_confirm(post_data);
            }, function () {
            });
        }

        function csh531_data_confirm() {
            // 
            var records = $('csh531n_sap_bankflow_info_result_ds').getSelected();
            if (records.length == 0) {
                Leaf.showMessage('${l:PROMPT}', '请选择一条记录!');
                return;
            }

            var check_count = 0;
            var post_data = [];
            for (var i = 0; i < records.length; i++) {
                if (records[i].get('write_off_flag') == 'FULL') {
                    Leaf.showMessage('${l:PROMPT}', '选择数据中包含已完全核销的数据');
                    return;
                }

                if (records[i].get('review_status') != 'FULL') {
                    check_count = 1;
                }
                post_data.push({
                    'transaction_id': records[i].get('transaction_id'),
                    '_status': 'update'
                });
            }

            if (check_count != 0) {
                csh_show_message(post_data);
            } else {
                do_data_confirm(post_data);
            }

            // Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
            // Leaf.request({
            //     url: $('csh_data_confirm_check_link').getUrl(),
            //     para: post_data,
            //     success: function (res) {
            //         // alert(res.result.count);
            //         if (res.result.count != 0) {
            //             csh_show_message();
            //         } else {
            //             do_data_confirm();
            //         }
            //     },
            //     sync: true,
            //     scope: this
            // });


        }

        function csh531_query() {
            $('csh531n_sap_bankflow_info_result_ds').query();
        }

        function csh_edit_function(batch_id) {
            new Leaf.Window({
                id: 'csh_modify_info_window',
                url: $('csh_modify_info_window_link').getUrl(),
                params: {batch_id: batch_id},
                title: '${l:CSH531.BASIC_INFO}',
                width: 420,
                height: 275
            });
        }

        function cshEditFun(value, record, name) {
            var batch_id = record.get('batch_id');
            return '<a href="javascript:csh_edit_function(' + batch_id + ')">${l:EDIT}</a>';
        }


        function construct_from_to() {
            var config = ['transaction_num', 'bank_slip_num', 'transaction_amount', 'currency_code', 'bank_account_code', 'bp_code', 'bp_name', 'bp_id', 'transaction_date'];
            var pattern = ['_from', '_to'];
            var obj = {};
            for (var i = 0,
                     j = config.length; i < j; i++) {
                for (var m = 0,
                         n = pattern.length; m < n; m++) {
                    obj[config[i] + pattern[m]] = config[i] + pattern[n - 1 - m];
                }
            }
            return obj;
        }

        function csh513_receipt_write_off_update(ds, record, name, value, oldvalue) {
            var from_to = construct_from_to();
            var opposite_name = from_to[name];
            if (!Ext.isEmpty(opposite_name)) {
                var opposite_value = record.get(opposite_name);
                if (!Ext.isEmpty(value) && Ext.isEmpty(opposite_value)) {
                    record.set(opposite_name, value);
                }
            }
        }

        function dateValidator(record, name, value) { //日期校验方法
            if (name == 'transaction_date_from' || name == 'transaction_date_to') {
                var start_date = Leaf.formatDate(record.get('transaction_date_from'));
                var end_date = Leaf.formatDate(record.get('transaction_date_to'));
                if (!!end_date) { //由于结束日期非必填,只有在结束日期填了才进行比较
                    if (!compareDate(start_date, end_date)) {
                        return '${l:CSH510.CSH_RECEIPT_DATE_CHECK}'; //校验不通过返回字符串
                    }
                }
                return true; //校验通过返回true
            }
        }

        function compareDate(start, end) {
            if (start > end) {
                return false;
            }
            return true;
        }

        function summary_Renderer(data, name) {
            if (name == 'transaction_num') {
                return '<font color=red>' + '合计' + '</font>';
            } else if (name == 'transaction_amount') {
                return colum_caculateTotal(data, name);
            } else if (name == 'unwrite_off_amount') {
                return colum_caculateTotal(data, name);
            }

        }

        function colum_caculateTotal(data, name) {
            var total = 0;
            var length = data.length;
            var value = 0;
            for (var i = 0; i < length; i++) {
                if (Ext.isEmpty(data[i].get(name))) {
                    value = 0;
                } else {
                    value = data[i].get(name);
                }
                total = plus(total, value);
            }
            return '<font color=red>' + Leaf.formatMoney(total) + '</font>';
        }

        function csh_para_check() {
            // 
            var record = $('auto_write_off_ds').getAt(0);
            // var record = records.getAt(0);
            var account_num = record.get('account_num');
            var bank_account_num = record.get('bank_account_num');
            var trx_amount = record.get('trx_amount');
            if (account_num != 'Y' && bank_account_num != 'Y' && trx_amount != 'Y') {
                Leaf.showMessage('${l:PROMPT}', '请选择一个以上自动分配参数!');
                record.set('bank_account_num', 'Y');
            }
        }

        function do_import_write_off() {
            new Leaf.Window({
                id: 'csh_write_off_upload_window',
                params: {
                    do_after_assigns: 'Y',
                    winid: 'csh_write_off_upload_window'
                },
                url: $('csh_write_off_upload_link').getUrl(),
                title: '${l:HLS.IMPORT}',
                width: 420,
                height: 475
            });
        }

        function csh_import_write_off() {
            Leaf.showConfirm('${l:PROMPT}', '导入分配将覆盖自动分配的数据,是否继续?', function () {
                do_import_write_off();
            }, function () {
            });
        }


        function csh_auto_write_off() {

            var ds_id = 'csh531n_sap_bankflow_info_result_ds';
            var records = $(ds_id).getSelected();
            if (records.length < 1) {
                Leaf.showMessage('${l:PROMPT}', '请至少选择一条要处理的单据');
                return;
            }


            var auto_write_record = $('auto_write_off_ds').getAt(0);
            // 
            var csh_bp_bank_account_num = auto_write_record.get('account_num');
            var csh_bp_bank_account_name = auto_write_record.get('bank_account_num');
            // var csh_trx_amount = auto_write_record.get('trx_amount');


            csh531n_lock_current_window('${l:HLS.EXECUTING}');

            var post_data = [];
            for (var i = 0; i < records.length; i++) {
                if (records[i].get('write_off_flag') == 'FULL') {
                    Leaf.showMessage('${l:PROMPT}', '选择数据中包含已完全核销的数据');
                    return;
                }
                post_data.push({
                    'transaction_id': records[i].get('transaction_id'),
                    'csh_bp_bank_account_num': auto_write_record.get('bp_bank_account_num'),
                    'csh_bp_bank_account_name': auto_write_record.get('bp_bank_account_name'),
                    '_status': 'update'
                });
            }
            Leaf.request({
                url: $('csh_auto_write_off_link').getUrl(),
                para: post_data,
                success: function () {
                    csh531n_unlock_current_window();
                    $(ds_id).query();
                    Leaf.showMessage('${l:PROMPT}', '分配成功!');
                }, failure: function () {
                    csh531n_unlock_current_window();
                },
                error: function () {
                    csh531n_unlock_current_window();
                },
                scope: this
            });
        }


        function csh531n_open_write_off_detail(id) {
            var ds = $('csh531n_sap_bankflow_info_result_ds');
            var record = ds.findById(id);
            var status = record.get('confirmed_flag');
            var write_off_flag = record.get('write_off_flag');
            var readOnly = 'N';
            var interfaceQueryFlag = 'Y';
            var paid_byother_flag = record.get('paid_byother_flag');
            var transaction_type = record.get('transaction_type');
            var depositDisplayFlag = 'N';
            var advanceDisplayFlag = 'N';
            var approval_flag = '${/model/result_position/record/@approval_enbale}' || 'N';

            if (approval_flag == 'Y') {
                readOnly = 'Y';
                if (status == 'APPROVED') {
                    interfaceQueryFlag = 'N';
                }
            } else {
                if (write_off_flag == 'FULL') {
                    readOnly = 'Y';
                    interfaceQueryFlag = 'N';
                } else {
                    if(status == 'WF_APPROVING'){
                        readOnly = 'Y';
                    }
                }
            }

            if (status != 'WF_APPROVING') {
                approval_flag = 'N';
            }

            if (transaction_type != 'ADVANCE_RECEIPT' && transaction_type != 'DEPOSIT') {
                advanceDisplayFlag = 'Y';
            } else {
                if (paid_byother_flag == 'Y') {
                    depositDisplayFlag = 'Y';
                }
            }

            var win = new Leaf.Window({
                id: 'csh_write_off_window',
                params: {
                    transaction_id: record.get('transaction_id'),
                    depositDisplayFlag: depositDisplayFlag,
                    bank_slip_num: record.get('bank_slip_num'),
                    company_id: record.get('company_id'),
                    transaction_date: Leaf.formatDate(record.get('transaction_date')),
                    internal_period_num: record.get('internal_period_num'),
                    period_name: record.get('period_name'),
                    bp_bank_account_num: record.get('bp_bank_account_num'),
                    bp_bank_account_name: record.get('bp_bank_account_name'),
                    bp_id: record.get('bp_id'),
                    advanceDisplayFlag: advanceDisplayFlag,
                    readOnly: readOnly,
                    interfaceQueryFlag: interfaceQueryFlag,
                    approval_flag: approval_flag,
niminmin's avatar
niminmin committed
393 394
                    collection_classes:record.get('collection_classes'),
                    transaction_type:transaction_type||'RECEIPT',
395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532
                    winid: 'csh_write_off_window'
                },
                url: $('batch_detail_link').getUrl(),
                title: '明细',
                fullScreen: true
            });

            win.on('close', function () {
                ds.query(ds.currentPage);
            });
        }

        function csh531n_detail_renderer(value, record, name) {
            if (name == 'csh531n_detail') {
                return '<a href="Javascript:csh531n_open_write_off_detail(\'' + record.id + '\')">明细</a>';
            } else if (name == 'transaction_num') {
                return '<a href="Javascript:csh531n_open_write_off_detail(\'' + record.id + '\')">' + value + '</a>';
            }
        }


        function csh531_post_input() {
            new Leaf.Window({
                id: 'upload_window_winid',
                url: $('import_upload_link').getUrl(),
                params: {winid: 'upload_window_winid'},
                title: 'POS机导入',
                width: 420,
                height: 300
            });
        }

        function seedetail_write_off(value, record, name) {
            var return_value = value || 0;
            // return '<a href="javascript:openWindow_writeoff(' + record.id + ');">' + Leaf.formatMoney(return_value) + '</a>';
            return '<a href="javascript:openWindow_writeoff(' + record.id + ');">明细</a>';

        }

        function openWindow_writeoff(id) {
            var record = $('csh531n_sap_bankflow_info_result_ds').findById(id);
            var url;
            url = $('csh_write_off_detail_link').getUrl() + '?transaction_id=' + record.get('transaction_id') + '&transaction_type=' + record.get('transaction_type');

            new Leaf.Window({
                id: 'csh_write_off_reverse_detail_link_winid',
                params: {
                    winId: 'csh_write_off_reverse_detail_link_winid'
                },
                url: url,
                title: '${l:CSH301.CSH_WRITE_OFF_DETAIL}',
                fullScreen: true
            });
        }


        function csh531_terminal_manager() {
            var url = $('csh_terminal_manager_link').getUrl();
            new Leaf.Window({
                id: 'csh_terminal_manager_id',
                params: {
                    winId: 'csh_terminal_manager_id'
                },
                url: url,
                title: '终端号管理',
                width: 1100,
                height: 600

            });

        }

        function csh531n_export() {
            $('csh_transaction_receipt_write_off_grid_ds')._export(null, '收款核销流水');
        }

        function csh531_new_write_off() {
            var record = $('csh531n_sap_bankflow_info_result_ds').getSelected()[0];
            if (record) {
                csh531n_open_write_off_detail(record.id);
            } else {
                Leaf.showErrorMessage('提示', '请先选择一条数据');
            }
        }

        function csh531_new_reverse_write_off() {
            var record = $('csh531n_sap_bankflow_info_result_ds').getSelected()[0];
            var returned_amount = record.get('returned_amount') || 0;
            if (returned_amount > 0) {
                Leaf.showInfoMessage("提示", "该事务存在收款退款,不允许反冲");
            } else {
                if (record && record.get('write_off_flag') != 'NOT') {
                    Leaf.showConfirm("提示", "您确定反冲现金事务<span style='color:red'>" + record.get('transaction_num') + "</span>吗", function () {
                        csh531n_lock_current_window();
                        Leaf.request({
                            url: $('csh_reverse_write_off_link').getUrl(),
                            para: record.data,
                            success: function () {
                                csh531n_unlock_current_window();
                                $('csh531n_sap_bankflow_info_result_ds').query();
                            }, failure: function () {
                                csh531n_unlock_current_window();
                            },
                            error: function () {
                                csh531n_unlock_current_window();
                            },
                            scope: this
                        });
                    });
                } else {
                    Leaf.showInfoMessage("提示", "只能反冲已经核销的现金事务");
                }
            }
        }

        ]]></script>
        <a:dataSets>
            <a:dataSet id="batch_status_ds" lookupCode="CSH531_BATCH_STATUS"/>
            <a:dataSet id="confirmed_flag_ds">
                <a:datas>
                    <a:record code_value="WF_APPROVING" code_value_name="核销确认中"/>
                    <a:record code_value="APPROVED" code_value_name="核销已确认"/>
                </a:datas>
            </a:dataSet>
            <a:dataSet id="csh531n_ds_collection_classes_ds" lookupCode="DS_COLLECTION_CLASSES"/>
            <a:dataSet id="currency_ds">
                <a:datas dataSource="/model/currency"/>
            </a:dataSet>
            <a:dataSet id="csh_transaction_type_ds">
                <a:datas dataSource="/model/sys_code_default_value_path"/>
            </a:dataSet>
            <!--            <a:dataSet id="status_ds" lookupCode="CSH_PAYMENT_REQ_APPROVAL_STATUS"/>-->
            <a:dataSet id="status_ds" lookupCode="CSH_WRITE_OFF_STATUS"/>
            <a:dataSet id="con_write_off_flag_ds" lookupCode="CON_WRITE_OFF_FLAG"/>
            <a:dataSet id="receipt_type_ds" lookupCode="RECEIPT_TYPE"/>
            <a:dataSet id="csh_transaction_receipt_write_off_query_ds" autoCreate="true">
                <a:fields>
                    <a:field name="write_off_flag"/>
Darming's avatar
Darming committed
533 534
                    <a:field name="reversed_flag" defaultValue="N"/>
                    <a:field name="cw_flag" defaultValue="N"/>
535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635
                    <a:field name="confirmed" defaultValue="Y"/>
                    <a:field name="confirmed_flag_desc" options="confirmed_flag_ds" valueField="code_value"
                             displayField="code_value_name" returnField="confirmed_flag" defaultValue="核销确认中"/>
                    <a:field name="confirmed_flag" defaultValue="WF_APPROVING"/>
                    <a:field name="write_off_flag_desc" displayField="code_value_name" options="con_write_off_flag_ds"
                             returnField="write_off_flag" valueField="code_value"/>
                    <a:field name="status" displayField="code_value_name" options="status_ds"
                             returnField="status" valueField="code_value"/>
                    <a:field name="collection_classes_desc" options="csh531n_ds_collection_classes_ds"
                             displayField="code_value_name" returnField="collection_classes" valueField="code_value"/>
                    <a:field name="transaction_type_desc" options="csh_transaction_type_ds"
                             returnField="transaction_type" valueField="code_value" displayField="code_value_name"
                             defaultValue="收款"/>
                    <a:field name="bp_name" lovGridHeight="350" lovHeight="550" lovLabelWidth="50" lovWidth="550"
                             lovService="basic.hls_bp_master_v_for_lov" title="HLS.BP_TITLE">
                        <a:mapping>
                            <a:map from="bp_id" to="bp_id"/>
                            <a:map from="bp_name" to="bp_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="position_code" defaultValue="${/model/result_position/record/@position_code}"/>
                    <a:field name="receipt_type_desc" options="receipt_type_ds" valueField="code_value"
                             defaultValue="code_value_name" returnField="receipt_type"/>
                </a:fields>
                <a:events>
                    <a:event name="update" handler="csh513_receipt_write_off_update"/>
                </a:events>
            </a:dataSet>
            <a:dataSet id="csh531n_sap_bankflow_info_result_ds" autoPageSize="true" autoQuery="true"
                       model="csh.CSH531N.csh_transaction_query"
                       queryDataSet="csh_transaction_receipt_write_off_query_ds" selectable="true"
                       selectionModel="single">
                <a:fields>
                    <a:field name="auto_filt_penalty" checkedValue="Y" uncheckedValue="N"/>
                    <a:field name="auto_filt_prinicipal_interest" checkedValue="Y" uncheckedValue="N"/>
                    <a:field name="status_n" displayField="code_value_name" options="status_ds" returnField="status"
                             valueField="code_value"/>
                </a:fields>
            </a:dataSet>
            <a:dataSet id="auto_write_off_ds" autoCreate="true">
                <a:fields>
                    <a:field name="bank_account_num" checkedValue="Y" uncheckedValue="N"/>
                    <a:field name="bp_bank_account_num" checkedValue="Y" defaultValue="Y" uncheckedValue="N"/>
                    <a:field name="bp_bank_account_name" checkedValue="Y" defaultValue="Y" uncheckedValue="N"/>
                    <a:field name="trx_amount" checkedValue="Y" uncheckedValue="N"/>
                </a:fields>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
                <a:gridButton click="csh531_query" text="HLS.QUERY"/>
                <a:gridButton click="csh531_reset" text="重置"/>
            </a:screenTopToolbar>
            <a:form bindTarget="csh_transaction_receipt_write_off_query_ds" style="background:#f7f7f8" labelWidth="250">
                <a:fieldSet labelWidth="250" title="HLS.QUERY_TITLE">
                    <a:box column="4">
                        <a:datePicker name="transaction_date_from"
                                      bindTarget="csh_transaction_receipt_write_off_query_ds" prompt="收款日期从"/>
                        <a:datePicker name="transaction_date_to"
                                      bindTarget="csh_transaction_receipt_write_off_query_ds" prompt="收款日期到"/>
                        <a:numberField name="transaction_amount_from"
                                       bindTarget="csh_transaction_receipt_write_off_query_ds" prompt="收款金额从"/>
                        <a:numberField name="transaction_amount_to"
                                       bindTarget="csh_transaction_receipt_write_off_query_ds" prompt="收款金额到"/>
                    </a:box>
                    <!--                    <a:box column="4">-->
                    <!--                        <a:textField name="bank_branch_name" bindTarget="csh_transaction_receipt_write_off_query_ds"-->
                    <!--                                     prompt="我方账户户名"/>-->
                    <!--                        <a:textField name="bank_branch_name" bindTarget="csh_transaction_receipt_write_off_query_ds"-->
                    <!--                                     prompt="我方银行名称"/>-->
                    <!--                        <a:textField name="bank_branch_name" bindTarget="csh_transaction_receipt_write_off_query_ds"-->
                    <!--                                     prompt="我方账户账号"/>-->
                    <!--                        <a:textField name="bank_slip_num" bindTarget="csh_transaction_receipt_write_off_query_ds"-->
                    <!--                                     prompt="银行流水号"/>-->
                    <!--                    </a:box>-->
                    <!--                    <a:box column="4">-->
                    <!--                        <a:textField name="bp_bank_account_name"-->
                    <!--                                     bindTarget="csh_transaction_receipt_write_off_query_ds" prompt="对方账户户名"/>-->
                    <!--                        <a:textField name="bp_bank_account_name"-->
                    <!--                                     bindTarget="csh_transaction_receipt_write_off_query_ds" prompt="对方银行名称"/>-->
                    <!--                        <a:textField name="bp_bank_account_num"-->
                    <!--                                     bindTarget="csh_transaction_receipt_write_off_query_ds" prompt="对方账户账号"/>-->
                    <!--                    </a:box>-->
                    <a:box column="4">
                        <a:textField name="transaction_num" bindTarget="csh_transaction_receipt_write_off_query_ds"
                                     prompt="现金事务编号"/>
                        <a:lov name="bp_name"
                               bindTarget="csh_transaction_receipt_write_off_query_ds" prompt="商业伙伴"/>
                        <!--                        <a:comboBox name="status" bindTarget="csh_transaction_receipt_write_off_query_ds"-->
                        <!--                                    prompt="单据状态"/>-->
                        <a:comboBox name="write_off_flag_desc" bindTarget="csh_transaction_receipt_write_off_query_ds"
                                    prompt="核销状态"/>
                        <!--                        <a:comboBox name="collection_classes_desc"-->
                        <!--                                    bindTarget="csh_transaction_receipt_write_off_query_ds" prompt="款项用途"/>-->
                        <a:comboBox name="confirmed_flag_desc" bindTarget="csh_transaction_receipt_write_off_query_ds"
                                    prompt="单据审批状态"/>
                    </a:box>
                </a:fieldSet>
            </a:form>
            <a:grid id="csh_transaction_receipt_write_off_grid_ds"
Darming's avatar
Darming committed
636
                    bindTarget="csh531n_sap_bankflow_info_result_ds" marginHeight="210" marginWidth="30"
637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675
                    navBar="true">
                <!--                <a:toolBar>-->
                <!--                    <a:button click="csh531_terminal_manager" text="终端号管理"/>-->
                <!--                    <a:button click="csh531_post_input" text="POS机导入"/>-->
                <!--                    <a:button type="excel" text="流水导出"/>-->
                <!--                    <a:button click="csh_auto_write_off" text="自动分配"/>-->
                <!--                    <a:button click="csh_import_write_off" text="导入分配"/>-->
                <!--                    <a:button click="csh531_data_confirm" text="审阅"/>-->
                <!--                </a:toolBar>-->
                <a:columns>
                    <a:column name="transaction_num" prompt="现金事务编号" lock="true" align="center"
                              renderer="csh531n_detail_renderer" width="120"/>
                    <a:column name="transaction_type_desc" prompt="现金事务类型" lock="true" align="center" width="120"/>
                    <a:column name="receipt_type_desc" prompt="收款类型" align="center" lock="true" width="120"/>
                    <!--<a:column name="bank_name" prompt="银行名称"/>-->
                    <!--                    <a:column name="bank_branch_name" prompt="银行名称"/>-->
                    <!--                    <a:column name="bank_slip_num" prompt="银行流水号"/>-->
                    <!--                    <a:column name="bank_account_num" prompt="收款账号"/>-->
                    <a:column name="transaction_amount" align="right" lock="true" footerRenderer="summary_Renderer"
                              renderer="Leaf.formatMoney" prompt="收款金额" width="120"/>
                    <a:column name="transaction_date" renderer="Leaf.formatDate" align="center" lock="true"
                              prompt="收款日期" width="120"/>
                    <a:column name="description" prompt="摘要" width="180"/>
                    <!--                    <a:column name="collection_classes_desc" prompt="款项用途" lock="true" align="center"/>-->
                    <a:column name="bp_name" prompt="商业伙伴" align="left" width="200"/>
                    <!--                    <a:column name="csh531n_detail" renderer="csh531n_detail_renderer" prompt="核销明细"  align="center" width="80"/>-->
                    <a:column name="csh531n_detail" renderer="seedetail_write_off" prompt="核销明细" align="center"
                              width="80"/>
                    <!--                    <a:column name="bp_bank_account_name" prompt="对方账户"/>-->
                    <!--                    <a:column name="bp_bank_account_num" prompt="对方账号"/>-->
                    <!--                    <a:column name="description_p" prompt="摘要+用途"/>-->
                    <!--                    <a:column name="write_off_amount" align="right" renderer="seedetail_write_off"  prompt="已核销金额"/>-->
                    <!--                    <a:column name="unwrite_off_amount" align="right" footerRenderer="summary_Renderer"-->
                    <!--                              renderer="Leaf.formatMoney" prompt="未核销金额"/>-->
                    <!--                    <a:column name="approving_return_amount" align="right" footerRenderer="summary_Renderer" renderer="Leaf.formatMoney" prompt="审批中退款金额"/>-->
                    <!--                    <a:column name="unallocate_amount" align="right" footerRenderer="summary_Renderer"-->
                    <!--                              renderer="Leaf.formatMoney" prompt="未分配金额"/>-->
                    <!--                    <a:column name="status_desc" prompt="单据状态" width="120" align="center"/>-->
                    <a:column name="write_off_flag_desc" prompt="核销状态" width="120" align="center"/>
Darming's avatar
Darming committed
676
                    <a:column name="confirmed_flag_desc" prompt="单据审批状态" width="120" align="center"/>
677 678 679 680 681 682 683 684 685
                    <!--                    <a:column name="review_status_desc" prompt="分配状态" width="80"/>-->
                    <!--                    <a:column name="ref_v05" prompt="备注" width="100"/>-->
                    <a:column name="created_user_name" prompt="制单人" width="120" align="center"/>
                    <a:column name="confirm_user_name" prompt="核销确认人" width="120" align="center"/>
                </a:columns>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>