Changeset 636 for FOIAVistA/tag/r/IMAGING-MAG-ZMAG/MAGGTAU.m
- Timestamp:
- Dec 4, 2009, 8:26:01 PM (14 years ago)
- Location:
- FOIAVistA/tag/r
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
FOIAVistA/tag/r/IMAGING-MAG-ZMAG/MAGGTAU.m
r628 r636 1 1 MAGGTAU ;WOIFO/GEK - RPC Calls to Update the Imaging Windows Workstation file ; [ 03/25/2001 11:20 ] 2 ;;3.0;IMAGING;**7,16,8,59**;Nov 27, 2007;Build 20 3 ;;Per VHA Directive 2004-038, this routine should not be modified. 2 ;;3.0;IMAGING;**7,16,8**;Sep 15, 2004 4 3 ;; +---------------------------------------------------------------+ 5 4 ;; | Property of the US Government. | … … 18 17 ;; 19 18 Q 20 UPD(MAGRY,DATA) ;RPC [MAGG WRKS UPDATES] 21 ; Called after User login. Local and RIV. 22 ; Updates information in the IMAGING WINDOWS WORKSTATION 19 UPD(MAGRY,DATA) ;RPC [MAGG WRKS UPDATES] 20 ; Call from workstation updating it's exe's Date/Time 21 ; and other Workstation information into IMAGING WINDOWS WORKSTATION 22 ; at logon of user. 23 23 ; 24 24 ; DATA is '^' delimited piece 25 25 ; 1 Workstation name 2 Date/Time of capture app. 26 26 ; 3 Date/Time of Display App. 27 ; 4 Location of works tation 5 Date/Time of MAGSETUP27 ; 4 Location of worksation 5 Date/Time of MAGSETUP 28 28 ; 6 Version of Display 7 Version of Capture 29 29 ; 8 1=Normal startup 2=Started by CPRS 3=Import API 30 30 ; 9 OS Version 10 VistaRad Version 31 ; 11 RPCBroker Server 12 RPCBroker Port32 31 N X,Y,Z 33 32 N MAGNAME,MAGCDT,MAGDDT,MAG0,MAGLOC,MAGIEN,MAGSETUP,MAGSTART,MAGSRV … … 40 39 S MAGSETUP=$P(DATA,U,5) 41 40 S MAGVERSD=$P(DATA,U,6) 42 I MAGVERSD S MAGJOB("DISPLAY")=""43 41 S MAGVERSC=$P(DATA,U,7) 44 I MAGVERSC S MAGJOB("CAPTURE")=""45 42 S MAGMODE=$P(DATA,U,8) 46 43 S MAGOSVER=$P(DATA,U,9) 47 44 S MAGVERVR=$P(DATA,U,10) 48 I $P(DATA,U,11)]"" S MAGJOB("RPCSERVER")=$P(DATA,U,11)49 I $P(DATA,U,12)]"" S MAGJOB("RPCPORT")=$P(DATA,U,12)50 45 S MAGIEN=0 51 46 I $L(MAGNAME) S MAGIEN=$O(^MAG(2006.81,"B",MAGNAME,"")) … … 59 54 L +^MAG(2006.81,"LOCK",MAGIEN):0 60 55 S MAGIEN=+MAGIEN_"," 61 S MAGGFDA(2006.81,MAGIEN,.01)=MAGNAME ; Comp uter Name56 S MAGGFDA(2006.81,MAGIEN,.01)=MAGNAME ; Compter Name 62 57 I MAGCDT>-1 S MAGGFDA(2006.81,MAGIEN,4)=MAGCDT ;TELE19N.EXE dttm 63 58 I MAGDDT>-1 S MAGGFDA(2006.81,MAGIEN,5)=MAGDDT ;IMGVWP10.EXE dttm … … 65 60 S MAGGFDA(2006.81,MAGIEN,8)=1 ; Active or not. 66 61 S MAGGFDA(2006.81,MAGIEN,6)=MAGLOC ; location free text from .INI 67 S MAGGFDA(2006.81,MAGIEN,3)="@" ; delete log off time for this job.62 S MAGGFDA(2006.81,MAGIEN,3)="@" ; delete logff time for this job. 68 63 S MAGGFDA(2006.81,MAGIEN,10)="@" ; delete session pointer 69 64 S MAGGFDA(2006.81,MAGIEN,11)="@" ; reset the session error count. … … 75 70 S X=$P(MAG0,U,12) 76 71 S MAGGFDA(2006.81,MAGIEN,12)=X+1 ; Sess count for wrks. 77 ; Keep PLACE that this wrks logged in.72 ; Keep the last PLACE that this wrks logged in. 78 73 S MAGPL=0 I $D(DUZ(2)) S MAGPL=+$$PLACE^MAGBAPI(DUZ(2)) ; DBI 79 74 I MAGPL S MAGGFDA(2006.81,MAGIEN,.04)=MAGPL ; DBI … … 87 82 D UPDATE^DIE("S","MAGGFDA","MAGXIEN","MAGXERR") 88 83 I $D(DIERR) D RTRNERR(.MAGRY) Q 89 ; The MAGJOB(array is used by Imaging routines that are84 ; The " MAGJOB(" array is used by Imaging routines that are 90 85 ; called from the Delphi App. 86 ; We use nodes of the Array MAGJ0B to organize the shared partition variables. 91 87 ; 92 ; 3. 0.8 Whatever App calls this, we'll use that Version number.88 ; 3.O.8 Whatever App calls this, we'll use that Version number. 93 89 S MAGVERX=$S(MAGVERSD]"":MAGVERSD,MAGVERSC]"":MAGVERSC,MAGVERVR]"":MAGVERVR,1:0) 94 90 S MAGJOB("WRKSIEN")=+MAGIEN … … 96 92 S MAGRY="1^" 97 93 ; 98 ; SESSION : Create new session entry94 ; SESSION : Now we create new session entry 99 95 D GETS^DIQ(200,DUZ_",","29","I","Z","") ; service/section 100 96 S MAGSRV=$G(Z(200,DUZ_",",29,"I")) … … 158 154 ; $P(9) is Vrad REMOTE Read flag (1/0; 1=REMOTE) 159 155 ; $P(TXT,"$$",2) is Tracking ID from an Imported Image. From this we compute Session #, to log actions. 160 ; LOGTM - [1|0] Flag to indicate whet her or not to log the time of the Action. Default = 0156 ; LOGTM - [1|0] Flag to indicate wheter or not to log the time of the Action. Default = 0 161 157 ; MAGSESS - Session IEN where the action should be logged. Default to MAGJOB("SESSION") 162 158 ; … … 202 198 ; and marks the session closed. 203 199 ; 200 K ^TMP("MAGGTAU","LOGOFF",$J) 204 201 S MAGRY=1 205 202 N MAGGFDA,MAGXERR,MAGXIEN,MAGIEN,MAGSESS,MAGEND,MAGCON
Note:
See TracChangeset
for help on using the changeset viewer.