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

DG53231P.m

Go to the documentation of this file.
  1. DG53231P ;ISA/Zoltan - Post-install for DG*5.3*231;April 7, 1999
  1. ;;5.3;Registration;**231,1015**;Aug 13, 1993;Build 21
  1. ;
  1. POST ; Re-compiles print and input templates for those fields
  1. ; included in the patch.
  1. N FLDLIST,FLD,PTEMP,ETEMP,TEMPLATE,ROUTINE,MAXSIZE,X,Y,DMAX
  1. D LOADFLDS(.FLDLIST) ; Obtain list of fields being sent.
  1. S FLD="" ; For each field...
  1. F S FLD=$O(FLDLIST(FLD)) Q:FLD="" D
  1. . M PTEMP=^DIPT("AF",2,FLD) ; ...note affected print templates...
  1. . M ETEMP=^DIE("AF",2,FLD) ; ...note affected edit templates.
  1. ; Determine maximum routine size...
  1. S MAXSIZE=$$ROUSIZE^DILF
  1. ; Recompile print templates...
  1. D BMES^XPDUTL(" *****************************")
  1. D BMES^XPDUTL(" * Compiling Print Templates *")
  1. D BMES^XPDUTL(" *****************************")
  1. S TEMPLATE=""
  1. F S TEMPLATE=$O(PTEMP(TEMPLATE)) Q:TEMPLATE="" D
  1. . S ROUTINE=$G(^DIPT(TEMPLATE,"ROU")) ; Note Routine Name
  1. . I ROUTINE="" Q ; Not a compiled template.
  1. . ; Set up bulletproof FileMan call.
  1. . S X=ROUTINE,Y=TEMPLATE,DMAX=MAXSIZE
  1. . S $E(X)="" ; Remove initial ^.
  1. . ; This NEW only lasts for one loop iteration...
  1. . N ROUTINE,TEMPLATE,MAXSIZE,PTEMP,ETEMP
  1. . D EN^DIPZ ; Classic FileMan--Trust No One.
  1. ; Recompile edit templates...
  1. D BMES^XPDUTL(" ")
  1. D BMES^XPDUTL(" *****************************")
  1. D BMES^XPDUTL(" * Compiling Input Templates *")
  1. D BMES^XPDUTL(" *****************************")
  1. S TEMPLATE=""
  1. F S TEMPLATE=$O(ETEMP(TEMPLATE)) Q:TEMPLATE="" D
  1. . S ROUTINE=$G(^DIE(TEMPLATE,"ROU")) ; Note Routine Name
  1. . I ROUTINE="" Q
  1. . ; Set up bulletproof FileMan call.
  1. . S X=ROUTINE,Y=TEMPLATE,DMAX=MAXSIZE
  1. . S $E(X)="" ; Remove initial ^.
  1. . ; This NEW only lasts for one loop iteration...
  1. . N ROUTINE,TEMPLATE,MAXSIZE,PTEMP,ETEMP
  1. . D EN^DIEZ ; Classic FileMan--Trust No One.
  1. Q
  1. LOADFLDS(ARR) ; Load field list.
  1. N FNUM,FNAME,LINE,TEXT
  1. F TEXT=1:1 S LINE=$T(FLDS+TEXT) Q:$P(LINE," ")'="" D
  1. . S FNUM=$P(LINE,";",3)
  1. . S FNAME=$P(LINE,";",4)
  1. . S ARR(FNUM)=FNAME
  1. Q
  1. FLDS ; Fields included in this patch.
  1. ;;.02;SEX
  1. ;;.03;DATE OF BIRTH
  1. ;;.05;MARITAL STATUS
  1. ;;.08;RELIGIOUS PREFERENCE
  1. ;;.09;SOCIAL SECURITY NUMBER
  1. ;;.111;STREET ADDRESS [LINE 1]
  1. ;;.1112;ZIP+4
  1. ;;.112;STREET ADDRESS [LINE 2]
  1. ;;.113;STREET ADDRESS [LINE 3]
  1. ;;.114;CITY
  1. ;;.115;STATE
  1. ;;.117;COUNTY
  1. ;;.131;PHONE NUMBER [RESIDENCE]
  1. ;;.132;PHONE NUMBER [WORK]
  1. ;;.211;K-NAME OF PRIMARY NOK
  1. ;;.219;K-PHONE NUMBER
  1. ;;.2403;MOTHER'S MAIDEN NAME
  1. ;;.301;SERVICE CONNECTED?
  1. ;;.302;SERVICE CONNECTED PERCENTAGE
  1. ;;.31115;EMPLOYMENT STATUS
  1. ;;.323;PERIOD OF SERVICE
  1. ;;.351;DATE OF DEATH
  1. ;;391;TYPE
  1. ;;1901;VETERAN
  1. END ;End of field list.