source: FOIAVistA/trunk/r/ENGINEERING-EN/ENSP.m@ 1458

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

initial load of FOIAVistA 6/30/08 version

File size: 4.5 KB
Line 
1ENSP ;(WASH ISC)/WDS@Charleston-Space File Driver ;5-29-93
2V ;;7.0;ENGINEERING;;Aug 17, 1993
3 D:'$D(DT) DT^DICRW S U="^",S=";",O=$T(OPT) I $D(^DOPT($P(O,S,5),"VERSION")),($P($T(V),S,3)=^DOPT($P(O,S,5),"VERSION")) G IN
4 K ^DOPT($P(O,S,5))
5 F I=1:1 Q:$T(OPT+I)="" S ^DOPT($P(O,S,5),I,0)=$P($T(OPT+I),S,3),^DOPT($P(O,S,5),"B",$P($P($T(OPT+I),S,3),"^",1),I)=""
6 S K=I-1,^DOPT($P(O,S,5),0)=$P(O,S,4)_U_1_U_K_U_K K I,K,X S ^DOPT($P(O,S,5),"VERSION")=$P($T(V),S,3)
7IN I $P(O,S,6)'="" D @($P(O,S,6))
8PR S O=$T(OPT),S=";" S IOP="HOME" D ^%ZIS W:IOST'["PK-" @IOF K IOP
9 D HDR F J=1:1 Q:'$D(^DOPT($P(O,S,5),J,0)) W !,?15,J,". ",$P(^DOPT($P(O,S,5),J,0),U,1)
10RE W ! S DIC("A")="Select "_$P($T(OPT),S,4)_": EXIT// ",DIC="^DOPT("_""""_$P($T(OPT),S,5)_""""_",",DIC(0)="AEQMN" D ^DIC G:X=""!(X=U) EXIT G:Y<0 RE K DIC,J,O D @($P($T(OPT+Y),S,4)) G PR
11HDR W @IOF,!!,?18,"ENGINEERING SPACE/FACILITY MANAGEMENT",!
12 Q
13SP ;Room enter/edit
14 W !! S (DIC,DIE)="^ENG(""SP"",",DR=$S($D(^DIE("B","ENZSPENTER")):"[ENZSPENTER]",1:"[ENSPENTER]")
15 S DIC(0)="AEQLM",DLAYGO=6928 D FMUT
16 K DLAYGO
17 G EXIT
18 ;
19EMKY ;RECORD KEY DISTRIBUTION
20 W !! S (DIC,DIE)="^ENG(""KEY"",",DIC(0)="AEQLM",DLAYGO=6926
21 D FMUT
22 K DLAYGO
23 G EXIT
24 ;
25KLOCK ;LOCK/KEY NUMBER DISTRIBUTION
26 W !! S DR=".01:2",(DIC,DIE)="^ENG(""LK"",",DIC(0)="AEQLM",DLAYGO=6927
27 D FMUT
28 K DLAYGO
29 G EXIT
30 ;
31PREMP ;PRINT LIST OF EMPLOYEES WITH KEYS
32 S L="0",DIC="^ENG(""KEY"",",FLDS="[ENSPPREMP]",BY=".01" G PRINT
33PRSRV ;PRINT LIST OF EMPLOYEES BY SERVICE
34 S DHD="Service Key Holders by Employee Name"
35 S L="0",DIC="^ENG(""KEY"",",FLDS="[ENSPPREMP]",BY="#.4,.01" G PRINT
36PRKEY ;PRINT LIST OF KEYS WITH EMPLOYEES
37 S L="0",DIC="^ENG(""LK"",",FLDS="[ENSPPRKEY]",BY=".01" G PRINT
38PRRM ;Print ROOMS
39 D SET S BY=".5,.01" S:ENMULT BY=".6,"_BY D FLDS^ENSP1 G PRINT
40PRSER ;Rooms by SERVICE
41 D SET S DHD="ENGINEERING SPACE INVENTORY BY OWNING SERVICE",BY=".5,+1.5,@.01" S:ENMULT BY=".6,"_BY D FLDS^ENSP1 D SUM G PRINT
42PRFUNC ;Rooms by FUNCTION
43 D SET S DHD="ENGINEERING SPACE INVENTORY BY ROOM FUNCTION",BY=".5,+2.6,@.01" S:ENMULT BY=".6,"_BY D FLDS^ENSP1 D SUM G PRINT
44PRBLDG ;Space Survey by BUILDING
45 D SET S DHD="ENGINEERING SPACE INVENTORY BY BUILDING",BY="+.5,@.01" S:ENMULT BY=".6,"_BY D FLDS^ENSP1 D SUM G PRINT
46PR144 ;PRINT RCS 14-4 REPORTABLE SPACE
47 D SET S DHD="RCS 14-4 REPORTABLE SPACE SORTED BY SERVICE",FLDS="[ENSPR144]"
48 I ENMULT S BY="16,.6,.5,+1.5;S1",FR="YES,?,?,?",TO="YESZ,?,?,?"
49 E S BY="16,.5,+1.5;S1",FR="YES,?,?",TO="YESZ,?,?"
50 G PRINT
51 ;
52PR137 ;BLDG MNGT (137) AMIS REPORT
53 D SET S DHD="BUILDING MANAGEMENT AMIS REPORT, RCS 10-203",BY="+15;S1",FLDS="[ENSPR144]" G PRINT
54 ;
55PRFRS ;PRINT REPORT OF FINISH REPLACEMENT SCHEDULE
56FRS1 ;Ceiling
57 S X=1 G FRS
58FRS2 ;Wall
59 S X=2 G FRS
60FRS3 ;Floor
61 S X=3 G FRS
62FRS4 ;All finishes
63 S X=4 G FRS
64FRS S L="0",DIC="^ENG(""SP"",",DHD="ROOM FINISH REPLACEMENT SCHEDULE",FLDS=$S(X=1:"[ENSPFRDCEILING]",X=2:"[ENSPFRDWALL]",X=3:"[ENSPFRDFLOOR]",X=4:"[ENSPFRD]"),BY=$S(X=1:"9.5",X=2:"7.5",X=3:"8.5",X=4:".01") G PRINT
65 ;
66SET S L="0",DIC="^ENG(""SP"",",ENMULT=0 K FR,TO
67 S N=$O(^DIC(6910,0)) I N>0,$P(^DIC(6910,N,0),U,10) S ENMULT=1
68 Q
69 ;
70SUM W !!,"Want just a net square foot and room count summary" S %=2 D YN^DICN G:%=0 SUM I %=1 S FLDS="+4.5"
71 Q
72 ;
73FUNC ;FUNCTION FILE EDIT
74 W !! S (DIC,DIE)="^ENG(6928.1,",DIC(0)="AEQLM",DLAYGO=6928
75 D FMUT
76 K DLAYGO
77 G EXIT
78 ;
79UTL ;UTILITIES FILE EDIT
80 W !! S (DIC,DIE)="^ENG(6928.2,",DIC(0)="AEQLM",DLAYGO=6928
81 D FMUT
82 K DLAYGO
83 G EXIT
84 ;
85PRINT I $D(%) Q:%<0
86 S DIOEND="I IOST[""C-"" R !!,""Press <RETURN> to continue"",X:DTIME" D EN1^DIP
87 G EXIT
88FMUT ;FILEMAN UTILITY
89 S ENDIC(0)=DIC(0)
90FMUT1 S DIC(0)=ENDIC(0) D ^DIC Q:Y'>0 S (DA,ENLOCK)=+Y D LOCK G:ENL=0 FMUT S:$D(DR)=0 DR=".01:99" D ^DIE L -@(DIC_ENLOCK_")") W !! G FMUT1
91LOCK ;Lock record being edited
92 S X=DIC_DA_")" L +@X:1 S ENL=$T Q:ENL'=0 I ENL=0 W !!,$C(7),"THIS ENTRY IS BEING EDITED BY ANOTHER USER. TRY LATER." Q
93 ;
94EXIT K A,BY,C,DIC,DIE,DA,DP,DR,D0,ENL,FLDS,FR,I,IOP,J,K,L,O,S,TO,X,Y,%DT,ENLOCK,ENMULT,ENDIC
95 Q
96 ;ENSP
97OPT ;;ENGINEERING SPACE/FACILITY MANAGEMENT;SPACE MANAGEMENT OPTION;ENSP;
98 ;;ENTER NEW ROOM SPACE DATA;SP
99 ;;DISPLAY/EDIT ROOM DATA;ENT^ENSP2
100 ;;KEY DISTRIBUTION BY EMPLOYEE ENTER/EDIT;EMKY
101 ;;LOCK NUMBER FILE ENTER/EDIT;KLOCK
102 ;;PRINT KEY DISTRIBUTION BY EMPLOYEE;PREMP
103 ;;PRINT KEY DISTRIBUTION BY SERVICE;PRSRV
104 ;;EMPLOYEE LIST BY KEY REPORT;PRKEY
105 ;;SPACE SURVEY REPORT MENU;^ENSP2
106 ;;REPLACEMENT SCHEDULE FOR ALL FINISHES;FRS4
107 ;;CEILING REPLACEMENT SCHEDULE;FRS1
108 ;;WALL REPLACEMENT SCHEDULE;FRS2
109 ;;FLOOR REPLACEMENT SCHEDULE;FRS3
110 ;;EDIT FUNCTION FILE;FUNC
111 ;;EDIT UTILITIES FILE;UTL
Note: See TracBrowser for help on using the repository browser.