-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtempjava.txt
2934 lines (2914 loc) · 65.2 KB
/
tempjava.txt
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
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Program-ID SRJLNK002 Author WORKS .
// SOURCE COMPUTER YHP OBJECT COMPUTER YHP .
#var String SQL-PAR = null ;
PRM-LIST {
#var String DBNAME = null ;
#var String FILL = "00" ;
#var String MENU-ID = SPACE ;
#var String PGMNAME = "srjlnk002" ;
#var String JOB-ID = SPACE ;
#var double PAR-ID = 0 ;
#var double SYA-ID = 0 ;
#var String LNK-DATE = SPACE ;
#var double HR-NO = 0 ;
#var double HRRK-KB = 0 ;
#var double HR-NO-WK = 0 ;
#var double HRRK-KB-WK = 0 ;
#var double TRN-KB = 0 ;
#var double LNK-DATE-KB = 0 ;
#var String MERGE-SDATE = null ;
#var String MERGE-EDATE = null ;
#var String MERGED-EDATE = null ;
#var double MERGE-STATUS = null;
#var String LNK-EDATE = SPACE ;
SUBCOM-SQL-AREA {
#var String SUBCOM-SQL = SPACE ;
#var double SUBCOM-SQL-SIZE = 150 ;
#var double SUBCOM-SQL-FC = ZERO ;
DATE-NOW-TXT {
#var String NOW-YY = null ;
#var String FILL = "/" ;
#var String NOW-MM = null ;
#var String FILL = "/" ;
#var String NOW-DD = null ;
#var String FILL = " " ;
TIME-NOW-TXT {
#var String NOW-HH = null ;
#var String FILL = ":" ;
#var String NOW-FF = null ;
#var String FILL = ":" ;
#var String NOW-SS = null ;
#var String SRK-LNK-DATE = null ;
#var String SRK-LNK-EDATE = null ;
#var String WK-PRC-DATE = null ;
#var String WK-FUTURE-DATE = null ;
#var String WK-PAST-DATE = null ;
SRJLNKCTRL-REC {
#var double PAST-LNK-KB = null;
#var double FUTURE-LNK-KB = null;
#var double PAST-SUSPEND-DAYS = null;
#var double FUTURE-SUSPEND-DAYS = null;
#var double LNK-RESTORE = null;
SRLNKTRN-REC {
#var double SRT-SYA-ID = null;
#var double SRT-SRTBL-NO = null;
#var String SRT-SRFLD-ID = null ;
#var String SRT-SRFLD-OVAL = null ;
#var String SRT-SRFLD-NVAL = null ;
#var String SRT-LNK-DATE = null ;
#var double SRT-STATUS = null;
#var double SRT-HR-NO = null;
#var double SRT-HRRK-KB = null;
#var double SRT-TRN-KB = null;
#var double SRT-KNM-SEQ = null;
#var double SRT-ENTRY-KB = null;
#var double SRT-LNK-DATE-KB = null;
#var double SRMST-MAX = 1000 ;
#var double SRKNM-MAX = 30 ;
#var double WK-STATUS = null;
#var double TGT-STATUS = null;
SRMST-REC {
#var double CNT-SRMST = null;
#var double SRM-SYA-ID = null;
#var String SRM-SDATE = null ;
#var String SRM-EDATE = null ;
#var double SRM-HR-NO = null;
#var double SRM-HRRK-KB = null;
#var double SRM-STATUS = null;
#var double SRM-TRG-KB = null;
#var String SRM-SR-SYZ-CD = null ;
#var String SRM-SYZ-PRC-DATE = null ;
#var String SRM-SYZ-HAT-DATE = null ;
#var String SRM-CHAKUNIN-DATE = null ;
#var String SRM-KINMU-SYUBETU-CD = null ;
#var String SRM-KS-PRC-DATE = null ;
#var String SRM-KYUMU-SYUBETU-CD = null ;
#var double SRM-JITAN-KINMU-KB = null;
#var String SRM-JITAN-KINMU-CD = null ;
#var String SRM-JITAN-SYUBETU-CD = null ;
#var String SRM-SIME-CD = null ;
#var String SRM-CAL-CD = null ;
#var String SRM-KINMU-CAL-CD = null ;
#var String SRM-HOLIDAY-TYPE-CD = null ;
#var String SRM-HT-PRC-DATE = null ;
#var double SRM-SAGYO-KEITAI-KB = null;
#var String SRM-SAGYO-KEITAI-CD = null ;
#var double SRM-PROJECT-KB = null;
#var double SRM-KINMUNY-KB = null;
#var String SRM-KINMUNY-CD = null ;
#var double SRM-SYORI-KB = null;
#var String SRM-SSYORIGRP-CD = null ;
#var String SRM-KYUKA-KEITAI-CD = null ;
#var String SRM-SUMSYA-KB = null ;
#var String SRM-KINMU-PTN-CD1 = null ;
#var String SRM-KINMU-PTN-CD2 = null ;
#var String SRM-KINMU-PTN-CD3 = null ;
#var String SRM-KINMU-PTN-CD4 = null ;
#var String SRM-JIKAN-CHECK-CD1 = null ;
#var String SRM-JIKAN-CHECK-CD2 = null ;
#var String SRM-JIKAN-CHECK-CD3 = null ;
#var String SRM-SR-SYZ-CD-BK = null ;
#var double SRM-OUEN-FLG = null;
#var double SRM-KANRI-KB = null;
#var double SRM-ADMIN-KB = null;
#var double SRM-CAL-KB = null;
#var String SRM-NK-KINZ-KDT = null ;
#var String SRM-NK-FUYO-KDT = null ;
#var String SRM-RK-KINZ-KDT = null ;
#var String SRM-RK-FUYO-KDT = null ;
#var String SRM-IK-KINZ-KDT = null ;
#var double SRM-SYUK-KB = null;
#var double SRM-TAIS-KB = null;
#var double SRM-KYUS-KB = null;
#var String SRM-KAI-CD = null ;
#var String SRM-SKAI-CD = null ;
#var String SRM-GKAI-CD = null ;
#var String SRM-GSYZ-CD = null ;
#var String SRM-KYUSJ-CD = null ;
#var String SRM-KK-SYORI-CD = null ;
#var double SRM-KKOJ-MT = null;
#var double SRM-KKOJ-DT = null;
#var double SRM-IKKOJ-MT = null;
#var double SRM-IKKOJ-DT = null;
#var double SRM-KYUSTKKB = null;
#var String SRM-RENKYUS-TDT = null ;
#var String SRM-RENSYUK-TDT = null ;
#var double SRM-SR-SYA-KB = null;
#var double SRM-KUMI-KB = null;
#var String SRM-GENERAL-CD1 = null ;
#var String SRM-GENERAL-CD2 = null ;
#var String SRM-GENERAL-CD3 = null ;
#var String SRM-GENERAL-CD4 = null ;
#var String SRM-GENERAL-CD5 = null ;
#var String SRM-GENERAL-CD6 = null ;
#var String SRM-GENERAL-CD7 = null ;
#var String SRM-GENERAL-CD8 = null ;
#var String SRM-GENERAL-CD9 = null ;
#var String SRM-GENERAL-CD10 = null ;
#var String SRM-GENERAL-CD11 = null ;
#var String SRM-GENERAL-CD12 = null ;
#var String SRM-GENERAL-CD13 = null ;
#var String SRM-GENERAL-CD14 = null ;
#var String SRM-GENERAL-CD15 = null ;
#var String SRM-GENERAL-CD16 = null ;
#var String SRM-GENERAL-CD17 = null ;
#var String SRM-GENERAL-CD18 = null ;
#var String SRM-GENERAL-CD19 = null ;
#var String SRM-GENERAL-CD20 = null ;
#var String SRM-GENERAL-CD21 = null ;
#var String SRM-GENERAL-CD22 = null ;
#var String SRM-GENERAL-CD23 = null ;
#var String SRM-GENERAL-CD24 = null ;
#var String SRM-GENERAL-CD25 = null ;
#var String SRM-GENERAL-CD26 = null ;
#var String SRM-GENERAL-CD27 = null ;
#var String SRM-GENERAL-CD28 = null ;
#var String SRM-GENERAL-CD29 = null ;
#var String SRM-GENERAL-CD30 = null ;
#var double SRM-BOSS-KB = null;
#var double SRM-UNIT-SHIFT-KB = null;
#var String SRM-MLTCPNY-CD = null ;
#var double CNT-SRKNM = null;
#var double SRK-KNM-SEQ = null;
#var double SRK-END-STATUS = null;
#var String SRK-K-SR-SYZ-CD = null ;
#var String SRK-K-GENERAL-CD01 = null ;
#var String SRK-K-GENERAL-CD02 = null ;
#var String SRK-K-GENERAL-CD03 = null ;
#var String SRK-K-GENERAL-CD04 = null ;
#var String SRK-K-GENERAL-CD05 = null ;
#var String SRK-K-GENERAL-CD06 = null ;
#var String SRK-K-GENERAL-CD07 = null ;
#var String SRK-K-GENERAL-CD08 = null ;
#var String SRK-K-GENERAL-CD09 = null ;
#var String SRK-K-GENERAL-CD10 = null ;
#var double SRK-STATUS = null;
#var double SRK-INSERT-FLG = null;
#var double SRK-DUMMY-FLG = null;
#var double SRK-IS-STS0-FLG = null;
WK-SRMST-REC {
#var double WSRM-SYA-ID = null;
#var String WSRM-SDATE = null ;
#var String WSRM-EDATE = null ;
#var double WSRM-HR-NO = null;
#var double WSRM-HRRK-KB = null;
#var double WSRM-STATUS = null;
#var double WSRM-TRG-KB = null;
#var String WSRM-SR-SYZ-CD = null ;
#var String WSRM-SYZ-PRC-DATE = null ;
#var String WSRM-SYZ-HAT-DATE = null ;
#var String WSRM-CHAKUNIN-DATE = null ;
#var String WSRM-KINMU-SYUBETU-CD = null ;
#var String WSRM-KS-PRC-DATE = null ;
#var String WSRM-KYUMU-SYUBETU-CD = null ;
#var double WSRM-JITAN-KINMU-KB = null;
#var String WSRM-JITAN-KINMU-CD = null ;
#var String WSRM-JITAN-SYUBETU-CD = null ;
#var String WSRM-SIME-CD = null ;
#var String WSRM-CAL-CD = null ;
#var String WSRM-KINMU-CAL-CD = null ;
#var String WSRM-HOLIDAY-TYPE-CD = null ;
#var String WSRM-HT-PRC-DATE = null ;
#var double WSRM-SAGYO-KEITAI-KB = null;
#var String WSRM-SAGYO-KEITAI-CD = null ;
#var double WSRM-PROJECT-KB = null;
#var double WSRM-KINMUNY-KB = null;
#var String WSRM-KINMUNY-CD = null ;
#var double WSRM-SYORI-KB = null;
#var String WSRM-SSYORIGRP-CD = null ;
#var String WSRM-KYUKA-KEITAI-CD = null ;
#var String WSRM-SUMSYA-KB = null ;
#var String WSRM-KINMU-PTN-CD1 = null ;
#var String WSRM-KINMU-PTN-CD2 = null ;
#var String WSRM-KINMU-PTN-CD3 = null ;
#var String WSRM-KINMU-PTN-CD4 = null ;
#var String WSRM-JIKAN-CHECK-CD1 = null ;
#var String WSRM-JIKAN-CHECK-CD2 = null ;
#var String WSRM-JIKAN-CHECK-CD3 = null ;
#var String WSRM-SR-SYZ-CD-BK = null ;
#var double WSRM-OUEN-FLG = null;
#var double WSRM-KANRI-KB = null;
#var double WSRM-ADMIN-KB = null;
#var double WSRM-CAL-KB = null;
#var String WSRM-NK-KINZ-KDT = null ;
#var String WSRM-NK-FUYO-KDT = null ;
#var String WSRM-RK-KINZ-KDT = null ;
#var String WSRM-RK-FUYO-KDT = null ;
#var String WSRM-IK-KINZ-KDT = null ;
#var double WSRM-SYUK-KB = null;
#var double WSRM-TAIS-KB = null;
#var double WSRM-KYUS-KB = null;
#var String WSRM-KAI-CD = null ;
#var String WSRM-SKAI-CD = null ;
#var String WSRM-GKAI-CD = null ;
#var String WSRM-GSYZ-CD = null ;
#var String WSRM-KYUSJ-CD = null ;
#var String WSRM-KK-SYORI-CD = null ;
#var double WSRM-KKOJ-MT = null;
#var double WSRM-KKOJ-DT = null;
#var double WSRM-IKKOJ-MT = null;
#var double WSRM-IKKOJ-DT = null;
#var double WSRM-KYUSTKKB = null;
#var String WSRM-RENKYUS-TDT = null ;
#var String WSRM-RENSYUK-TDT = null ;
#var double WSRM-SR-SYA-KB = null;
#var double WSRM-KUMI-KB = null;
#var String WSRM-GENERAL-CD1 = null ;
#var String WSRM-GENERAL-CD2 = null ;
#var String WSRM-GENERAL-CD3 = null ;
#var String WSRM-GENERAL-CD4 = null ;
#var String WSRM-GENERAL-CD5 = null ;
#var String WSRM-GENERAL-CD6 = null ;
#var String WSRM-GENERAL-CD7 = null ;
#var String WSRM-GENERAL-CD8 = null ;
#var String WSRM-GENERAL-CD9 = null ;
#var String WSRM-GENERAL-CD10 = null ;
#var String WSRM-GENERAL-CD11 = null ;
#var String WSRM-GENERAL-CD12 = null ;
#var String WSRM-GENERAL-CD13 = null ;
#var String WSRM-GENERAL-CD14 = null ;
#var String WSRM-GENERAL-CD15 = null ;
#var String WSRM-GENERAL-CD16 = null ;
#var String WSRM-GENERAL-CD17 = null ;
#var String WSRM-GENERAL-CD18 = null ;
#var String WSRM-GENERAL-CD19 = null ;
#var String WSRM-GENERAL-CD20 = null ;
#var String WSRM-GENERAL-CD21 = null ;
#var String WSRM-GENERAL-CD22 = null ;
#var String WSRM-GENERAL-CD23 = null ;
#var String WSRM-GENERAL-CD24 = null ;
#var String WSRM-GENERAL-CD25 = null ;
#var String WSRM-GENERAL-CD26 = null ;
#var String WSRM-GENERAL-CD27 = null ;
#var String WSRM-GENERAL-CD28 = null ;
#var String WSRM-GENERAL-CD29 = null ;
#var String WSRM-GENERAL-CD30 = null ;
#var double WSRM-BOSS-KB = null;
#var double WSRM-UNIT-SHIFT-KB = null;
#var String WSRM-MLTCPNY-CD = null ;
CP-SRMST-REC {
#var double CSRM-SYA-ID = null;
#var String CSRM-SDATE = null ;
#var String CSRM-EDATE = null ;
#var double CSRM-HR-NO = null;
#var double CSRM-HRRK-KB = null;
#var double CSRM-STATUS = null;
#var double CSRM-TRG-KB = null;
#var String CSRM-SR-SYZ-CD = null ;
#var String CSRM-SYZ-PRC-DATE = null ;
#var String CSRM-SYZ-HAT-DATE = null ;
#var String CSRM-CHAKUNIN-DATE = null ;
#var String CSRM-KINMU-SYUBETU-CD = null ;
#var String CSRM-KS-PRC-DATE = null ;
#var String CSRM-KYUMU-SYUBETU-CD = null ;
CP-JITAN-KINMU-KB {
#var double CSRM-JITAN-KINMU-KB = null;
#var String CSRM-JITAN-KINMU-CD = null ;
#var String CSRM-JITAN-SYUBETU-CD = null ;
#var String CSRM-SIME-CD = null ;
#var String CSRM-CAL-CD = null ;
#var String CSRM-KINMU-CAL-CD = null ;
#var String CSRM-HOLIDAY-TYPE-CD = null ;
#var String CSRM-HT-PRC-DATE = null ;
CP-SAGYO-KEITAI-KB {
#var double CSRM-SAGYO-KEITAI-KB = null;
#var String CSRM-SAGYO-KEITAI-CD = null ;
CP-PROJECT-KB {
#var double CSRM-PROJECT-KB = null;
CP-KINMUNY-KB {
#var double CSRM-KINMUNY-KB = null;
#var String CSRM-KINMUNY-CD = null ;
CP-SYORI-KB {
#var double CSRM-SYORI-KB = null;
#var String CSRM-SSYORIGRP-CD = null ;
#var String CSRM-KYUKA-KEITAI-CD = null ;
#var String CSRM-SUMSYA-KB = null ;
#var String CSRM-KINMU-PTN-CD1 = null ;
#var String CSRM-KINMU-PTN-CD2 = null ;
#var String CSRM-KINMU-PTN-CD3 = null ;
#var String CSRM-KINMU-PTN-CD4 = null ;
#var String CSRM-JIKAN-CHECK-CD1 = null ;
#var String CSRM-JIKAN-CHECK-CD2 = null ;
#var String CSRM-JIKAN-CHECK-CD3 = null ;
#var String CSRM-SR-SYZ-CD-BK = null ;
#var double CSRM-OUEN-FLG = null;
CP-KANRI-KB {
#var double CSRM-KANRI-KB = null;
CP-ADMIN-KB {
#var double CSRM-ADMIN-KB = null;
CP-CAL-KB {
#var double CSRM-CAL-KB = null;
#var String CSRM-NK-KINZ-KDT = null ;
#var String CSRM-NK-FUYO-KDT = null ;
#var String CSRM-RK-KINZ-KDT = null ;
#var String CSRM-RK-FUYO-KDT = null ;
#var String CSRM-IK-KINZ-KDT = null ;
CP-SYUK-KB {
#var double CSRM-SYUK-KB = null;
CP-TAIS-KB {
#var double CSRM-TAIS-KB = null;
CP-KYUS-KB {
#var double CSRM-KYUS-KB = null;
#var String CSRM-KAI-CD = null ;
#var String CSRM-SKAI-CD = null ;
#var String CSRM-GKAI-CD = null ;
#var String CSRM-GSYZ-CD = null ;
#var String CSRM-KYUSJ-CD = null ;
#var String CSRM-KK-SYORI-CD = null ;
CP-KKOJ-MT {
#var double CSRM-KKOJ-MT = null;
CP-KKOJ-DT {
#var double CSRM-KKOJ-DT = null;
CP-IKKOJ-MT {
#var double CSRM-IKKOJ-MT = null;
CP-IKKOJ-DT {
#var double CSRM-IKKOJ-DT = null;
CP-KYUSTKKB {
#var double CSRM-KYUSTKKB = null;
#var String CSRM-RENKYUS-TDT = null ;
#var String CSRM-RENSYUK-TDT = null ;
CP-SR-SYA-KB {
#var double CSRM-SR-SYA-KB = null;
CP-KUMI-KB {
#var double CSRM-KUMI-KB = null;
#var String CSRM-GENERAL-CD1 = null ;
#var String CSRM-GENERAL-CD2 = null ;
#var String CSRM-GENERAL-CD3 = null ;
#var String CSRM-GENERAL-CD4 = null ;
#var String CSRM-GENERAL-CD5 = null ;
#var String CSRM-GENERAL-CD6 = null ;
#var String CSRM-GENERAL-CD7 = null ;
#var String CSRM-GENERAL-CD8 = null ;
#var String CSRM-GENERAL-CD9 = null ;
#var String CSRM-GENERAL-CD10 = null ;
#var String CSRM-GENERAL-CD11 = null ;
#var String CSRM-GENERAL-CD12 = null ;
#var String CSRM-GENERAL-CD13 = null ;
#var String CSRM-GENERAL-CD14 = null ;
#var String CSRM-GENERAL-CD15 = null ;
#var String CSRM-GENERAL-CD16 = null ;
#var String CSRM-GENERAL-CD17 = null ;
#var String CSRM-GENERAL-CD18 = null ;
#var String CSRM-GENERAL-CD19 = null ;
#var String CSRM-GENERAL-CD20 = null ;
#var String CSRM-GENERAL-CD21 = null ;
#var String CSRM-GENERAL-CD22 = null ;
#var String CSRM-GENERAL-CD23 = null ;
#var String CSRM-GENERAL-CD24 = null ;
#var String CSRM-GENERAL-CD25 = null ;
#var String CSRM-GENERAL-CD26 = null ;
#var String CSRM-GENERAL-CD27 = null ;
#var String CSRM-GENERAL-CD28 = null ;
#var String CSRM-GENERAL-CD29 = null ;
#var String CSRM-GENERAL-CD30 = null ;
CP-BOSS-KB {
#var double CSRM-BOSS-KB = null;
CP-UNIT-SHIFT-KB {
#var double CSRM-UNIT-SHIFT-KB = null;
#var String CSRM-MLTCPNY-CD = null ;
#var double CSRM-CNT-SRKNM = null;
#var double CSRK-KNM-SEQ = null;
#var double CSRK-END-STATUS = null;
#var String CSRK-K-SR-SYZ-CD = null ;
#var String CSRK-K-GENERAL-CD01 = null ;
#var String CSRK-K-GENERAL-CD02 = null ;
#var String CSRK-K-GENERAL-CD03 = null ;
#var String CSRK-K-GENERAL-CD04 = null ;
#var String CSRK-K-GENERAL-CD05 = null ;
#var String CSRK-K-GENERAL-CD06 = null ;
#var String CSRK-K-GENERAL-CD07 = null ;
#var String CSRK-K-GENERAL-CD08 = null ;
#var String CSRK-K-GENERAL-CD09 = null ;
#var String CSRK-K-GENERAL-CD10 = null ;
#var double CSRK-STATUS = null;
#var double CSRK-INSERT-FLG = null;
#var double CSRK-DUMMY-FLG = null;
#var double CSRK-IS-STS0-FLG = null;
SRMST-COMPARE-REC {
#var double COM-SYA-ID = null;
#var String COM-SDATE = null ;
#var String COM-EDATE = null ;
#var double COM-HR-NO = null;
#var double COM-HRRK-KB = null;
#var double COM-STATUS = null;
#var double COM-TRG-KB = null;
COM-SONOTA {
#var String COM-SR-SYZ-CD = null ;
#var String COM-SYZ-PRC-DATE = null ;
#var String COM-SYZ-HAT-DATE = null ;
#var String COM-CHAKUNIN-DATE = null ;
#var String COM-KINMU-SYUBETU-CD = null ;
#var String COM-KS-PRC-DATE = null ;
#var String COM-KYUMU-SYUBETU-CD = null ;
#var double COM-JITAN-KINMU-KB = null;
#var String COM-JITAN-KINMU-CD = null ;
#var String COM-JITAN-SYUBETU-CD = null ;
#var String COM-SIME-CD = null ;
#var String COM-CAL-CD = null ;
#var String COM-KINMU-CAL-CD = null ;
#var String COM-HOLIDAY-TYPE-CD = null ;
#var String COM-HT-PRC-DATE = null ;
#var double COM-SAGYO-KEITAI-KB = null;
#var String COM-SAGYO-KEITAI-CD = null ;
#var double COM-PROJECT-KB = null;
#var double COM-KINMUNY-KB = null;
#var String COM-KINMUNY-CD = null ;
#var double COM-SYORI-KB = null;
#var String COM-SSYORIGRP-CD = null ;
#var String COM-KYUKA-KEITAI-CD = null ;
#var String COM-SUMSYA-KB = null ;
#var String COM-KINMU-PTN-CD1 = null ;
#var String COM-KINMU-PTN-CD2 = null ;
#var String COM-KINMU-PTN-CD3 = null ;
#var String COM-KINMU-PTN-CD4 = null ;
#var String COM-JIKAN-CHECK-CD1 = null ;
#var String COM-JIKAN-CHECK-CD2 = null ;
#var String COM-JIKAN-CHECK-CD3 = null ;
#var String COM-SR-SYZ-CD-BK = null ;
#var double COM-OUEN-FLG = null;
#var double COM-KANRI-KB = null;
#var double COM-ADMIN-KB = null;
#var double COM-CAL-KB = null;
#var String COM-NK-KINZ-KDT = null ;
#var String COM-NK-FUYO-KDT = null ;
#var String COM-RK-KINZ-KDT = null ;
#var String COM-RK-FUYO-KDT = null ;
#var String COM-IK-KINZ-KDT = null ;
#var double COM-SYUK-KB = null;
#var double COM-TAIS-KB = null;
#var double COM-KYUS-KB = null;
#var String COM-KAI-CD = null ;
#var String COM-SKAI-CD = null ;
#var String COM-GKAI-CD = null ;
#var String COM-GSYZ-CD = null ;
#var String COM-KYUSJ-CD = null ;
#var String COM-KK-SYORI-CD = null ;
#var double COM-KKOJ-MT = null;
#var double COM-KKOJ-DT = null;
#var double COM-IKKOJ-MT = null;
#var double COM-IKKOJ-DT = null;
#var double COM-KYUSTKKB = null;
#var String COM-RENKYUS-TDT = null ;
#var String COM-RENSYUK-TDT = null ;
#var double COM-SR-SYA-KB = null;
#var double COM-KUMI-KB = null;
#var String COM-GENERAL-CD1 = null ;
#var String COM-GENERAL-CD2 = null ;
#var String COM-GENERAL-CD3 = null ;
#var String COM-GENERAL-CD4 = null ;
#var String COM-GENERAL-CD5 = null ;
#var String COM-GENERAL-CD6 = null ;
#var String COM-GENERAL-CD7 = null ;
#var String COM-GENERAL-CD8 = null ;
#var String COM-GENERAL-CD9 = null ;
#var String COM-GENERAL-CD10 = null ;
#var String COM-GENERAL-CD11 = null ;
#var String COM-GENERAL-CD12 = null ;
#var String COM-GENERAL-CD13 = null ;
#var String COM-GENERAL-CD14 = null ;
#var String COM-GENERAL-CD15 = null ;
#var String COM-GENERAL-CD16 = null ;
#var String COM-GENERAL-CD17 = null ;
#var String COM-GENERAL-CD18 = null ;
#var String COM-GENERAL-CD19 = null ;
#var String COM-GENERAL-CD20 = null ;
#var String COM-GENERAL-CD21 = null ;
#var String COM-GENERAL-CD22 = null ;
#var String COM-GENERAL-CD23 = null ;
#var String COM-GENERAL-CD24 = null ;
#var String COM-GENERAL-CD25 = null ;
#var String COM-GENERAL-CD26 = null ;
#var String COM-GENERAL-CD27 = null ;
#var String COM-GENERAL-CD28 = null ;
#var String COM-GENERAL-CD29 = null ;
#var String COM-GENERAL-CD30 = null ;
#var double COM-BOSS-KB = null;
#var double COM-UNIT-SHIFT-KB = null;
#var String COM-MLTCPNY-CD = null ;
#var double COM-CNT-SRKNM = null;
#var double COM-KNM-SEQ = null;
#var double COM-END-STATUS = null;
#var String COM-K-SR-SYZ-CD = null ;
#var String COM-K-GENERAL-CD01 = null ;
#var String COM-K-GENERAL-CD02 = null ;
#var String COM-K-GENERAL-CD03 = null ;
#var String COM-K-GENERAL-CD04 = null ;
#var String COM-K-GENERAL-CD05 = null ;
#var String COM-K-GENERAL-CD06 = null ;
#var String COM-K-GENERAL-CD07 = null ;
#var String COM-K-GENERAL-CD08 = null ;
#var String COM-K-GENERAL-CD09 = null ;
#var String COM-K-GENERAL-CD10 = null ;
#var double COM-SRK-STATUS = null;
#var double COM-SRK-INSERT-FLG = null;
#var double COM-INSERT-FLG = null;
#var double COM-IS-STS0-FLG = null;
#var double WSRK-SYA-ID = null;
#var String WSRK-SDATE = null ;
#var String WSRK-EDATE = null ;
WK-SRKNM-REC {
#var double WSRK-KNM-SEQ = null;
#var double WSRK-END-STATUS = null;
#var String WSRK-K-SR-SYZ-CD = null ;
#var String WSRK-K-GENERAL-CD01 = null ;
#var String WSRK-K-GENERAL-CD02 = null ;
#var String WSRK-K-GENERAL-CD03 = null ;
#var String WSRK-K-GENERAL-CD04 = null ;
#var String WSRK-K-GENERAL-CD05 = null ;
#var String WSRK-K-GENERAL-CD06 = null ;
#var String WSRK-K-GENERAL-CD07 = null ;
#var String WSRK-K-GENERAL-CD08 = null ;
#var String WSRK-K-GENERAL-CD09 = null ;
#var String WSRK-K-GENERAL-CD10 = null ;
#var double WSRK-STATUS = null;
#var double WSRK-INSERT-FLG = null;
#var double WSRK-DUMMY-FLG = null;
#var double WSRK-IS-STS0-FLG = null;
SEC-WK {
#var String SEC-JOBID = null ;
#var double SEC-ENABLED = null;
#var String SEC-DATE = null ;
#var String PAR-ID-STR = null ;
PARA-CONTR {
#var double PR-CNT = null;
#var double PR-TIME = ZERO ;
#var double PM-ERROR-CNT = null;
#var double JL-PARA-CNT = null;
#var double JL-PARA-OK-CNT = null;
SIM-WK {
#var String P-SIM-KB = SPACE ;
#var double SIM-KB = null;
#var double USE-SIM = null;
#var double DOING-SIM = null;
#var double DBHR-MAX = 1000 ;
#var double CNT-DBHR = null;
DBHR-REC {
#var double KIHON-HR-MAX = 1000 ;
#var double CNT-KIHON-HR = null;
KIHON-HR-REC {
#var double DBTRNRK-MAX = 1000 ;
#var double CNT-DBTRNRK = null;
DBTRNRK-REC {
CONST-AREA {
#var String C-PGMID = "SRJLNK002" ;
#var String C-MAX-DATE = "2382/12/31" ;
#var String C-VERSION = "33010100" ;
WS-SRLNKTRN-REC {
#var double CNT-LNKTRN = null;
#var double WS-SRTBL-NO = null;
#var String WS-SRFLD-ID = null ;
#var String WS-SRFLD-OVAL = null ;
#var String WS-SRFLD-OVAL-J = null ;
#var String WS-SRFLD-NVAL = null ;
#var String WS-SRFLD-NVAL-J = null ;
#var String WS-LNK-DATE = null ;
#var double WS-TRN-KB = null;
#var double WS-KNM-SEQ = null;
#var double WS-HR-NO = null;
#var double WS-HRRK-KB = null;
#var double WS-STATUS = null;
#var double WS-ENTRY-KB = null;
#var double WS-SYORI-FLG = null;
WORK-AREA {
#var double OLD-SYA-ID = null;
#var String OLD-LNK-DATE = null ;
#var double OLD-HR-NO = null;
#var double OLD-HRRK-KB = null;
#var double OLD-STATUS = null;
#var double OLD-TRN-KB = null;
#var double OLD-LNK-DATE-KB = null;
#var String SRFLD-ID = null ;
#var String WK-VAL-CHR = null ;
WK-VAL-CHR-R = WK-VAL-CHR ;
#var double WK-VAL-DECEDT = null;
WK-VAL-DECEDT-R = WK-VAL-DECEDT ;
DATE-NOW {
#var String DATE-NOW-YY = null ;
#var String DATE-NOW-MM = null ;
#var String DATE-NOW-DD = null ;
#var String DATE-NOW-HH = null ;
#var String DATE-NOW-FF = null ;
#var String DATE-NOW-SS = null ;
#var String = null ;
#var double WK-ADD-DAYS = null;
#var String WK-DATE = null ;
#var double TMP-DATE-NUM = null;
#var double TMP-YEAR = null;
#var double TMP-MONTH = null;
#var double TMP-DAY = null;
#var String TMP-YEAR-STR = null ;
#var String TMP-MONTH-STR = null ;
#var String TMP-DAY-STR = null ;
#var double STRING-POINTER = null;
FLG-AREA {
#var double LNKSYAIN-EOF-FLG = null;
#var double RESTORE-EOF-FLG = null;
#var double CHK-STS1-FLG = null;
#var double IS-STS0-FLG = null;
#var double SRM-EQUAL-DATE = null;
#var double SAME-DATA-FLG = null;
#var double FLG-END = null;
IDX-AREA {
#var double IX = null;
#var double IY = null;
#var double IZ = null;
#var double SRM-IDX = null;
#var double SRM-IDX2 = null;
#var double KNM-IDX = null;
#var double KNM-IDX2 = null;
#var double SRM-PTR = null;
#var double SRM-PTR2 = null;
#var double KNM-PTR = null;
#var double KNM-PTR2 = null;
#var double WK-IDX = null;
#var double WK-IDX2 = null;
#var double WK-SRM-IDX = null;
#var double IX1 = null;
#var double IX2 = null;
#var double IX3 = null;
#var double IX4 = null;
#var double IX5 = null;
#var double IX8 = null;
#var double IX9 = null;
#var double IX6 = null;
#var double IX7 = null;
#var double DBHR-PTR = null;
#var double KIHON-HR-PTR = null;
CNT-AREA {
#var double SRM-NEW-CNT = null;
#var double SRM-INS-CNT = null;
#var double SRM-UPD-CNT = null;
#var double SRM-DEL-CNT = null;
#var double SRK-NEW-CNT = null;
#var double SRK-INS-CNT = null;
#var double SRK-UPD-CNT = null;
#var double SRK-DEL-CNT = null;
#var double SRK-MRG-CNT = null;
#var double WK-TRN-CNT = null;
TRN-SQL {
#var String = "SELECT " ;
#var String = " rk.sya_id, " ;
#var String = " rk.srtbl_no, " ;
#var String = " rk.srfld_id, " ;
#var String = " rk.srfld_oval, " ;
#var String = " rk.srfld_nval, " ;
#var String = " to_char(rk.lnk_date," ;
#var String = " 'YYYY/MM/DD'), " ;
#var String = " rk.status, " ;
#var String = " rk.hr_no, " ;
#var String = " rk.hrrk_kb, " ;
#var String = " rk.trn_kb, " ;
#var String = " rk.knm_seq, " ;
#var String = " rk.entry_kb, " ;
#var String = " NVL(rk.lnk_date_kb,1)" ;
#var String = " FROM sr_jlnktrn_rk rk " ;
#var String = " WHERE rk.srtbl_no < 91000" ;
#var String = " AND ((rk.syori_flg = 0 " ;
#var String PAST-JK-PAR = null ;
#var String FUTURE-JK-PAR = null ;
#var String = " ) OR (rk.syori_flg = 1))" ;
#var String = " AND rk.restore_flg = 0 " ;
#var String = " AND EXISTS( " ;
#var String = " SELECT 1 FROM " ;
#var String = " sr_jlnk_syain js " ;
#var String = " WHERE rk.sya_id " ;
#var String = " = js.sya_id " ;
#var String = " AND js.par_id = " ;
#var String WK-PAR-ID = null ;
#var String = ")" ;
#var String = " ORDER BY 1,6,7,hatdate," ;
#var String = "8,9,2,11,3,rk.prc_date " ;
SYORI-UPD-SQL {
#var String = "UPDATE " ;
#var String = " sr_jlnktrn_rk rk SET " ;
#var String = " syori_flg = 9, " ;
#var String = " act_lnk_date = " ;
#var String = " to_date(rtrim('" ;
#var String ACT-LNK-TIME = null ;
#var String = "'), " ;
#var String = "'YYYY/MM/DD HH24:MI:SS')," ;
#var String = " prc_date = sysdate " ;
#var String = " WHERE rk.srtbl_no =" ;
#var String SYORI-UPD-TBL-NO = null ;
#var String = " AND ((rk.syori_flg = 0 " ;
#var String PAST-UPD-JK-PAR = null ;
#var String FUTURE-UPD-JK-PAR = null ;
#var String = " ) OR (rk.syori_flg = 1))" ;
#var String SYORI-JK-PAR = null ;
PAR-JK-SQL {
#var String = " AND EXISTS( " ;
#var String = " SELECT 1 FROM " ;
#var String = " sr_jlnk_syain js " ;
#var String = " WHERE rk.sya_id " ;
#var String = " = js.sya_id " ;
#var String = " AND js.par_id = " ;
#var String WK-PAR-ID2 = null ;
#var String = ")" ;
PAST-JK-SQL {
#var String = " AND ((EXISTS( " ;
#var String = " SELECT 1 FROM " ;
#var String = " sr_hrinfo " ;
#var String = " WHERE rk.sya_id " ;
#var String = " = sya_id " ;
#var String = " AND rk.hr_no = hr_no " ;
#var String = " AND rk.hrrk_kb = hrrk_kb " ;
#var String = " AND hatdate >= " ;
#var String = " ( to_date(rtrim('" ;
#var String COMPARE-PAST-TIME = null ;
#var String = "'), " ;
#var String = "'YYYY/MM/DD HH24:MI:SS') - " ;
#var String JK-PAST-SUSPEND-DAYS = null ;
#var String = "))) or " ;
#var String = "(rk.trn_kb >=2 AND " ;
#var String = " rk.trn_kb <=6))" ;
FUTURE-JK-SQL {
#var String = " AND EXISTS( " ;
#var String = " SELECT 1 FROM " ;
#var String = " sr_hrinfo " ;
#var String = " WHERE rk.sya_id " ;
#var String = " = sya_id " ;
#var String = " AND rk.hr_no = hr_no " ;
#var String = " AND rk.hrrk_kb = hrrk_kb " ;
#var String = " AND hatdate <= " ;
#var String = " ( to_date(rtrim('" ;
#var String COMPARE-FUTURE-TIME = null ;
#var String = "'), " ;
#var String = "'YYYY/MM/DD HH24:MI:SS') + " ;
#var String JK-FUTURE-SUSPEND-DAYS = null ;
#var String = "))" ;
RESTORE-UPD-SQL {
#var String = "UPDATE " ;
#var String = " sr_jlnktrn_rk rk SET " ;
#var String = " restore_flg = -1, " ;
#var String = " prc_date = sysdate " ;
#var String = " WHERE rk.srtbl_no =" ;
#var String RESTORE-UPD-TBL-NO = null ;
#var String = " AND rk.syori_flg = 9 " ;
#var String = " AND rk.restore_flg=0 " ;
#var String = " AND EXISTS( " ;
#var String = " SELECT 1 FROM " ;
#var String = " sr_jlnkhr_no jh " ;
#var String = " WHERE jh.sya_id " ;
#var String = " = rk.sya_id " ;
#var String = " AND jh.hr_no " ;
#var String = " = rk.hr_no " ;
#var String = " AND jh.hrrk_kb " ;
#var String = " = rk.hrrk_kb " ;
#var String = " AND jh.status = 3) " ;
#var String = " AND EXISTS( " ;
#var String = " SELECT 1 FROM " ;
#var String = " sr_jlnktrn_rk rk2 " ;
#var String = " WHERE rk2.srtbl_no" ;
#var String = " = rk.srtbl_no " ;
#var String = " AND rk2.syori_flg=1" ;
#var String = " AND rk2.trn_kb = 9 " ;
#var String = " AND rk2.sya_id " ;
#var String = " = rk.sya_id " ;
#var String = " AND rk2.hr_no " ;
#var String = " = rk.hr_no " ;
#var String = " AND rk2.status " ;
#var String = " = rk.status) " ;
#var String RESTORE-JK-PAR = null ;
PRS-TIME {
#var String SLP-TIME = "20" ;
#var String = "00" ;
#beginsection
public static void CNTL()
{
#beginstatement
DISPLAY-TIME() ;
#endstatement
#beginstatement
System.out.println( "***" ) ;
#endstatement
#beginstatement
System.out.println( "*** PROGRAM START !!=> " + C-PGMID + " " + DATE-NOW-TXT ) ;
#endstatement
#beginstatement
System.out.println( "*** PROGRAM VERSION => " + C-VERSION ) ;
#endstatement
#beginstatement
System.out.println( "***" ) ;
#endstatement
#beginstatement
INIT() ;
#endstatement
#beginstatement
MAIN() ;
#endstatement
#beginstatement
FINI() ;
#endstatement
#beginstatement
DISPLAY-TIME() ;
#endstatement
#beginstatement
System.out.println( "***" ) ;
#endstatement
#beginstatement
System.out.println( "*** PROGRAM END !! => " + C-PGMID + " " + DATE-NOW-TXT ) ;
#endstatement
#beginstatement
System.out.println( "***" ) ;
#endstatement
}
#endsection
#beginsection
public static void DISPLAY-TIME()
{
#beginstatement
System.out.println( "================ INIT END ================ " + TIME-NOW-TXT ) ;
#endstatement
}
#endsection
#beginsection
public static void VER002-SET()
{
#beginstatement
#BEGINSQL
UPDATE
sr_jlnk_rk
SET
VER_002
=
#beginidentifier
:C-VERSION
#endidentifier
WHERE
seq_no
=
(
SELECT
max
(
seq_no
)
FROM
sr_jlnk_rk
)
AND
par_id
=
0
AND
status
=
2
AND
ver_002
is
null
#ENDSQL
;
#endstatement
#beginstatement
if ( ( PAR-ID > 0 ) )
{
#beginstatement
#BEGINSQL
INSERT
INTO
SR_JLNK_RK
(
SEQ_NO
,
PAR_ID
,
LNKTBL_NO
,
ACT_KB
,
STIME
,
STATUS
,
LAST_TIME
,
LAST_LNK_TIME
,
START_DATE
,
END_DATE
,
LNK_KB
,
LNKFLG01
,
LNKFLG02
,
LNKFLG03
,
LNKFLG04
,
LNKFLG05
,
LNKFLG06
,
LNKFLG07
,
LNKFLG08
,
LNKFLG09
,
LNKFLG10
,
PAST_LNK_KB
,
FUTURE_LNK_KB
,
PAST_SUSPEND_DAYS
,
FUTURE_SUSPEND_DAYS
,
VER_001
,
VER_002
,
VER_003
)
SELECT
SEQ_NO
,
#beginidentifier
:PAR-ID
#endidentifier
LNKTBL_NO
,
ACT_KB
,
sysdate
,
STATUS
,
LAST_TIME
,
LAST_LNK_TIME
,
START_DATE
,
END_DATE
,
LNK_KB
,
LNKFLG01
,
LNKFLG02