ENPLPD1 ; GENERATED FROM 'ENPLP009' PRINT TEMPLATE (#162) ; 12/22/97 ; (continued)
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)
D N:$X>44 Q:'DN W ?44 S DIP(1)=$S($D(^ENG("PROJ",D0,24)):^(24),1:"") S X=$P(DIP(1),U,5)+0 K DIP K:DN Y W $J(X,8)
D N:$X>0 Q:'DN W ?0 W "64. NON-RECURRING ALL OTHER $ : "
D N:$X>44 Q:'DN W ?44 S DIP(1)=$S($D(^ENG("PROJ",D0,24)):^(24),1:"") S X=$P(DIP(1),U,6)+0 K DIP K:DN Y W $J(X,8)
D N:$X>0 Q:'DN W ?0 W "65. TRAVEL .007 $ : "
D N:$X>44 Q:'DN W ?44 S DIP(1)=$S($D(^ENG("PROJ",D0,24)):^(24),1:"") S X=$P(DIP(1),U,7)+0 K DIP K:DN Y W $J(X,8)
D N:$X>59 Q:'DN W ?59 W "69. TOTAL PROJECT SCORE: "
X ^DD(6925,235,9.8) S X=X+Y W $E(X,1,6) K Y(6925,235)
D T Q:'DN D N D N:$X>45 Q:'DN W ?45 W "*********** SIGNATURES ***********"
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "70. CHIEF ENGINEERING SVC/DESIGNEE: "
X DXS(3,9.3) S X=$S(DIP(2):DIP(102),DIP(103):X) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>89 Q:'DN W ?89 W "71. DATE: "
X DXS(4,9.2) S DIP(4)=X S X=1,DIP(5)=X S X="",X=$S(DIP(2):DIP(4),DIP(5):X) K DIP K:DN Y W X
D N:$X>0 Q:'DN W ?0 W "72. DIRECTOR FACILITY/DESIGNEE: "
X DXS(5,9.3) S X=$S(DIP(2):DIP(102),DIP(103):X) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>89 Q:'DN W ?89 W "73. DATE: "
X DXS(6,9.2) S DIP(4)=X S X=1,DIP(5)=X S X="",X=$S(DIP(2):DIP(4),DIP(5):X) K DIP K:DN Y W X
D T Q:'DN D N D N:$X>45 Q:'DN W ?45 W "************************************"
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "74. REGION PROJECT VALIDATION: "
D N:$X>89 Q:'DN W ?89 W "75. DATE: "
F Y=0:0 Q:$Y>(IOSL-5) W !
D N:$X>0 Q:'DN W ?0 W "VAF 10-1193 REVISED 5/95 p.2"
W ?30 R:$E(IOST,1,2)="C-" X:DTIME W @IOF K DIP K:DN Y
F Y=0:0 Q:$Y>-1 W !
D N:$X>0 Q:'DN W ?0 W "VHA"
D N:$X>53 Q:'DN W ?53 W "PROJECT APPLICATION"
D N:$X>107 Q:'DN W ?107 W "PROJECT NUMBER"
D N:$X>54 Q:'DN W ?54 W "EXECUTIVE SUMMARY"
S X=$G(^ENG("PROJ",D0,0)) D N:$X>111 Q:'DN W ?111,$E($P(X,U,1),1,11)
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "DETAILED PROJECT DESCRIPTION:"
S I(1)=46,J(1)=6925.0277 F D1=0:0 Q:$O(^ENG("PROJ",D0,46,D1))'>0 S D1=$O(^(D1)) D:$X>31 T Q:'DN D A1
G A1R
A1 ;
S X=$G(^ENG("PROJ",D0,46,D1,0)) S DIWL=1,DIWR=99 D ^DIWP
Q
A1R ;
D A^DIWW
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "DETAILED PROJECT JUSTIFICATION:"
S I(1)=47,J(1)=6925.0278 F D1=0:0 Q:$O(^ENG("PROJ",D0,47,D1))'>0 S D1=$O(^(D1)) D:$X>33 T Q:'DN D B1
G B1R
B1 ;
S X=$G(^ENG("PROJ",D0,47,D1,0)) S DIWL=1,DIWR=97 D ^DIWP
Q
B1R ;
D A^DIWW
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "IMPACT JUSTIFICATION:"
S DICMX="D ^DIWP" S DIWL=1,DIWR=107 X DXS(7,9.3) S X=$S(DIP(2):DIP(3),DIP(4):X) K DIP K:DN Y
D A^DIWW
F Y=0:0 Q:$Y>(IOSL-5) W !
D N:$X>0 Q:'DN W ?0 W "VAF 10-1193 REVISED 5/95 p.3"
K Y K DIWF
Q
HEAD ;
W !,"------------------------------------------------------------------------------------------------------------------------------------",!!
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HENPLPD1 3389 printed Nov 22, 2024@17:05:06 Page 2
ENPLPD1 ; GENERATED FROM 'ENPLP009' PRINT TEMPLATE (#162) ; 12/22/97 ; (continued)
+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 $X>44
DO N
if 'DN
QUIT
WRITE ?44
SET DIP(1)=$SELECT($DATA(^ENG("PROJ",D0,24)):^(24),1:"")
SET X=$PIECE(DIP(1),U,5)+0
KILL DIP
if DN
KILL Y
WRITE $JUSTIFY(X,8)
+3 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "64. NON-RECURRING ALL OTHER $ : "
+4 if $X>44
DO N
if 'DN
QUIT
WRITE ?44
SET DIP(1)=$SELECT($DATA(^ENG("PROJ",D0,24)):^(24),1:"")
SET X=$PIECE(DIP(1),U,6)+0
KILL DIP
if DN
KILL Y
WRITE $JUSTIFY(X,8)
+5 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "65. TRAVEL .007 $ : "
+6 if $X>44
DO N
if 'DN
QUIT
WRITE ?44
SET DIP(1)=$SELECT($DATA(^ENG("PROJ",D0,24)):^(24),1:"")
SET X=$PIECE(DIP(1),U,7)+0
KILL DIP
if DN
KILL Y
WRITE $JUSTIFY(X,8)
+7 if $X>59
DO N
if 'DN
QUIT
WRITE ?59
WRITE "69. TOTAL PROJECT SCORE: "
+8 XECUTE ^DD(6925,235,9.8)
SET X=X+Y
WRITE $EXTRACT(X,1,6)
KILL Y(6925,235)
+9 DO T
if 'DN
QUIT
DO N
if $X>45
DO N
if 'DN
QUIT
WRITE ?45
WRITE "*********** SIGNATURES ***********"
+10 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "70. CHIEF ENGINEERING SVC/DESIGNEE: "
+11 XECUTE DXS(3,9.3)
SET X=$SELECT(DIP(2):DIP(102),DIP(103):X)
SET D0=I(0,0)
KILL DIP
if DN
KILL Y
WRITE X
+12 if $X>89
DO N
if 'DN
QUIT
WRITE ?89
WRITE "71. DATE: "
+13 XECUTE DXS(4,9.2)
SET DIP(4)=X
SET X=1
SET DIP(5)=X
SET X=""
SET X=$SELECT(DIP(2):DIP(4),DIP(5):X)
KILL DIP
if DN
KILL Y
WRITE X
+14 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "72. DIRECTOR FACILITY/DESIGNEE: "
+15 XECUTE DXS(5,9.3)
SET X=$SELECT(DIP(2):DIP(102),DIP(103):X)
SET D0=I(0,0)
KILL DIP
if DN
KILL Y
WRITE X
+16 if $X>89
DO N
if 'DN
QUIT
WRITE ?89
WRITE "73. DATE: "
+17 XECUTE DXS(6,9.2)
SET DIP(4)=X
SET X=1
SET DIP(5)=X
SET X=""
SET X=$SELECT(DIP(2):DIP(4),DIP(5):X)
KILL DIP
if DN
KILL Y
WRITE X
+18 DO T
if 'DN
QUIT
DO N
if $X>45
DO N
if 'DN
QUIT
WRITE ?45
WRITE "************************************"
+19 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "74. REGION PROJECT VALIDATION: "
+20 if $X>89
DO N
if 'DN
QUIT
WRITE ?89
WRITE "75. DATE: "
+21 FOR Y=0:0
if $Y>(IOSL-5)
QUIT
WRITE !
+22 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "VAF 10-1193 REVISED 5/95 p.2"
+23 WRITE ?30
if $EXTRACT(IOST,1,2)="C-"
READ X:DTIME
WRITE @IOF
KILL DIP
if DN
KILL Y
+24 FOR Y=0:0
if $Y>-1
QUIT
WRITE !
+25 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "VHA"
+26 if $X>53
DO N
if 'DN
QUIT
WRITE ?53
WRITE "PROJECT APPLICATION"
+27 if $X>107
DO N
if 'DN
QUIT
WRITE ?107
WRITE "PROJECT NUMBER"
+28 if $X>54
DO N
if 'DN
QUIT
WRITE ?54
WRITE "EXECUTIVE SUMMARY"
+29 SET X=$GET(^ENG("PROJ",D0,0))
if $X>111
DO N
if 'DN
QUIT
WRITE ?111,$EXTRACT($PIECE(X,U,1),1,11)
+30 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "DETAILED PROJECT DESCRIPTION:"
+31 SET I(1)=46
SET J(1)=6925.0277
FOR D1=0:0
if $ORDER(^ENG("PROJ",D0,46,D1))'>0
QUIT
SET D1=$ORDER(^(D1))
if $X>31
DO T
if 'DN
QUIT
DO A1
+32 GOTO A1R
A1 ;
+1 SET X=$GET(^ENG("PROJ",D0,46,D1,0))
SET DIWL=1
SET DIWR=99
DO ^DIWP
+2 QUIT
A1R ;
+1 DO A^DIWW
+2 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "DETAILED PROJECT JUSTIFICATION:"
+3 SET I(1)=47
SET J(1)=6925.0278
FOR D1=0:0
if $ORDER(^ENG("PROJ",D0,47,D1))'>0
QUIT
SET D1=$ORDER(^(D1))
if $X>33
DO T
if 'DN
QUIT
DO B1
+4 GOTO B1R
B1 ;
+1 SET X=$GET(^ENG("PROJ",D0,47,D1,0))
SET DIWL=1
SET DIWR=97
DO ^DIWP
+2 QUIT
B1R ;
+1 DO A^DIWW
+2 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "IMPACT JUSTIFICATION:"
+3 SET DICMX="D ^DIWP"
SET DIWL=1
SET DIWR=107
XECUTE DXS(7,9.3)
SET X=$SELECT(DIP(2):DIP(3),DIP(4):X)
KILL DIP
if DN
KILL Y
+4 DO A^DIWW
+5 FOR Y=0:0
if $Y>(IOSL-5)
QUIT
WRITE !
+6 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "VAF 10-1193 REVISED 5/95 p.3"
+7 KILL Y
KILL DIWF
+8 QUIT
HEAD ;
+1 WRITE !,"------------------------------------------------------------------------------------------------------------------------------------",!!