- Timestamp:
- May 22, 2011, 9:30:52 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/routines/BMXRPC3.m
r1181 r1192 1 BMXRPC3 ; IHS/OIT/HMW - BMX REMOTE PROCEDURE CALLS ; 5/ 11/11 4:33pm1 BMXRPC3 ; IHS/OIT/HMW - BMX REMOTE PROCEDURE CALLS ; 5/22/11 4:33pm 2 2 ;;4.1000;BMX;;Apr 17, 2011 3 3 ; … … 143 143 S BMXSUB="^VA(200,"_BMXDUZ_",2," 144 144 S BMXFACS="T00030FACILITY_NAME^T00030FACILITY_IEN^T00002MOST_RECENT_LOOKUP"_$C(30) 145 ;F BMXN=1:1 S BMXFN=$O(^VA(200,BMXDUZ,2,BMXFN)) Q:BMXFN="" D146 S BMXRCNT=0 ;cmi/maw mod 10/17/2006147 145 F BMXN=1:1 S BMXFN=$O(^VA(200,BMXDUZ,2,BMXFN)) Q:'BMXFN D ;IHS/ANMC/LJF 8/9/01 148 . ;S BMXFACS=BMXFACS_$P(^DIC(4,BMXFN,0),U,1)_"^"_BMXFN_$C(30)149 146 . S BMXFACS=BMXFACS_$P(^DIC(4,BMXFN,0),U,1)_"^"_BMXFN 150 . ;S BMXRCNT=0 ;cmi/maw orig 151 . ;I $D(^DISV(BMXDUZ,BMXSUB)),^DISV(BMXDUZ,BMXSUB)=BMXFN S BMXRCNT=1 152 . ;I $G(DUZ(2))=BMXFN S BMXRCNT=1 ;cmi/maw orig 153 . S BMXRCNT=BMXRCNT+1 ;cmi/maw mod 154 . S BMXFACS=BMXFACS_"^"_BMXRCNT_$C(30) 155 ;//smh I BMXN=1 S BMXFN=$P(^AUTTSITE(1,0),U,1) D 156 ;//smh . S BMXFACS=BMXFACS_$P(^DIC(4,BMXFN,0),U,1)_"^"_BMXFN_"^"_1_$C(30) 147 . ; S BMXRCNT=BMXRCNT+1 ;cmi/maw mod ; /smh WRONG WRONG WRONG WRONG. MOST RECENT LOOKUP is 1 or 0, not an increment 148 . N BMXSUB S BMXSUB="^VA(200,"_DUZ_",2," ; ^DISV subscript 149 . N BMXLAST S BMXLAST=(^DISV(DUZ,BMXSUB)=BMXFN) ; 1 or 0 if division is the same as the one in the subscript 150 . S BMXFACS=BMXFACS_"^"_BMXLAST_$C(30) ; append that and add eor 151 ; IF RPMS, RUN THESE 152 ;//smh I BMXN=1 S BMXFN=$P(^AUTTSITE(1,0),U,1) D ; rpms only! 153 ;//smh . S BMXFACS=BMXFACS_$P(^DIC(4,BMXFN,0),U,1)_"^"_BMXFN_"^"_1_$C(30) ; rpms only! 154 ; ELSE IF VISTA, RUN THESE 155 ; VISTA Only: If we have no results, use kernel's DUZ(2) set during sign-on 156 ; Equivalent to the RPMS lines above... 157 I BMXN=1 S BMXFACS=BMXFACS_$P(^DIC(4,DUZ(2),0),U,1)_U_DUZ(2)_U_1_$C(30) 157 158 S BMXFACS=BMXFACS_$C(31) 158 159 Q
Note:
See TracChangeset
for help on using the changeset viewer.