[613] | 1 | ENEQPMP2 ;(WASH ISC)/DH-PMI Procedures ;4.21.97
|
---|
| 2 | ;;7.0;ENGINEERING;**35**;Aug 17, 1993
|
---|
| 3 | PROCE ;Edit PM PROCEDURE
|
---|
| 4 | I '$D(^XUSEC("ENEDPM",DUZ)) W !!,"Sorry, you need Security Key 'ENEDPM'." D HLD G EXIT
|
---|
| 5 | N DIC,DIE,DA,DR,FLDS,BY,L,DHD,DIOEND,X
|
---|
| 6 | 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
|
---|
| 7 | L +^ENG(6914.2,DA):1 I '$T W !!,*7,"Someone else is editing this entry." G EXIT
|
---|
| 8 | S ENLOCK=DA
|
---|
| 9 | S DIE="^ENG(6914.2,",DR=".01:99" D ^DIE
|
---|
| 10 | L -^ENG(6914.2,ENLOCK)
|
---|
| 11 | G PROCE1
|
---|
| 12 | ;
|
---|
| 13 | PROCD ;Print PM PROCEDURE
|
---|
| 14 | 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"
|
---|
| 15 | D EN1^DIP
|
---|
| 16 | EXIT K ENLOCK
|
---|
| 17 | Q
|
---|
| 18 | HLD I $E(IOST,1,2)="C-" W !,"Press <RETURN> to continue..." R X:DTIME
|
---|
| 19 | Q
|
---|
| 20 | ;ENEQPMP2
|
---|