source: FOIAVistA/trunk/r/ENGINEERING-EN/ENPLPB.m@ 1154

Last change on this file since 1154 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

File size: 4.3 KB
Line 
1ENPLPB ; GENERATED FROM 'ENPLP006' PRINT TEMPLATE (#158) ; 06/11/96 ; (FILE 6925, MARGIN=132)
2 G BEGIN
3N W !
4T 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)
5 S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
6 Q
7DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
8 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
9 W Y Q
10M D @DIXX
11 Q
12BEGIN ;
13 S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
14 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))
15 F Y=0:0 Q:$Y>-1 W !
16 D N:$X>0 Q:'DN W ?0 W "VHA"
17 D N:$X>53 Q:'DN W ?53 W "PROJECT APPLICATION"
18 D N:$X>54 Q:'DN W ?54 W "EXECUTIVE SUMMARY"
19 D T Q:'DN D N D N:$X>44 Q:'DN W ?44 W "*********** GENERAL DATA ***********"
20 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "1. PROJECT PROGRAM: "
21 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)
22 D N:$X>59 Q:'DN W ?59 W "2. REGION: "
23 X DXS(1,9.2) S X=$P(DIP(101),U,7) S D0=I(0,0) K DIP K:DN Y W X
24 D N:$X>89 Q:'DN W ?89 W "3. FACILITY PRIORITY: "
25 S X=$G(^ENG("PROJ",D0,15)) S Y=$P(X,U,9) W:Y]"" $J(Y,3,0)
26 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "4. FACILITY: "
27 X DXS(2,9.2) S X=$P(DIP(101),U,1) S D0=I(0,0) K DIP K:DN Y W X
28 D N:$X>79 Q:'DN W ?79 W "DIVISION: "
29 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)
30 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "5. PROJECT TITLE: "
31 S X=$G(^ENG("PROJ",D0,0)) W ?0,$E($P(X,U,3),1,50)
32 D N:$X>89 Q:'DN W ?89 W "6. PROJECT NUMBER: "
33 W ?0,$E($P(X,U,1),1,11)
34 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "7. EMERGENCY : "
35 X DXS(3,9.3) S X=$S(DIP(4):DIP(6),DIP(7):X) K DIP K:DN Y W X
36 D N:$X>29 Q:'DN W ?29 W "8. EQUIPMENT OVER : "
37 X DXS(4,9.2) S X=$S(DIP(2):DIP(3),DIP(4):X) K DIP K:DN Y W X
38 D N:$X>59 Q:'DN W ?59 W "9. BUILDING : "
39 X DXS(5,9) K DIP K:DN Y W $E(X,1,50)
40 D N:$X>3 Q:'DN W ?3 W "APPLICATION"
41 D N:$X>32 Q:'DN W ?32 W "$250K APPLICATION"
42 D N:$X>62 Q:'DN W ?62 W "NUMBER(S)"
43 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "10. BUILDING OCCUPANCY: "
44 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)
45 D N:$X>55 Q:'DN W ?55 W "11a. PROJECT CATEGORY: "
46 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)
47 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "11b. BONUS CATEGORY: "
48 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
49 D N:$X>55 Q:'DN W ?55 W "11c. SIR RATING: "
50 S X=$G(^ENG("PROJ",D0,15)) S Y=$P(X,U,11) W:Y]"" $J(Y,6,2)
51 D N:$X>81 Q:'DN W ?81 W "11d. % ENERGY TARGET ACHIEVED: (Region enters)"
52 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "12a. BUDGET CATEGORY: "
53 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)
54 D N:$X>55 Q:'DN W ?55 W "12b. EPA CATEGORY: "
55 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
56 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "13. NET BED CHANGE: "
57 S X=$G(^ENG("PROJ",D0,15)) W ?0,$E($P(X,U,2),1,4)
58 D N:$X>39 Q:'DN W ?39 W "14. LISTED ON 5 YR FACILITY PLAN: "
59 X DXS(8,9) K DIP K:DN Y W $E(X,1,4)
60 D N:$X>89 Q:'DN W ?89 W "15. 5-YR FACILITY PLAN FY: "
61 S X=$G(^ENG("PROJ",D0,15)) W ?0,$E($P(X,U,6),1,4)
62 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "16. NET PARKING CHANGE: "
63 W ?0,$E($P(X,U,3),1,5)
64 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "17. PROJECT DESCRIPTION:"
65 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
66 G A1R
67A1 ;
68 S X=$G(^ENG("PROJ",D0,17,D1,0)) S DIWL=27,DIWR=130 D ^DIWP
69 Q
70A1R ;
71 D A^DIWW
72 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "18. PROJECT JUSTIFICATION:"
73 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
74 G B1R
75B1 ;
76 S X=$G(^ENG("PROJ",D0,26,D1,0)) S DIWL=29,DIWR=130 D ^DIWP
77 Q
78B1R ;
79 D A^DIWW
80 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "19. WORKLOAD:"
81 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
82 G C1R
83C1 ;
84 S X=$G(^ENG("PROJ",D0,27,D1,0)) S DIWL=16,DIWR=130 D ^DIWP
85 Q
86C1R ;
87 D A^DIWW
88 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "20. FDP UPDATE COMPLETED: "
89 G ^ENPLPB1
Note: See TracBrowser for help on using the repository browser.