Changeset 1479 for Scheduling/trunk/m/BSDX31.m
- Timestamp:
- Jul 9, 2012, 7:43:46 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/m/BSDX31.m
r1472 r1479 1 BSDX31 ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 6/27/12 4:57pm1 BSDX31 ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 7/9/12 12:57pm 2 2 ;;1.7T1;BSDX;;Jul 06, 2012;Build 18 3 3 ; Licensed under LGPL … … 20 20 ; -5: Filing of No-show in ^DPT failed (BSDXAPI error) 21 21 ; -6: Invalid Resource ID 22 ; -7: Lock not acquired on ^BSDXAPPT(BSDXAPTID) 22 23 ; -100: M Error 23 24 ; … … 70 71 I '$D(^BSDXAPPT(BSDXAPTID,0)) D ERR(-2,"BSDX31: Invalid Appointment ID") Q 71 72 ; 73 ; Lock BSDX node, only to synchronize access to the globals. 74 ; It's not expected that the error will ever happen as no filing 75 ; is supposed to take 5 seconds. 76 L +^BSDXAPPT(BSDXAPTID):5 E D ERR(-7,"BSDX31: Appt record is locked. Please contact technical support.") Q 77 ; 72 78 ; Noshow value check - Must be 1 or 0 73 79 S BSDXNS=+BSDXNS … … 113 119 . D ERR(-5,"BSDX31: "_$P(BSDXERR,U,2)) 114 120 . N % S %=$$BSDXNOS(BSDXAPTID,'BSDXNS) ; no error checking for filer 121 ; 122 ; Unlock 123 L -^BSDXAPPT(BSDXAPTID) 115 124 ; 116 125 ; Return data in ADO.net table … … 177 186 ; 178 187 ERR(BSDXERID,ERRTXT) ;Error processing 188 ; Unlock first 189 L:$D(BSDXAPTID) -^BSDXAPPT(BSDXAPTID) 179 190 ; If last line is $C(31), we are done. No more errors to send to client. 180 191 I ^BSDXTMP($J,$O(^BSDXTMP($J," "),-1))=$C(31) QUIT … … 189 200 N $ET S $ET="D ^%ZTER HALT" ; Emergency Error Trap 190 201 D ^%ZTER 191 S $EC="" ; Clear Error202 ; 192 203 I $G(BSDXAPTID),$D(BSDXNS) N % S %=$$BSDXNOS(BSDXAPTID,'BSDXNS) ; Reverse No-Show status (whatever it was) 193 204 ; Send to client
Note:
See TracChangeset
for help on using the changeset viewer.