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

ACRFJS.m

Go to the documentation of this file.
  1. ACRFJS ;IHS/OIRM/DSD/THL,AEF - PRINT JUSTIFICATION AND SPECIAL REMARKS; [ 11/01/2001 9:44 AM ]
  1. ;;2.1;ADMIN RESOURCE MGT SYSTEM;;NOV 05, 2001
  1. ;;ROUTINE TO PRINT JUSTIFICATION AND SPECIAL REMARKS
  1. DISPLAY ;EP;TO DISPLAY NARRATIVE AND JUSTIFICATION
  1. Q:$D(ACROUT)
  1. I $D(^ACROBL(ACRDOCDA,"NOTES")) S ACRX=^("NOTES") D:ACRX]""
  1. .N ACRI
  1. .W !,"BRIEF NARRATIVE:--------------------------------------------------------------"
  1. .D W
  1. I $D(^ACROBL(ACRDOCDA,"NOTES2")) S ACRX=^("NOTES2") D W:ACRX]""
  1. I $D(^ACROBL(ACRDOCDA,"JST")) S ACRX=^("JST") D
  1. .W !,"JUSTIFICATION:------------------------------------------------------------------"
  1. .D W
  1. .I $D(^ACROBL(ACRDOCDA,"JST2")) S ACRX=^("JST2") D W:ACRX]""
  1. D VEND
  1. EXIT D PAUSE^ACRFWARN
  1. K ACRX
  1. Q
  1. W F ACRI=1:1:5 W:$P(ACRX,U,ACRI)]"" !?4,$P(ACRX,U,ACRI)
  1. Q
  1. VENDOR ;EP;TO DISPLAY REQUESTED VENDOR DATA
  1. Q:$D(ACROUT)
  1. N ACRFVNDA
  1. S ACRFVNDA=$P(ACRDOCPO,U,5)
  1. I ACRFVNDA,$D(^AUTTVNDR(ACRFVNDA,0)) D
  1. .S ACRVN0=^AUTTVNDR(ACRFVNDA,0)
  1. .S ACRVN11=$G(^AUTTVNDR(ACRFVNDA,11))
  1. .S ACRVN13=$G(^AUTTVNDR(ACRFVNDA,13))
  1. .W !!,"Requested Vendor: ",$P(ACRVN0,U)
  1. .W !?18,$P(ACRVN13,U)
  1. .W !?18,$P(ACRVN13,U,2),", ",$P(^DIC(5,$P(ACRVN13,U,3),0),U,2)," ",$P(ACRVN13,U,4)
  1. .W !,"Attention.......: ",$P(ACRVN13,U,5)
  1. .W !,"Phone...........: ",$P(ACRVN11,U,9)
  1. .W !
  1. .K ACRVN0,ACRVN11,ACRVN13
  1. Q
  1. NSVEND ;EP;TO PRINT NON-STANDARD VENDOR DATA
  1. Q:$D(ACROUT)
  1. S ACRVND1=$S($D(^ACRDOC(ACRDOCDA,3)):$P(^(3),U,1,8),1:"NO VENDOR SPECIFIED")
  1. W !?10,"(THIS VENDOR DATA NOT FROM STANDARD VENDOR FILE)"
  1. F ACRK=1:1:4 W:$P(ACRVND1,U,ACRK)]"" !?10,$P(ACRVND1,U,ACRK)
  1. W:$P(ACRVND1,U,5)]"" ", ",$P(^DIC(5,$P(ACRVND1,U,5),0),U,2)," ",$P(ACRVND1,U,6)
  1. W !?10,"EIN.:",$P($G(^ACRDOC(ACRDOCDA,14)),U,10)
  1. W:$P(ACRVND1,U,7)]"" !?10,"ATTN: ",$P(ACRVND1,U,7)
  1. W:$P(ACRVND1,U,8)]"" !?10,"PHONE: ",$P(ACRVND1,U,8)
  1. W !
  1. D:ACRVND1]"" PAUSE^ACRFWARN
  1. Q
  1. VEND ;EP
  1. W !,"REQUESTED VENDOR:---------------------------------------------------------------"
  1. I $D(ACRDOCVN),ACRDOCVN D I 1
  1. .N D0,DXS,DIP,DC,DN
  1. .S D0=ACRDOCVN
  1. .D ^ACRPRVN
  1. E I $P(ACRDOCPO,U,5)="",$D(^ACRDOC(ACRDOCDA,3)),$P(^(3),U)]"" D NSVEND I 1
  1. E W !!,"NO VENDOR HAS BEEN SPECIFIED FOR THIS REQUEST."
  1. Q