ENPLPB ; GENERATED FROM 'ENPLP006' PRINT TEMPLATE (#158) ; 06/11/96 ; (FILE 6925, MARGIN=132)
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 F X=0:0 S X=$O(^DIPT(158,"DXS",X)) Q:'X S Y=$O(^(X,"")) F X=X:0 Q:Y="" S DXS(X,Y)=^(Y),Y=$O(^(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>54 Q:'DN W ?54 W "EXECUTIVE SUMMARY"
D T Q:'DN D N D N:$X>44 Q:'DN W ?44 W "*********** GENERAL DATA ***********"
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "1. PROJECT PROGRAM: "
S X=$G(^ENG("PROJ",D0,0)) S Y=$P(X,U,6) W:Y]"" $S($D(DXS(15,Y)):DXS(15,Y),1:Y)
D N:$X>59 Q:'DN W ?59 W "2. REGION: "
X DXS(1,9.2) S X=$P(DIP(101),U,7) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>89 Q:'DN W ?89 W "3. FACILITY PRIORITY: "
S X=$G(^ENG("PROJ",D0,15)) S Y=$P(X,U,9) W:Y]"" $J(Y,3,0)
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "4. FACILITY: "
X DXS(2,9.2) S X=$P(DIP(101),U,1) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>79 Q:'DN W ?79 W "DIVISION: "
S X=$G(^ENG("PROJ",D0,15)) S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^ENG(6910.3,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,10)
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "5. PROJECT TITLE: "
S X=$G(^ENG("PROJ",D0,0)) W ?0,$E($P(X,U,3),1,50)
D N:$X>89 Q:'DN W ?89 W "6. PROJECT NUMBER: "
W ?0,$E($P(X,U,1),1,11)
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "7. EMERGENCY : "
X DXS(3,9.3) S X=$S(DIP(4):DIP(6),DIP(7):X) K DIP K:DN Y W X
D N:$X>29 Q:'DN W ?29 W "8. EQUIPMENT OVER : "
X DXS(4,9.2) S X=$S(DIP(2):DIP(3),DIP(4):X) K DIP K:DN Y W X
D N:$X>59 Q:'DN W ?59 W "9. BUILDING : "
X DXS(5,9) K DIP K:DN Y W $E(X,1,50)
D N:$X>3 Q:'DN W ?3 W "APPLICATION"
D N:$X>32 Q:'DN W ?32 W "$250K APPLICATION"
D N:$X>62 Q:'DN W ?62 W "NUMBER(S)"
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "10. BUILDING OCCUPANCY: "
S X=$G(^ENG("PROJ",D0,15)) S Y=$P(X,U,4) W:Y]"" $S($D(DXS(16,Y)):DXS(16,Y),1:Y)
D N:$X>55 Q:'DN W ?55 W "11a. PROJECT CATEGORY: "
S X=$G(^ENG("PROJ",D0,52)) S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^OFM(7336.8,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,40)
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "11b. BONUS CATEGORY: "
W ?23 X DXS(6,9.3) S DIP(6)=X S X="N/A",X=$S(DIP(3):DIP(5),DIP(6):X) K DIP K:DN Y W X
D N:$X>55 Q:'DN W ?55 W "11c. SIR RATING: "
S X=$G(^ENG("PROJ",D0,15)) S Y=$P(X,U,11) W:Y]"" $J(Y,6,2)
D N:$X>81 Q:'DN W ?81 W "11d. % ENERGY TARGET ACHIEVED: (Region enters)"
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "12a. BUDGET CATEGORY: "
S X=$G(^ENG("PROJ",D0,52)) S Y=$P(X,U,2) S Y=$S(Y="":Y,$D(^OFM(7336.9,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,40)
D N:$X>55 Q:'DN W ?55 W "12b. EPA CATEGORY: "
W ?76 X DXS(7,9.3) S DIP(6)=X S X="N/A",X=$S(DIP(3):DIP(5),DIP(6):X) K DIP K:DN Y W X
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "13. NET BED CHANGE: "
S X=$G(^ENG("PROJ",D0,15)) W ?0,$E($P(X,U,2),1,4)
D N:$X>39 Q:'DN W ?39 W "14. LISTED ON 5 YR FACILITY PLAN: "
X DXS(8,9) K DIP K:DN Y W $E(X,1,4)
D N:$X>89 Q:'DN W ?89 W "15. 5-YR FACILITY PLAN FY: "
S X=$G(^ENG("PROJ",D0,15)) W ?0,$E($P(X,U,6),1,4)
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "16. NET PARKING CHANGE: "
W ?0,$E($P(X,U,3),1,5)
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "17. PROJECT DESCRIPTION:"
S I(1)=17,J(1)=6925.0192 F D1=0:0 Q:$O(^ENG("PROJ",D0,17,D1))'>0 S D1=$O(^(D1)) D:$X>26 T Q:'DN D A1
G A1R
A1 ;
S X=$G(^ENG("PROJ",D0,17,D1,0)) S DIWL=27,DIWR=130 D ^DIWP
Q
A1R ;
D A^DIWW
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "18. PROJECT JUSTIFICATION:"
S I(1)=26,J(1)=6925.05 F D1=0:0 Q:$O(^ENG("PROJ",D0,26,D1))'>0 S D1=$O(^(D1)) D:$X>28 T Q:'DN D B1
G B1R
B1 ;
S X=$G(^ENG("PROJ",D0,26,D1,0)) S DIWL=29,DIWR=130 D ^DIWP
Q
B1R ;
D A^DIWW
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "19. WORKLOAD:"
S I(1)=27,J(1)=6925.06 F D1=0:0 Q:$O(^ENG("PROJ",D0,27,D1))'>0 S D1=$O(^(D1)) D:$X>15 T Q:'DN D C1
G C1R
C1 ;
S X=$G(^ENG("PROJ",D0,27,D1,0)) S DIWL=16,DIWR=130 D ^DIWP
Q
C1R ;
D A^DIWW
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "20. FDP UPDATE COMPLETED: "
G ^ENPLPB1
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HENPLPB 4483 printed Nov 22, 2024@17:05:02 Page 2
ENPLPB ; GENERATED FROM 'ENPLP006' PRINT TEMPLATE (#158) ; 06/11/96 ; (FILE 6925, MARGIN=132)
+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
FOR X=0:0
SET X=$ORDER(^DIPT(158,"DXS",X))
if 'X
QUIT
SET Y=$ORDER(^(X,""))
FOR X=X:0
if Y=""
QUIT
SET DXS(X,Y)=^(Y)
SET Y=$ORDER(^(Y))
+3 FOR Y=0:0
if $Y>-1
QUIT
WRITE !
+4 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "VHA"
+5 if $X>53
DO N
if 'DN
QUIT
WRITE ?53
WRITE "PROJECT APPLICATION"
+6 if $X>54
DO N
if 'DN
QUIT
WRITE ?54
WRITE "EXECUTIVE SUMMARY"
+7 DO T
if 'DN
QUIT
DO N
if $X>44
DO N
if 'DN
QUIT
WRITE ?44
WRITE "*********** GENERAL DATA ***********"
+8 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "1. PROJECT PROGRAM: "
+9 SET X=$GET(^ENG("PROJ",D0,0))
SET Y=$PIECE(X,U,6)
if Y]""
WRITE $SELECT($DATA(DXS(15,Y)):DXS(15,Y),1:Y)
+10 if $X>59
DO N
if 'DN
QUIT
WRITE ?59
WRITE "2. REGION: "
+11 XECUTE DXS(1,9.2)
SET X=$PIECE(DIP(101),U,7)
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 "3. FACILITY PRIORITY: "
+13 SET X=$GET(^ENG("PROJ",D0,15))
SET Y=$PIECE(X,U,9)
if Y]""
WRITE $JUSTIFY(Y,3,0)
+14 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "4. FACILITY: "
+15 XECUTE DXS(2,9.2)
SET X=$PIECE(DIP(101),U,1)
SET D0=I(0,0)
KILL DIP
if DN
KILL Y
WRITE X
+16 if $X>79
DO N
if 'DN
QUIT
WRITE ?79
WRITE "DIVISION: "
+17 SET X=$GET(^ENG("PROJ",D0,15))
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^ENG(6910.3,Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,10)
+18 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "5. PROJECT TITLE: "
+19 SET X=$GET(^ENG("PROJ",D0,0))
WRITE ?0,$EXTRACT($PIECE(X,U,3),1,50)
+20 if $X>89
DO N
if 'DN
QUIT
WRITE ?89
WRITE "6. PROJECT NUMBER: "
+21 WRITE ?0,$EXTRACT($PIECE(X,U,1),1,11)
+22 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "7. EMERGENCY : "
+23 XECUTE DXS(3,9.3)
SET X=$SELECT(DIP(4):DIP(6),DIP(7):X)
KILL DIP
if DN
KILL Y
WRITE X
+24 if $X>29
DO N
if 'DN
QUIT
WRITE ?29
WRITE "8. EQUIPMENT OVER : "
+25 XECUTE DXS(4,9.2)
SET X=$SELECT(DIP(2):DIP(3),DIP(4):X)
KILL DIP
if DN
KILL Y
WRITE X
+26 if $X>59
DO N
if 'DN
QUIT
WRITE ?59
WRITE "9. BUILDING : "
+27 XECUTE DXS(5,9)
KILL DIP
if DN
KILL Y
WRITE $EXTRACT(X,1,50)
+28 if $X>3
DO N
if 'DN
QUIT
WRITE ?3
WRITE "APPLICATION"
+29 if $X>32
DO N
if 'DN
QUIT
WRITE ?32
WRITE "$250K APPLICATION"
+30 if $X>62
DO N
if 'DN
QUIT
WRITE ?62
WRITE "NUMBER(S)"
+31 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "10. BUILDING OCCUPANCY: "
+32 SET X=$GET(^ENG("PROJ",D0,15))
SET Y=$PIECE(X,U,4)
if Y]""
WRITE $SELECT($DATA(DXS(16,Y)):DXS(16,Y),1:Y)
+33 if $X>55
DO N
if 'DN
QUIT
WRITE ?55
WRITE "11a. PROJECT CATEGORY: "
+34 SET X=$GET(^ENG("PROJ",D0,52))
SET Y=$PIECE(X,U,1)
SET Y=$SELECT(Y="":Y,$DATA(^OFM(7336.8,Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,40)
+35 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "11b. BONUS CATEGORY: "
+36 WRITE ?23
XECUTE DXS(6,9.3)
SET DIP(6)=X
SET X="N/A"
SET X=$SELECT(DIP(3):DIP(5),DIP(6):X)
KILL DIP
if DN
KILL Y
WRITE X
+37 if $X>55
DO N
if 'DN
QUIT
WRITE ?55
WRITE "11c. SIR RATING: "
+38 SET X=$GET(^ENG("PROJ",D0,15))
SET Y=$PIECE(X,U,11)
if Y]""
WRITE $JUSTIFY(Y,6,2)
+39 if $X>81
DO N
if 'DN
QUIT
WRITE ?81
WRITE "11d. % ENERGY TARGET ACHIEVED: (Region enters)"
+40 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "12a. BUDGET CATEGORY: "
+41 SET X=$GET(^ENG("PROJ",D0,52))
SET Y=$PIECE(X,U,2)
SET Y=$SELECT(Y="":Y,$DATA(^OFM(7336.9,Y,0))#2:$PIECE(^(0),U,1),1:Y)
WRITE $EXTRACT(Y,1,40)
+42 if $X>55
DO N
if 'DN
QUIT
WRITE ?55
WRITE "12b. EPA CATEGORY: "
+43 WRITE ?76
XECUTE DXS(7,9.3)
SET DIP(6)=X
SET X="N/A"
SET X=$SELECT(DIP(3):DIP(5),DIP(6):X)
KILL DIP
if DN
KILL Y
WRITE X
+44 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "13. NET BED CHANGE: "
+45 SET X=$GET(^ENG("PROJ",D0,15))
WRITE ?0,$EXTRACT($PIECE(X,U,2),1,4)
+46 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "14. LISTED ON 5 YR FACILITY PLAN: "
+47 XECUTE DXS(8,9)
KILL DIP
if DN
KILL Y
WRITE $EXTRACT(X,1,4)
+48 if $X>89
DO N
if 'DN
QUIT
WRITE ?89
WRITE "15. 5-YR FACILITY PLAN FY: "
+49 SET X=$GET(^ENG("PROJ",D0,15))
WRITE ?0,$EXTRACT($PIECE(X,U,6),1,4)
+50 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "16. NET PARKING CHANGE: "
+51 WRITE ?0,$EXTRACT($PIECE(X,U,3),1,5)
+52 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "17. PROJECT DESCRIPTION:"
+53 SET I(1)=17
SET J(1)=6925.0192
FOR D1=0:0
if $ORDER(^ENG("PROJ",D0,17,D1))'>0
QUIT
SET D1=$ORDER(^(D1))
if $X>26
DO T
if 'DN
QUIT
DO A1
+54 GOTO A1R
A1 ;
+1 SET X=$GET(^ENG("PROJ",D0,17,D1,0))
SET DIWL=27
SET DIWR=130
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 "18. PROJECT JUSTIFICATION:"
+3 SET I(1)=26
SET J(1)=6925.05
FOR D1=0:0
if $ORDER(^ENG("PROJ",D0,26,D1))'>0
QUIT
SET D1=$ORDER(^(D1))
if $X>28
DO T
if 'DN
QUIT
DO B1
+4 GOTO B1R
B1 ;
+1 SET X=$GET(^ENG("PROJ",D0,26,D1,0))
SET DIWL=29
SET DIWR=130
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 "19. WORKLOAD:"
+3 SET I(1)=27
SET J(1)=6925.06
FOR D1=0:0
if $ORDER(^ENG("PROJ",D0,27,D1))'>0
QUIT
SET D1=$ORDER(^(D1))
if $X>15
DO T
if 'DN
QUIT
DO C1
+4 GOTO C1R
C1 ;
+1 SET X=$GET(^ENG("PROJ",D0,27,D1,0))
SET DIWL=16
SET DIWR=130
DO ^DIWP
+2 QUIT
C1R ;
+1 DO A^DIWW
+2 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "20. FDP UPDATE COMPLETED: "
+3 GOTO ^ENPLPB1