source: WorldVistAEHR/trunk/r/ENGINEERING-EN/ENPLPA1.m@ 703

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

initial load of WorldVistAEHR

File size: 3.7 KB
Line 
1ENPLPA1 ; GENERATED FROM 'ENPLP008' PRINT TEMPLATE (#161) ; 06/11/96 ; (continued)
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 D N:$X>44 Q:'DN W ?44 S DIP(1)=$S($D(^ENG("PROJ",D0,24)):^(24),1:"") S X=$P(DIP(1),U,4)+0 K DIP K:DN Y W $J(X,8)
15 D N:$X>59 Q:'DN W ?59 W "68. REGION SCORE: "
16 S X=$G(^ENG("PROJ",D0,24)) W ?0,$E($P(X,U,10),1,3)
17 D N:$X>0 Q:'DN W ?0 W "62. RECURRING ALL OTHER $ : "
18 D N:$X>44 Q:'DN W ?44 S DIP(1)=$S($D(^ENG("PROJ",D0,24)):^(24),1:"") S X=$P(DIP(1),U,2)+0 K DIP K:DN Y W $J(X,8)
19 D N:$X>0 Q:'DN W ?0 W "63. EQUIPMENT $ : "
20 D N:$X>44 Q:'DN W ?44 S DIP(1)=$S($D(^ENG("PROJ",D0,24)):^(24),1:"") S X=$P(DIP(1),U,5)+0 K DIP K:DN Y W $J(X,8)
21 D N:$X>0 Q:'DN W ?0 W "64. NON-RECURRING ALL OTHER $ : "
22 D N:$X>44 Q:'DN W ?44 S DIP(1)=$S($D(^ENG("PROJ",D0,24)):^(24),1:"") S X=$P(DIP(1),U,6)+0 K DIP K:DN Y W $J(X,8)
23 D N:$X>0 Q:'DN W ?0 W "65. TRAVEL .007 $ : "
24 D N:$X>44 Q:'DN W ?44 S DIP(1)=$S($D(^ENG("PROJ",D0,24)):^(24),1:"") S X=$P(DIP(1),U,7)+0 K DIP K:DN Y W $J(X,8)
25 D N:$X>59 Q:'DN W ?59 W "69. TOTAL PROJECT SCORE: "
26 X ^DD(6925,235,9.8) S X=X+Y W $E(X,1,6) K Y(6925,235)
27 D T Q:'DN D N D N:$X>45 Q:'DN W ?45 W "*********** SIGNATURES ***********"
28 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "70. CHIEF ENGINEERING SVC/DESIGNEE: "
29 X DXS(3,9.3) S X=$S(DIP(2):DIP(102),DIP(103):X) S D0=I(0,0) K DIP K:DN Y W X
30 D N:$X>89 Q:'DN W ?89 W "71. DATE: "
31 X DXS(4,9.2) S DIP(4)=X S X=1,DIP(5)=X S X="",X=$S(DIP(2):DIP(4),DIP(5):X) K DIP K:DN Y W X
32 D N:$X>0 Q:'DN W ?0 W "72. DIRECTOR FACILITY/DESIGNEE: "
33 X DXS(5,9.3) S X=$S(DIP(2):DIP(102),DIP(103):X) S D0=I(0,0) K DIP K:DN Y W X
34 D N:$X>89 Q:'DN W ?89 W "73. DATE: "
35 X DXS(6,9.2) S DIP(4)=X S X=1,DIP(5)=X S X="",X=$S(DIP(2):DIP(4),DIP(5):X) K DIP K:DN Y W X
36 D T Q:'DN D N D N:$X>45 Q:'DN W ?45 W "************************************"
37 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "74. REGION PROJECT VALIDATION: "
38 D N:$X>89 Q:'DN W ?89 W "75. DATE: "
39 F Y=0:0 Q:$Y>(IOSL-5) W !
40 D N:$X>0 Q:'DN W ?0 W "VAF 10-1193 REVISED 5/95 p.2"
41 W ?30 R:$E(IOST,1,2)="C-" X:DTIME W @IOF K DIP K:DN Y
42 F Y=0:0 Q:$Y>-1 W !
43 D N:$X>0 Q:'DN W ?0 W "VHA"
44 D N:$X>53 Q:'DN W ?53 W "PROJECT APPLICATION"
45 D N:$X>107 Q:'DN W ?107 W "PROJECT NUMBER"
46 D N:$X>54 Q:'DN W ?54 W "EXECUTIVE SUMMARY"
47 S X=$G(^ENG("PROJ",D0,0)) D N:$X>111 Q:'DN W ?111,$E($P(X,U,1),1,11)
48 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "DETAILED PROJECT DESCRIPTION:"
49 S I(1)=46,J(1)=6925.0277 F D1=0:0 Q:$O(^ENG("PROJ",D0,46,D1))'>0 S D1=$O(^(D1)) D:$X>31 T Q:'DN D A1
50 G A1R
51A1 ;
52 S X=$G(^ENG("PROJ",D0,46,D1,0)) S DIWL=1,DIWR=99 D ^DIWP
53 Q
54A1R ;
55 D A^DIWW
56 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "DETAILED PROJECT JUSTIFICATION:"
57 S I(1)=47,J(1)=6925.0278 F D1=0:0 Q:$O(^ENG("PROJ",D0,47,D1))'>0 S D1=$O(^(D1)) D:$X>33 T Q:'DN D B1
58 G B1R
59B1 ;
60 S X=$G(^ENG("PROJ",D0,47,D1,0)) S DIWL=1,DIWR=97 D ^DIWP
61 Q
62B1R ;
63 D A^DIWW
64 D T Q:'DN D N D N:$X>0 Q:'DN W ?0 W "IMPACT JUSTIFICATION:"
65 S DICMX="D ^DIWP" S DIWL=1,DIWR=107 X DXS(7,9.3) S X=$S(DIP(2):DIP(3),DIP(4):X) K DIP K:DN Y
66 D A^DIWW
67 F Y=0:0 Q:$Y>(IOSL-5) W !
68 D N:$X>0 Q:'DN W ?0 W "VAF 10-1193 REVISED 5/95 p.3"
69 K Y K DIWF
70 Q
71HEAD ;
72 W !,"------------------------------------------------------------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.