ENPLPA ; GENERATED FROM 'ENPLP008' PRINT TEMPLATE (#161) ; 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(161,"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>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>45 Q:'DN W ?45 W "*********** COST DATA ***********"
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "40. CONSTRUCTION METHOD PLANNED: "
S X=$G(^ENG("PROJ",D0,15)) S Y=$P(X,U,7) W:Y]"" $S($D(DXS(8,Y)):DXS(8,Y),1:Y)
D N:$X>49 Q:'DN W ?49 W "41. AE $ REQUIRED IN FY: "
S X=$G(^ENG("PROJ",D0,5)) W ?0,$E($P(X,U,7),1,4)
D N:$X>89 Q:'DN W ?89 W "42. CONST $ REQUIRED IN FY: "
S X=$G(^ENG("PROJ",D0,0)) W ?0,$E($P(X,U,7),1,4)
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "43. NRM COSTS: "
W "YES"
D N:$X>59 Q:'DN W ?59 W "44. MAJOR/MINOR/MINOR MISC. COSTS: "
W "NO"
D N:$X>0 Q:'DN W ?0 W "45. TOTAL M&R COSTS: "
S X=$G(^ENG("PROJ",D0,19)) D N:$X>44 Q:'DN W ?44 S Y=$P(X,U,1) W:Y]"" $J(Y,11,0)
D N:$X>0 Q:'DN W ?0 W "46. TOTAL BSEA COSTS: "
D N:$X>44 Q:'DN W ?44 S Y=$P(X,U,2) W:Y]"" $J(Y,11,0)
D N:$X>0 Q:'DN W ?0 W "47. TOTAL BSER COSTS: "
D N:$X>44 Q:'DN W ?44 S Y=$P(X,U,3) W:Y]"" $J(Y,11,0)
D N:$X>0 Q:'DN W ?0 W "48. TOTAL MI COSTS: "
D N:$X>44 Q:'DN W ?44 S Y=$P(X,U,4) W:Y]"" $J(Y,11,0)
D N:$X>0 Q:'DN W ?0 W "49. TOTAL CONST. COST (LOW BID): "
D N:$X>44 Q:'DN W ?44 S Y(6925,217,1)=$S($D(^ENG("PROJ",D0,19)):^(19),1:"") S X=$P(Y(6925,217,1),U,1)+$P(Y(6925,217,1),U,2)+$P(Y(6925,217,1),U,3)+$P(Y(6925,217,1),U,4) W:X'?."*" $J(X,11,0) K Y(6925,217)
D N:$X>59 Q:'DN W ?59 W "54. TOTAL CONST. COST (LOW BID): "
D N:$X>0 Q:'DN W ?0 W "50. CONST CONTCY % AND $: "
S X=$G(^ENG("PROJ",D0,19)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,5) W:Y]"" $J(Y,5,1)
D N:$X>40 Q:'DN W ?40 W "%"
D N:$X>44 Q:'DN W ?44 X ^DD(6925,218.1,9.4) S X=$S(Y(6925,218.1,2):Y(6925,218.1,5),Y(6925,218.1,6):X)/100+999.999\1000*1000 S X=$J(X,0,0) W:X'?."*" $J(X,11,0) K Y(6925,218.1)
D N:$X>59 Q:'DN W ?59 W "55. CONST CONTCY % AND $: "
D N:$X>100 Q:'DN W ?100 W "%"
D N:$X>0 Q:'DN W ?0 W "51. IMPACT COSTS: "
S X=$G(^ENG("PROJ",D0,19)) D N:$X>44 Q:'DN W ?44 S Y=$P(X,U,7) W:Y]"" $J(Y,11,0)
D N:$X>59 Q:'DN W ?59 W "56. IMPACT COSTS: "
D N:$X>0 Q:'DN W ?0 W "52. TECHNICAL SERVICES % AND $"
D N:$X>34 Q:'DN W ?34 X ^DD(6925,220,10) S X=X*100 W:X'?."*" $J(X,5,1) K Y(6925,220)
D N:$X>40 Q:'DN W ?40 W "%"
S X=$G(^ENG("PROJ",D0,19)) D N:$X>44 Q:'DN W ?44 S Y=$P(X,U,6) W:Y]"" $J(Y,11,0)
D N:$X>59 Q:'DN W ?59 W "57. TECHNICAL SERVICES % AND $"
D N:$X>100 Q:'DN W ?100 W "%"
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "53. TOTAL PROJECT COSTS: "
D N:$X>44 Q:'DN W ?44 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:X'?."*" $J(X,11,0) K Y(6925,222)
D N:$X>59 Q:'DN W ?59 W "58. TOTAL PROJECT COSTS: "
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "*********** ACTIVATION DATA ***********"
D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "59. ACTIVATION $ REQUIRED IN FY: "
S X=$G(^ENG("PROJ",D0,24)) W ?0,$E($P(X,U,1),1,4)
D N:$X>59 Q:'DN W ?59 W "66. EQUIP OVER $250K : "
X DXS(1,9) K DIP K:DN Y W $J(X,13)
D N:$X>63 Q:'DN W ?63 W "EQPMT (OVER $250K)"
D N:$X>0 Q:'DN W ?0 W "60. ADDITIONAL FTEE: "
S DIP(1)=$S($D(^ENG("PROJ",D0,24)):^(24),1:"") S X=$P(DIP(1),U,3)+0 K DIP K:DN Y W $E(X,1,4)
D N:$X>59 Q:'DN W ?59 W "67. VAMC SCORE: "
X DXS(2,9.2) S DIP(4)=X S X=DIP(5),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 "61. RECURRING PS $ : "
G ^ENPLPA1
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HENPLPA 4392 printed Dec 13, 2024@01:54:52 Page 2
ENPLPA ; GENERATED FROM 'ENPLP008' PRINT TEMPLATE (#161) ; 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(161,"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>107
DO N
if 'DN
QUIT
WRITE ?107
WRITE "PROJECT NUMBER"
+7 if $X>54
DO N
if 'DN
QUIT
WRITE ?54
WRITE "EXECUTIVE SUMMARY"
+8 SET X=$GET(^ENG("PROJ",D0,0))
if $X>111
DO N
if 'DN
QUIT
WRITE ?111,$EXTRACT($PIECE(X,U,1),1,11)
+9 DO T
if 'DN
QUIT
DO N
if $X>45
DO N
if 'DN
QUIT
WRITE ?45
WRITE "*********** COST DATA ***********"
+10 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "40. CONSTRUCTION METHOD PLANNED: "
+11 SET X=$GET(^ENG("PROJ",D0,15))
SET Y=$PIECE(X,U,7)
if Y]""
WRITE $SELECT($DATA(DXS(8,Y)):DXS(8,Y),1:Y)
+12 if $X>49
DO N
if 'DN
QUIT
WRITE ?49
WRITE "41. AE $ REQUIRED IN FY: "
+13 SET X=$GET(^ENG("PROJ",D0,5))
WRITE ?0,$EXTRACT($PIECE(X,U,7),1,4)
+14 if $X>89
DO N
if 'DN
QUIT
WRITE ?89
WRITE "42. CONST $ REQUIRED IN FY: "
+15 SET X=$GET(^ENG("PROJ",D0,0))
WRITE ?0,$EXTRACT($PIECE(X,U,7),1,4)
+16 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "43. NRM COSTS: "
+17 WRITE "YES"
+18 if $X>59
DO N
if 'DN
QUIT
WRITE ?59
WRITE "44. MAJOR/MINOR/MINOR MISC. COSTS: "
+19 WRITE "NO"
+20 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "45. TOTAL M&R COSTS: "
+21 SET X=$GET(^ENG("PROJ",D0,19))
if $X>44
DO N
if 'DN
QUIT
WRITE ?44
SET Y=$PIECE(X,U,1)
if Y]""
WRITE $JUSTIFY(Y,11,0)
+22 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "46. TOTAL BSEA COSTS: "
+23 if $X>44
DO N
if 'DN
QUIT
WRITE ?44
SET Y=$PIECE(X,U,2)
if Y]""
WRITE $JUSTIFY(Y,11,0)
+24 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "47. TOTAL BSER COSTS: "
+25 if $X>44
DO N
if 'DN
QUIT
WRITE ?44
SET Y=$PIECE(X,U,3)
if Y]""
WRITE $JUSTIFY(Y,11,0)
+26 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "48. TOTAL MI COSTS: "
+27 if $X>44
DO N
if 'DN
QUIT
WRITE ?44
SET Y=$PIECE(X,U,4)
if Y]""
WRITE $JUSTIFY(Y,11,0)
+28 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "49. TOTAL CONST. COST (LOW BID): "
+29 if $X>44
DO N
if 'DN
QUIT
WRITE ?44
SET Y(6925,217,1)=$SELECT($DATA(^ENG("PROJ",D0,19)):^(19),1:"")
SET X=$PIECE(Y(6925,217,1),U,1)+$PIECE(Y(6925,217,1),U,2)+$PIECE(Y(6925,217,1),U,3)+$PIECE(Y(6925,217,1),U,4)
if X'?."*"
WRITE $JUSTIFY(X,11,0)
KILL Y(6925,217)
+30 if $X>59
DO N
if 'DN
QUIT
WRITE ?59
WRITE "54. TOTAL CONST. COST (LOW BID): "
+31 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "50. CONST CONTCY % AND $: "
+32 SET X=$GET(^ENG("PROJ",D0,19))
if $X>34
DO N
if 'DN
QUIT
WRITE ?34
SET Y=$PIECE(X,U,5)
if Y]""
WRITE $JUSTIFY(Y,5,1)
+33 if $X>40
DO N
if 'DN
QUIT
WRITE ?40
WRITE "%"
+34 if $X>44
DO N
if 'DN
QUIT
WRITE ?44
XECUTE ^DD(6925,218.1,9.4)
SET X=$SELECT(Y(6925,218.1,2):Y(6925,218.1,5),Y(6925,218.1,6):X)/100+999.999\1000*1000
SET X=$JUSTIFY(X,0,0)
if X'?."*"
WRITE $JUSTIFY(X,11,0)
KILL Y(6925,218.1)
+35 if $X>59
DO N
if 'DN
QUIT
WRITE ?59
WRITE "55. CONST CONTCY % AND $: "
+36 if $X>100
DO N
if 'DN
QUIT
WRITE ?100
WRITE "%"
+37 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "51. IMPACT COSTS: "
+38 SET X=$GET(^ENG("PROJ",D0,19))
if $X>44
DO N
if 'DN
QUIT
WRITE ?44
SET Y=$PIECE(X,U,7)
if Y]""
WRITE $JUSTIFY(Y,11,0)
+39 if $X>59
DO N
if 'DN
QUIT
WRITE ?59
WRITE "56. IMPACT COSTS: "
+40 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "52. TECHNICAL SERVICES % AND $"
+41 if $X>34
DO N
if 'DN
QUIT
WRITE ?34
XECUTE ^DD(6925,220,10)
SET X=X*100
if X'?."*"
WRITE $JUSTIFY(X,5,1)
KILL Y(6925,220)
+42 if $X>40
DO N
if 'DN
QUIT
WRITE ?40
WRITE "%"
+43 SET X=$GET(^ENG("PROJ",D0,19))
if $X>44
DO N
if 'DN
QUIT
WRITE ?44
SET Y=$PIECE(X,U,6)
if Y]""
WRITE $JUSTIFY(Y,11,0)
+44 if $X>59
DO N
if 'DN
QUIT
WRITE ?59
WRITE "57. TECHNICAL SERVICES % AND $"
+45 if $X>100
DO N
if 'DN
QUIT
WRITE ?100
WRITE "%"
+46 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "53. TOTAL PROJECT COSTS: "
+47 if $X>44
DO N
if 'DN
QUIT
WRITE ?44
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)
if X'?."*"
WRITE $JUSTIFY(X,11,0)
KILL Y(6925,222)
+48 if $X>59
DO N
if 'DN
QUIT
WRITE ?59
WRITE "58. TOTAL PROJECT COSTS: "
+49 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "*********** ACTIVATION DATA ***********"
+50 DO T
if 'DN
QUIT
DO N
if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "59. ACTIVATION $ REQUIRED IN FY: "
+51 SET X=$GET(^ENG("PROJ",D0,24))
WRITE ?0,$EXTRACT($PIECE(X,U,1),1,4)
+52 if $X>59
DO N
if 'DN
QUIT
WRITE ?59
WRITE "66. EQUIP OVER $250K : "
+53 XECUTE DXS(1,9)
KILL DIP
if DN
KILL Y
WRITE $JUSTIFY(X,13)
+54 if $X>63
DO N
if 'DN
QUIT
WRITE ?63
WRITE "EQPMT (OVER $250K)"
+55 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "60. ADDITIONAL FTEE: "
+56 SET DIP(1)=$SELECT($DATA(^ENG("PROJ",D0,24)):^(24),1:"")
SET X=$PIECE(DIP(1),U,3)+0
KILL DIP
if DN
KILL Y
WRITE $EXTRACT(X,1,4)
+57 if $X>59
DO N
if 'DN
QUIT
WRITE ?59
WRITE "67. VAMC SCORE: "
+58 XECUTE DXS(2,9.2)
SET DIP(4)=X
SET X=DIP(5)
SET X=$SELECT(DIP(2):DIP(3),DIP(4):X)
KILL DIP
if DN
KILL Y
WRITE X
+59 if $X>0
DO N
if 'DN
QUIT
WRITE ?0
WRITE "61. RECURRING PS $ : "
+60 GOTO ^ENPLPA1