source: FOIAVistA/trunk/r/ENGINEERING-EN/ENSP1.m@ 1336

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

initial load of FOIAVistA 6/30/08 version

File size: 1.6 KB
Line 
1ENSP1 ;(WASH ISC)/WDS@Charleston-Room, Lock, and Function Report ;4-22-93
2V ;;7.0;ENGINEERING;;Aug 17, 1993
3INIT ;
4ASK S DIR(0)="SA^R:ROOM;S:SERVICE",DIR("A")="SORT REPORT BY: ",DIR("B")="R"
5 S DIR("?")=" <cr> or 'R' to list by room, 'S' to list by service, '^' to QUIT",DIR("??")="^D HELP^ENSP1" D ^DIR G:$D(DIRUT) EXIT G @Y(0)
6 ;
7SETUP ;Set up variables before tasking or printing directly
8 W !! K IOP D DEV^ENLIB G:POP EXIT S IOP=ION,L="0",DIC="^ENG(""SP"",",FLDS="[ENSP-ROOM-LOCK]"
9 S DIOEND="I IOST[""C-"" R !!,""Press <RETURN> to continue"",X:DTIME"
10DQ1 S:$D(IO("Q")) IOP="Q;"_IOP D EN1^DIP G EXIT
11 ;
12SERVICE ; PRINT ROOM/LOCK/FUNCTION REPORT BY SERVICE ORDER
13 S DHD="Engineering ROOM/LOCK Report by Using Service for - "_$P(^DIC(6910,1,0),U,1)
14 S BY="#1.5,2;S2,.01" G SETUP
15 ;
16ROOM ; PRINT ROOM/LOCK/FUNCTION REPORT BY ROOM NUMBER
17 S DHD="Engineering ROOM/LOCK Report by Room Number for - "_$P(^DIC(6910,1,0),U,1)
18 S BY=".01" G SETUP
19 ;
20FLDS ;LOCAL SELECTION OF PRINT TEMPLATE FOR FLDS
21 S FLDS="[ENSPRM]",DA=$O(^ENG(6910.2,"B","SPACE SURVEY PRINTOUT",0)) I DA>0,$D(^ENG(6910.2,DA,0)) S X=$P(^(0),"^",2) I X="L",$D(^DIPT("B","ENZSPRM")) S FLDS="[ENZSPRM]"
22 Q
23EXIT K DA,DIR,FR,TO Q
24 ;
25HELP W !!,"Sort by ROOM gives an 80 column listing of all rooms that have"
26 W !,"key/lock assignments in room order along with their assigned functions."
27 W !!,"Sort by SERVICE gives a similar report that is useful as a keying"
28 W !,"plan for all services. It is broken down by Service with each"
29 W !,"assigned key broken out in its own segment. Room numbers for the"
30 W !,"particular key are sorted in order under that key.",! Q
31 ;ENSP1
Note: See TracBrowser for help on using the repository browser.