source: WorldVistAEHR/trunk/r/ENGINEERING-EN/ENPLPC.m@ 1123

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

initial load of WorldVistAEHR

File size: 4.2 KB
Line 
1ENPLPC ; GENERATED FROM 'ENPLP005' PRINT TEMPLATE (#157) ; 06/11/96 ; (FILE 6925, MARGIN=80)
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(157,"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>19 Q:'DN W ?19 W "PROJECT APPLICATION - SIGN OFF SUMMARY"
18 D N:$X>65 Q:'DN W ?65 W "PROJECT NUMBER"
19 S X=$G(^ENG("PROJ",D0,0)) D N:$X>67 Q:'DN W ?67,$E($P(X,U,1),1,11)
20 D N:$X>0 Q:'DN W ?0 W "PROJECT PROGRAM: "
21 S Y=$P(X,U,6) W:Y]"" $S($D(DXS(10,Y)):DXS(10,Y),1:Y)
22 D N:$X>49 Q:'DN W ?49 W "FACILITY PRIORITY: "
23 S X=$G(^ENG("PROJ",D0,15)) W ?0,$E($P(X,U,9),1,3)
24 D N:$X>0 Q:'DN W ?0 W "FACILITY: "
25 X DXS(1,9.2) S X=$P(DIP(101),U,1) S D0=I(0,0) K DIP K:DN Y W X
26 D N:$X>49 Q:'DN W ?49 W "TOTAL PROJECT SCORE: "
27 X ^DD(6925,235,9.8) S X=X+Y W $E(X,1,6) K Y(6925,235)
28 D N:$X>0 Q:'DN W ?0 W "PROJECT TITLE: "
29 S X=$G(^ENG("PROJ",D0,0)) W ?0,$E($P(X,U,3),1,50)
30 D N:$X>0 Q:'DN W ?0 W "EMERGENCY APPLICATION: "
31 X DXS(2,9.3) S X=$S(DIP(4):DIP(6),DIP(7):X) K DIP K:DN Y W X
32 D N:$X>39 Q:'DN W ?39 W "EQUIPMENT OVER $250K APPLICATION: "
33 X DXS(3,9.2) S X=$S(DIP(2):DIP(3),DIP(4):X) K DIP K:DN Y W X
34 D N:$X>0 Q:'DN W ?0 W "BUILDING NUMBER(S): "
35 X DXS(4,9) K DIP K:DN Y W $E(X,1,50)
36 D N:$X>0 Q:'DN W ?0 W "BUILDING OCCUPANCY: "
37 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)
38 D N:$X>0 Q:'DN W ?0 W "PROJECT CATEGORY: "
39 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)
40 D N:$X>0 Q:'DN W ?0 W "BUDGET CATEGORY: "
41 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)
42 D N:$X>0 Q:'DN W ?0 W "NET BED CHANGE: "
43 S X=$G(^ENG("PROJ",D0,15)) W ?0,$E($P(X,U,2),1,4)
44 D N:$X>49 Q:'DN W ?49 W "NET PARKING CHANGE: "
45 W ?0,$E($P(X,U,3),1,5)
46 D N:$X>0 Q:'DN W ?0 W "LISTED ON 5 YR FACILITY PLAN: "
47 X DXS(5,9) K DIP K:DN Y W $E(X,1,4)
48 D N:$X>49 Q:'DN W ?49 W "5-YR FACILITY PLAN FY: "
49 S X=$G(^ENG("PROJ",D0,15)) W ?0,$E($P(X,U,6),1,4)
50 D N:$X>0 Q:'DN W ?0 W "NEW NET SQ. FT.: "
51 X DXS(6,9) K DIP K:DN Y W $E(X,1,9)
52 D N:$X>39 Q:'DN W ?39 W "NEW GROSS SQ. FT.: "
53 X DXS(7,9) K DIP K:DN Y W $E(X,1,9)
54 D N:$X>0 Q:'DN W ?0 W "RENOVATED NET SQ. FT.: "
55 X DXS(8,9) K DIP K:DN Y W $E(X,1,9)
56 D N:$X>39 Q:'DN W ?39 W "RENOVATED GROSS SQ. FT.: "
57 X DXS(9,9) K DIP K:DN Y W $E(X,1,9)
58 D N:$X>0 Q:'DN W ?0 W "AE $ REQUIRED IN FY: "
59 S X=$G(^ENG("PROJ",D0,5)) W ?0,$E($P(X,U,7),1,4)
60 D N:$X>39 Q:'DN W ?39 W "CONSTRUCTION $ REQUIRED IN FY: "
61 S X=$G(^ENG("PROJ",D0,0)) W ?0,$E($P(X,U,7),1,4)
62 D N:$X>0 Q:'DN W ?0 W "PLANNED CONSTRUCTION METHOD: "
63 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)
64 D N:$X>44 Q:'DN W ?44 W "TOTAL PROJECT COSTS: $ "
65 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)
66 D N:$X>0 Q:'DN W ?0 W "PROJECT DESCRIPTION:"
67 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
68 G A1R
69A1 ;
70 S X=$G(^ENG("PROJ",D0,17,D1,0)) S DIWL=1,DIWR=56 D ^DIWP
71 Q
72A1R ;
73 D A^DIWW
74 D N:$X>0 Q:'DN W ?0 W "PROJECT JUSTIFICATION:"
75 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
76 G B1R
77B1 ;
78 S X=$G(^ENG("PROJ",D0,26,D1,0)) S DIWL=1,DIWR=54 D ^DIWP
79 Q
80B1R ;
81 D A^DIWW
82 D N:$X>0 Q:'DN W ?0 W "WORKLOAD:"
83 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
84 G C1R
85C1 ;
86 S X=$G(^ENG("PROJ",D0,27,D1,0)) S DIWL=1,DIWR=67 D ^DIWP
87 Q
88C1R ;
89 D 0^DIWW K DIP K:DN Y
90 D ^DIWW K Y K DIWF
91 Q
92HEAD ;
93 W !,"--------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.