Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ENPLPB

ENPLPB.m

Go to the documentation of this file.
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