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

DGBT1P3.m

Go to the documentation of this file.
  1. DGBT1P3 ;ALB/MRY - Patch #3 Environment Check ; 7/15/03 10:04 AM
  1. ;;1.0;Beneficiary Travel;**3**;Septembr 25, 2001
  1. EN ;
  1. S XPDABORT=""
  1. I '$G(DUZ)!($G(DUZ(0))'="@")!('$G(DT))!($G(U)'="^") D G ABRT
  1. . D BMES^XPDUTL("*****")
  1. . D MES^XPDUTL("Your programming variables are not set up properly.")
  1. . D MES^XPDUTL("Installation aborted.")
  1. ; Verify that Bene Travel v1.0 exists, else Quit.
  1. I $$VERSION^XPDUTL("DGBT")'="1.0" D G ABRT
  1. . D BMES^XPDUTL("*****")
  1. . D MES^XPDUTL("VERSION 1.0 OF BENEFICIARY TRAVEL HAS NOT BEEN LOADED.")
  1. . D MES^XPDUTL("Installation aborted.")
  1. W !!,">> Environment check complete and okay."
  1. Q
  1. ;
  1. POST ;Post-init. kill off bad cross reference, re-index.
  1. N DIK
  1. D BMES^XPDUTL("*****")
  1. D MES^XPDUTL("Re-indexing 'BB' cross-reference.")
  1. K ^DGBT(392.31,"BB") S DIK="^DGBT(392.31," D IXALL^DIK
  1. Q
  1. ;
  1. ABRT ; Abort transport, but leave in ^XTMP.
  1. S ^XPDABORT=2 Q