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

DGBT1P2.m

Go to the documentation of this file.
  1. DGBT1P2 ;ALB/MRY - Patch #2 Environment Check ; 4/23/02 10:04 AM
  1. ;;1.0;Beneficiary Travel;**2**;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. ABRT ; Abort transport, but leave in ^XTMP.
  1. S ^XPDABORT=2 Q
  1. ;
  1. POST ; Post install - add #392.31 file to list of DGBT files in Package file.
  1. N DGBTI,DGBTIEN,DGBTARRY,DIC,X,DA,DR
  1. D BMES^XPDUTL(" ")
  1. D MES^XPDUTL(" Updating PACKAGE File...")
  1. ;
  1. PKG ; Retrieve 'DGBT' Package name
  1. ; Get Package IEN
  1. D FIND^DIC(9.4,"","@;1","P","DGBT","","C","","","DGBTARRY")
  1. S (DGBTI,DGBTIEN)=0
  1. F S DGBTI=$O(DGBTARRY("DILIST",DGBTI)) Q:'DGBTI D
  1. . Q:$P($G(DGBTARRY("DILIST",DGBTI,0)),"^",2)'="DGBT"
  1. . S DGBTIEN=$P($G(DGBTARRY("DILIST",DGBTI,0)),"^",1)
  1. I 'DGBTIEN D G EXIT
  1. . D BMES^XPDUTL(" ")
  1. . D MES^XPDUTL(" No PACKAGE entry defined - Cannot update!")
  1. ;
  1. UPD ; - Update fields not updated by the KIDS install.
  1. ; fields:
  1. ; File (#6) ; multiple
  1. ; Fields ; multiple
  1. ;
  1. FILE ; Add #392.31 to list of files under Bene Travel.
  1. F X="392.31" D
  1. . S DIC="^DIC(9.4,",DA(1)=DGBTIEN
  1. . S DIC=DIC_DA(1)_",4,",DIC(0)="L",DIC("P")=$P(^DD(9.4,6,0),"^",2)
  1. . D ^DIC
  1. ;
  1. FLDS ; Add ASSIGN A VERSION NUMBER? entries to File entry #392.31
  1. S DIC="^DIC(9.4,",DA(1)=DGBTIEN,DIC(0)="X"
  1. S DIC=DIC_DA(1)_",4,",DIC("P")=$P(^DD(9.4,6,0),"^",2)
  1. F X="392.31" D
  1. . D ^DIC
  1. . S DIE=DIC,DA=+Y
  1. . I X[392 S DR="222.2///Y" D ^DIE
  1. D BMES^XPDUTL(" ")
  1. D MES^XPDUTL(" Updating PACKAGE file complete.")
  1. ;
  1. DD ;Hardset IDENTIFIER routine into DD (DBIA #4093)
  1. S ^DD(392.31,0,"ID","Z")="G START^DGBTID"
  1. ;
  1. EXIT K DIC,DGBTARRY,DGBTI,DGBTIEN,X,DA,DR
  1. Q