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

PRC51110.m

Go to the documentation of this file.
  1. PRC51110 ;VMP/TJH ; Post Install routine for PRC*5.1*110 ; 07/20/2007
  1. ;;5.1;IFCAP;**110**;Oct 20, 2000;Build 7
  1. ;
  1. Q ; Do Not Enter at routine label
  1. ;
  1. EN ; Entry point.
  1. TMMSG ; Send message reporting any address issues found during installation
  1. D BMES^XPDUTL("Validating VA FSC mailing address, please wait...")
  1. N PRCSTA,PRCA
  1. S PRCSTA=0,U="^"
  1. F S PRCSTA=$O(^PRC(411,PRCSTA)) Q:'PRCSTA D
  1. . S PRCSTN=$O(^DIC(4,"D",$P(^PRC(411,PRCSTA,0),U,1),"")) Q:PRCSTN=""
  1. . S PRCMAX=0,PRCFSC=0
  1. . F S PRCMAX=$O(^PRC(411,PRCSTA,4,PRCMAX)) Q:'PRCMAX D
  1. .. S PRCMAN=$P(^PRC(411,PRCSTA,4,PRCMAX,0),U,1)
  1. .. I $E(PRCMAN,1,6)="VA FSC" S PRCFSC=1
  1. .. I $E(PRCMAN,1,3)="FMS" S PRCA(PRCSTN,PRCMAX)=PRCMAN
  1. . I 'PRCFSC S PRCA(PRCSTN,0)="No VA FSC address."
  1. I '$D(PRCA) D BMES^XPDUTL("Validation complete.") Q ; if nothing found, don't send MailMan message.
  1. ;
  1. N DA,PRCC,PRCGROUP,PRCPARAM,PRCTXT,XMDUZ,XMSUB,XMTEXT,XMY
  1. N PRC1,PRC2,PRCFSC,PRCMAN,PRCMAX,PRCNP,PRCSTR1,PRCSTR2,PRCTITLE,PRCTX
  1. S XMSUB="IMPORTANT BULLETIN FROM IFCAP PATCH PRC*5.1*110"
  1. S XMDUZ=DUZ,XMTEXT="PRCTXT"
  1. S PRCPARAM("FROM")="PATCH PRC*5.1*110 ADDRESS VERIFICATION"
  1. ; find purchasing/finance staff to send report to
  1. S PRCTX=0 K PRCJB
  1. F S PRCTX=$O(^DIC(3.1,PRCTX)) Q:'PRCTX D
  1. . S PRCTITLE=$P(^DIC(3.1,PRCTX,0),U,1)
  1. . F PRCSTR1="FISCAL","PURCH","FINAN","PROCUR","IFCAP" I $F(PRCTITLE,PRCSTR1) D
  1. .. F PRCSTR2="CHIEF","ADMIN","SUPER","COORD" I $F(PRCTITLE,PRCSTR2) S PRCJB(PRCTX)=""
  1. S PRCNP=1
  1. F S PRCNP=$O(^VA(200,PRCNP)) Q:'PRCNP D
  1. . S PRCTX=$P($G(^VA(200,PRCNP,0)),U,9)
  1. . Q:PRCTX="" ; Quit if there is no job title
  1. . Q:'$D(PRCJB(PRCTX)) ; Quit if job title not one we're looking for
  1. . Q:$P(^VA(200,PRCNP,0),U,7) ; Quit if DISUSERed
  1. . S XMY(PRCNP)="" ; add this responsible party to mail list.
  1. S XMY(DUZ)="" ; add the patch installer to the mail list
  1. ;
  1. S PRCC=0
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="This message has been sent by patch PRC*5.1*110 at the completion of"
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="the verification of the Mailing Address change for VA FSC."
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="The purpose of this message is to report any remaining addresses which"
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="might need to be edited and to report any Stations/Substations which"
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="might need the VA FSC address added. You can use the 'Site Parameters'"
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="option to edit the MAIL INVOICE LOCATION entries if necessary."
  1. S PRCC=PRCC+1,PRCTXT(PRCC)=" "
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="As reported in the patch description, the Corporate Franchise Data Center"
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="in Austin has changed the preferred address name for IFCAP communications"
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="from FMS to VA FSC. This report lists any stations in your system that"
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="do not have a MAIL INVOICE LOCATION starting with VA FSC. The necessity"
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="for the address only applies to Stations/Substations that will be using"
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="requisitions. You will need to make a local determination as to which"
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="stations this applies to at your facility. Additionally, the report"
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="lists addresses which contain the old FMS abbreviation. These could"
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="be considered for editing or deletion. Again, this should be a local"
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="determination that cannot be automated by this patch."
  1. S PRCC=PRCC+1,PRCTXT(PRCC)=" "
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="The following Stations/Substations do not have a VA FSC address entry"
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="in the ADMIN. ACTIVITY SITE PARAMETER file."
  1. S DA=0
  1. F S DA=$O(PRCA(DA)) Q:DA="" Q:'$D(PRCA(DA,0)) D
  1. . S PRCC=PRCC+1
  1. . S PRCTXT(PRCC)=$P(^DIC(4,DA,99),U,1)
  1. . K PRCA(DA,0)
  1. S PRCC=PRCC+1,PRCTXT(PRCC)=" "
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="The following Stations/Substations have an FMS address which may need"
  1. S PRCC=PRCC+1,PRCTXT(PRCC)="to be edited."
  1. S PRC1=0
  1. F S PRC1=$O(PRCA(PRC1)) Q:PRC1="" D
  1. . S PRC2=0
  1. . F S PRC2=$O(PRCA(PRC1,PRC2)) Q:PRC2="" D
  1. .. S PRCC=PRCC+1
  1. .. S PRCTXT(PRCC)=$P(^DIC(4,PRC1,99),U,1)_" "_PRCA(PRC1,PRC2)
  1. D SENDMSG^XMXAPI(XMDUZ,XMSUB,XMTEXT,.XMY,.IBPARAM,"","")
  1. D BMES^XPDUTL("Address validation complete, a MailMan message has been sent listing items")
  1. D MES^XPDUTL("which may need to be reviewed.")
  1. Q