Last change
on this file since 1361 was 613, checked in by George Lilly, 15 years ago |
initial load of WorldVistAEHR
|
File size:
935 bytes
|
Line | |
---|
1 | IBDFU7 ;ALB/CJM - ENCOUNTER FORM - (utilities to handle form locks);3/29/93
|
---|
2 | ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
|
---|
3 | LOCKFORM(FORM) ;locks the form - returns 0 if unsuccessful, 1 otherwise
|
---|
4 | ;this lock is used to prevent multiple processes from simultaneously compiling a form
|
---|
5 | L +^IBE(357,FORM,"LOCK1"):10
|
---|
6 | Q $T
|
---|
7 | ;
|
---|
8 | LOCKFRM2(FORM) ;locks the form - returns 0 if unsuccessful, 1 otherwise
|
---|
9 | ;this lock is used to prevent multiple users from editing a form simultaneously
|
---|
10 | L +^IBE(357,FORM,"LOCK2"):5
|
---|
11 | Q $T
|
---|
12 | ;
|
---|
13 | FREEFORM(FORM) ;unlocks the form
|
---|
14 | L -^IBE(357,FORM,"LOCK1")
|
---|
15 | Q
|
---|
16 | ;
|
---|
17 | FREEFRM2(FORM) ;unlocks the form locked by LOCKFRM2()
|
---|
18 | L -^IBE(357,FORM,"LOCK2")
|
---|
19 | Q
|
---|
20 | ;
|
---|
21 | ;
|
---|
22 | LOCKMSG2(FORM) ;displays a message to the user for forms unavailable by LOCKFRM2()
|
---|
23 | N FORMNAME
|
---|
24 | S FORMNAME=$P($G(^IBE(357,FORM,0)),"^",1)
|
---|
25 | W !!,"The form = '"_FORMNAME_"' is currently not available.",!,"It is being edited by another person.",!
|
---|
26 | D PAUSE^IBDFU5
|
---|
27 | Q
|
---|
Note:
See
TracBrowser
for help on using the repository browser.