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

PRC51225.m

Go to the documentation of this file.
  1. PRC51225 ;OI&T/LKG - ENV AND POST-INIT ;11/2/21 10:51
  1. V ;;5.1;IFCAP;**225**;Oct 20, 2000;Build 3
  1. ;Per VA Directive 6402, this routine should not be modified.
  1. ENV ;Check the configuration and issue warning if wrong
  1. Q:$$PROD^XUPROD
  1. N PRCA
  1. S PRCA(1)=" ",PRCA(2)="Warning: The FINANCIAL MANAGEMENT BATCH DOMAIN MAIL ROUTER value"
  1. S PRCA(3)="is inconsistent with PRODUCTION/TEST type of this VistA account."
  1. S PRCA(4)="If you are testing this patch in a Mirror/Test account, please change"
  1. S PRCA(5)="'Q-FMS.DOMAIN.EXT' to 'Q-FMT.DOMAIN.EXT' before testing."
  1. D:'$$CONFIGCK EN^DDIOL(.PRCA)
  1. Q
  1. ;
  1. ;ICR 7309 GENERIC CODE SHEET BATCH TYPE LOOKUP
  1. ; Returns '1' if correct and '0' if not
  1. CONFIGCK() ;Checks if Prod/Test setting and GECS Financial Management Domain
  1. ;are compatible
  1. N PRCX,PRCY,PRCERR,PRCDOM
  1. S PRCX=$$KSP^XUPARAM("WHERE"),PRCY=$L(PRCX,".")
  1. I $P(PRCX,".",PRCY-1,PRCY)'="DOMAIN.EXT" Q 1
  1. S PRCX=$$FIND1^DIC(2101.1,,"B","FINANCIAL MANAGEMENT",,,"PRCERR")
  1. Q:PRCX'>0 0 Q:$D(PRCERR) 0
  1. S PRCX=","_PRCX_","
  1. S PRCY=$$FIND1^DIC(2101.12,PRCX,"B","XXX",,,"PRCERR"),PRCX=PRCY_PRCX
  1. I $D(PRCERR)!(PRCY'>0) Q 0
  1. S PRCDOM=$$GET1^DIQ(2101.12,PRCX,1,,,"PRCERR") K PRCERR
  1. S PRCY=0
  1. I PRCDOM=$S($$PROD^XUPROD:"Q-FMS.DOMAIN.EXT",1:"Q-FMT.DOMAIN.EXT") S PRCY=1
  1. Q PRCY
  1. ;
  1. POST ; Check configuration and write to installation warning if wrong
  1. Q:$$PROD^XUPROD
  1. N PRCA
  1. S PRCA(1)=" ",PRCA(2)="Warning: The FINANCIAL MANAGEMENT BATCH DOMAIN MAIL ROUTER value"
  1. S PRCA(3)="is inconsistent with PRODUCTION/TEST type of this VistA account."
  1. S PRCA(4)="If you are testing this patch in a Mirror/Test account, please change"
  1. S PRCA(5)="'Q-FMS.DOMAIN.EXT' to 'Q-FMT.DOMAIN.EXT' before testing."
  1. D:'$$CONFIGCK MES^XPDUTL(.PRCA)
  1. Q