source: FOIAVistA/tag/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGPMBSAB.m@ 794

Last change on this file since 794 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 1.5 KB
Line 
1DGPMBSAB ;ALB/LM/ - AUTO RECALC ; 3/16/93
2 ;;5.3;Registration;;Aug 13, 1993
3 ;
4 Q
5AUTO ; -- 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 ;
19AUTOQ K DR,DA,DIE,EGL,E,CD
20 ;
21RECALC 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 ;
27SET ; 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 ;
37TMP 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 ;
41BUL ; 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 ;
48END K START,BACKTO,FINISH,Y,^TMP($J,"AUTORECALC")
49 Q
Note: See TracBrowser for help on using the repository browser.