1 | DGPMBSAB ;ALB/LM/ - AUTO RECALC ; 3/16/93
|
---|
2 | ;;5.3;Registration;;Aug 13, 1993
|
---|
3 | ;
|
---|
4 | Q
|
---|
5 | AUTO ; -- auto recalc entry point
|
---|
6 | D DAT^DGPMBSAR I E G Q^DGPMBSAR
|
---|
7 | ;
|
---|
8 | S RC=RD
|
---|
9 | S EGL=$S($P(DGPM("G"),U,7):$P(DGPM("G"),U,7),1:DT)
|
---|
10 | ;
|
---|
11 | D CLEAN^DGPMBSAR
|
---|
12 | ;
|
---|
13 | S CD=$O(^DGS(43.5,"AGL",0)) I CD'<EGL,CD'>RC S RC=CD
|
---|
14 | ;
|
---|
15 | D WDCHK^DGPMBSAR
|
---|
16 | ;
|
---|
17 | S DIE="^DG(43,",DA=1,DR="57///N"_$S($D(^%ZOSF("VOL")):";58////"_^("VOL"),1:"")_";60///"_RC D ^DIE
|
---|
18 | ;
|
---|
19 | AUTOQ K DR,DA,DIE,EGL,E,CD
|
---|
20 | ;
|
---|
21 | RECALC D GO^DGPMBSAR ; Recalc entry point
|
---|
22 | ;
|
---|
23 | S DIE="^DG(43,",DA=1,DR="59///N" D ^DIE ; Auto Recalc Finished
|
---|
24 | ;
|
---|
25 | K DR,DA,DIE
|
---|
26 | ;
|
---|
27 | SET ; Set variables for Auto Recalc Start/Finish Bulletin
|
---|
28 | S START=$S($P(^DG(43,1,"GLS"),"^",7)]"":$P(^DG(43,1,"GLS"),"^",7),1:"")
|
---|
29 | I START]"" S Y=START X ^DD("DD") S START=Y
|
---|
30 | ;
|
---|
31 | S BACKTO=$S($P(^DG(43,1,"GLS"),"^",10)]"":$P(^DG(43,1,"GLS"),"^",10),1:"")
|
---|
32 | I BACKTO]"" S Y=BACKTO X ^DD("DD") S BACKTO=Y
|
---|
33 | ;
|
---|
34 | S FINISH=$S($P(^DG(43,1,"GLS"),"^",9)]"":$P(^DG(43,1,"GLS"),"^",9),1:"")
|
---|
35 | I FINISH]"" S Y=FINISH X ^DD("DD") S FINISH=Y
|
---|
36 | ;
|
---|
37 | TMP S ^TMP($J,"AUTORECALC",1,0)=" Date/Time Auto Recalc Started: "_START
|
---|
38 | S ^TMP($J,"AUTORECALC",2,0)=" Date Auto Recalc went back to: "_BACKTO
|
---|
39 | S ^TMP($J,"AUTORECALC",3,0)=" Date/Time Auto Recalc Finished: "_FINISH
|
---|
40 | ;
|
---|
41 | BUL ; Bulletin when auto recalc start/finish
|
---|
42 | S DGB=12 ; position on the NOT (notification) Node - file #43
|
---|
43 | S XMSUB="AUTO RECALC START/FINISH"
|
---|
44 | S XMTEXT="^TMP($J,""AUTORECALC"","
|
---|
45 | ;
|
---|
46 | D ^DGBUL
|
---|
47 | ;
|
---|
48 | END K START,BACKTO,FINISH,Y,^TMP($J,"AUTORECALC")
|
---|
49 | Q
|
---|