Changeset 1479 for Scheduling/trunk/m/BSDX25.m
- Timestamp:
- Jul 9, 2012, 7:43:46 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/m/BSDX25.m
r1472 r1479 1 BSDX25 ; VEN/SMH - WINDOWS SCHEDULING RPCS ; 7/ 5/12 11:55am1 BSDX25 ; VEN/SMH - WINDOWS SCHEDULING RPCS ; 7/9/12 5:00pm 2 2 ;;1.7T1;BSDX;;Jul 06, 2012;Build 18 3 3 ; Licensed under LGPL … … 41 41 ; -2 -> Invalid Check-in Date 42 42 ; -3 -> Cannot check-in due to Fileman Filer failure 43 ; -4 -> Cannot lock ^BSDXAPPT(APPTID) 43 44 ; -10 -> BSDXAPI error 44 45 ; -100 -> Mumps Error … … 66 67 I '+BSDXAPPTID D ERR("-1~Invalid Appointment ID") QUIT 67 68 I '$D(^BSDXAPPT(BSDXAPPTID,0)) D ERR("-1~Invalid Appointment ID") QUIT 69 ; 70 ; Lock BSDX node, only to synchronize access to the globals. 71 ; It's not expected that the error will ever happen as no filing 72 ; is supposed to take 5 seconds. 73 L +^BSDXAPPT(BSDXAPPTID):5 E D ERR("-4~Appt record is locked. Please contact technical support.") QUIT 68 74 ; 69 75 ; Remove Date formatting v.1.5. Client will send date as FM Date. … … 101 107 . D ERR(-10_"~"_$P(BSDXERR,U,2)) ; Send error message to client 102 108 ; 109 L -^BSDXAPPT(BSDXAPPTID) 103 110 S BSDXI=BSDXI+1 104 111 S ^BSDXTMP($J,BSDXI)="0"_$C(30) … … 124 131 Q 0 125 132 ; 126 RMCI(BSDXY,BSDXAPPTID) ; EP - Remove Check-in from BSDX APPT and 2/44133 RMCI(BSDXY,BSDXAPPTID) ; Private EP - Remove Check-in from BSDX APPT and 2/44 127 134 ; Called by RPC BSDX REMOVE CHECK-IN 128 135 ; … … 163 170 I '$D(^BSDXAPPT(BSDXAPPTID,0)) D ERR("-2~Invalid Appointment ID") QUIT 164 171 ; 172 ; Lock 173 ; Timeout not expected to happen except in error conditions. 174 L +^BSDXAPPT(BSDXAPPTID):5 E D ERR("-7~Appt record is locked. Please contact technical support.") QUIT 175 ; 165 176 ; Get appointment Data 166 177 N BSDXNOD S BSDXNOD=^BSDXAPPT(BSDXAPPTID,0) … … 199 210 . N % S %=$$BSDXCHK(BSDXAPPTID,BSDXCDT) ; No error checking here. 200 211 . D ERR("-5~"_$P(BSDXERR,U,2)) ; Send error message to client 201 ; 212 ; 213 ; Unlock 214 L -^BSDXAPPT(BSDXAPPTID) 215 ; 202 216 ; Return ADO recordset 203 217 S BSDXI=BSDXI+1 … … 264 278 ; 265 279 ERR(BSDXERR) ;Error processing 280 ; Unlock first 281 L:$D(BSDXAPPTID) -^BSDXAPPT(BSDXAPPTID) 266 282 ; If last line is $C(31), we are done. No more errors to send to client. 267 283 I ^BSDXTMP($J,$O(^BSDXTMP($J," "),-1))=$C(31) QUIT
Note:
See TracChangeset
for help on using the changeset viewer.