Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: DGPMBSAB

DGPMBSAB.m

Go to the documentation of this file.
  1. DGPMBSAB ;ALB/LM/ - AUTO RECALC ; 3/16/93
  1. ;;5.3;Registration;**1015**;Aug 13, 1993;Build 21
  1. ;
  1. Q
  1. AUTO ; -- auto recalc entry point
  1. D DAT^DGPMBSAR I E G Q^DGPMBSAR
  1. ;
  1. S RC=RD
  1. S EGL=$S($P(DGPM("G"),U,7):$P(DGPM("G"),U,7),1:DT)
  1. ;
  1. D CLEAN^DGPMBSAR
  1. ;
  1. S CD=$O(^DGS(43.5,"AGL",0)) I CD'<EGL,CD'>RC S RC=CD
  1. ;
  1. D WDCHK^DGPMBSAR
  1. ;
  1. S DIE="^DG(43,",DA=1,DR="57///N"_$S($D(^%ZOSF("VOL")):";58////"_^("VOL"),1:"")_";60///"_RC D ^DIE
  1. ;
  1. AUTOQ K DR,DA,DIE,EGL,E,CD
  1. ;
  1. RECALC D GO^DGPMBSAR ; Recalc entry point
  1. ;
  1. S DIE="^DG(43,",DA=1,DR="59///N" D ^DIE ; Auto Recalc Finished
  1. ;
  1. K DR,DA,DIE
  1. ;
  1. SET ; Set variables for Auto Recalc Start/Finish Bulletin
  1. S START=$S($P(^DG(43,1,"GLS"),"^",7)]"":$P(^DG(43,1,"GLS"),"^",7),1:"")
  1. I START]"" S Y=START X ^DD("DD") S START=Y
  1. ;
  1. S BACKTO=$S($P(^DG(43,1,"GLS"),"^",10)]"":$P(^DG(43,1,"GLS"),"^",10),1:"")
  1. I BACKTO]"" S Y=BACKTO X ^DD("DD") S BACKTO=Y
  1. ;
  1. S FINISH=$S($P(^DG(43,1,"GLS"),"^",9)]"":$P(^DG(43,1,"GLS"),"^",9),1:"")
  1. I FINISH]"" S Y=FINISH X ^DD("DD") S FINISH=Y
  1. ;
  1. TMP S ^TMP($J,"AUTORECALC",1,0)=" Date/Time Auto Recalc Started: "_START
  1. S ^TMP($J,"AUTORECALC",2,0)=" Date Auto Recalc went back to: "_BACKTO
  1. S ^TMP($J,"AUTORECALC",3,0)=" Date/Time Auto Recalc Finished: "_FINISH
  1. ;
  1. BUL ; Bulletin when auto recalc start/finish
  1. S DGB=12 ; position on the NOT (notification) Node - file #43
  1. S XMSUB="AUTO RECALC START/FINISH"
  1. S XMTEXT="^TMP($J,""AUTORECALC"","
  1. ;
  1. D ^DGBUL
  1. ;
  1. END K START,BACKTO,FINISH,Y,^TMP($J,"AUTORECALC")
  1. Q