I-3.1.4. Ex&Co États
par , 01/04/2020 à 11h15 (277 Affichages)
■ Structure d'accueilAPL-AML est une monographie fragmentée en plusieurs billets pour des raisons de volume.
Un billet SYNOPSIS et un billet SOMMAIRE agrègent tous les billets du blog via des liens hypertextes.
■ ■ ■ SOMMAIRE DU BILLET ■ ■ ■
- Structure d'accueil
- État synoptique des candidatures
La structure d’accueil des états est abordée dans le Billet « Règles de développement ».
Tous les programmes d’édition respectent la même structure, la même mise en page et la même Logique de Construction de Programme (LCP).
■ État synoptique des candidatures
C’est un exemple parmi d’autres. Quand on en a vu un, on les a tous vus.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 {================================= 1_synopsis =================================} { } { ACE : 1_synopsis.ace } { } { SHELL : ../shell_1/1_synopsis (voir en fin de programme) } { } { AUTEUR : IFA2377 } { } { Objet : Etat synoptique des candidatures } { } { Date : 18 Janvier 2000 } { } {==============================================================================} { ╔═════════════╦══════╤══════╦══════╦══════╤══════╤══════╤══════╤══════╦══════╦══════════╗ ║ Ex&Co ║ N° < │ N° > ║ [H] ║ [A] │ [C] │ [D] │ [R] │ [ ] ║ [T] ║ DATE ║ ╠═════════════╬══════╪══════╬══════╬══════╪══════╪══════╪══════╪══════╬══════╬══════════╣ ║ ║ │ ║ ║ │ │ │ │ ║ ║ ║ ║ ║ │ ║ ║ │ │ │ │ ║ ║ ║ ║ ║ │ ║ ║ │ │ │ │ ║ ║ ║ ║ ║ │ ║ ║ │ │ │ │ ║ ║ ║ ╠═════════════╬══════╪══════╬══════╬══════╪══════╪══════╪══════╪══════╬══════╬══════════╣ ║ ║ │ ║ ║ │ │ │ │ ║ ║ ║ ╚═════════════╩══════╧══════╩══════╩══════╧══════╧══════╧══════╧══════╩══════╩══════════╝ Colonnes : [H]andicapés [A]ménagements [C]onfirmations [D]ésistements [R]efus [ ]attente/pièces manquantes [T]otal } {========================} {==========================} DATABASE concours END {==========================} {========================} {================================} DEFINE {==================================} {} {} {} PARAM[1] p_c_ec CHAR(5) {} {} PARAM[2] p_t_ec CHAR(2) {} {} PARAM[3] p_s_ec CHAR(2) {} {} PARAM[4] p_d_load DATE {} {} PARAM[5] p_etat CHAR(1) {} {} PARAM[6] p_logname CHAR(8) {} {} {} {} VARIABLE v_jj CHAR(3) {} {} VARIABLE v_jour CHAR(8) {} {} VARIABLE v_mois CHAR(9) {} {} VARIABLE v_annee CHAR(4) {} {} VARIABLE v_date CHAR(38) {} {} VARIABLE v_n_pim SMALLINT {} {} VARIABLE v_n_session CHAR(3) {} {} {} {} VARIABLE v_H SMALLINT {} {} VARIABLE v_A SMALLINT {} {} VARIABLE v_C SMALLINT {} {} VARIABLE v_D SMALLINT {} {} VARIABLE v_R SMALLINT {} {} VARIABLE v_B SMALLINT {} {} VARIABLE v_T SMALLINT {} {} {} {} VARIABLE ctr_H SMALLINT {} {} VARIABLE ctr_A SMALLINT {} {} VARIABLE ctr_C SMALLINT {} {} VARIABLE ctr_D SMALLINT {} {} VARIABLE ctr_R SMALLINT {} {} VARIABLE ctr_B SMALLINT {} {} VARIABLE ctr_T SMALLINT {} {} {} {} VARIABLE tot_H SMALLINT {} {} VARIABLE tot_A SMALLINT {} {} VARIABLE tot_C SMALLINT {} {} VARIABLE tot_D SMALLINT {} {} VARIABLE tot_R SMALLINT {} {} VARIABLE tot_B SMALLINT {} {} VARIABLE tot_T SMALLINT {} {} {} {} VARIABLE ESC CHAR(1) {} {} VARIABLE TOP_OF_PAGE SMALLINT {} {} VARIABLE NOPAGE SMALLINT {} {} VARIABLE NOLINE SMALLINT {} {} {} {==================================} END {===================================} {================================== INPUT ===================================} {} {} { PROMPT FOR v_dp USING " CONCOURS : " } {} {} {=================================== END ====================================} {================================} OUTPUT {==================================} {} {} { REPORT TO PRINTER } {} REPORT TO PIPE "cat > ${LOGNAME}.prt" {} {} TOP MARGIN 0 {} {} BOTTOM MARGIN 0 {} {} LEFT MARGIN 0 {} {} PAGE LENGTH 90 {} {} TOP OF PAGE "^L" {} {} {} {==================================} END {===================================} {=================================} SELECT {=================================} "D" tri_d_prog, " " tri_cts, ec.cts ec_cts, ec.c_ec ec_c_ec, ec.t_ec ec_t_ec, ec.s_ec ec_s_ec, ec.n_session ec_n_session, ec.l_session ec_l_session, ec.l_ec_1 ec_l_ec_1, ec.l_ec_2 ec_l_ec_2, tec.t_ec_l_maj tec_t_ec_l_maj, tec.t_ec_l_min tec_t_ec_l_min, pec.n_pim pec_n_pim, pec.cotorep pec_cotorep, cec.n_cec cec_n_cec, cec.c_decision cec_c_decision, cec.d_load cec_d_load, ln.pre_imprime ln_pre_imprime, ln.papier_blanc ln_papier_blanc FROM ec, tec, cec, pec, ln WHERE $p_etat = "G" AND $p_c_ec = "0" AND ec.cts = cec.cts AND ec.t_ec = tec.t_ec AND (cec.d_load = $p_d_load OR $p_d_load = "01011900") AND cec.n_pec = pec.n_pec AND ln.logname = $p_logname AND (ln.service IS NULL OR ln.service = ec.service) {==============================} UNION SELECT {==============================} "D" tri_d_prog, ec.cts tri_cts, ec.cts ec_cts, ec.c_ec ec_c_ec, ec.t_ec ec_t_ec, ec.s_ec ec_s_ec, ec.n_session ec_n_session, ec.l_session ec_l_session, ec.l_ec_1 ec_l_ec_1, ec.l_ec_2 ec_l_ec_2, tec.t_ec_l_maj tec_t_ec_l_maj, tec.t_ec_l_min tec_t_ec_l_min, pec.n_pim pec_n_pim, pec.cotorep pec_cotorep, cec.n_cec cec_n_cec, cec.c_decision cec_c_decision, cec.d_load cec_d_load, ln.pre_imprime ln_pre_imprime, ln.papier_blanc ln_papier_blanc FROM ec, tec, cec, pec, ln WHERE $p_etat = "D" AND ($p_c_ec = "0" OR $p_c_ec = ec.c_ec) AND ($p_t_ec = ec.t_ec OR $p_t_ec = "0") AND ec.cts = cec.cts AND ec.t_ec = tec.t_ec AND (cec.d_load = $p_d_load OR $p_d_load = "01011900") AND cec.n_pec = pec.n_pec AND ln.logname = $p_logname AND (ln.service IS NULL OR ln.service = ec.service) {=============================} INTO TEMP t0; {==============================} {=================================} SELECT {=================================} t0.* FROM t0 {===============================} ORDER BY {================================} tri_d_prog, tri_cts, cec_d_load, ec_cts, pec_n_pim, cec_n_cec {==================================} END {===================================} {=================================} FORMAT {=================================} {------------------------} BEFORE GROUP OF tri_d_prog {------------------------} LET tot_H = 0 LET tot_A = 0 LET tot_C = 0 LET tot_D = 0 LET tot_R = 0 LET tot_B = 0 LET tot_T = 0 {--------------------------} BEFORE GROUP OF tri_cts {-------------------------} LET ctr_H = 0 LET ctr_A = 0 LET ctr_C = 0 LET ctr_D = 0 LET ctr_R = 0 LET ctr_B = 0 LET ctr_T = 0 SKIP TO TOP OF PAGE {------------------------} BEFORE GROUP OF cec_d_load {------------------------} IF tri_cts = " " THEN BEGIN SKIP TO TOP OF PAGE LET ctr_H = 0 LET ctr_A = 0 LET ctr_C = 0 LET ctr_D = 0 LET ctr_R = 0 LET ctr_B = 0 LET ctr_T = 0 END {--------------------------} BEFORE GROUP OF ec_cts {-------------------------} LET v_H = 0 LET v_A = 0 LET v_C = 0 LET v_D = 0 LET v_R = 0 LET v_B = 0 LET v_T = 0 LET v_n_pim = pec_n_pim IF ec_n_session IS NULL THEN LET v_n_session = "" ELSE LET v_n_session = "(", ec_n_session, ")" {---------------------------- FIRST PAGE HEADER ----------------------------} {------------------------------} PAGE HEADER {------------------------------} LET ESC = ASCII 027 IF WEEKDAY(cec_d_load) = 0 THEN LET v_jour = "Dimanche" IF WEEKDAY(cec_d_load) = 1 THEN LET v_jour = "Lundi" IF WEEKDAY(cec_d_load) = 2 THEN LET v_jour = "Mardi" IF WEEKDAY(cec_d_load) = 3 THEN LET v_jour = "Mercredi" IF WEEKDAY(cec_d_load) = 4 THEN LET v_jour = "Jeudi" IF WEEKDAY(cec_d_load) = 5 THEN LET v_jour = "Vendredi" IF WEEKDAY(cec_d_load) = 6 THEN LET v_jour = "Samedi" IF DAY(cec_d_load) = 1 THEN LET v_jj = "1er" ELSE LET v_jj = DAY(cec_d_load) USING "<<<" IF MONTH(cec_d_load) = 1 THEN LET v_mois = "Janvier" IF MONTH(cec_d_load) = 2 THEN LET v_mois = "Février" IF MONTH(cec_d_load) = 3 THEN LET v_mois = "Mars" IF MONTH(cec_d_load) = 4 THEN LET v_mois = "Avril" IF MONTH(cec_d_load) = 5 THEN LET v_mois = "Mai" IF MONTH(cec_d_load) = 6 THEN LET v_mois = "Juin" IF MONTH(cec_d_load) = 7 THEN LET v_mois = "Juillet" IF MONTH(cec_d_load) = 8 THEN LET v_mois = "Août" IF MONTH(cec_d_load) = 9 THEN LET v_mois = "Septembre" IF MONTH(cec_d_load) = 10 THEN LET v_mois = "Octobre" IF MONTH(cec_d_load) = 11 THEN LET v_mois = "Novembre" IF MONTH(cec_d_load) = 12 THEN LET v_mois = "Décembre" LET v_annee = YEAR(cec_d_load) USING "&&&&" IF PAGENO = 1 THEN PRINT ESC, "E", ESC, "&k0g4S", ESC, "&l26a2e0o8d1X", ESC, ln_papier_blanc, ESC, "&a2L", ESC, "(10U", ESC, "&f0S"; ELSE PRINT ESC, "&f0S"; IF p_c_ec <> "0" THEN BEGIN PRINT ESC, "(s1p12v3b4101T", tec_t_ec_l_maj CLIPPED, " SESSION ", ec_l_session, " :", ESC, "&f1S", ESC, "(s0p10v3T", 76 SPACES, TODAY, 1 SPACE, ASCII 254, 1 SPACE, PAGENO USING "##&." PRINT ESC, "(s1p12v4101T" PRINT ec_l_ec_1 CLIPPED, 1 SPACE, ec_l_ec_2 CLIPPED, ESC, "(s0p10v0b3T" END ELSE BEGIN PRINT ESC, "&f1S", 69 SPACES, ESC, "(s3B", TODAY, 1 SPACE, ASCII 254, 1 SPACE, PAGENO USING "##&.", ESC, "(s0B" PRINT ESC, "&a0V" PRINT ESC, "&a0V" END SKIP 1 LINE PRINT ESC,"(s1p12v4101T", "Etat synoptique des pré-inscriptions "; IF p_c_ec = "0" AND cec_d_load IS NOT NULL AND TOP_OF_PAGE <> 2 THEN PRINT ESC,"(s1p10v0b4101T", "(importation du : ", v_jour CLIPPED, 1 SPACE, v_jj CLIPPED, 1 SPACE, v_mois CLIPPED, 1 SPACE, v_annee, ")", ESC,"*v0T", ESC, "(s0p10v0b3T" ELSE PRINT ESC,"*v0T", ESC, "(s0p10v0b3T", 1 SPACE SKIP 1 LINE PRINT ESC, "(s3B", "[H]", ESC, "&k2S", "andicapés, ", ESC, "(s0p12h10v3T", "[A]", ESC, "&k2S", "ménagements, ", ESC, "(s0p12h10v3T", "[C]", ESC, "&k2S", "onfirmations, ", ESC, "(s0p12h10v3T", "[D]", ESC, "&k2S", "ésistements, ", ESC, "(s0p12h10v3T", "[R]", ESC, "&k2S", "efus, ", ESC, "(s0p12h10v3T", "[ ]", ESC, "&k2S", "attente/pièces manquantes, ", ESC, "(s0p12h10v3T", "[T]", ESC, "&k2S", "otal, ", ESC, "(s0p12h10v3T", ESC, "(s0B" PRINT ESC, "&l8D", "╔═══════════════", "╦══════╤══════╦══════╦══════╤══════╤══════╤══════╤══════╦══════", "╦══════════╗" PRINT ESC, "(s3B", "║ Ex&Co ", "║ N° < │ N° > ║ [H] ║ [A] │ [C] │ [D] │ [R] │ [ ] ║ [T] ", "║ DATE ║", ESC, "(s0B" PRINT "╠═══════════════", "╬══════╪══════╬══════╬══════╪══════╪══════╪══════╪══════╬══════", "╬══════════╣" LET TOP_OF_PAGE = 1 LET NOLINE = 0 {------------------------------- PAGE TRAILER -------------------------------} {------------------------------} ON EVERY ROW {------------------------------} {-------------------------- TRAITEMENT FIN DE PAGE --------------------------} IF LINENO > 84 OR NOLINE = 75 THEN BEGIN PRINT "╚═══════════════", "╩══════╧══════╩══════╩══════╧══════╧══════╧══════╧══════╩══════", "╩══════════╝" SKIP TO TOP OF PAGE END {------------------------ TRAITEMENT EN-TETE DE PAGE ------------------------} {------------------------ TRAITEMENT LIGNE COURANTE ------------------------} IF pec_cotorep = "O" THEN LET v_H = v_H + 1 IF cec_c_decision IS NULL THEN LET v_B = v_B + 1 ELSE BEGIN IF cec_c_decision = "A" THEN LET v_A = v_A + 1 IF cec_c_decision = "C" THEN LET v_C = v_C + 1 IF cec_c_decision = "D" THEN LET v_D = v_D + 1 IF cec_c_decision = "R" THEN LET v_R = v_R + 1 IF cec_c_decision = "P" THEN LET v_B = v_B + 1 END LET v_T = v_T + 1 {-------------------------} AFTER GROUP OF ec_cts {------------------------} LET ctr_H = ctr_H + v_H LET ctr_A = ctr_A + v_A LET ctr_C = ctr_C + v_C LET ctr_D = ctr_D + v_D LET ctr_R = ctr_R + v_R LET ctr_B = ctr_B + v_B LET ctr_T = ctr_T + v_T IF v_H = 0 THEN LET v_H = "" IF v_A = 0 THEN LET v_A = "" IF v_C = 0 THEN LET v_C = "" IF v_D = 0 THEN LET v_D = "" IF v_R = 0 THEN LET v_R = "" IF v_B = 0 THEN LET v_B = "" PRINT "║ ", "║ │ ║ ║ │ │ │ │ ║ ", "║ ║" PRINT "║", ESC, "(s3B", ec_c_ec, 1 SPACE, ec_t_ec, 1 SPACE, ec_s_ec, 1 SPACE, v_n_session, ESC, "(s0B", "║", v_n_pim USING "## ###", "│", pec_n_pim USING "## ###", "║", v_H USING "## ###", "║", v_A USING "## ###", "│", v_C USING "## ###", "│", v_D USING "## ###", "│", v_R USING "## ###", "│", v_B USING "## ###", ESC, "(s3B", "║", v_T USING "## ###", ESC, "(s0B", "║ ", cec_d_load, 1 SPACE, "║" LET TOP_OF_PAGE = 0 {-------------------------} AFTER GROUP OF cec_d_load {------------------------} LET tot_H = tot_H + ctr_H LET tot_A = tot_A + ctr_A LET tot_C = tot_C + ctr_C LET tot_D = tot_D + ctr_D LET tot_R = tot_R + ctr_R LET tot_B = tot_B + ctr_B LET tot_T = tot_T + ctr_T IF tri_cts = " " THEN BEGIN IF ctr_H = 0 THEN LET ctr_H = "" IF ctr_A = 0 THEN LET ctr_A = "" IF ctr_C = 0 THEN LET ctr_C = "" IF ctr_D = 0 THEN LET ctr_D = "" IF ctr_B = 0 THEN LET ctr_B = "" PRINT "║ ", "║ │ ║ ║ │ │ │ │ ║ ", "║ ║" PRINT "╠═══════════════", "╬══════╪══════╬══════╬══════╪══════╪══════╪══════╪══════╬══════", "╬══════════╣" PRINT ESC, "(s3B", "║ ", "║ ", "│ ", "║", ctr_H USING "## ###", "║", ctr_A USING "## ###", "│", ctr_C USING "## ###", "│", ctr_D USING "## ###", "│", ctr_R USING "## ###", "│", ctr_B USING "## ###", "║", ctr_T USING "## ###", "║ ", "║", ESC, "(s0B" PRINT "╠═══════════════", "╬══════╪══════╬══════╬══════╪══════╪══════╪══════╪══════╬══════", "╬══════════╣" END {-------------------------} AFTER GROUP OF tri_cts {------------------------} IF tri_cts = " " AND p_d_load = "01011900" THEN BEGIN LET TOP_OF_PAGE = 2 SKIP TO TOP OF PAGE IF tot_H = 0 THEN LET tot_H = "" IF tot_A = 0 THEN LET tot_A = "" IF tot_C = 0 THEN LET tot_C = "" IF tot_D = 0 THEN LET tot_D = "" IF tot_R = 0 THEN LET tot_R = "" IF tot_B = 0 THEN LET tot_B = "" PRINT "║ ", "║ │ ║ ║ │ │ │ │ ║ ", "║ ║" PRINT ESC, "(s3B", "║ ", "║ ", "│ ", "║", tot_H USING "## ###", "║", tot_A USING "## ###", "│", tot_C USING "## ###", "│", tot_D USING "## ###", "│", tot_R USING "## ###", "│", tot_B USING "## ###", "║", tot_T USING "## ###", "║ ", "║", ESC, "(s0B" PRINT "║ ", "║ │ ║ ║ │ │ │ │ ║ ", "║ ║" PRINT "╚═══════════════", "╩══════╧══════╩══════╩══════╧══════╧══════╧══════╧══════╩══════", "╩══════════╝" END ELSE IF tri_cts <> " " THEN BEGIN IF ctr_H = 0 THEN LET ctr_H = "" IF ctr_A = 0 THEN LET ctr_A = "" IF ctr_C = 0 THEN LET ctr_C = "" IF ctr_D = 0 THEN LET ctr_D = "" IF ctr_R = 0 THEN LET ctr_R = "" IF ctr_B = 0 THEN LET ctr_B = "" PRINT "║ ", "║ │ ║ ║ │ │ │ │ ║ ", "║ ║" PRINT "╠═══════════════", "╬══════╪══════╬══════╬══════╪══════╪══════╪══════╪══════╬══════", "╬══════════╣" PRINT ESC, "(s3B", "║ ", "║ ", "│ ", "║", ctr_H USING "## ###", "║", ctr_A USING "## ###", "│", ctr_C USING "## ###", "│", ctr_D USING "## ###", "│", ctr_R USING "## ###", "│", ctr_B USING "## ###", "║", ctr_T USING "## ###", "║ ", "║", ESC, "(s0B" PRINT "╚═══════════════", "╩══════╧══════╩══════╩══════╧══════╧══════╧══════╧══════╩══════", "╩══════════╝" END {------------------------------- ON LAST ROW --------------------------------} { - Reinitialisation de l'imprimante "HP LASER III SI" } { PRINT ESC,"E" } {===================================} END {==================================} {=================================== SHELL ====================================} { # 1_synopsis clear LENGTH=`expr "$P" : '.*'` if test "$LENGTH" -eq 11 then P_1=`expr "$P" : '\(.*\)......'` P_2=`expr "$P" : '......\(.*\)...'` P_3=`expr "$P" : '.........\(.*\)'` fi if test "$LENGTH" -eq 10 then P_1=`expr "$P" : '\(.*\)......'` P_2=`expr "$P" : '.....\(.*\)...'` P_3=`expr "$P" : '........\(.*\)'` fi if test "$LENGTH" -eq 9 then P_1=`expr "$P" : '\(.*\)......'` P_2=`expr "$P" : '....\(.*\)...'` P_3=`expr "$P" : '.......\(.*\)'` fi if test "$LENGTH" -eq 8 then P_1=`expr "$P" : '\(.*\)......'` P_2=`expr "$P" : '...\(.*\)...'` P_3=`expr "$P" : '......\(.*\)'` fi if test "$LENGTH" -eq 7 then P_1=`expr "$P" : '\(.*\)......'` P_2=`expr "$P" : '..\(.*\)...'` P_3=`expr "$P" : '.....\(.*\)'` fi echo " " $P_1 $P_2 $P_3 echo "" echo "┌ETAT SYNOPTIQUE DES PRE-INSCRIPTIONS───────────────────────────────────┐" echo "│ │" echo "│DATE : [JJMMAA]=Date de l'importation de la saisie │" echo "│ [ <──┘ ]=Tout │" echo "│ETAT : [ <──┘ ]=[G]lobal, [D]étaillé => Saut de page par Ex&Co │" echo "└───────────────────────────────────────────────────────────────────────┘" echo "" cd ../shell_1 if test -f $(LOGNAME).prt then rm $(LOGNAME).prt fi SMSO=`tput smso` RMSO=`tput rmso` if [ "$LENGTH" = 0 ] then tput cup 0 0 echo " CONCOURS : " tput cup 0 12 echo $SMSO" "$RMSO tput cup 0 12 read P_1 if [ "$P_1" = "" ] then P_1=0 fi tput cup 0 0 echo " " $P_1 $P_2 $P_3 tput cup 0 0 echo " TYPE : " tput cup 0 12 echo $SMSO" "$RMSO tput cup 0 12 read P_2 if [ "$P_2" = "" ] then P_2=0 fi echo "" tput cup 0 0 echo " " $P_1 $P_2 $P_3 tput cup 0 0 echo " SESSION : " tput cup 0 12 echo $SMSO" "$RMSO tput cup 0 12 read P_3 if [ "$P_3" = "" ] then P_3=0 fi echo "" tput cup 0 0 echo " " $P_1 $P_2 $P_3 tput cup 1 0 echo " " fi # DATE tput cup 4 8 echo $SMSO" "$RMSO tput cup 4 8 read P_4 tput cup 4 8 echo " " if [ "$P_4" = "" ] then P_4=01011900 else tput cup 4 8 echo $P_4 AAAA=`expr "$P_4" : '....\(.*\)'` JJMM=`expr "$P_4" : '\(.*\)..'` if [ "$AAAA" -lt 90 ] then AAAA=`expr "$AAAA" + 2000` P_4=`expr "$JJMM" : '\(.*\)'``expr "$AAAA" : '\(.*\)'` else AAAA=`expr "$AAAA" + 1900` P_4=`expr "$JJMM" : '\(.*\)'``expr "$AAAA" : '\(.*\)'` fi fi # ETAT if [ "$P_1" = "0" ] then tput cup 6 8 echo $SMSO" "$RMSO tput cup 6 8 read P_5 tput cup 6 8 echo " " if [ "$P_5" = "" ] then P_5=G fi tput cup 6 8 echo $P_5 else P_5=D fi tput cup 8 0 echo " Traitement en cours... \c" sacego -q ../ace_1/1_synopsis $P_1 $P_2 $P_3 $P_4 $P_5 $LOGNAME sacego -q ../ace_1/recap $P_1 $P_2 $P_3 $LOGNAME cat $(LOGNAME).prt | sed -f ../bull/isoTOascii.sed > $(LOGNAME).tmp mv $(LOGNAME).tmp $(LOGNAME).prt lp $(LOGNAME).prt > /dev/null echo "TERMINE !" } {==============================================================================}
Mis à jour 25/02/2024 à 20h48 par APL-AML
Tags:
informix,
méthodologie,
sgbd
- Catégories
- ■ APL-AML , I- L’ART , I-3. Annexes , I-3.1. BDD Examens-Concours