hls_journal_maintain.lview 27.8 KB
Newer Older
Spencer Chang's avatar
Spencer Chang committed
1 2 3 4 5 6 7 8 9 10
<?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:init-procedure>
        <a:model-query defaultWhereClause="t1.document_category = &apos;JE&apos;" fetchAll="true" model="basic.hls_document_type_for_lov" queryOrderBy="document_type desc" rootPath="hls_document_type_path"/>
Darming's avatar
Darming committed
11
        <a:model-query fetchAll="true" model="hls.HLS301.get_sbo_limit" rootPath="get_limit"/>
Spencer Chang's avatar
Spencer Chang committed
12 13 14 15 16 17 18 19 20 21 22
    </a:init-procedure>
    <a:view>
        <a:link id="hls_journal_manual_create_link_id" url="${/request/@context_path}/modules/hls/HLS530/manual_journal_create.lview"/>
        <a:link id="welcome_link_id" url="${/request/@context_path}/welcome.lview"/>
        <a:link id="hls_journal_con_contract_update_link_id" url="${/request/@context_path}/modules/cont/CON500/con_contract_update.lview"/>
        <a:link id="con_contract_get_layout_code_link_id" model="cont.CON500.con_contract_get_layout_code" modelaction="update"/>
        <a:screen-include screen="modules/hls/hls_common_javascript.lview"/>
        <a:link id="hls_journal_post_to_gld_link" model="hls.HLS301.hls_journal_post_to_gld" modelaction="batch_update"/>
        <a:link id="hls_journal_unpost_to_gld_link" model="hls.HLS301.hls_journal_unpost_to_gld" modelaction="batch_update"/>
        <a:link id="check_link" url="${/request/@context_path}/modules/hls/HLS530/hls_journal_check.lsc"/>
        <a:link id="transfer_ref_link" url="${/request/@context_path}/transfer_ref.lsc"/>
Darming's avatar
Darming committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
        <a:link id="transfer_voucher_link" url="${/request/@context_path}/transfer_voucher.lsc"/>
        <a:link id="hls301_send_data" url="${/request/@context_path}/modules/hls/HLS301/hls_journal_send.lsc"/>
        <a:link id="hls301_send_bp_to_sbo" model="hls.HLS301.hls_bp_post_to_sbo" modelaction="update"/>
        <script><![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');
        }

44 45 46
        // function lock_current_window() {
        //     Leaf.Masker.mask(Ext.getBody(), '${l:HLS.EXECUTING}');
        // }
Darming's avatar
Darming committed
47

48
        function lock_current_window(msg) {
Darming's avatar
Darming committed
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
            Leaf.Masker.mask(Ext.getBody(), msg);
        }

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

        function construct_from_to() {
            var config = ['responsibility_center_code', 'responsibility_center_name', 'account_code', 'account_name'];
            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];
Spencer Chang's avatar
Spencer Chang committed
65 66
                }
            }
Darming's avatar
Darming committed
67 68 69 70 71 72 73 74 75 76
            return obj;
        }

        function onUpdate_para_journalQueryDs(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);
Spencer Chang's avatar
Spencer Chang committed
77 78
                }
            }
Darming's avatar
Darming committed
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98

        }

        function hls301_journal_new() {
            var param = new Object();
            param['function_code'] = 'HLS530';
            param['document_category'] = 'JE';
            param['function_usage'] = 'MODIFY';
            param['maintain_type'] = 'UPDATE';
            param['url_title'] = '${l:HLS530.JOURNAL_LINE_MODIFY}';
            hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_journal_manual_create_link_id');
        }

        function hls301_link_dynamic(reocrd_id, journal_header_id) {
            var maintain_type = 'UPDATE';
            var record = $('hls_journal_header_result_ds').findById(reocrd_id);

            if (record.get('post_gl_status') == 'Y') {
                Leaf.showMessage('${l:HLS.PROMPT}', '${l:HLS530.JOURNAL_POST_GL_STATUS_IS_Y}');
                return false;
Spencer Chang's avatar
Spencer Chang committed
99
            }
Darming's avatar
Darming committed
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

            var param = record.data;
            param['currency'] = param['currency_code'];
            param['function_code'] = 'HLS530';
            param['document_id'] = journal_header_id;
            param['document_category'] = 'JE';
            param['function_usage'] = 'MODIFY';
            param['maintain_type'] = maintain_type;
            param['url_title'] = '${l:HLS530.JOURNAL_LINE_MODIFY}';
            hls_doc_get_layout_code('con_contract_get_layout_code_link_id', param, 'hls_journal_manual_create_link_id');
        }

        function hls301_journal_num_render(value, record, name) {
            return '<a href="javascript:hls301_link_dynamic(' + record.id + ',' + record.get('journal_header_id') + ');">' + value + '</a>';
        }

        function journal_submit(datas) {
            Leaf.request({
                url: $('hls_journal_post_to_gld_link').getUrl(),
                para: datas,
                success: function(res) {
                    f_hls.winNoMask();
                    Leaf.SideBar.show({
                        msg: '${l:HLS.SUBMIT_SUCCESS}',
                        duration: 2000
                    });
                    $('hls_journal_header_result_ds').query();
                },
                failure: function() {
                    f_hls.winNoMask();
                },
                error: function() {
                    f_hls.winNoMask();
                },
                scope: this
            });
        }
        var transfer_ref_flag = 'N';

        function hls301_journal_post_ref() {
            f_hls.winMask();
            var ds = $('hls_journal_header_result_ds');
            var records = ds.getSelected();
            if (records.length == 0) {
                f_hls.winNoMask();
                return;
Spencer Chang's avatar
Spencer Chang committed
146
            }
Darming's avatar
Darming committed
147 148 149 150 151 152
            var datas = [];
            for (var i = 0;i < records.length;i++) {
                var obj = {};
                obj['journal_id'] = records[i].get('journal_header_id');
                obj['_status'] = 'update';
                datas[i] = obj;
Spencer Chang's avatar
Spencer Chang committed
153
            }
Darming's avatar
Darming committed
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
            Leaf.request({
                url: $('transfer_ref_link').getUrl(),
                para: datas,

                success: function(res) {
                    f_hls.winNoMask();

                    Leaf.SideBar.show({
                        msg: '${l:HLS.SUBMIT_SUCCESS}',
                        duration: 2000
                    });
                    transfer_ref_flag = 'Y';
                    //hls301_journal_query();

                },
                failure: function() {
                    f_hls.winNoMask();
                },
                error: function() {
                    f_hls.winNoMask();
                },
                scope: this
            });
        }

        function hls301_journal_post() {
            debugger;
            var url = $('test_link').getUrl();
            if (0) {
                Leaf.showMessage('${l:HLS.PROMPT}', '请先传递凭证辅助段');
            } else {
Spencer Chang's avatar
Spencer Chang committed
185 186 187 188 189 190 191 192 193 194 195 196 197
                f_hls.winMask();
                var ds = $('hls_journal_header_result_ds');
                var records = ds.getSelected();
                if (records.length == 0) {
                    f_hls.winNoMask();
                    return;
                }
                var datas = [];
                for (var i = 0;i < records.length;i++) {
                    var obj = {};
                    obj['journal_id'] = records[i].get('journal_header_id');
                    obj['_status'] = 'update';
                    datas[i] = obj;
Darming's avatar
Darming committed
198 199 200 201 202 203 204 205
                    if (records[i].get('je_transaction_code') == 'FIN_INCOME_RECOGNITION') {
                        //	if(transfer_ref_flag == 'N'){
                        //		 Leaf.showMessage('${l:HLS.PROMPT}', '收入确认凭证请先传递凭证辅助段');
                        //		 f_hls.winNoMask();
                        //		 return;
                        //	}
                        url = $('transfer_voucher_link').getUrl();
                    }
Spencer Chang's avatar
Spencer Chang committed
206
                }
Darming's avatar
Darming committed
207

Spencer Chang's avatar
Spencer Chang committed
208
                Leaf.request({
Darming's avatar
Darming committed
209
                    url: $('check_link').getUrl(),
Spencer Chang's avatar
Spencer Chang committed
210
                    para: datas,
Darming's avatar
Darming committed
211

Spencer Chang's avatar
Spencer Chang committed
212 213
                    success: function(res) {
                        Leaf.request({
Darming's avatar
Darming committed
214
                            url: url,
Spencer Chang's avatar
Spencer Chang committed
215
                            para: datas,
Darming's avatar
Darming committed
216

Spencer Chang's avatar
Spencer Chang committed
217
                            success: function(res) {
Darming's avatar
Darming committed
218 219 220 221 222
                                f_hls.winNoMask();

                                Leaf.SideBar.show({
                                    msg: '${l:HLS.SUBMIT_SUCCESS}',
                                    duration: 2000
Spencer Chang's avatar
Spencer Chang committed
223
                                });
Darming's avatar
Darming committed
224
                                hls301_journal_query();
Spencer Chang's avatar
Spencer Chang committed
225 226 227 228 229 230 231 232 233
                            },
                            failure: function() {
                                f_hls.winNoMask();
                            },
                            error: function() {
                                f_hls.winNoMask();
                            },
                            scope: this
                        });
Darming's avatar
Darming committed
234 235 236

                    },
                    failure: function() {
Spencer Chang's avatar
Spencer Chang committed
237
                        f_hls.winNoMask();
Darming's avatar
Darming committed
238 239 240 241 242 243 244 245
                    },
                    error: function() {
                        f_hls.winNoMask();
                    },
                    scope: this
                });


Spencer Chang's avatar
Spencer Chang committed
246
            }
Darming's avatar
Darming committed
247 248 249 250 251 252 253
        }

        function journal_submit_unpost(datas) {
            Leaf.request({
                url: $('hls_journal_unpost_to_gld_link').getUrl(),
                para: datas,
                success: function(res) {
Spencer Chang's avatar
Spencer Chang committed
254
                    f_hls.winNoMask();
Darming's avatar
Darming committed
255 256 257
                    Leaf.SideBar.show({
                        msg: '${l:HLS.SUBMIT_SUCCESS}',
                        duration: 2000
Spencer Chang's avatar
Spencer Chang committed
258
                    });
Darming's avatar
Darming committed
259 260 261
                    $('hls_journal_header_result_ds').query();
                },
                failure: function() {
Spencer Chang's avatar
Spencer Chang committed
262
                    f_hls.winNoMask();
Darming's avatar
Darming committed
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284
                },
                error: function() {
                    f_hls.winNoMask();
                },
                scope: this
            });
        }

        function hls301_journal_unpost() {
            f_hls.winMask();
            var ds = $('hls_journal_header_result_ds');
            var records = ds.getSelected();
            if (records.length == 0) {
                f_hls.winNoMask();
                return;
            }
            var datas = [];
            for (var i = 0;i < records.length;i++) {
                var obj = {};
                obj['journal_header_id'] = records[i].get('journal_header_id');
                obj['_status'] = 'execute';
                datas[i] = obj;
Spencer Chang's avatar
Spencer Chang committed
285
            }
Darming's avatar
Darming committed
286 287 288 289 290 291 292 293 294
            journal_submit_unpost(datas);
        }

        function on_loan_journal_header_query(ds, qpara) {
            qpara['gld_flag'] = 'N';
        }

        function hls301_bp_send() {
            Leaf.showConfirm('提示', '商业伙伴(项目已创建合同)同步至SBO,(上限400)您确定继续吗?', function() {
295
                Leaf.Masker.mask(Ext.getBody(),'正在传输...请勿离开当前界面...');
Spencer Chang's avatar
Spencer Chang committed
296
                Leaf.request({
Darming's avatar
Darming committed
297 298
                    url: $('hls301_send_bp_to_sbo').getUrl(),
                    success: function() {
Spencer Chang's avatar
Spencer Chang committed
299
                        Leaf.SideBar.show({
Darming's avatar
Darming committed
300 301
                            msg: '提交成功',
                            duration: 3000
Spencer Chang's avatar
Spencer Chang committed
302
                        });
303
                        Leaf.Masker.unmask(Ext.getBody());
Darming's avatar
Darming committed
304
                        //$('hls_journal_header_result_ds').query();
Spencer Chang's avatar
Spencer Chang committed
305 306
                    },
                    failure: function() {
307
                        Leaf.Masker.unmask(Ext.getBody());
Spencer Chang's avatar
Spencer Chang committed
308 309
                    },
                    error: function() {
310
                        Leaf.Masker.unmask(Ext.getBody());
Spencer Chang's avatar
Spencer Chang committed
311 312 313
                    },
                    scope: this
                });
Darming's avatar
Darming committed
314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329
            });
        }

        //手动传输凭证


        function hls301_journal_send() {
            var je_detail_count = 0;
            var count = 0;
            var batch_flag;
            var records = $('hls_journal_header_result_ds').getSelected();
            var limit = '${get_limit/record/@sbo_limit}';
            var sbo_detail_limit = '${get_limit/record/@sbo_detail_limit}';
            if  (isNaN(limit)){
                Leaf.showMessage('${l:HLS.PROMPT}', '传输上限获取失败,请联系管理员!');
                return;
Spencer Chang's avatar
Spencer Chang committed
330
            }
Darming's avatar
Darming committed
331 332 333 334 335 336 337 338 339
            if (records.length < 1) {
                Leaf.showMessage('${l:HLS.PROMPT}', '请选择至少一条数据');
                return;
            }
            var datas = [];

            for (var i = 0;i < records.length;i++) {
                if (records[i].get('post_gl_status') == 'Y' || records[i].get('post_gl_status') == 'PROCESSING') {
                    Leaf.showMessage('${l:HLS.PROMPT}', '该凭证已传输至SBO系统');
Spencer Chang's avatar
Spencer Chang committed
340 341
                    return;
                }
Darming's avatar
Darming committed
342 343 344 345 346 347
                je_detail_count = Number(records[i].get('je_detail_count'));
                count = je_detail_count + Number(count);
                var data = {
                    journal_header_id: records[i].get('journal_header_id')
                };
                datas.push(data);
Spencer Chang's avatar
Spencer Chang committed
348
            }
Darming's avatar
Darming committed
349 350 351 352 353 354 355 356
            /* if (count > limit) {
                batch_flag = 'Y';
            } else {
                batch_flag = 'N';
            } */
            if (count > sbo_detail_limit) {
                Leaf.showMessage('${l:HLS.PROMPT}', '选择的凭证总行数超过了能够传输的最大的数量' + sbo_detail_limit + '条,')
                return;
Spencer Chang's avatar
Spencer Chang committed
357
            }
Darming's avatar
Darming committed
358 359 360 361 362 363
            batch_flag = 'Y';  // 全部修改为异步传输
            var queryParams = new Object();
            queryParams['details'] = datas;
            queryParams['batch_flag'] = batch_flag;
            /* if (count > limit) {
                Leaf.showConfirm('提示', '由于凭证行数超过'+limit+'行,传输至SBO后不能立即得到返回结果,您确定继续吗?', function() { */
364
            Leaf.Masker.mask(Ext.getBody(),'正在传输...请勿离开当前界面...');
Darming's avatar
Darming committed
365 366 367 368 369 370 371 372
            Leaf.request({
                url: $('hls301_send_data').getUrl(),
                para: queryParams,
                success: function() {
                    Leaf.SideBar.show({
                        msg: '已提交请求',
                        duration: 3000
                    });
373
                    Leaf.Masker.unmask(Ext.getBody());
Darming's avatar
Darming committed
374 375 376
                    $('hls_journal_header_result_ds').query();
                },
                failure: function() {
377
                    Leaf.Masker.unmask(Ext.getBody());
Darming's avatar
Darming committed
378 379
                },
                error: function() {
380
                    Leaf.Masker.unmask(Ext.getBody());
Darming's avatar
Darming committed
381 382 383 384 385 386 387 388 389 390 391 392 393 394 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
                },
                scope: this
            });
            /* });
        } else {
            lock_current_window2('正在传送,请勿离开当前界面。。。');
            Leaf.request({
                url: $('hls301_send_data').getUrl(),
                para: queryParams,
                success: function() {
                    Leaf.SideBar.show({
                        msg: '已提交请求',
                        duration: 3000
                    });
                    unlock_current_window();
                    $('hls_journal_header_result_ds').query();
                },
                failure: function() {
                    unlock_current_window();
                },
                error: function() {
                    unlock_current_window();
                },
                scope: this
            });
        }  */

        }

        function hls_journal_header_result_func(record, name) {
            if (name == 'post_gl_log') {
                return 'hls_journal_headers_grid_textArea_id';
            }
            return '';
        }

        function select_check_box(record) {
            if (record.get('post_gl_status') == 'Y' || record.get('post_gl_status') == 'PROCESSING') {
                return false;
            } else if (record.get('post_gl_status') == 'FAILURE') {
                return true;
            }
            if (record.get('je_transaction_code') == 'HL_PAYMENT_FEE_1') {
                return true;
            } else if (record.get('je_transaction_code') == 'HL_PAYMENT_FEE') {
                return true;
            } else {
                return true;
            }
        }
Spencer Chang's avatar
Spencer Chang committed
431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450
        ]]></script>
        <a:screen-include screen="modules/cont/CON500/con_contract_get_layout_code.lview"/>
        <a:dataSets>
            <a:dataSet id="hls301_yes_no_ds" lookupCode="YES_NO"/>
            <a:dataSet id="hls_document_type_ds">
                <a:datas dataSource="/model/hls_document_type_path"/>
            </a:dataSet>
            <a:dataSet id="post_gl_status_ds" lookupCode="SUBSYSTEM_POST_GL_FLAG"/>
            <a:dataSet id="hls_journal_header_query">
                <a:fields>
                    <a:field name="contract_number"/>
                    <a:field name="journal_num"/>
                    <a:field name="category_code_desc" displayField="description" options="hls_document_type_ds" returnField="category_code" valueField="document_type"/>
                    <a:field name="journal_date_from"/>
                    <a:field name="journal_date_to"/>
                    <a:field name="total_amount_dr_from"/>
                    <a:field name="total_amount_dr_to"/>
                    <a:field name="period_name"/>
                    <a:field name="external_journal_num"/>
                    <a:field name="bp_id_tenant"/>
Darming's avatar
Darming committed
451
                    <a:field name="bp_id_tenant_desc" lovGridHeight="400" lovHeight="550" lovService="hls.HLS301.hls_bp_master_v_for_lov" lovWidth="500">
Spencer Chang's avatar
Spencer Chang committed
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
                        <a:mapping>
                            <a:map from="bp_name" to="bp_id_tenant_desc"/>
                            <a:map from="bp_id" to="bp_id_tenant"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="source_table"/>
                    <a:field name="reference1"/>
                    <a:field name="je_transaction_code"/>
                    <a:field name="je_transaction_desc" lovGridHeight="420" lovHeight="550" lovPageSize="20" lovService="gld.GLD104.gld_je_transaction_for_lov" lovWidth="500">
                        <a:mapping>
                            <a:map from="je_transaction_code" to="je_transaction_code"/>
                            <a:map from="je_transaction_desc" to="je_transaction_desc"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="post_gl_status" defaultValue="N" readOnly="true"/>
                    <a:field name="post_gl_status_desc" displayField="code_value_name" options="post_gl_status_ds" returnField="post_gl_status" valueField="code_value"/>
                    <a:field name="responsibility_center_name_from" lovHeight="500" lovLabelWidth="100" lovService="fnd.FND2110.fnd_responsibility_centers_lov" lovWidth="550" title="HLS.RESPONSIBILITY_CENTER_NAME">
                        <a:mapping>
                            <a:map from="responsibility_center_id" to="responsibility_center_id"/>
                            <a:map from="responsibility_center_code" to="responsibility_center_code_from"/>
                            <a:map from="responsibility_center_name" to="responsibility_center_name_from"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="responsibility_center_name_to" lovHeight="500" lovLabelWidth="100" lovService="fnd.FND2110.fnd_responsibility_centers_lov" lovWidth="550" title="HLS.RESPONSIBILITY_CENTER_NAME">
                        <a:mapping>
                            <a:map from="responsibility_center_code" to="responsibility_center_code_to"/>
                            <a:map from="responsibility_center_name" to="responsibility_center_name_to"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="account_code_from" autoComplete="true" lovHeight="500" lovLabelWidth="100" lovService="hls.HLS301.hls_journal_account_for_lov" lovWidth="500" title="HLS530.ACCOUNT_NAME">
                        <a:mapping>
                            <a:map from="account_code" to="account_code_from"/>
                            <a:map from="description" to="account_name_from"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="account_code_to" autoComplete="true" lovHeight="600" lovLabelWidth="100" lovUrl="${/request/@context_path}/modules/hls/HLS530/gld_company_account_tree.lview" lovWidth="550" title="HLS530.ACCOUNT_NAME">
                        <a:mapping>
                            <a:map from="account_code" to="account_code_to"/>
                            <a:map from="description" to="account_name_to"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="company_short_name" lovHeight="500" lovLabelWidth="100" lovService="fnd.fnd_companies_lov" lovWidth="550" title="HLS530.JOURNAL_COMPANY">
                        <a:mapping>
                            <a:map from="company_id" to="je_company_id"/>
                            <a:map from="company_short_name" to="company_short_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="currency_code" lovHeight="500" lovLabelWidth="100" lovService="basic.gld_currency_v_lov" lovWidth="550">
                        <a:mapping>
                            <a:map from="currency_code" to="currency_code"/>
                            <a:map from="currency_name" to="currency_name"/>
                        </a:mapping>
                    </a:field>
                    <a:field name="merge_parent_flag_desc" defaultValue="否" displayField="code_value_name" options="hls301_yes_no_ds" returnField="merge_parent_flag" valueField="code_value"/>
                    <a:field name="merge_parent_flag" defaultValue="N"/>
                </a:fields>
                <a:events>
                    <a:event name="update" handler="onUpdate_para_journalQueryDs"/>
                </a:events>
            </a:dataSet>
Darming's avatar
Darming committed
512
            <a:dataSet id="hls_journal_header_result_ds" autoPageSize="true" autoQuery="true" model="hls.HLS301.hls_journal_header_v" queryDataSet="hls_journal_header_query" selectFunction="select_check_box" selectable="true">
Spencer Chang's avatar
Spencer Chang committed
513 514 515 516 517 518 519 520 521 522 523
                <a:fields>
                    <a:field name="post_gl_log" readOnly="true"/>
                </a:fields>
                <a:events>
                    <a:event name="query" handler="on_loan_journal_header_query"/>
                </a:events>
            </a:dataSet>
        </a:dataSets>
        <a:screenBody>
            <a:screenTopToolbar>
                <a:screenTitle/>
Darming's avatar
Darming committed
524
                <a:toolbarButton click="hls301_journal_exit" text="HLS.EXIT"/>
Spencer Chang's avatar
Spencer Chang committed
525
                <a:toolbarButton click="hls301_journal_reset" text="HLS.RESET"/>
Darming's avatar
Darming committed
526
                <a:toolbarButton click="hls301_journal_query" text="HLS.QUERY"/>
Spencer Chang's avatar
Spencer Chang committed
527
                <a:toolbarButton click="hls301_journal_new" text="手工创建"/>
Darming's avatar
Darming committed
528 529
                <a:toolbarButton click="hls301_journal_send" text="凭证传输"/>
                <a:toolbarButton click="hls301_bp_send" text="商业伙伴传输"/>
Spencer Chang's avatar
Spencer Chang committed
530 531 532 533
                <!--	<a:toolbarButton id="hls301_journal_post_ref_id" click="hls301_journal_post_ref" text="传辅助段"/> -->
                <!-- <a:toolbarButton click="hls301_journal_post" text="HLS530.JOURNAL_POST_GL"/> -->
                <!-- <a:toolbarButton click="hls301_journal_unpost" text="HLS530.JOURNAL_UNPOST_GL"/> -->
            </a:screenTopToolbar>
Darming's avatar
Darming committed
534
            <a:form column="5" labelSeparator=" " labelWidth="100" marginWidth="40" title="HAP_QUERY_TITLE">
Spencer Chang's avatar
Spencer Chang committed
535 536 537 538 539 540 541 542 543 544
                <a:textField name="journal_num" bindTarget="hls_journal_header_query" prompt="HLS530.JOURNAL_NUM"/>
                <a:comboBox name="merge_parent_flag_desc" bindTarget="hls_journal_header_query" prompt="合并凭证"/>
                <!-- <a:lov name="account_code_from" bindTarget="hls_journal_header_query" prompt="HLS530.ACCOUNT_NAME_FROM"/>
                <a:lov name="account_code_to" bindTarget="hls_journal_header_query" prompt="HLS530.ACCOUNT_NAME_TO"/> -->
                <a:datePicker name="journal_date_from" bindTarget="hls_journal_header_query" prompt="HLS530.JOURNAL_DATE_FROM"/>
                <a:datePicker name="journal_date_to" bindTarget="hls_journal_header_query" prompt="HLS530.JOURNAL_DATE_TO"/>
                <a:lov name="company_short_name" bindTarget="hls_journal_header_query" prompt="HLS530.JOURNAL_COMPANY"/>
                <a:numberField name="total_amount_dr_from" allowFormat="true" bindTarget="hls_journal_header_query" prompt="HLS530.TOTAL_AMOUNT_DR_FROM"/>
                <a:numberField name="total_amount_dr_to" allowFormat="true" bindTarget="hls_journal_header_query" prompt="HLS530.TOTAL_AMOUNT_DR_TO"/>
                <a:lov name="je_transaction_desc" bindTarget="hls_journal_header_query" prompt="HLS530.JE_TRANSACTION"/>
Darming's avatar
Darming committed
545
                <a:lov name="bp_id_tenant_desc" bindTarget="hls_journal_header_query" prompt="商业伙伴"/>
Spencer Chang's avatar
Spencer Chang committed
546 547 548 549 550
                <a:comboBox name="post_gl_status_desc" bindTarget="hls_journal_header_query" prompt="HLS530.IS_POSTED"/>
                <a:textField name="contract_number" bindTarget="hls_journal_header_query" prompt="合同编号"/>
                <!-- <a:textField name="external_journal_num" bindTarget="hls_journal_header_query" prompt="HLS530.EXTERNAL_JOURNAL_NUM"/> -->
                <!-- <a:textField name="reference1" bindTarget="hls_journal_header_query" prompt="HLS530.REFERENCE1"/> -->
            </a:form>
Darming's avatar
Darming committed
551
            <a:grid id="hls_journal_headers_grid" bindTarget="hls_journal_header_result_ds" marginHeight="250" marginWidth="40" navBar="true">
Spencer Chang's avatar
Spencer Chang committed
552 553 554 555 556 557 558 559 560 561 562
                <a:columns>
                    <a:column name="journal_num" lock="true" prompt="HLS530.JOURNAL_NUM" renderer="hls301_journal_num_render" 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="journal_date" align="center" prompt="HLS530.JOURNAL_DATE" renderer="Leaf.formatDate" width="90"/>
                    <!--   <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="金额" 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="post_gl_status_desc" align="center" prompt="HLS.STATUS" width="100"/>
Darming's avatar
Darming committed
563 564 565 566
                    <a:column name="je_detail_count" prompt="凭证行数量" width="50"/>
                    <a:column name="sbo_num" align="center" prompt="SBO凭证号" width="100"/>
                    <a:column name="post_gl_log" editorFunction="hls_journal_header_result_func" prompt="传输信息" width="150"/>
                    <a:column name="sbo_req_number" align="center" prompt="SBO请求批次号" width="130"/>
Spencer Chang's avatar
Spencer Chang committed
567 568 569 570 571 572 573 574 575
                    <!--<a:column name="post_gl_log" editor="hls530_textArea_id" prompt="金蝶日志" width="200"/> -->
                </a:columns>
                <a:editors>
                    <a:textArea id="hls530_textArea_id"/>
                </a:editors>
            </a:grid>
        </a:screenBody>
    </a:view>
</a:screen>