ENEQPMP2 ;(WASH ISC)/DH-PMI Procedures ;4.21.97
;;7.0;ENGINEERING;**35**;Aug 17, 1993
PROCE ;Edit PM PROCEDURE
I '$D(^XUSEC("ENEDPM",DUZ)) W !!,"Sorry, you need Security Key 'ENEDPM'." D HLD G EXIT
N DIC,DIE,DA,DR,FLDS,BY,L,DHD,DIOEND,X
PROCE1 W @IOF,! S DIC="^ENG(6914.2,",DIC(0)="AQELM",DLAYGO=6914.2 D ^DIC K DLAYGO G:Y'>0 EXIT S DA=+Y
L +^ENG(6914.2,DA):1 I '$T W !!,*7,"Someone else is editing this entry." G EXIT
S ENLOCK=DA
S DIE="^ENG(6914.2,",DR=".01:99" D ^DIE
L -^ENG(6914.2,ENLOCK)
G PROCE1
;
PROCD ;Print PM PROCEDURE
S L=0,DIC="^ENG(6914.2,",BY="#PM REFERENCE",FLDS=".01,1,2,3;C2",DHD="PMI Procedure(s)",DIOEND="I IO=IO(0),$E(IOST,1,2)=""C-"" R !,""Press <RETURN> to continue..."",X:DTIME"
D EN1^DIP
EXIT K ENLOCK
Q
HLD I $E(IOST,1,2)="C-" W !,"Press <RETURN> to continue..." R X:DTIME
Q
;ENEQPMP2
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HENEQPMP2 846 printed Dec 13, 2024@01:52:43 Page 2
ENEQPMP2 ;(WASH ISC)/DH-PMI Procedures ;4.21.97
+1 ;;7.0;ENGINEERING;**35**;Aug 17, 1993
PROCE ;Edit PM PROCEDURE
+1 IF '$DATA(^XUSEC("ENEDPM",DUZ))
WRITE !!,"Sorry, you need Security Key 'ENEDPM'."
DO HLD
GOTO EXIT
+2 NEW DIC,DIE,DA,DR,FLDS,BY,L,DHD,DIOEND,X
PROCE1 WRITE @IOF,!
SET DIC="^ENG(6914.2,"
SET DIC(0)="AQELM"
SET DLAYGO=6914.2
DO ^DIC
KILL DLAYGO
if Y'>0
GOTO EXIT
SET DA=+Y
+1 LOCK +^ENG(6914.2,DA):1
IF '$TEST
WRITE !!,*7,"Someone else is editing this entry."
GOTO EXIT
+2 SET ENLOCK=DA
+3 SET DIE="^ENG(6914.2,"
SET DR=".01:99"
DO ^DIE
+4 LOCK -^ENG(6914.2,ENLOCK)
+5 GOTO PROCE1
+6 ;
PROCD ;Print PM PROCEDURE
+1 SET L=0
SET DIC="^ENG(6914.2,"
SET BY="#PM REFERENCE"
SET FLDS=".01,1,2,3;C2"
SET DHD="PMI Procedure(s)"
SET DIOEND="I IO=IO(0),$E(IOST,1,2)=""C-"" R !,""Press <RETURN> to continue..."",X:DTIME"
+2 DO EN1^DIP
EXIT KILL ENLOCK
+1 QUIT
HLD IF $EXTRACT(IOST,1,2)="C-"
WRITE !,"Press <RETURN> to continue..."
READ X:DTIME
+1 QUIT
+2 ;ENEQPMP2