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
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
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
533
534
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
636
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
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
<?xml version="1.0" encoding="UTF-8"?>
<!--
$Author: qwm
$Date: 2013-12-28 下午1:24:13
$Revision: 1.0
$Purpose:
-->
<a:screen xmlns:a="http://www.leaf-framework.org/application" customizationEnabled="true" trace="true">
<a:init-procedure>
<a:model-query defaultWhereClause="t1.role_id=${/session/@role_id} and t1.company_id=${/session/@company_id}"
fetchAll="true" model="hls.HLS109.hls_default_parameter" rootPath="hls_default_parameter_path"/>
<a:model-query defaultWhereClause="fc.company_id=${/session/@company_id}" fetchAll="true"
model="fnd.fnd_companies" rootPath="default_company_path"/>
<a:model-query autoCount="false" fetchAll="true" model="gld.FND5800.gld_period_status_fieldset"
rootPath="fieldset"/>
</a:init-procedure>
<a:view>
<a:link id="con_finance_income_link"
url="${/request/@context_path}/modules/cont/CON901/con_finance_income.lview"/>
<!-- <a:link id="tre_accrued_interest_link" url="${/request/@context_path}/modules/hls/HLS801/tre_accrued_interest.lview"/>
<a:link id="con_unearned_finance_income_link" url="${/request/@context_path}/modules/hls/HLS801/con_unearned_finance_income.lview"/> -->
<a:link id="hls_monthly_statement_link"
url="${/request/@context_path}/modules/hls/HLS801/hls_monthly_statement.lview"/>
<a:link id="gld_period_pkg_init_period_link" model="db.gld_period_pkg.init_period" modelaction="update"/>
<a:link id="gld_period_pkg_close_period_link" model="db.gld_period_pkg.close_period" modelaction="execute"/>
<a:link id="gld_period_pkg_open_period_link" model="db.gld_period_pkg.open_period" modelaction="execute"/>
<a:link id="formula_sheets_excel_id"
url="${/request/@context_path}/modules/hls/HLS801/con_unearned_finance_income_excel_sheets.lsc"/>
<a:link id="insert_tre_accrued_interest_link" model="hls.HLS801.insert_tre_accrued_interest"
modelaction="execute"/>
<a:link id="insert_con_finance_income_link" model="hls.HLS801.con_finance_income" modelaction="update"/>
<a:link id="period_month_close_link" model="hls.HLS801.period_month_close" modelaction="execute"/>
<a:link id="tre_interest_confirm_link" model="hls.HLS801.tre_interest_confirm" modelaction="execute"/>
<a:link id="main_link" url="${/request/@context_path}/welcome.lview"/>
<script><![CDATA[
//HLS801.NEXT_STEP
var step = 0;
var g_company_id;
var g_company_id_2;
function nextStep() {
var stepTabPanel = $('step');
step = step + 1;
stepTabPanel.setEnabled(step);
stepTabPanel.selectTab(step);
stepTabPanel.setDisabled(step - 1);
}
//HLS801.LAST_STEP
function upStep() {
var stepTabPanel = $('step');
step = step - 1;
stepTabPanel.setEnabled(step);
stepTabPanel.selectTab(step);
stepTabPanel.setDisabled(step + 1);
}
//取消
function cancelFun() {
//history.go(-1);
window.location.href = $('main_link').getUrl();
}
function backFun() {
Leaf.showConfirm('${l:HLS.PROMPT}', '确定返回?', function okFun() {
window.location.href = $('hls_monthly_statement_link').getUrl();
}, function canFun() {
});
}
function step_0NextStep() {
var headers_ds = $('hls_monthly_statement_ds');
var record = headers_ds.getAt(0);
var period_name = typeof (record.get('period_name')) == 'undefined' ? 0 : record.get('period_name');
var calc_end_date = typeof (record.get('calc_end_date')) == 'undefined' ? 0 : record.get('calc_end_date');
if (period_name == 0 || period_name == '' || calc_end_date == 0 || calc_end_date == '') {
Leaf.showMessage('${l:HLS.PROMPT}', '请确认期间以及截止日!');
} else {
nextStep();
}
}
function step_1NextStep() {
var headers_ds = $('hls_monthly_statement_ds');
var record = headers_ds.getAt(0);
var period_name = record.get('period_name');
var calc_end_date = record.get('calc_end_date');
$('unearned_finance_income_ds').setQueryParameter('calc_end_date', record.get('calc_end_date'));
$('unearned_finance_income_ds').query();
nextStep();
alert(record.get('calc_end_date'));
/* year = period_name.substring(0, 4);
month = period_name.substring(5, 7);
var query_ds = $('unearned_finance_income_query_ds');
var qrecord = query_ds.getAt(0);
qrecord.set('year',year);
qrecord.set('month',month);
$('unearned_finance_income_ds').setQueryParameter('calc_end_date', record.get('calc_end_date'));
$('unearned_finance_income_ds').query(); */
}
function step_2NextStep() {
nextStep();
}
function hls202_link_con901_fun() {
// window.location.href = $('con_finance_income_link').getUrl();
new Leaf.Window({
id: 'con_finance_income_window',
url: $('con_finance_income_link').getUrl(),
params: {
winId: 'con_finance_income_window'
},
title: '',
fullScreen: true
});
}
function accrued_interest_query() {
var headers_ds = $('hls_monthly_statement_ds');
var record = headers_ds.getAt(0);
$('tre_accrued_interest_ds').setQueryParameter('calc_end_date', record.get('calc_end_date'));
$('tre_accrued_interest_ds').query();
}
function do_accrued_interest_excel() {
var url;
var headers_ds = $('hls_monthly_statement_ds');
var record = headers_ds.getAt(0);
if (Ext.isEmpty(g_company_id)) {
url = $('formula_sheets_excel_id').getUrl() + '?internal_period_num=' + record.get('internal_period_num') + '&period_name=' + record.get('period_name') + '&datasoure_type=accrued_interest';
} else {
url = $('formula_sheets_excel_id').getUrl() + '?company_id=' + g_company_id + '&internal_period_num=' + record.get('internal_period_num') + '&period_name=' + record.get('period_name') + '&datasoure_type=accrued_interest';
}
window.open(url);
}
function accrued_interest_Onupdate(ds, record, name, value, oldVlaue) {
if (name == 'company_id') {
g_company_id = value;
}
}
function unearned_finance_income_query() {
var headers_ds = $('hls_monthly_statement_ds');
var record = headers_ds.getAt(0);
$('unearned_finance_income_ds').setQueryParameter('calc_end_date', record.get('calc_end_date'));
$('unearned_finance_income_ds').query();
}
function do_unearned_finance_income_excel() {
var url;
var headers_ds = $('hls_monthly_statement_ds');
var record = headers_ds.getAt(0);
if (Ext.isEmpty(g_company_id_2)) {
url = $('formula_sheets_excel_id').getUrl() + '?internal_period_num=' + record.get('internal_period_num') + '&period_name=' + record.get('period_name') + '&datasoure_type=unearned_finance_income';
} else {
url = $('formula_sheets_excel_id').getUrl() + '?company_id=' + g_company_id_2 + '&internal_period_num=' + record.get('internal_period_num') + '&period_name=' + record.get('period_name') + '&datasoure_type=unearned_finance_income';
}
window.open(url);
}
function unearned_finance_income_Onupdate(ds, record, name, value, oldVlaue) {
if (name == 'company_id') {
g_company_id_2 = value;
}
}
function monthly_statement_Onupdate(ds, record, name, value, oldVlaue) {
if (name == 'period_name') {
year = value.substring(0, 4);
month = value.substring(5, 7);
var query_ds = $('accrued_interest_query_ds');
var qrecord = query_ds.getAt(0);
var query_ds_1 = $('unearned_finance_income_query_ds');
var qrecord_1 = query_ds_1.getAt(0);
qrecord.set('year', year);
qrecord.set('month', month);
qrecord_1.set('year', year);
qrecord_1.set('month', month);
$('tre_accrued_interest_ds').setQueryParameter('internal_period_num', record.get('internal_period_num'));
$('tre_accrued_interest_ds').query();
$('unearned_finance_income_ds').setQueryParameter('internal_period_num', record.get('internal_period_num'));
$('unearned_finance_income_ds').query();
$('close_open_ds').setQueryParameter('internal_period_num', record.get('internal_period_num'));
$('close_open_ds').setQueryParameter('period_set_code', '${/model/fieldset/record/@period_set_code}');
$('close_open_ds').query();
record.getField('calc_end_date').setLovPara('internal_period_num', record.get('internal_period_num'));
} else if (name == 'calc_end_date') {
// day = value.substring(8, 10);
// var quer_ds_1 = $('unearned_finance_income_query_ds');
// var qrec_1 = quer_ds_1.getAt(0);
// qrec_1.set('day', day);
// qrec_1.set('calc_end_date', value);
$('unearned_finance_income_ds').setQueryParameter('calc_end_date', record.get('calc_end_date'));
$('unearned_finance_income_ds').query();
}
}
function openPeriodDs(value, record, name) {
var period_status_code = record.get('period_status_code');
var ds = "close_open_ds";
if (period_status_code == 'C' || period_status_code == 'U') {
var url = $('gld_period_pkg_open_period_link').getUrl();
return '<a href="javascript:executeOpen(\'' + ds + '\',\'' + url + '\',' + record.id + ')">${l:OPEN_PERIOD}</a>';
} else if (period_status_code == 'O') {
return '';
}
}
function closePeriodDs(value, record, name) {
var period_status_code = record.get('period_status_code');
var ds = "close_open_ds";
if (period_status_code == 'C' || period_status_code == 'U') {
return '';
} else if (period_status_code == 'O') {
var url = $('gld_period_pkg_close_period_link').getUrl();
return '<a href="javascript:executeClose(\'' + ds + '\',\'' + url + '\',' + record.id + ')">${l:CLOSE_PERIOD}</a>';
}
}
function statusRenderer(value, record, name) {
if (value == null || value == undefined) {
return '${l:PROMPT.NOT_OPEN}';
} else if (value == 'O') {
return '${l:PROMPT.OPENED}';
} else if (value == 'C') {
return '${l:PROMPT.CLOSED}';
}
}
function executeOpen(ds, url, id) {
record = $(ds).findById(id);
Leaf.request({
url: url,
para: record.data,
success: function () {
record.set('period_status_code', 'O');
Leaf.SideBar.enable = true;
Leaf.SideBar.show({
msg: '打开成功',
duration: 3000
});
},
scope: this
});
}
function executeClose(ds, url, id) {
record = $(ds).findById(id);
if ($('close_open_ds').getAll().length == 0) {
Leaf.request({
url: $('gld_period_pkg_init_period_link').getUrl(),
para: record.data,
success: function () {
Leaf.showMessage('${l:PROMPT}', '${l:FND_DIMENSION_VALUES.OPR_SUC}', function (cmp) {
document.location.reload();
cmp.close();
});
},
scope: this
});
} else {
Leaf.request({
url: url,
para: record.data,
success: function () {
record.set('period_status_code', 'C');
Leaf.SideBar.enable = true;
Leaf.SideBar.show({
msg: '关闭成功',
duration: 3000
});
},
scope: this
});
}
}
function unearned_finance_income_clear() {
$('unearned_finance_income_grid').clear();
}
function accrued_interest_clear() {
$('tre_accrued_interest_grid').clear();
}
var g_return_value_1;
function accrued_interest_calculate() {
var headers_ds = $('hls_monthly_statement_ds');
var record = headers_ds.getAt(0);
year = record.get('period_name').substring(0, 4);
month = record.get('period_name').substring(5, 7);
Leaf.showConfirm('${l:HLS.PROMPT}', year + '年' + month + '月' + '结算,确认计算计提利息?', function okFun() {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.SAVING}');
Leaf.request({
url: $('insert_tre_accrued_interest_link').getUrl(),
para: {
internal_period_num: record.get('internal_period_num')
},
success: function (args) { //debugger;
var result = args.result;
if (!result) {
Leaf.showWarningMessage('', '${l:PRJ509.DATA_NOT_BACK}', null, 200, 100);
return;
}
g_return_value_1 = result.return_value_1;
if (g_return_value_1 != 'SUCCESS') {
Leaf.showWarningMessage('', '计提利息计算出错!', null, 200, 100);
Leaf.Masker.unmask(Ext.getBody());
return;
}
Leaf.Masker.unmask(Ext.getBody());
$('tre_accrued_interest_ds').setQueryParameter('internal_period_num', record.get('internal_period_num'));
$('tre_accrued_interest_ds').query();
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}, Leaf.Masker.unmask(Ext.getBody()));
}
var g_return_value;
function unearned_finance_income_confirm() {
var headers_ds = $('hls_monthly_statement_ds');
var record = headers_ds.getAt(0);
//add by wdd 20180514
var income_ds = $('unearned_finance_income_ds');
var income_record = income_ds.getAll();
if (income_record.length) {
for (var i = 0; i < income_record.length; i++) {
var line_income_record = income_record[i];
var finance_income_recognized = line_income_record.get('finance_income_recognized');
if (finance_income_recognized == 'Y') {
Leaf.showMessage('提示', '该日收入已确认,请勿重复确认!', null, 250, 100);
return;
}
}
}
//end by wdd
year = record.get('period_name').substring(0, 4);
month = record.get('period_name').substring(5, 7);
day = record.get('calc_end_date').substring(8, 10);
Leaf.showConfirm('${l:HLS.PROMPT}', year + '年' + month + '月' + day + '日' + '结算,确定执行收入确认?', function okFun() {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.SAVING}');
Leaf.request({
url: $('insert_con_finance_income_link').getUrl(),
para: {
internal_period_num: record.get('internal_period_num'),
calc_end_date: record.get('calc_end_date')
},
success: function (args) {
// modify by wdd 20180514
// 收入确认出错校验移至PKG
// var result = args.result;
// if (!result) {
// Leaf.showWarningMessage('', '${l:PRJ509.DATA_NOT_BACK}', null, 200, 100);
// return;
// }
// g_return_value = result.return_value;
// if (g_return_value != 'SUCCESS') {
// Leaf.showWarningMessage('', '收入确认出错!', null, 200, 100);
// Leaf.Masker.unmask(Ext.getBody());
// return;
// }
//end by wdd
Leaf.Masker.unmask(Ext.getBody());
$('unearned_finance_income_ds').setQueryParameter('calc_end_date', record.get('calc_end_date'));
$('unearned_finance_income_ds').query();
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}, Leaf.Masker.unmask(Ext.getBody()));
}
function monthlyendFun() {
var headers_ds = $('hls_monthly_statement_ds');
var record = headers_ds.getAt(0);
Leaf.showConfirm('${l:HLS.PROMPT}', '本次月结结束后不可执行当月其他相关操作,是否确认结束?', function okFun() {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.SAVING}');
Leaf.request({
url: $('period_month_close_link').getUrl(),
para: {
internal_period_num: record.get('internal_period_num'),
calc_end_date: record.get('calc_end_date')
},
success: function (args) {
var result = args.result;
if (!result) {
Leaf.showWarningMessage('', '${l:PRJ509.DATA_NOT_BACK}', null, 200, 100);
return;
}
var period_return_value = result.period_return_value;
if (period_return_value != 'SUCCESS') {
Leaf.showWarningMessage('', '月结结束出错!', null, 200, 100);
Leaf.Masker.unmask(Ext.getBody());
return;
}
Leaf.Masker.unmask(Ext.getBody());
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}, Leaf.Masker.unmask(Ext.getBody()));
}
function accrued_interest_confirm() {
var headers_ds = $('hls_monthly_statement_ds');
var record = headers_ds.getAt(0);
year = record.get('period_name').substring(0, 4);
month = record.get('period_name').substring(5, 7);
Leaf.showConfirm('${l:HLS.PROMPT}', year + '年' + month + '月' + '结算,确认计提利息?', function okFun() {
Leaf.Masker.mask(Ext.getBody(), '${l:HLS.SAVING}');
Leaf.request({
url: $('tre_interest_confirm_link').getUrl(),
para: {
internal_period_num: record.get('internal_period_num'),
calc_end_date: record.get('calc_end_date')
},
success: function (args) { //debugger;
var result = args.result;
if (!result) {
Leaf.showWarningMessage('', '${l:PRJ509.DATA_NOT_BACK}', null, 200, 100);
return;
}
var confirm_return_value = result.confirm_return_value;
if (confirm_return_value != 'SUCCESS') {
Leaf.showWarningMessage('', '计提利息确认出错!', null, 200, 100);
Leaf.Masker.unmask(Ext.getBody());
return;
}
Leaf.Masker.unmask(Ext.getBody());
},
failure: function () {
Leaf.Masker.unmask(Ext.getBody());
},
error: function () {
Leaf.Masker.unmask(Ext.getBody());
},
scope: this
});
}, Leaf.Masker.unmask(Ext.getBody()));
}
function ratePercentRender(value, record, name) {
if (!Ext.isEmpty(value)) {
return parseFloat(mul(value, 100)) + '%';
}
}
]]></script>
<a:dataSets>
<a:dataSet id="yes_no_ds" lookupCode="YES_NO"/>
<a:dataSet id="hls_monthly_statement_ds" autoCreate="true">
<a:fields>
<a:field name="period_name" lovGridHeight="300" lovHeight="500"
lovService="gld.gld_period_lov?monthly_closed_flag=N&period_status_code=O"
lovWidth="500" required="true" title="GLD_PERIODS.PERIOD_NAME">
<a:mapping>
<a:map from="internal_period_num" to="internal_period_num"/>
<a:map from="period_name" to="period_name"/>
</a:mapping>
</a:field>
<a:field name="internal_period_num"/>
<a:field name="calc_end_date" lovGridHeight="300" lovHeight="500"
lovService="hls.HLS801.calc_end_date_ds" lovWidth="500" required="true" title="截止日查询">
<a:mapping>
<!-- <a:map from="internal_period_num" to="internal_period_num"/> -->
<a:map from="calc_end_date" to="calc_end_date"/>
</a:mapping>
</a:field>
</a:fields>
<a:events>
<a:event name="update" handler="monthly_statement_Onupdate"/>
</a:events>
</a:dataSet>
<a:dataSet id="accrued_interest_query_ds" autoCreate="true">
<a:fields>
<a:field name="company_code" lovGridHeight="300" lovHeight="450"
lovService="hls.HLS801.fnd_companies_for_lov" lovWidth="500" title="">
<a:mapping>
<a:map from="company_id" to="company_id"/>
<a:map from="company_code" to="company_code"/>
<a:map from="company_short_name" to="company_short_name"/>
</a:mapping>
</a:field>
<a:field name="year" defaultValue="${/parameter/@year}"/>
<a:field name="month" defaultValue="${/parameter/@month}"/>
<a:field name="internal_period_num" defaultValue="${/parameter/@internal_period_num}"/>
</a:fields>
<a:events>
<a:event name="update" handler="accrued_interest_Onupdate"/>
</a:events>
</a:dataSet>
<a:dataSet id="tre_accrued_interest_ds" autoPageSize="true" autoQuery="false"
model="hls.HLS801.tre_accrued_interest" queryDataSet="accrued_interest_query_ds"
selectable="true">
<a:fields>
<a:field name="recognized_flag" checkedValue="Y" defaultValue="Y" readOnly="true"
uncheckedValue="N"/>
</a:fields>
</a:dataSet>
<a:dataSet id="unearned_finance_income_query_ds" autoCreate="true">
<a:fields>
<a:field name="company_code" lovGridHeight="300" lovHeight="450"
lovService="hls.HLS801.fnd_companies_for_lov" lovWidth="500" title="">
<a:mapping>
<a:map from="company_id" to="company_id"/>
<a:map from="company_code" to="company_code"/>
<a:map from="company_short_name" to="company_short_name"/>
</a:mapping>
</a:field>
<a:field name="year" defaultValue="${/parameter/@year}"/>
<a:field name="month" defaultValue="${/parameter/@month}"/>
<a:field name="internal_period_num" defaultValue="${/parameter/@internal_period_num}"/>
<a:field name="calc_end_date" defaultValue="${/parameter/@calc_end_date}"/>
<a:field name="finance_income_recognized" displayField="code_value_name" options="yes_no_ds"
returnField="finance_income_recognized" valueField="code_value"/>
</a:fields>
<a:events>
<a:event name="update" handler="unearned_finance_income_Onupdate"/>
</a:events>
</a:dataSet>
<a:dataSet id="unearned_finance_income_ds" autoPageSize="true" autoQuery="false"
model="hls.HLS801.con_unearned_finance_income" queryDataSet="unearned_finance_income_query_ds"
selectable="true">
<a:fields>
<a:field name="finance_income_recognized" checkedValue="Y" defaultValue="Y" readOnly="true"
uncheckedValue="N"/>
</a:fields>
</a:dataSet>
<a:dataSet id="close_open_ds" autoQuery="false" fetchAll="true" model="hls.HLS801.hls_current_period_query"
queryUrl="${/request/@context_path}/autocrud/hls.HLS801.hls_current_period_query/query">
</a:dataSet>
</a:dataSets>
<a:screenBody>
<a:screenTopToolbar>
<a:screenTitle/>
</a:screenTopToolbar>
<a:hBox>
<a:tabPanel id="step" marginHeight="80" marginWidth="50">
<a:tabs>
<a:tab id="step_0" disabled="false" prompt="GLD_PERIODS.PERIOD_NAME" selected="true"
width="100">
<a:hBox height="50">
<a:button disabled="true" text="HLS801.LAST_STEP"/>
<a:label width="5"/>
<a:button click="step_0NextStep" text="HLS801.NEXT_STEP"/>
</a:hBox>
<a:hBox>
<a:fieldSet height="250" title="GLD_PERIODS.PERIOD_NAME" width="300">
<a:lov name="period_name" bindTarget="hls_monthly_statement_ds"
prompt="GLD_PERIODS.PERIOD_NAME" width="200"/>
<a:lov name="calc_end_date" bindTarget="hls_monthly_statement_ds" prompt="截止日"
width="200"/>
</a:fieldSet>
</a:hBox>
</a:tab>
<!-- <a:tab id="step_1" disabled="true" prompt="HLS801.COST" selected="false" width="100">
<a:hBox height="50">
<a:button click="upStep" text="HLS801.LAST_STEP"/>
<a:label width="5"/>
<a:button click="nextStep" text="HLS801.NEXT_STEP"/>
<a:label width="80"/>
<a:button click="accrued_interest_calculate" text="HLS.CALCULATIONS"/>
<a:label width="5"/>
<a:button click="accrued_interest_confirm" text="HLS801.COST_CONFIRM"/>
</a:hBox>
<a:form column="1" marginWidth="80" style="margin-left:3px" title="HLS.QUERY_TITLE">
<a:box column="2" labelWidth="150" style="margin-left:-80px">
<a:textField name="year" bindTarget="accrued_interest_query_ds" prompt="HLS801.YEAR" readOnly="true"/>
<a:textField name="month" bindTarget="accrued_interest_query_ds" prompt="HLS801.MONTH" readOnly="true"/>
<a:lov name="company_code" bindTarget="accrued_interest_query_ds" prompt="HLS.COMPANY_CODE"/>
<a:textField name="company_short_name" bindTarget="accrued_interest_query_ds" prompt="HLS.COMPANY_NAME" readOnly="true"/>
</a:box>
</a:form>
<p/>
<a:grid id="tre_accrued_interest_grid" bindTarget="tre_accrued_interest_ds" marginHeight="320" marginWidth="80" navBar="true" style="margin-left:3px">
<a:toolBar>
<a:button click="accrued_interest_query" icon="${/request/@context_path}/images/search.png" text="HLS.QUERY"/>
<a:button type="clear"/>
<a:button click="do_accrued_interest_excel" icon="${/request/@context_path}/images/excel_16.png" text="HLS.EXPORT"/>
</a:toolBar>
<a:columns>
<a:column name="contract_number" prompt="TRE_LOAN_CONTRACT.LOAN_CONTRACT_NUMBER" width="120"/>
<a:column name="business_type_desc" prompt="TRE503.BUSINESS_TYPE" width="120"/>
<a:column name="withdraw_number" prompt="TRE_LOAN_CONTRACT_WITHDRAW.WITHDRAW_NUMBER" width="120"/>
<a:column name="cf_item_desc" prompt="HLS.CF_ITEM_DESC" width="100"/>
<a:column name="calc_start_date" prompt="HLS801.DATE_FROM" renderer="Leaf.formatDate" width="100"/>
<a:column name="calc_end_date" prompt="HLS801.DATE_TO" renderer="Leaf.formatDate" width="100"/>
<a:column name="int_rate" align="right" prompt="HLS801.INT_RATE" renderer="ratePercentRender" width="120"/>
<a:column name="net_accrued_interest" align="right" prompt="HLS801.ACCRUED_INTEREST" renderer="Leaf.formatMoney" width="120"/>
<a:column name="recognized_flag" prompt="HLS801.RECOGNIZED_FLAG" width="70"/>
</a:columns>
</a:grid>
</a:tab> -->
<a:tab id="step_1" disabled="true" marginHeight="20" prompt="HLS801.INCOME" selected="false"
width="100">
<a:hBox height="50">
<a:button click="upStep" text="HLS801.LAST_STEP"/>
<a:label width="5"/>
<a:button click="nextStep" text="HLS801.NEXT_STEP"/>
<a:label width="80"/>
<a:button click="unearned_finance_income_confirm" text="HLS801.INCOME_CONFIRM"/>
<!-- <a:button click="unearned_finance_income_query" text="HLS.QUERY"/>
<a:button click="unearned_finance_income_clear" text="HLS.CLEAR"/> -->
<a:label width="5"/>
<!-- <a:button click="hls202_link_con901_fun" text="HLS801.OTHER_INCOME_CONFIRM"/> -->
<!-- <a:button click="do_unearned_finance_income_excel" text="RSC_FIN_STATEMENT_TMPLT_HDS.EXCEL_OUTPUT"/> -->
</a:hBox>
<a:form column="1" marginWidth="80" style="margin-left:3px" title="HLS.QUERY_TITLE">
<a:box column="2" labelWidth="150" style="margin-left:-80px">
<a:textField name="year" bindTarget="unearned_finance_income_query_ds"
prompt="HLS801.YEAR" readOnly="true"/>
<a:textField name="month" bindTarget="unearned_finance_income_query_ds"
prompt="HLS801.MONTH" readOnly="true"/>
<!-- <a:textField name="day" bindTarget="unearned_finance_income_query_ds" prompt="日" readOnly="true"/> -->
<a:lov name="company_code" bindTarget="unearned_finance_income_query_ds"
prompt="HLS.COMPANY_CODE"/>
<a:textField name="company_short_name" bindTarget="unearned_finance_income_query_ds"
prompt="HLS.COMPANY_NAME" readOnly="true"/>
<a:comboBox name="finance_income_recognized"
bindTarget="unearned_finance_income_query_ds" prompt="是否确认"/>
</a:box>
</a:form>
<p/>
<a:grid id="unearned_finance_income_grid" bindTarget="unearned_finance_income_ds"
marginHeight="300" marginWidth="80" navBar="true" style="margin-left:3px">
<a:toolBar>
<a:button click="unearned_finance_income_query"
icon="${/request/@context_path}/images/search.png" text="HLS.QUERY"/>
<!-- <a:button type="clear"/>-->
<a:button icon="${/request/@context_path}/images/excel_16.png" text="HLS.EXPORT"
type="excel"/>
</a:toolBar>
<a:columns>
<a:column name="seq" prompt="HLS801.SEQ" width="50"/>
<a:column name="contract_number" prompt="合同编号" width="150"/>
<a:column name="contract_name" prompt="合同名称" width="150"/>
<a:column name="finance_amount" align="right" prompt="HLS.FINANCE_AMOUNT"
renderer="Leaf.formatMoney" width="110"/>
<a:column name="times" prompt="期数" width="80" align="center"/>
<a:column name="period" prompt="GLD_BALANCES.PERIOD_NAME" width="150"/>
<a:column name="calc_end_date" align="center" prompt="截止日"
renderer="Leaf.formatDate" width="150"/>
<a:column name="interest" align="right" prompt="HLS801.INTEREST"
renderer="Leaf.formatMoney" width="100"/>
<a:column name="int_rate_implicit" align="right" prompt="HLS801.INT_RATE"
renderer="ratePercentRender" width="70"/>
<a:column name="calc_period" prompt="HLS801.CALC_PERIOD" width="150"/>
<a:column name="calc_date_count" prompt="HLS801.CALC_DATE_COUNT" width="100"/>
<a:column name="vat_unearned_finance_income" align="right"
prompt="HLS801.VAT_UNEARNED_FINANCE_INCOME" renderer="Leaf.formatMoney"
width="110"/>
<a:column name="adjustvat" align="right"
prompt="税改16%调整额" renderer="Leaf.formatMoney"
width="110"/>
<a:column name="adjustvat13" align="right"
prompt="税改13%调整额" renderer="Leaf.formatMoney"
width="110"/>
<a:column name="unearned_finance_income" align="right"
prompt="HLS801.UNEARNED_FINANCE_INCOME" renderer="Leaf.formatMoney"
width="110"/>
<a:column name="finance_income_recognized" prompt="HLS801.FINANCE_INCOME_RECOGNIZED"
width="80"/>
</a:columns>
</a:grid>
</a:tab>
<a:tab id="step_2" disabled="true" prompt="HLS801.MONTH_END" selected="false" width="100">
<a:hBox height="50">
<a:button click="upStep" text="HLS801.LAST_STEP"/>
<a:label width="5"/>
<a:button click="nextStep" text="HLS801.NEXT_STEP"/>
<a:label width="80"/>
<a:button click="monthlyendFun" text="HLS801.MONTH_END"/>
</a:hBox>
<a:form column="1" marginWidth="80" style="margin-left:3px" title="HLS.QUERY_TITLE">
<a:box column="2" labelWidth="150" style="margin-left:-80px">
<a:textField name="year" bindTarget="unearned_finance_income_query_ds"
prompt="HLS801.YEAR" readOnly="true"/>
<a:textField name="month" bindTarget="unearned_finance_income_query_ds"
prompt="HLS801.MONTH" readOnly="true"/>
</a:box>
</a:form>
</a:tab>
<a:tab id="step_3" disabled="true" prompt="HLS801.PERIOD_CONTROL" selected="false" width="100">
<a:hBox height="50">
<a:button click="upStep" text="HLS801.LAST_STEP"/>
<a:label width="5"/>
<a:button disabled="true" text="HLS801.NEXT_STEP"/>
<a:label width="50"/>
</a:hBox>
<a:grid id="close_open_grid" bindTarget="close_open_ds" marginHeight="300" marginWidth="80">
<a:columns>
<a:column name="period_year" align="center" prompt="GLD_PERIODS.PERIOD_YEAR"
sortable="true" width="100"/>
<a:column name="period_num" align="center"
prompt="FND_DIMENSIONS.DIMENSION_SEQUENCE" sortable="true" width="80"/>
<a:column name="start_date_c" align="center" prompt="GLD_EXCHANGE_RATE.START_DATE"
sortable="true" width="150"/>
<a:column name="end_date_c" align="center" prompt="GLD_EXCHANGE_RATE.END_DATE"
sortable="true" width="150"/>
<a:column name="quarter_num" align="center" prompt="GLD_PERIOD_STATUS.QUARTER"
sortable="true" width="80"/>
<a:column name="period_name" align="center" prompt="GLD_PERIODS.PERIOD_NAME"
sortable="true" width="120"/>
<a:column name="adjustment_flag" align="center" prompt="GLD_PERIOD_STATUS.ADJUST"
width="100"/>
<a:column name="period_status_code" align="center"
prompt="GLD_PERIOD_STATUS.PERIOD_STATUS" renderer="statusRenderer"
width="120"/>
<a:column name="actionOpen" align="center" prompt="HLS.OPEN_PERIOD"
renderer="openPeriodDs" sortable="true" width="120"/>
<a:column name="actionClose" align="center" prompt="HLS.CLOSE_PERIOD"
renderer="closePeriodDs" sortable="true" width="120"/>
</a:columns>
<a:editors>
<a:checkBox id="closed_grid_cb"/>
</a:editors>
</a:grid>
</a:tab>
</a:tabs>
</a:tabPanel>
</a:hBox>
</a:screenBody>
</a:view>
</a:screen>