ACRDHR ; GENERATED FROM 'ACR DHR' PRINT TEMPLATE (#3949) ; 09/29/09 ; (FILE 9002189.1, 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)
S I(0)="^ACRDHR(",J(0)=9002189.1
D N:$X>0 Q:'DN W ?0 W "DHR RECORD TYPE.....:"
S X=$G(^ACRDHR(D0,1)) W ?23 S Y=$P(X,U,1) W:Y]"" $J(Y,2,0)
D N:$X>0 Q:'DN W ?0 W "EFFECTIVE DATE......:"
W ?23 S Y=$P(X,U,2) D DT
D N:$X>0 Q:'DN W ?0 W "TRANSACTION CODE....:"
W ?23,$E($P(X,U,3),1,3)
D N:$X>0 Q:'DN W ?0 W "REVERSE CODE........:"
W ?23 S Y=$P(X,U,4) W:Y]"" $J(Y,2,0)
D N:$X>0 Q:'DN W ?0 W "MODIFIER CODE.......:"
W ?23 S Y=$P(X,U,5) W:Y]"" $J(Y,2,0)
D N:$X>0 Q:'DN W ?0 W "DOCUMENT REF. CODE..:"
W ?23,$E($P(X,U,6),1,3)
D N:$X>0 Q:'DN W ?0 W "DOCUMENT NUMBER.....:"
W ?23,$E($P(X,U,7),1,10)
D N:$X>0 Q:'DN W ?0 W "SECONDARY DOC. REF..:"
W ?23,$E($P(X,U,8),1,3)
D N:$X>0 Q:'DN W ?0 W "SECONDARY DOC NUMBER:"
W ?23,$E($P(X,U,9),1,10)
D N:$X>0 Q:'DN W ?0 W "GEOGRAPHIC CODE.....:"
W ?23 S Y=$P(X,U,10) W:Y]"" $J(Y,2,0)
D N:$X>0 Q:'DN W ?0 W "FISCAL YEAR.........:"
W ?23 S Y=$P(X,U,11) W:Y]"" $J(Y,2,0)
D N:$X>0 Q:'DN W ?0 W "COMMON ACCOUNTING NO:"
W ?23,$E($P(X,U,12),1,7)
D N:$X>0 Q:'DN W ?0 W "OBJECT CLASS CODE...:"
W ?23,$E($P(X,U,13),1,4)
D N:$X>0 Q:'DN W ?0 W "DOLLAR AMOUNT.......:"
W ?23 S Y=$P(X,U,14) W:Y]"" $J(Y,13,0)
D N:$X>0 Q:'DN W ?0 W "FED/NON-FED.........:"
W ?23 S Y=$P(X,U,15) W:Y]"" $J(Y,2,0)
D N:$X>0 Q:'DN W ?0 W "VENDOR CODE-PRIMARY.:"
W ?23,$E($P(X,U,16),1,15)
D N:$X>0 Q:'DN W ?0 W "VENDOR CODE-SECONDRY:"
W ?23,$E($P(X,U,17),1,15)
D N:$X>0 Q:'DN W ?0 W "PAY/COLLECT DOC. NUM:"
W ?23,$E($P(X,U,18),1,10)
D N:$X>0 Q:'DN W ?0 W "TRAVEL BEGIN DATE...:"
W ?23,$E($P(X,U,26),1,4)
D N:$X>0 Q:'DN W ?0 W "TRAVEL END DATE.....:"
W ?23,$E($P(X,U,27),1,4)
D N:$X>0 Q:'DN W ?0 W "2 DIGIT FISCAL YEAR.:"
W ?23,$E($P(X,U,28),1,2)
K Y
Q
HEAD ;
W !,"--------------------------------------------------------------------------------",!!
ACRDHR ; GENERATED FROM 'ACR DHR' PRINT TEMPLATE (#3949) ; 09/29/09 ; (FILE 9002189.1, 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 SET I(0)="^ACRDHR("
SET J(0)=9002189.1
+3 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "DHR RECORD TYPE.....:"
+4 SET X=$GET(^ACRDHR(D0,1))
WRITE ?23
SET Y=$PIECE(X,U,1)
IF Y]""
WRITE $JUSTIFY(Y,2,0)
+5 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "EFFECTIVE DATE......:"
+6 WRITE ?23
SET Y=$PIECE(X,U,2)
DO DT
+7 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRANSACTION CODE....:"
+8 WRITE ?23,$EXTRACT($PIECE(X,U,3),1,3)
+9 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "REVERSE CODE........:"
+10 WRITE ?23
SET Y=$PIECE(X,U,4)
IF Y]""
WRITE $JUSTIFY(Y,2,0)
+11 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "MODIFIER CODE.......:"
+12 WRITE ?23
SET Y=$PIECE(X,U,5)
IF Y]""
WRITE $JUSTIFY(Y,2,0)
+13 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "DOCUMENT REF. CODE..:"
+14 WRITE ?23,$EXTRACT($PIECE(X,U,6),1,3)
+15 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "DOCUMENT NUMBER.....:"
+16 WRITE ?23,$EXTRACT($PIECE(X,U,7),1,10)
+17 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "SECONDARY DOC. REF..:"
+18 WRITE ?23,$EXTRACT($PIECE(X,U,8),1,3)
+19 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "SECONDARY DOC NUMBER:"
+20 WRITE ?23,$EXTRACT($PIECE(X,U,9),1,10)
+21 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "GEOGRAPHIC CODE.....:"
+22 WRITE ?23
SET Y=$PIECE(X,U,10)
IF Y]""
WRITE $JUSTIFY(Y,2,0)
+23 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "FISCAL YEAR.........:"
+24 WRITE ?23
SET Y=$PIECE(X,U,11)
IF Y]""
WRITE $JUSTIFY(Y,2,0)
+25 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "COMMON ACCOUNTING NO:"
+26 WRITE ?23,$EXTRACT($PIECE(X,U,12),1,7)
+27 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "OBJECT CLASS CODE...:"
+28 WRITE ?23,$EXTRACT($PIECE(X,U,13),1,4)
+29 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "DOLLAR AMOUNT.......:"
+30 WRITE ?23
SET Y=$PIECE(X,U,14)
IF Y]""
WRITE $JUSTIFY(Y,13,0)
+31 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "FED/NON-FED.........:"
+32 WRITE ?23
SET Y=$PIECE(X,U,15)
IF Y]""
WRITE $JUSTIFY(Y,2,0)
+33 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "VENDOR CODE-PRIMARY.:"
+34 WRITE ?23,$EXTRACT($PIECE(X,U,16),1,15)
+35 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "VENDOR CODE-SECONDRY:"
+36 WRITE ?23,$EXTRACT($PIECE(X,U,17),1,15)
+37 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "PAY/COLLECT DOC. NUM:"
+38 WRITE ?23,$EXTRACT($PIECE(X,U,18),1,10)
+39 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRAVEL BEGIN DATE...:"
+40 WRITE ?23,$EXTRACT($PIECE(X,U,26),1,4)
+41 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "TRAVEL END DATE.....:"
+42 WRITE ?23,$EXTRACT($PIECE(X,U,27),1,4)
+43 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "2 DIGIT FISCAL YEAR.:"
+44 WRITE ?23,$EXTRACT($PIECE(X,U,28),1,2)
+45 KILL Y
+46 QUIT
HEAD ;
+1 WRITE !,"--------------------------------------------------------------------------------",!!