Changeset 965 for Scheduling/trunk/m
- Timestamp:
- Sep 29, 2010, 3:05:19 AM (14 years ago)
- Location:
- Scheduling/trunk/m
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/m/BSDX01.m
r963 r965 1 BSDX01 ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 9/2 8/10 4:47pm1 BSDX01 ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 9/29/10 10:20am 2 2 ;;1.4;BSDX;;Sep 07, 2010 3 ; Change Log:4 ; V 1.4.1 (Sep 28 2010): Separate user divisions based on $$INDIV.5 ; Affects:6 ; - RESUSR7 ; - DEPUSR8 ; - DEPRES9 ;10 3 ; 11 4 SUINFOD(BSDXY,BSDXDUZ) ;EP Debugging entry point 12 ;13 ;14 5 ;D DEBUG^%Serenji("SUINFO^BSDX01(.BSDXY,BSDXDUZ)") 15 6 ; … … 47 38 ;based on entries in BSDX RESOURCE USER file (Say this again for myself: Groups ONLY!!) 48 39 ;If BSDXDUZ=0 then returns all department names for current DUZ 49 ;What is returned depends if it is in the same divsion as the hosptial location if it is linked50 40 ;if not linked, always returned. 51 41 ;If user BSDXDUZ possesses the key BSDXZMGR or XUPROGMODE … … 71 61 . S BSDXRES=$P(^BSDXRSU(BSDXIEN,0),U) 72 62 . Q:'$D(^BSDXDEPT("AB",BSDXRES)) ; If not part of a group, quit ("AB" is the whole file index for the resource multiple in Group file) 73 . Q:'$$INDIV2(BSDXRES) ; If not in the same division as user, quit63 . ; Q:'$$INDIV2(BSDXRES) ; If not in the same division as user, quit 74 64 . S BSDXRNOD=^BSDXRES(BSDXRES,0) 75 65 . ;QUIT if the resource is inactive … … 132 122 . ;Q:$P(BSDXRNOD,U,2)=1 ;Inactive resources not filtered 133 123 . ;S BSDXRDAT=$P(BSDXRNOD,U,1,4) 134 . I '$$INDIV(BSDXSC) QUIT ; If not in division, quit124 . ;I '$$INDIV(BSDXSC) QUIT ; If not in division, quit 135 125 . K BSDXRDAT 136 126 . F BSDX=1:1:4 S $P(BSDXRDAT,U,BSDX)=$P(BSDXRNOD,U,BSDX) … … 187 177 ;Returns ADO Recordset with all ACTIVE GROUP/RESOURCE combinations 188 178 ;to which user has access based on entries in BSDX RESOURCE USER file 189 ;by Division (set in DUZ(2))190 179 ;If BSDXDUZ=0 then returns all ACTIVE GROUP/RESOURCE combinations for current DUZ 191 180 ;If user BSDXDUZ possesses the key BSDXZMGR or XUPROGMODE … … 209 198 . S BSDXRES=$P(^BSDXRSU(BSDXIEN,0),U) 210 199 . Q:'$D(^BSDXDEPT("AB",BSDXRES)) ; Quit if Resource isn't part of any Group 211 . Q:'$$INDIV2(BSDXRES) ; Quit if Resource isn't in same division as user.200 . ;Q:'$$INDIV2(BSDXRES) ; Quit if Resource isn't in same division as user. 212 201 . S BSDXRNOD=$G(^BSDXRES(BSDXRES,0)) 213 202 . Q:BSDXRNOD="" … … 234 223 . . S BSDXRESD=$P(^BSDXDEPT(BSDXIEN,1,BSDXRES,0),"^") 235 224 . . Q:'$D(^BSDXRES(BSDXRESD,0)) ; Quit if zero node of resouce file is invalid 236 . . Q:'$$INDIV2(BSDXRESD) ; Quit if resource is not in the same division225 . . ;Q:'$$INDIV2(BSDXRESD) ; Quit if resource is not in the same division 237 226 . . S BSDXRNOD=$G(^BSDXRES(BSDXRESD,0)) 238 227 . . Q:BSDXRNOD="" -
Scheduling/trunk/m/BSDX32.m
r963 r965 1 BSDX32 ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 1 BSDX32 ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 9/29/10 10:21am 2 2 ;;1.4;BSDX;;Sep 07, 2010 3 3 ; … … 20 20 HOSPLOC(BSDXY) ;EP 21 21 ;Called by BSDX HOSPITAL LOCATION 22 ;Returns all hospital locations that are active AND in the same division as the user22 ;Returns all hospital locations that are active 23 23 ; 24 24 N BSDXI,BSDXIEN,BSDXNOD,BSDXNAM,BSDXINA,BSDXREA,BSDXSCOD … … 34 34 . Q:'+BSDXIEN>0 35 35 . Q:'$D(^SC(+BSDXIEN,0)) 36 . Q:'$$INDIV^BSDX01(+BSDXIEN) ; if not in the same division, quit36 . ;Q:'$$INDIV^BSDX01(+BSDXIEN) ; if not in the same division, quit 37 37 . S BSDXINA=$$GET1^DIQ(44,BSDXIEN_",",2505) ;INACTIVATE 38 38 . S BSDXREA=$$GET1^DIQ(44,BSDXIEN_",",2506) ;REACTIVATE
Note:
See TracChangeset
for help on using the changeset viewer.