ENPLPC ; GENERATED FROM 'ENPLP005' PRINT TEMPLATE (#157) ; 06/11/96 ; (FILE 6925, 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 F X=0:0 S X=$O(^DIPT(157,"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>19 Q:'DN W ?19 W "PROJECT APPLICATION - SIGN OFF SUMMARY"
D N:$X>65 Q:'DN W ?65 W "PROJECT NUMBER"
S X=$G(^ENG("PROJ",D0,0)) D N:$X>67 Q:'DN W ?67,$E($P(X,U,1),1,11)
D N:$X>0 Q:'DN W ?0 W "PROJECT PROGRAM: "
S Y=$P(X,U,6) W:Y]"" $S($D(DXS(10,Y)):DXS(10,Y),1:Y)
D N:$X>49 Q:'DN W ?49 W "FACILITY PRIORITY: "
S X=$G(^ENG("PROJ",D0,15)) W ?0,$E($P(X,U,9),1,3)
D N:$X>0 Q:'DN W ?0 W "FACILITY: "
X DXS(1,9.2) S X=$P(DIP(101),U,1) S D0=I(0,0) K DIP K:DN Y W X
D N:$X>49 Q:'DN W ?49 W "TOTAL PROJECT SCORE: "
X ^DD(6925,235,9.8) S X=X+Y W $E(X,1,6) K Y(6925,235)
D N:$X>0 Q:'DN W ?0 W "PROJECT TITLE: "
S X=$G(^ENG("PROJ",D0,0)) W ?0,$E($P(X,U,3),1,50)
D N:$X>0 Q:'DN W ?0 W "EMERGENCY APPLICATION: "
X DXS(2,9.3) S X=$S(DIP(4):DIP(6),DIP(7):X) K DIP K:DN Y W X
D N:$X>39 Q:'DN W ?39 W "EQUIPMENT OVER $250K APPLICATION: "
X DXS(3,9.2) S X=$S(DIP(2):DIP(3),DIP(4):X) K DIP K:DN Y W X
D N:$X>0 Q:'DN W ?0 W "BUILDING NUMBER(S): "
X DXS(4,9) K DIP K:DN Y W $E(X,1,50)
D N:$X>0 Q:'DN W ?0 W "BUILDING OCCUPANCY: "
S X=$G(^ENG("PROJ",D0,15)) S Y=$P(X,U,4) W:Y]"" $S($D(DXS(11,Y)):DXS(11,Y),1:Y)
D N:$X>0 Q:'DN W ?0 W "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 N:$X>0 Q:'DN W ?0 W "BUDGET CATEGORY: "
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>0 Q:'DN W ?0 W "NET BED CHANGE: "
S X=$G(^ENG("PROJ",D0,15)) W ?0,$E($P(X,U,2),1,4)
D N:$X>49 Q:'DN W ?49 W "NET PARKING CHANGE: "
W ?0,$E($P(X,U,3),1,5)
D N:$X>0 Q:'DN W ?0 W "LISTED ON 5 YR FACILITY PLAN: "
X DXS(5,9) K DIP K:DN Y W $E(X,1,4)
D N:$X>49 Q:'DN W ?49 W "5-YR FACILITY PLAN FY: "
S X=$G(^ENG("PROJ",D0,15)) W ?0,$E($P(X,U,6),1,4)
D N:$X>0 Q:'DN W ?0 W "NEW NET SQ. FT.: "
X DXS(6,9) K DIP K:DN Y W $E(X,1,9)
D N:$X>39 Q:'DN W ?39 W "NEW GROSS SQ. FT.: "
X DXS(7,9) K DIP K:DN Y W $E(X,1,9)
D N:$X>0 Q:'DN W ?0 W "RENOVATED NET SQ. FT.: "
X DXS(8,9) K DIP K:DN Y W $E(X,1,9)
D N:$X>39 Q:'DN W ?39 W "RENOVATED GROSS SQ. FT.: "
X DXS(9,9) K DIP K:DN Y W $E(X,1,9)
D N:$X>0 Q:'DN W ?0 W "AE $ REQUIRED IN FY: "
S X=$G(^ENG("PROJ",D0,5)) W ?0,$E($P(X,U,7),1,4)
D N:$X>39 Q:'DN W ?39 W "CONSTRUCTION $ REQUIRED IN FY: "
S X=$G(^ENG("PROJ",D0,0)) W ?0,$E($P(X,U,7),1,4)
D N:$X>0 Q:'DN W ?0 W "PLANNED CONSTRUCTION METHOD: "
S X=$G(^ENG("PROJ",D0,15)) S Y=$P(X,U,7) W:Y]"" $S($D(DXS(12,Y)):DXS(12,Y),1:Y)
D N:$X>44 Q:'DN W ?44 W "TOTAL PROJECT COSTS: $ "
X ^DD(6925,222,9.3) S Y(6925,222,5)=X S X=$P(Y(6925,222,6),U,8),X=$S(Y(6925,222,2):Y(6925,222,4),Y(6925,222,5):X)+Y(6925,222,7)+$P(Y(6925,222,6),U,7)+$P(Y(6925,222,6),U,6) S X=$J(X,0,0) W $E(X,1,11) K Y(6925,222)
D N:$X>0 Q:'DN W ?0 W "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>22 T Q:'DN D A1
G A1R
A1 ;
S X=$G(^ENG("PROJ",D0,17,D1,0)) S DIWL=1,DIWR=56 D ^DIWP
Q
A1R ;
D A^DIWW
D N:$X>0 Q:'DN W ?0 W "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>24 T Q:'DN D B1
G B1R
B1 ;
S X=$G(^ENG("PROJ",D0,26,D1,0)) S DIWL=1,DIWR=54 D ^DIWP
Q
B1R ;
D A^DIWW
D N:$X>0 Q:'DN W ?0 W "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>11 T Q:'DN D C1
G C1R
C1 ;
S X=$G(^ENG("PROJ",D0,27,D1,0)) S DIWL=1,DIWR=67 D ^DIWP
Q
C1R ;
D 0^DIWW K DIP K:DN Y
D ^DIWW K Y K DIWF
Q
HEAD ;
W !,"--------------------------------------------------------------------------------",!!
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HENPLPC 4424 printed Dec 13, 2024@01:54:55 Page 2
ENPLPC ; GENERATED FROM 'ENPLP005' PRINT TEMPLATE (#157) ; 06/11/96 ; (FILE 6925, 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
FOR X=0:0
SET X=$ORDER(^DIPT(157,"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>19
DO N
if 'DN
QUIT
WRITE ?19
WRITE "PROJECT APPLICATION - SIGN OFF SUMMARY"
+6 if $X>65
DO N
if 'DN
QUIT
WRITE ?65
WRITE "PROJECT NUMBER"
+7 SET X=$GET(^ENG("PROJ",D0,0))
if $X>67
DO N
if 'DN
QUIT
WRITE ?67,$EXTRACT($PIECE(X,U,1),1,11)
+8 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "PROJECT PROGRAM: "
+9 SET Y=$PIECE(X,U,6)
if Y]""
WRITE $SELECT($DATA(DXS(10,Y)):DXS(10,Y),1:Y)
+10 if $X>49
DO N
if 'DN
QUIT
WRITE ?49
WRITE "FACILITY PRIORITY: "
+11 SET X=$GET(^ENG("PROJ",D0,15))
WRITE ?0,$EXTRACT($PIECE(X,U,9),1,3)
+12 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "FACILITY: "
+13 XECUTE DXS(1,9.2)
SET X=$PIECE(DIP(101),U,1)
SET D0=I(0,0)
KILL DIP
if DN
KILL Y
WRITE X
+14 if $X>49
DO N
if 'DN
QUIT
WRITE ?49
WRITE "TOTAL PROJECT SCORE: "
+15 XECUTE ^DD(6925,235,9.8)
SET X=X+Y
WRITE $EXTRACT(X,1,6)
KILL Y(6925,235)
+16 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "PROJECT TITLE: "
+17 SET X=$GET(^ENG("PROJ",D0,0))
WRITE ?0,$EXTRACT($PIECE(X,U,3),1,50)
+18 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "EMERGENCY APPLICATION: "
+19 XECUTE DXS(2,9.3)
SET X=$SELECT(DIP(4):DIP(6),DIP(7):X)
KILL DIP
if DN
KILL Y
WRITE X
+20 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "EQUIPMENT OVER $250K APPLICATION: "
+21 XECUTE DXS(3,9.2)
SET X=$SELECT(DIP(2):DIP(3),DIP(4):X)
KILL DIP
if DN
KILL Y
WRITE X
+22 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "BUILDING NUMBER(S): "
+23 XECUTE DXS(4,9)
KILL DIP
if DN
KILL Y
WRITE $EXTRACT(X,1,50)
+24 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "BUILDING OCCUPANCY: "
+25 SET X=$GET(^ENG("PROJ",D0,15))
SET Y=$PIECE(X,U,4)
if Y]""
WRITE $SELECT($DATA(DXS(11,Y)):DXS(11,Y),1:Y)
+26 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "PROJECT CATEGORY: "
+27 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)
+28 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "BUDGET CATEGORY: "
+29 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)
+30 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "NET BED CHANGE: "
+31 SET X=$GET(^ENG("PROJ",D0,15))
WRITE ?0,$EXTRACT($PIECE(X,U,2),1,4)
+32 if $X>49
DO N
if 'DN
QUIT
WRITE ?49
WRITE "NET PARKING CHANGE: "
+33 WRITE ?0,$EXTRACT($PIECE(X,U,3),1,5)
+34 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "LISTED ON 5 YR FACILITY PLAN: "
+35 XECUTE DXS(5,9)
KILL DIP
if DN
KILL Y
WRITE $EXTRACT(X,1,4)
+36 if $X>49
DO N
if 'DN
QUIT
WRITE ?49
WRITE "5-YR FACILITY PLAN FY: "
+37 SET X=$GET(^ENG("PROJ",D0,15))
WRITE ?0,$EXTRACT($PIECE(X,U,6),1,4)
+38 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "NEW NET SQ. FT.: "
+39 XECUTE DXS(6,9)
KILL DIP
if DN
KILL Y
WRITE $EXTRACT(X,1,9)
+40 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "NEW GROSS SQ. FT.: "
+41 XECUTE DXS(7,9)
KILL DIP
if DN
KILL Y
WRITE $EXTRACT(X,1,9)
+42 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "RENOVATED NET SQ. FT.: "
+43 XECUTE DXS(8,9)
KILL DIP
if DN
KILL Y
WRITE $EXTRACT(X,1,9)
+44 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "RENOVATED GROSS SQ. FT.: "
+45 XECUTE DXS(9,9)
KILL DIP
if DN
KILL Y
WRITE $EXTRACT(X,1,9)
+46 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "AE $ REQUIRED IN FY: "
+47 SET X=$GET(^ENG("PROJ",D0,5))
WRITE ?0,$EXTRACT($PIECE(X,U,7),1,4)
+48 if $X>39
DO N
if 'DN
QUIT
WRITE ?39
WRITE "CONSTRUCTION $ REQUIRED IN FY: "
+49 SET X=$GET(^ENG("PROJ",D0,0))
WRITE ?0,$EXTRACT($PIECE(X,U,7),1,4)
+50 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "PLANNED CONSTRUCTION METHOD: "
+51 SET X=$GET(^ENG("PROJ",D0,15))
SET Y=$PIECE(X,U,7)
if Y]""
WRITE $SELECT($DATA(DXS(12,Y)):DXS(12,Y),1:Y)
+52 if $X>44
DO N
if 'DN
QUIT
WRITE ?44
WRITE "TOTAL PROJECT COSTS: $ "
+53 XECUTE ^DD(6925,222,9.3)
SET Y(6925,222,5)=X
SET X=$PIECE(Y(6925,222,6),U,8)
SET X=$SELECT(Y(6925,222,2):Y(6925,222,4),Y(6925,222,5):X)+Y(6925,222,7)+$PIECE(Y(6925,222,6),U,7)+$PIECE(Y(6925,222,6),U,6)
SET X=$JUSTIFY(X,0,0)
WRITE $EXTRACT(X,1,11)
KILL Y(6925,222)
+54 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "PROJECT DESCRIPTION:"
+55 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>22
DO T
if 'DN
QUIT
DO A1
+56 GOTO A1R
A1 ;
+1 SET X=$GET(^ENG("PROJ",D0,17,D1,0))
SET DIWL=1
SET DIWR=56
DO ^DIWP
+2 QUIT
A1R ;
+1 DO A^DIWW
+2 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "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>24
DO T
if 'DN
QUIT
DO B1
+4 GOTO B1R
B1 ;
+1 SET X=$GET(^ENG("PROJ",D0,26,D1,0))
SET DIWL=1
SET DIWR=54
DO ^DIWP
+2 QUIT
B1R ;
+1 DO A^DIWW
+2 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "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>11
DO T
if 'DN
QUIT
DO C1
+4 GOTO C1R
C1 ;
+1 SET X=$GET(^ENG("PROJ",D0,27,D1,0))
SET DIWL=1
SET DIWR=67
DO ^DIWP
+2 QUIT
C1R ;
+1 DO 0^DIWW
KILL DIP
if DN
KILL Y
+2 DO ^DIWW
KILL Y
KILL DIWF
+3 QUIT
HEAD ;
+1 WRITE !,"--------------------------------------------------------------------------------",!!