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

ACRF347.m

Go to the documentation of this file.
ACRF347 ;IHS/OIRM/DSD/THL,AEF - SOLICITATION FOR COMMERCIAL ITEMS; [ 11/01/2001   9:44 AM ]
 ;;2.1;ADMIN RESOURCE MGT SYSTEM;;NOV 05, 2001
EN D ^ACRFSSPO,EN1
EXIT K ACRX,ACREFFD
 F X=1:1:21,211 K @("ACR"_X)
 K ACR211
 Q
EN1 S:IOSL<62 IOSL=62
 I '$D(ACRORIGF) D ^ACRPSS Q
 D GATHER
 D ^ACRF3472:$D(ACRORIGF)
 Q
GATHER ;GATHER ALL INFO REQUIRED TO PRINT THE DOCUMENT
 D SETDOC^ACRFEA1
 N ACRPO
 S ACRPO=$G(^ACRDOC(ACRDOCDA,"PO"))
 S ACR5=$G(^ACRDOC(ACRDOCDA,"POIO"))
 S ACR6=$G(^ACRDOC(ACRDOCDA,"POST"))
 S ACR21=$G(^ACRDOC(ACRDOCDA,"POMI"))
 S ACR26=$G(^ACRDOC(ACRDOCDA,26))
 S ACR33=$G(^ACRDOC(ACRDOCDA,33))
 S ACR211=$G(^ACRDOC(ACRDOCDA,21))
 S ACR7=$P(ACRPO,U,5)
 S ACR11=$P(ACRPO,U,8)
 S X=$G(^AUTTPRG(+ACR5,"DT"))
ISSUE S ACR5(1)=$P($G(^AUTTPRG(+ACR5,0)),U)
 S ACR5(2)=$P(X,U)
 S ACR5(3)=$P(X,U,2)
 S ACR5(4)=$P(X,U,3)
 S ACR5(5)=$P(X,U,4)
 S ACR5(6)=$P(X,U,5)
 S ACR5(7)=$P(X,U,6)
 S ACR5(5)=$P($G(^DIC(5,+ACR5(5),0)),U,2)
SHIPTO S X=$G(^AUTTPRG(+ACR6,"DT"))
 S ACR6(1)=$P($G(^AUTTPRG(+ACR6,0)),U)
 S ACR6(2)=$P(X,U)
 S ACR6(3)=$P(X,U,2)
 S ACR6(4)=$P(X,U,3)
 S ACR6(5)=$P(X,U,4)
 S ACR6(6)=$P(X,U,5)
 S ACR6(7)=$P(X,U,6)
 S ACR6(5)=$P($G(^DIC(5,+ACR6(5),0)),U,2)
VENDOR S X=$G(^AUTTVNDR(+ACR7,11))
 S ACR7(1)=$P($G(^AUTTVNDR(+ACR7,0)),U)
 S ACR7(7)=$P(X,U,13)
 S X=$G(^AUTTVNDR(+ACR7,13))
 S ACR7(2)=$P(X,U)
 S ACR7(3)=$P(X,U,10)
 S ACR7(4)=$P(X,U,2)
 S ACR7(5)=$P(X,U,3)
 S ACR7(6)=$P(X,U,4)
 S ACR7(5)=$P($G(^DIC(5,+ACR7(5),0)),U,2)
PAY S X=$G(^AUTTPRG(+ACR21,"DT"))
 S ACR21(1)=$P($G(^AUTTPRG(+ACR21,0)),U)
 S ACR21(2)=$P(X,U)
 S ACR21(3)=$P(X,U,2)
 S ACR21(4)=$P(X,U,3)
 S ACR21(5)=$P(X,U,4)
 S ACR21(6)=$P(X,U,5)
 S ACR21(7)=$P(X,U,6)
 S ACR21(5)=$P($G(^DIC(5,+ACR21(5),0)),U,2)
 S ACR1=$P(ACRDOC0,U)
 S ACR2=$P(ACRDOC0,U,2)
 S Y=$P(ACRPO,U)
 X ^DD("DD")
 N ACREFFD
 S ACREFFD=Y
 S ACR3=$P(ACRPO,U,3)
 S X=+$G(^ACRDOC(ACRDOCDA,"PA"))
 S ACR7B=$P($G(^ACRPO(+$G(ACRPODA),0)),U,9)
 S ACR12=$P(ACRPO,U,9)
 S X=$P(^DD(9002196,103120,0),U,3)
 S:ACR12 ACR12=$P($P(X,((ACR12)_":"),2),";")
 S ACR13=$P(ACRPO,U,11)
 S:ACR13 ACR13=$P(^AUTTPRG(ACR13,0),U)
 S ACR14=$P(ACRPO,U,10)
 S Y=$P(ACRPO,U,12)
 X ^DD("DD")
 S ACR15=Y
 S X=$P(ACRPO,U,13)
 S ACR16(1)=$E(X,1,15)
 S ACR16(2)=$E(X,16,30)
 S ACR18=$P(ACRPO,U,14)
 S ACR19=$P(ACRPO,U,15)
 S ACR20=$P(ACRPO,U,16)
 Q
DISP ;EP;
 D DISP^ACRF3472
 Q