ACR999 ; GENERATED FROM 'ACR PAYROLL' PRINT TEMPLATE (#3868) ; 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(3868,"DXS")
S I(0)="^ACRDOC(",J(0)=9002196
W ?0 I IOST["C-" W:$D(IOF) @IOF K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "[1 ]*EMPLOYEE..:"
S X=$G(^ACRDOC(D0,"PR")) W ?18 S Y=$P(X,U,1) 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>54 Q:'DN W ?54 W "TOTAL PAY.:"
W ?67 X DXS(1,9.2) S X=$P(DIP(101),U,3),DIP(102)=X S X=10,X=$J(DIP(102),X) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>5 Q:'DN W ?5 W "PAY PLAN..:"
W ?18 X DXS(2,9.2) S DIP(101)=$S($D(^ATAEMP(D0,0)):^(0),1:"") S X=$P($P(DIP(102),$C(59)_$P(DIP(101),U,9)_":",2),$C(59),1) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>54 Q:'DN W ?54 W "POSITION #:"
W ?67 X DXS(3,9.2) S X=$P(DIP(101),U,7) S D0=I(0,0) K DIP K:DN Y W X
D T Q:'DN W ?2 W ! F ACRI=1:1:80 W "-" K DIP K:DN Y
D N:$X>0 Q:'DN W ?0 W "[2 ]*FICA......:"
W ?18 X DXS(4,9.2) S X=$P(DIP(101),U,1),DIP(102)=X S X=10,X=$J(DIP(102),X) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>49 Q:'DN W ?49 W "[7 ] QUARTERS..:"
W ?67 X DXS(5,9.2) S X=$P(DIP(101),U,5),DIP(102)=X S X=10,X=$J(DIP(102),X) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>0 Q:'DN W ?0 W "[3 ] FEHBA.....:"
W ?18 X DXS(6,9.2) S X=$P(DIP(101),U,2),DIP(102)=X S X=10,X=$J(DIP(102),X) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>49 Q:'DN W ?49 W "[8 ] SUBSISTENC:"
W ?67 X DXS(7,9.2) S X=$P(DIP(101),U,6),DIP(102)=X S X=10,X=$J(DIP(102),X) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>0 Q:'DN W ?0 W "[4 ] RETIREMENT:"
W ?18 X DXS(8,9.2) S X=$P(DIP(101),U,3),DIP(102)=X S X=10,X=$J(DIP(102),X) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>49 Q:'DN W ?49 W "[9 ] VHA.......:"
W ?67 X DXS(9,9.2) S X=$P(DIP(101),U,7),DIP(102)=X S X=10,X=$J(DIP(102),X) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>0 Q:'DN W ?0 W "[5 ] FEGLI.....:"
W ?18 X DXS(10,9.2) S X=$P(DIP(101),U,4),DIP(102)=X S X=10,X=$J(DIP(102),X) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>49 Q:'DN W ?49 W "[10] BOARD CERT:"
W ?67 X DXS(11,9.2) S X=$P(DIP(101),U,8),DIP(102)=X S X=10,X=$J(DIP(102),X) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>0 Q:'DN W ?0 W "[6 ] PSI.......:"
W ?18 X DXS(12,9.2) S X=$P(DIP(101),U,11),DIP(102)=X S X=10,X=$J(DIP(102),X) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>49 Q:'DN W ?49 W "[11] VSP.......:"
W ?67 X DXS(13,9.2) S X=$P(DIP(101),U,9),DIP(102)=X S X=10,X=$J(DIP(102),X) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>49 Q:'DN W ?49 W "[12] OTHER.....:"
W ?67 X DXS(14,9.2) S X=$P(DIP(101),U,10),DIP(102)=X S X=10,X=$J(DIP(102),X) S D0=I(0,0) K DIP K:DN Y W X
K Y
Q
HEAD ;
W !,"--------------------------------------------------------------------------------",!!
ACR999 ; GENERATED FROM 'ACR PAYROLL' PRINT TEMPLATE (#3868) ; 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(3868,"DXS")
+3 SET I(0)="^ACRDOC("
SET J(0)=9002196
+4 WRITE ?0
IF IOST["C-"
IF $DATA(IOF)
WRITE @IOF
KILL DIP
IF DN
KILL Y
+5 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[1 ]*EMPLOYEE..:"
+6 SET X=$GET(^ACRDOC(D0,"PR"))
WRITE ?18
SET Y=$PIECE(X,U,1)
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)
+7 IF $X>54
DO N
IF 'DN
QUIT
WRITE ?54
WRITE "TOTAL PAY.:"
+8 WRITE ?67
XECUTE DXS(1,9.2)
SET X=$PIECE(DIP(101),U,3)
SET DIP(102)=X
SET X=10
SET X=$JUSTIFY(DIP(102),X)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+9 IF $X>5
DO N
IF 'DN
QUIT
WRITE ?5
WRITE "PAY PLAN..:"
+10 WRITE ?18
XECUTE DXS(2,9.2)
SET DIP(101)=$SELECT($DATA(^ATAEMP(D0,0)):^(0),1:"")
SET X=$PIECE($PIECE(DIP(102),$CHAR(59)_$PIECE(DIP(101),U,9)_":",2),$CHAR(59),1)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+11 IF $X>54
DO N
IF 'DN
QUIT
WRITE ?54
WRITE "POSITION #:"
+12 WRITE ?67
XECUTE DXS(3,9.2)
SET X=$PIECE(DIP(101),U,7)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+13 DO T
IF 'DN
QUIT
WRITE ?2
WRITE !
FOR ACRI=1:1:80
WRITE "-"
KILL DIP
IF DN
KILL Y
+14 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[2 ]*FICA......:"
+15 WRITE ?18
XECUTE DXS(4,9.2)
SET X=$PIECE(DIP(101),U,1)
SET DIP(102)=X
SET X=10
SET X=$JUSTIFY(DIP(102),X)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+16 IF $X>49
DO N
IF 'DN
QUIT
WRITE ?49
WRITE "[7 ] QUARTERS..:"
+17 WRITE ?67
XECUTE DXS(5,9.2)
SET X=$PIECE(DIP(101),U,5)
SET DIP(102)=X
SET X=10
SET X=$JUSTIFY(DIP(102),X)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+18 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[3 ] FEHBA.....:"
+19 WRITE ?18
XECUTE DXS(6,9.2)
SET X=$PIECE(DIP(101),U,2)
SET DIP(102)=X
SET X=10
SET X=$JUSTIFY(DIP(102),X)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+20 IF $X>49
DO N
IF 'DN
QUIT
WRITE ?49
WRITE "[8 ] SUBSISTENC:"
+21 WRITE ?67
XECUTE DXS(7,9.2)
SET X=$PIECE(DIP(101),U,6)
SET DIP(102)=X
SET X=10
SET X=$JUSTIFY(DIP(102),X)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+22 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[4 ] RETIREMENT:"
+23 WRITE ?18
XECUTE DXS(8,9.2)
SET X=$PIECE(DIP(101),U,3)
SET DIP(102)=X
SET X=10
SET X=$JUSTIFY(DIP(102),X)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+24 IF $X>49
DO N
IF 'DN
QUIT
WRITE ?49
WRITE "[9 ] VHA.......:"
+25 WRITE ?67
XECUTE DXS(9,9.2)
SET X=$PIECE(DIP(101),U,7)
SET DIP(102)=X
SET X=10
SET X=$JUSTIFY(DIP(102),X)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+26 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[5 ] FEGLI.....:"
+27 WRITE ?18
XECUTE DXS(10,9.2)
SET X=$PIECE(DIP(101),U,4)
SET DIP(102)=X
SET X=10
SET X=$JUSTIFY(DIP(102),X)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+28 IF $X>49
DO N
IF 'DN
QUIT
WRITE ?49
WRITE "[10] BOARD CERT:"
+29 WRITE ?67
XECUTE DXS(11,9.2)
SET X=$PIECE(DIP(101),U,8)
SET DIP(102)=X
SET X=10
SET X=$JUSTIFY(DIP(102),X)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+30 IF $X>0
DO N
IF 'DN
QUIT
WRITE ?0
WRITE "[6 ] PSI.......:"
+31 WRITE ?18
XECUTE DXS(12,9.2)
SET X=$PIECE(DIP(101),U,11)
SET DIP(102)=X
SET X=10
SET X=$JUSTIFY(DIP(102),X)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+32 IF $X>49
DO N
IF 'DN
QUIT
WRITE ?49
WRITE "[11] VSP.......:"
+33 WRITE ?67
XECUTE DXS(13,9.2)
SET X=$PIECE(DIP(101),U,9)
SET DIP(102)=X
SET X=10
SET X=$JUSTIFY(DIP(102),X)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+34 IF $X>49
DO N
IF 'DN
QUIT
WRITE ?49
WRITE "[12] OTHER.....:"
+35 WRITE ?67
XECUTE DXS(14,9.2)
SET X=$PIECE(DIP(101),U,10)
SET DIP(102)=X
SET X=10
SET X=$JUSTIFY(DIP(102),X)
SET D0=I(0,0)
KILL DIP
IF DN
KILL Y
WRITE X
+36 KILL Y
+37 QUIT
HEAD ;
+1 WRITE !,"--------------------------------------------------------------------------------",!!