ACRPTRG ; GENERATED FROM 'ACR TRAINING 350' PRINT TEMPLATE (#3867) ; 09/29/09 ; (FILE 9002196, MARGIN=80)
G BEGIN
N W !
T W:$X ! I '$D(DIOT(2)),DN,$D(IOSL),$S('$D(DIWF):1,$P(DIWF,"B",2):$P(DIWF,"B",2),1:1)+$Y'<IOSL,$D(^UTILITY($J,1))#2,^(1)?1U1P1E.E X ^(1)
S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
Q
DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
I Y W $P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$E(Y,4,5))_" " W:Y#100 $J(Y#100\1,2)_"," W Y\10000+1700 W:Y#1 " "_$E(Y_0,9,10)_":"_$E(Y_"000",11,12) Q
W Y Q
M D @DIXX
Q
BEGIN ;
S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
I $D(DXS)<9 M DXS=^DIPT(3867,"DXS")
S I(0)="^ACRDOC(",J(0)=9002196
I $E($G(IOST),1,2)="C-" W "ARMS REF: ",$P(^ACRDOC(D0,0),U,6),"/",D0 K DIP K:DN Y
W ?0 S ACRDOCDA=D0 K DIP K:DN Y
D N:$X>19 Q:'DN W ?19 W "DEPARTMENT OF HEALTH AND HUMAN SERVICES"
D N:$X>0 Q:'DN W ?0 W "INDIAN HEALTH SERVICE - TRAINING NOMINATION & AUTHORIZATION # "
S X=$G(^ACRDOC(D0,0)) W ?64,$E($P(X,U,1),1,13)
D N:$X>46 Q:'DN W ?46 W "DHHS #: "
W $$EXPDN^ACRFUTL(D0) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "----------------------- SECTION A - TRAINEE DATA -----------------------------"
D N:$X>0 Q:'DN W ?0 W "TRAINEE.....:"
S X=$G(^ACRDOC(D0,"TRNG")) W ?15 S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^ACRAU(Y,0))#2:$P(^(0),U),1:Y) S Y=$S(Y="":Y,$D(^VA(200,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,35)
D N:$X>46 Q:'DN W ?46 W "SOC SEC NO.:"
W ?60 W $$PSSN^ACRFUTL($P($G(^ACRDOC(D0,"TRNG")),U,2),$G(DUZ),$G(IOST),$G(ACRSSNOK)) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "PAY PLAN....:"
W ?15 X DXS(1,9.2) S DIP(101)=$G(X) S X=$P(DIP(102),U,3),X=X S X=X S D0=I(0,0) K DIP K:DN Y W X
W "-"
X DXS(2,9.2) S X=$P(DIP(101),U,4) S D0=I(0,0) K DIP K:DN Y W X
W ?26 W:$P($G(^ACRAU(+$P($G(^ACRDOC(D0,"TRNG")),U,2),1)),U,8)]"" "SERIES: " K DIP K:DN Y
X DXS(3,9.2) S X=$P(DIP(101),U,8) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>46 Q:'DN W ?46 W "APPOINTMENT:"
W ?60 X DXS(4,9.2) S DIP(101)=$S($D(^ACRAU(D0,1)):^(1),1:"") S X=$P($P(DIP(102),$C(59)_$P(DIP(101),U,7)_":",2),$C(59)) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>0 Q:'DN W ?0 W "POSITN TITLE:"
S X=$G(^ACRDOC(D0,"TRNG")) W ?15,$E($P(X,U,6),1,23)
D N:$X>46 Q:'DN W ?46 W "PRIOR NON-"
D N:$X>0 Q:'DN W ?0 W "ORGANIZATION:"
W ?15 S Y=$P(X,U,3) S Y=$S(Y="":Y,$D(^AUTTPRG(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>46 Q:'DN W ?46 W "GOV'T TRNG.:"
S X=$G(^ACRDOC(D0,"TRNG3")) W ?60 S Y=$P(X,U,10) W:Y]"" $J(Y,5,0)
D N:$X>0 Q:'DN W ?0 W "CONT SERVICE: YEARS:"
S X=$G(^ACRDOC(D0,"TRNG")) W ?23 S Y=$P(X,U,7) W:Y]"" $J(Y,3,0)
W ?28 W "MONTHS:"
W ?37 S Y=$P(X,U,8) W:Y]"" $J(Y,3,0)
D N:$X>46 Q:'DN W ?46 W "PHONE......:"
D N:$X>0 Q:'DN W ?0 W "----------------------- SECTION B - COURSE DATA ------------------------------"
D N:$X>0 Q:'DN W ?0 W "TRAINING HOURS: DUTY:"
W ?24 S Y=$P(X,U,9) W:Y]"" $J(Y,5,0)
D EN2^ACRFCLM K DIP K:DN Y
D N:$X>46 Q:'DN W ?46 W "TUITION & FEES:"
W ?63 W $J(ACR4,10) K DIP K:DN Y
D N:$X>13 Q:'DN W ?13 W "NON-DUTY:"
S X=$G(^ACRDOC(D0,"TRNG")) W ?24 S Y=$P(X,U,10) W:Y]"" $J(Y,5,0)
D N:$X>46 Q:'DN W ?46 W "BOOKS & OTHER.:"
W ?63 W $J(ACR5,10) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "TRAINING PERIOD: FROM:"
S X=$G(^ACRDOC(D0,"TRNG")) W ?24 S Y=$P(X,U,11) D DT
D N:$X>46 Q:'DN W ?46 W "TRAVEL........:"
W ?63 W $J(ACR1,10) K DIP K:DN Y
D N:$X>19 Q:'DN W ?19 W "TO:"
S X=$G(^ACRDOC(D0,"TRNG")) W ?24 S Y=$P(X,U,12) D DT
D N:$X>46 Q:'DN W ?46 W "PER DIEM......:"
W ?63 W $J(ACR2,10) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "TRAVEL ORDER NUMBER..:"
S X=$G(^ACRDOC(D0,"TRNGTO")) W ?24 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^ACRDOC(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,17)
D N:$X>46 Q:'DN W ?46 W "OTHER TRANS...:"
W ?63 W $J(ACR3,10) K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "PRE-PAY TRAINING EXP.:"
S X=$G(^ACRDOC(D0,"TRNG4")) W ?24 S Y=$P(X,U,12) D DT
D N:$X>46 Q:'DN W ?46 W "TOTAL.........:"
W ?63 W $J(ACR6,10) K DIP K:DN Y
D PAUSE^ACRFWARN K DIP K:DN Y
I $E($G(IOST),1,2)="C-" W @IOF K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "--------------------------------------------------------------------------------"
D N:$X>0 Q:'DN W ?0 W "TRAINING COURSE TITLE:"
S X=$G(^ACRDOC(D0,"TRNG")) W ?24,$E($P(X,U,18),1,44)
D N:$X>0 Q:'DN W ?0 W "EMPLOYEE'S TRAINING NEED:"
D NEED^ACRFSSRC K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "HOW CONTENT RELATES TO TRAINING NEED:"
D RELATE^ACRFSSRC K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "--------------------------------------------------------------------------------"
D N:$X>0 Q:'DN W ?0 W "SEND PAYMENT TO:"
S X=$G(^ACRDOC(D0,"TRNG3")) D N:$X>19 Q:'DN W ?19 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^AUTTVNDR(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
D N:$X>54 Q:'DN W ?54 W "EIN.:"
W ?61 X DXS(5,9.2) S X=$P(DIP(101),U,13) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>19 Q:'DN W ?19 X DXS(6,9.2) S X=$P(DIP(101),U,1) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>54 Q:'DN W ?54 W "ATTN:"
W ?61 X DXS(7,9.2) S X=$P(DIP(101),U,5) S D0=I(0,0) K DIP K:DN Y W $E(X,1,18)
D N:$X>19 Q:'DN W ?19 X DXS(8,9.2) S X=$P(DIP(101),U,10) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>19 Q:'DN W ?19 X DXS(9,9.2) S X=$P(DIP(101),U,2) S D0=I(0,0) K DIP K:DN Y W X
W " "
X DXS(10,9.3) S X=$P(DIP(201),U,2) S D0=I(0,0) K DIP K:DN Y W X
W " "
X DXS(11,9.2) S X=$P(DIP(101),U,4) S D0=I(0,0) K DIP K:DN Y W X
I '+$G(^ACRDOC(D0,"TRNG3")) D NSVEND^ACRFJS K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "The VENDOR must ensure the CONFIDENTIALITY of THIS INFORMATION in accordance"
D N:$X>0 Q:'DN W ?0 W "with the provisions of THE PRIVACY ACT, Public Law 93-579, as amended."
D N:$X>0 Q:'DN W ?0 W "See attachments: Terms & Conditions, Payments & Billing Instructions"
D N:$X>0 Q:'DN W ?0 W "--------------------------------------------------------------------------------"
D N:$X>0 Q:'DN W ?0 W "LOCATION OF TRNG:"
S X=$G(^ACRDOC(D0,"TRNG4")) W ?19,$E($P(X,U,6),1,40)
D N:$X>19 Q:'DN W ?19,$E($P(X,U,7),1,40)
D N:$X>19 Q:'DN W ?19,$E($P(X,U,8),1,20)
W ", "
S Y=$P(X,U,9) S Y=$S(Y="":Y,$D(^DIC(5,Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,30)
W " "
W ?0,$E($P(X,U,10),1,10)
D N:$X>0 Q:'DN W ?0 W "CODING:"
D N:$X>53 Q:'DN W ?53 W "|SELF-"
D N:$X>69 Q:'DN W ?69 W "|SKILL CODE"
D N:$X>0 Q:'DN W ?0 W "PURPOSE:"
S X=$G(^ACRDOC(D0,"TRNG3")) W ?10 S Y=$P(X,U,6) S Y=$S(Y="":Y,$D(^ACRTP(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,1)
D N:$X>13 Q:'DN W ?13 W "|TYPE:"
W ?21 S Y=$P(X,U,7) S Y=$S(Y="":Y,$D(^ACRTT(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,1)
D N:$X>24 Q:'DN W ?24 W "|SOURCE:"
W ?34 S Y=$P(X,U,8) S Y=$S(Y="":Y,$D(^ACRTS(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,1)
D N:$X>37 Q:'DN W ?37 W "|SPEC INT:"
W ?49 S Y=$P(X,U,9) S Y=$S(Y="":Y,$D(^ACRTSI(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,1)
D N:$X>53 Q:'DN W ?53 W "|SPONSORED:"
W ?66 S DIP(1)=$S($D(^ACRDOC(D0,"TRNG")):^("TRNG"),1:"") S X=$P(DIP(1),U,21),X=X K DIP K:DN Y W $E(X,1,1)
D N:$X>69 Q:'DN W ?69 W "|"
S X=$G(^ACRDOC(D0,"TRNG")) W ?72 S Y=$P(X,U,22) S Y=$S(Y="":Y,$D(^ACRTSC(Y,0))#2:$P(^(0),U),1:Y) W $E(Y,1,4)
D PAUSE^ACRFWARN K DIP K:DN Y
I $E($G(IOST),1,2)="C-" W @IOF K DIP K:DN Y
D ^ACRFPSS K DIP K:DN Y
D ^ACRFPAPV K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "|---------------------- SECTION E - PROCUREMENT DATA ------------------------|"
D N:$X>0 Q:'DN W ?0 W "--- SEND INVOICE TO: ---"
G ^ACRPTRG1
ACRPTRG ; GENERATED FROM 'ACR TRAINING 350' PRINT TEMPLATE (#3867) ; 09/29/09 ; (FILE 9002196, MARGIN=80)
+1 GOTO BEGIN
N WRITE !
T IF $X
WRITE !
IF '$DATA(DIOT(2))
IF DN
IF $DATA(IOSL)
IF $SELECT('$DATA(DIWF):1,$PIECE(DIWF,"B",2):$PIECE(DIWF,"B",2),1:1)+$Y'<IOSL
IF $DATA(^UTILITY($JOB,1))#2
IF ^(1)?1U1P1E.E
XECUTE ^(1)
+1 SET DISTP=DISTP+1
SET DILCT=DILCT+1
IF '(DISTP#100)
DO CSTP^DIO2
+2 QUIT
DT IF $GET(DUZ("LANG"))>1
IF Y
WRITE $$OUT^DIALOGU(Y,"DD")
QUIT
+1 IF Y
WRITE $PIECE("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$EXTRACT(Y,4,5))_" "
IF Y#100
WRITE $JUSTIFY(Y#100\1,2)_","
WRITE Y\10000+1700
IF Y#1
WRITE " "_$EXTRACT(Y_0,9,10)_":"_$EXTRACT(Y_"000",11,12)
QUIT
+2 WRITE Y
QUIT
M DO @DIXX
+1 QUIT
BEGIN ;
+1 IF '$DATA(DN)
SET DN=1
SET DISTP=$GET(DISTP)
SET DILCT=$GET(DILCT)
+2 IF $DATA(DXS)<9
MERGE DXS=^DIPT(3867,"DXS")
+3 SET I(0)="^ACRDOC("
SET J(0)=9002196
+4 IF $EXTRACT($GET(IOST),1,2)="C-"
WRITE "ARMS REF: ",$PIECE(^ACRDOC(D0,0),U,6),"/",D0
KILL DIP
IF DN
KILL Y
+5 WRITE ?0
SET ACRDOCDA=D0
KILL DIP
IF DN
KILL Y
+6 IF $X>19
DO N
IF 'DN
QUIT
WRITE ?19
WRITE "DEPARTMENT OF HEALTH AND HUMAN SERVICES"
+7 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "INDIAN HEALTH SERVICE - TRAINING NOMINATION & AUTHORIZATION # "
+8 SET X=$GET(^ACRDOC(D0,0))
WRITE ?64,$EXTRACT($PIECE(X,U,1),1,13)
+9 IF $X>46
DO N
IF 'DN
QUIT
WRITE ?46
WRITE "DHHS #: "
+10 WRITE $$EXPDN^ACRFUTL(D0)
KILL DIP
IF DN
KILL Y
+11 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "----------------------- SECTION A - TRAINEE DATA -----------------------------"
+12 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRAINEE.....:"
+13 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?15
SET Y=$PIECE(X,U,2)
SET Y=$SELECT(Y="":Y,$DATA(^ACRAU(Y,0))#2:$PIECE(^(0),U),1:Y)
SET Y=$SELECT(Y="":Y,$DATA(^VA(200,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,35)
+14 IF $X>46
DO N
IF 'DN
QUIT
WRITE ?46
WRITE "SOC SEC NO.:"
+15 WRITE ?60
WRITE $$PSSN^ACRFUTL($PIECE($GET(^ACRDOC(D0,"TRNG")),U,2),$GET(DUZ),$GET(IOST),$GET(ACRSSNOK))
KILL DIP
IF DN
KILL Y
+16 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "PAY PLAN....:"
+17 WRITE ?15
XECUTE DXS(1,9.2)
SET DIP(101)=$GET(X)
SET X=$PIECE(DIP(102),U,3)
SET X=X
SET X=X
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+18 WRITE "-"
+19 XECUTE DXS(2,9.2)
SET X=$PIECE(DIP(101),U,4)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+20 WRITE ?26
IF $PIECE($GET(^ACRAU(+$PIECE($GET(^ACRDOC(D0,"TRNG")),U,2),1)),U,8)]""
WRITE "SERIES: "
KILL DIP
IF DN
KILL Y
+21 XECUTE DXS(3,9.2)
SET X=$PIECE(DIP(101),U,8)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+22 IF $X>46
DO N
IF 'DN
QUIT
WRITE ?46
WRITE "APPOINTMENT:"
+23 WRITE ?60
XECUTE DXS(4,9.2)
SET DIP(101)=$SELECT($DATA(^ACRAU(D0,1)):^(1),1:"")
SET X=$PIECE($PIECE(DIP(102),$CHAR(59)_$PIECE(DIP(101),U,7)_":",2),$CHAR(59))
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+24 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "POSITN TITLE:"
+25 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?15,$EXTRACT($PIECE(X,U,6),1,23)
+26 IF $X>46
DO N
IF 'DN
QUIT
WRITE ?46
WRITE "PRIOR NON-"
+27 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "ORGANIZATION:"
+28 WRITE ?15
SET Y=$PIECE(X,U,3)
SET Y=$SELECT(Y="":Y,$DATA(^AUTTPRG(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+29 IF $X>46
DO N
IF 'DN
QUIT
WRITE ?46
WRITE "GOV'T TRNG.:"
+30 SET X=$GET(^ACRDOC(D0,"TRNG3"))
WRITE ?60
SET Y=$PIECE(X,U,10)
IF Y]""
WRITE $JUSTIFY(Y,5,0)
+31 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "CONT SERVICE: YEARS:"
+32 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?23
SET Y=$PIECE(X,U,7)
IF Y]""
WRITE $JUSTIFY(Y,3,0)
+33 WRITE ?28
WRITE "MONTHS:"
+34 WRITE ?37
SET Y=$PIECE(X,U,8)
IF Y]""
WRITE $JUSTIFY(Y,3,0)
+35 IF $X>46
DO N
IF 'DN
QUIT
WRITE ?46
WRITE "PHONE......:"
+36 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "----------------------- SECTION B - COURSE DATA ------------------------------"
+37 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRAINING HOURS: DUTY:"
+38 WRITE ?24
SET Y=$PIECE(X,U,9)
IF Y]""
WRITE $JUSTIFY(Y,5,0)
+39 DO EN2^ACRFCLM
KILL DIP
IF DN
KILL Y
+40 IF $X>46
DO N
IF 'DN
QUIT
WRITE ?46
WRITE "TUITION & FEES:"
+41 WRITE ?63
WRITE $JUSTIFY(ACR4,10)
KILL DIP
IF DN
KILL Y
+42 IF $X>13
DO N
IF 'DN
QUIT
WRITE ?13
WRITE "NON-DUTY:"
+43 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?24
SET Y=$PIECE(X,U,10)
IF Y]""
WRITE $JUSTIFY(Y,5,0)
+44 IF $X>46
DO N
IF 'DN
QUIT
WRITE ?46
WRITE "BOOKS & OTHER.:"
+45 WRITE ?63
WRITE $JUSTIFY(ACR5,10)
KILL DIP
IF DN
KILL Y
+46 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRAINING PERIOD: FROM:"
+47 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?24
SET Y=$PIECE(X,U,11)
DO DT
+48 IF $X>46
DO N
IF 'DN
QUIT
WRITE ?46
WRITE "TRAVEL........:"
+49 WRITE ?63
WRITE $JUSTIFY(ACR1,10)
KILL DIP
IF DN
KILL Y
+50 IF $X>19
DO N
IF 'DN
QUIT
WRITE ?19
WRITE "TO:"
+51 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?24
SET Y=$PIECE(X,U,12)
DO DT
+52 IF $X>46
DO N
IF 'DN
QUIT
WRITE ?46
WRITE "PER DIEM......:"
+53 WRITE ?63
WRITE $JUSTIFY(ACR2,10)
KILL DIP
IF DN
KILL Y
+54 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRAVEL ORDER NUMBER..:"
+55 SET X=$GET(^ACRDOC(D0,"TRNGTO"))
WRITE ?24
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^ACRDOC(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,17)
+56 IF $X>46
DO N
IF 'DN
QUIT
WRITE ?46
WRITE "OTHER TRANS...:"
+57 WRITE ?63
WRITE $JUSTIFY(ACR3,10)
KILL DIP
IF DN
KILL Y
+58 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "PRE-PAY TRAINING EXP.:"
+59 SET X=$GET(^ACRDOC(D0,"TRNG4"))
WRITE ?24
SET Y=$PIECE(X,U,12)
DO DT
+60 IF $X>46
DO N
IF 'DN
QUIT
WRITE ?46
WRITE "TOTAL.........:"
+61 WRITE ?63
WRITE $JUSTIFY(ACR6,10)
KILL DIP
IF DN
KILL Y
+62 DO PAUSE^ACRFWARN
KILL DIP
IF DN
KILL Y
+63 IF $EXTRACT($GET(IOST),1,2)="C-"
WRITE @IOF
KILL DIP
IF DN
KILL Y
+64 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "--------------------------------------------------------------------------------"
+65 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRAINING COURSE TITLE:"
+66 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?24,$EXTRACT($PIECE(X,U,18),1,44)
+67 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "EMPLOYEE'S TRAINING NEED:"
+68 DO NEED^ACRFSSRC
KILL DIP
IF DN
KILL Y
+69 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "HOW CONTENT RELATES TO TRAINING NEED:"
+70 DO RELATE^ACRFSSRC
KILL DIP
IF DN
KILL Y
+71 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "--------------------------------------------------------------------------------"
+72 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "SEND PAYMENT TO:"
+73 SET X=$GET(^ACRDOC(D0,"TRNG3"))
IF $X>19
DO N
IF 'DN
QUIT
WRITE ?19
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^AUTTVNDR(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+74 IF $X>54
DO N
IF 'DN
QUIT
WRITE ?54
WRITE "EIN.:"
+75 WRITE ?61
XECUTE DXS(5,9.2)
SET X=$PIECE(DIP(101),U,13)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+76 IF $X>19
DO N
IF 'DN
QUIT
WRITE ?19
XECUTE DXS(6,9.2)
SET X=$PIECE(DIP(101),U,1)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+77 IF $X>54
DO N
IF 'DN
QUIT
WRITE ?54
WRITE "ATTN:"
+78 WRITE ?61
XECUTE DXS(7,9.2)
SET X=$PIECE(DIP(101),U,5)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE $EXTRACT(X,1,18)
+79 IF $X>19
DO N
IF 'DN
QUIT
WRITE ?19
XECUTE DXS(8,9.2)
SET X=$PIECE(DIP(101),U,10)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+80 IF $X>19
DO N
IF 'DN
QUIT
WRITE ?19
XECUTE DXS(9,9.2)
SET X=$PIECE(DIP(101),U,2)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+81 WRITE " "
+82 XECUTE DXS(10,9.3)
SET X=$PIECE(DIP(201),U,2)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+83 WRITE " "
+84 XECUTE DXS(11,9.2)
SET X=$PIECE(DIP(101),U,4)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+85 IF '+$GET(^ACRDOC(D0,"TRNG3"))
DO NSVEND^ACRFJS
KILL DIP
IF DN
KILL Y
+86 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "The VENDOR must ensure the CONFIDENTIALITY of THIS INFORMATION in accordance"
+87 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "with the provisions of THE PRIVACY ACT, Public Law 93-579, as amended."
+88 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "See attachments: Terms & Conditions, Payments & Billing Instructions"
+89 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "--------------------------------------------------------------------------------"
+90 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "LOCATION OF TRNG:"
+91 SET X=$GET(^ACRDOC(D0,"TRNG4"))
WRITE ?19,$EXTRACT($PIECE(X,U,6),1,40)
+92 IF $X>19
DO N
IF 'DN
QUIT
WRITE ?19,$EXTRACT($PIECE(X,U,7),1,40)
+93 IF $X>19
DO N
IF 'DN
QUIT
WRITE ?19,$EXTRACT($PIECE(X,U,8),1,20)
+94 WRITE ", "
+95 SET Y=$PIECE(X,U,9)
SET Y=$SELECT(Y="":Y,$DATA(^DIC(5,Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,30)
+96 WRITE " "
+97 WRITE ?0,$EXTRACT($PIECE(X,U,10),1,10)
+98 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "CODING:"
+99 IF $X>53
DO N
IF 'DN
QUIT
WRITE ?53
WRITE "|SELF-"
+100 IF $X>69
DO N
IF 'DN
QUIT
WRITE ?69
WRITE "|SKILL CODE"
+101 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "PURPOSE:"
+102 SET X=$GET(^ACRDOC(D0,"TRNG3"))
WRITE ?10
SET Y=$PIECE(X,U,6)
SET Y=$SELECT(Y="":Y,$DATA(^ACRTP(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,1)
+103 IF $X>13
DO N
IF 'DN
QUIT
WRITE ?13
WRITE "|TYPE:"
+104 WRITE ?21
SET Y=$PIECE(X,U,7)
SET Y=$SELECT(Y="":Y,$DATA(^ACRTT(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,1)
+105 IF $X>24
DO N
IF 'DN
QUIT
WRITE ?24
WRITE "|SOURCE:"
+106 WRITE ?34
SET Y=$PIECE(X,U,8)
SET Y=$SELECT(Y="":Y,$DATA(^ACRTS(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,1)
+107 IF $X>37
DO N
IF 'DN
QUIT
WRITE ?37
WRITE "|SPEC INT:"
+108 WRITE ?49
SET Y=$PIECE(X,U,9)
SET Y=$SELECT(Y="":Y,$DATA(^ACRTSI(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,1)
+109 IF $X>53
DO N
IF 'DN
QUIT
WRITE ?53
WRITE "|SPONSORED:"
+110 WRITE ?66
SET DIP(1)=$SELECT($DATA(^ACRDOC(D0,"TRNG")):^("TRNG"),1:"")
SET X=$PIECE(DIP(1),U,21)
SET X=X
KILL DIP
IF DN
KILL Y
WRITE $EXTRACT(X,1,1)
+111 IF $X>69
DO N
IF 'DN
QUIT
WRITE ?69
WRITE "|"
+112 SET X=$GET(^ACRDOC(D0,"TRNG"))
WRITE ?72
SET Y=$PIECE(X,U,22)
SET Y=$SELECT(Y="":Y,$DATA(^ACRTSC(Y,0))#2:$PIECE(^(0),U),1:Y)
WRITE $EXTRACT(Y,1,4)
+113 DO PAUSE^ACRFWARN
KILL DIP
IF DN
KILL Y
+114 IF $EXTRACT($GET(IOST),1,2)="C-"
WRITE @IOF
KILL DIP
IF DN
KILL Y
+115 DO ^ACRFPSS
KILL DIP
IF DN
KILL Y
+116 DO ^ACRFPAPV
KILL DIP
IF DN
KILL Y
+117 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "|---------------------- SECTION E - PROCUREMENT DATA ------------------------|"
+118 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "--- SEND INVOICE TO: ---"
+119 GOTO ^ACRPTRG1