source: FOIAVistA/trunk/r/AUTOMATED_INFO_COLLECTION_SYS-IBD/IBDFU7.m@ 1397

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

initial load of FOIAVistA 6/30/08 version

File size: 935 bytes
Line 
1IBDFU7 ;ALB/CJM - ENCOUNTER FORM - (utilities to handle form locks);3/29/93
2 ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
3LOCKFORM(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 ;
8LOCKFRM2(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 ;
13FREEFORM(FORM) ;unlocks the form
14 L -^IBE(357,FORM,"LOCK1")
15 Q
16 ;
17FREEFRM2(FORM) ;unlocks the form locked by LOCKFRM2()
18 L -^IBE(357,FORM,"LOCK2")
19 Q
20 ;
21 ;
22LOCKMSG2(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.