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

FBXIP132.m

Go to the documentation of this file.
  1. FBXIP132 ;WOIFO/SAB - PATCH INSTALL ROUTINE ;4/25/2012
  1. ;;3.5;FEE BASIS;**132**;JAN 30, 1995;Build 17
  1. ;
  1. ; ICRs
  1. ; #10141 BMES^XPDUTL, MES^XPDUTL, $$NEWCP^XPDUTL, $$PATCH^XPDUTL
  1. ; #4440 $$PROD^XUPROD
  1. ;
  1. ; the top of the routine is the environment check entry point
  1. ;
  1. N FBSKIP
  1. S FBSKIP=""
  1. ;
  1. ; determine if environmental check should be skipped
  1. I FBSKIP="",$G(XPDENV)'=1 S FBSKIP="Not a KIDS Install phase."
  1. I FBSKIP="",$$PROD^XUPROD()'=1 S FBSKIP="Not a production account."
  1. I FBSKIP="",$$PATCH^XPDUTL("FB*3.5*132")=1 S FBSKIP="Patch was previously installed."
  1. I FBSKIP]"" D
  1. . D BMES^XPDUTL(FBSKIP)
  1. . D MES^XPDUTL("Skipping environmental check.")
  1. ;
  1. I FBSKIP="" D
  1. . N DIR,DIROUT,DIRUT,DTOUT,DUOUT,X,Y
  1. . D BMES^XPDUTL("Performing environmental check.")
  1. . I $O(^FBAA(161.7,"AC","T",0)) D Q
  1. . . D MES^XPDUTL("This patch cannot be installed because there are.")
  1. . . D MES^XPDUTL("batches with status equal to TRANSMITTED.")
  1. . . D MES^XPDUTL("The Active Batch Listing by Status option can be used")
  1. . . D MES^XPDUTL("to generate a list of the batches with this status.")
  1. . . S XPDQUIT=2
  1. . ;
  1. . ; ask user for confirmation
  1. . D BMES^XPDUTL("The Chief Fiscal Officer or representative must verify")
  1. . D MES^XPDUTL("there are no pending payments on Central Fee report")
  1. . D MES^XPDUTL("number 12007 for your site.")
  1. . D MES^XPDUTL(" ")
  1. . S DIR(0)="Y"
  1. . S DIR("A")="Has the Chief Fiscal Officer approved installation of this patch"
  1. . D ^DIR K DIR
  1. . I $D(DIRUT)!'Y S XPDQUIT=2
  1. Q
  1. ;
  1. PR ; pre-install entry point
  1. ; create KIDS checkpoints with call backs
  1. N FBX,Y
  1. F FBX="DELAJ" D
  1. . S Y=$$NEWCP^XPDUTL(FBX,FBX_"^FBXIP132")
  1. . I 'Y D BMES^XPDUTL("ERROR Creating "_FBX_" Checkpoint.")
  1. Q
  1. ;
  1. DELAJ ; Delete AJ x-ref definition
  1. D BMES^XPDUTL(" Deleting traditional AJ x-ref from file 162 ...")
  1. ;
  1. ; delete traditional mumps AJ x-ref definition from INVOICE NUMBER
  1. ; it will be replaced by an equivalent new-style regular AJ x-ref
  1. ; during the KIDS install of the partial DD
  1. ; the cross-referance data will not be impacted
  1. D DELIX^DDMOD(162.03,14,2,"","")
  1. ;
  1. D MES^XPDUTL(" Done.")
  1. Q
  1. ;
  1. PS ; post-install entry point
  1. ; create KIDS checkpoints with call backs
  1. N FBX,Y
  1. F FBX="XREF" D
  1. . S Y=$$NEWCP^XPDUTL(FBX,FBX_"^FBXIP132")
  1. . I 'Y D BMES^XPDUTL("ERROR Creating "_FBX_" Checkpoint.")
  1. Q
  1. ;
  1. XREF ; Set new x-ref
  1. N DIK
  1. D BMES^XPDUTL(" Setting File 161.45 AN x-ref...")
  1. ;
  1. S DIK="^FBAA(161.45,"
  1. S DIK(1)="2^AN"
  1. D ENALL^DIK
  1. ;
  1. D MES^XPDUTL(" Done.")
  1. Q
  1. ;
  1. ;FBXIP132