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

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

initial load of FOIAVistA 6/30/08 version

File size: 2.1 KB
Line 
1EN ;(WASH ISC)/DLM-Engineering Driver ;8-24-94
2V ;;7.0;ENGINEERING;**18**;Aug 17, 1993
3 ;CAN BE RUN DIRECTLY OR OVERLAYED BY VA SECURITY
4 ;CALLS ^%ZIS,DT^DICRW,^DIC,^DIE,^DII
5 ; ENWO,ENINV,ENMAN,ENPROJ,ENSP,ENFSANOA,PRCSE,PRCSP,XM
6 ;REQUIRES PROGRAMS : FILE MANAGER, VA KERNEL
7 ;REQUIRES GLOBALS : %ZOSF,DIC(3) (USER FOR MAILMAN)
8 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
9 K ^DOPT($P(O,S,5))
10 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)=""
11 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)
12IN I $P(O,S,6)'="" D @($P(O,S,6))
13PR S O=$T(OPT),S=";" D HOME^%ZIS W:$E(IOST,1,2)="C-" @IOF
14 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)
15RE 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
16 ;
17INIT ;INITIALIZE VARIABLES FOR ENGINEERING SYSTEM
18 S:$D(DTIME)<1 DTIME=600
19 D DT^DICRW S U="^"
20ZIS D HOME^%ZIS I $D(^%ZIS(2)) S:$D(^%ZIS(2,IOST(0),7)) ENHI=$P(^(7),U,1),ENLO=$S($P(^(7),U,3)]"":$P(^(7),U,3),1:$P(^(7),U,2)) I $D(ENHI),$D(ENLO) Q
21 S ENLO="*0",ENHI="*0" Q
22 ;
23HDR W @IOF,!,?14,"AUTOMATED ENGINEERING MANAGEMENT SYSTEM"
24 N %,%H,%I,X
25 W !,?29,"VERSION ",^ENG("VERSION")
26 I $D(^DIC(6910,1,0)) S X=34-($L($P(^DIC(6910,1,0),"^",1))\2) W !,?X,$P(^DIC(6910,1,0),"^",1)
27 D NOW^%DTC W !,?22,$$FMTE^XLFDT(%,"1P")
28 W !!! Q
29FM ;FILE MANAGER
30 K ^DISV($I) W @IOF,!!,"FILE MANAGER",!! D ^DII Q
31XM ;TESTS FOR VALID USER CODE FOR MAILMAN
32 W @IOF,!! G:$D(^VA(200,DUZ,0))>0 ^XM W !!,"USER IDENTIFICATION (FILE 3) NEEDED FOR MAILMAN (ELECTRONIC MAIL)",!! R X:5 Q
33EXIT K A,DA,DIC,ENHI,ENLO,ENERR,I,J,K,O,S,X,Y,Z Q
34 ;
35OPT ;;ENGINEERING MAIN MENU OPTIONS;Engineering MAIN MENU OPTION;EN;INIT
36 ;;WORK ORDER + MERS;^ENWO
37 ;;EQUIPMENT MANAGEMENT;^ENEQ
38 ;;CONSTRUCTION PROJECT;^ENPROJ
39 ;;SPACE MANAGEMENT;^ENSP
40 ;;PROGRAM MANAGEMENT;^ENMAN
41 ;;ACCIDENT REPORTING;^ENFSA
42 ;;ASSIGN ELECTRONIC WORK ORDERS;^ENETRAN
Note: See TracBrowser for help on using the repository browser.