Ignore:
Timestamp:
Dec 4, 2009, 8:26:01 PM (14 years ago)
Author:
George Lilly
Message:

WorldVistAEHR overlayed on FOIAVistA

Location:
FOIAVistA/tag/r
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • FOIAVistA/tag/r/IMAGING-MAG-ZMAG/MAGGTAU.m

    r628 r636  
    11MAGGTAU ;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
    43 ;; +---------------------------------------------------------------+
    54 ;; | Property of the US Government.                                |
     
    1817 ;;
    1918 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
     19UPD(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.
    2323 ;
    2424 ; DATA is '^' delimited piece
    2525 ; 1 Workstation name            2 Date/Time of capture app.
    2626 ; 3 Date/Time of Display App.
    27  ; 4 Location of workstation      5 Date/Time of MAGSETUP
     27 ; 4 Location of worksation      5 Date/Time of MAGSETUP
    2828 ; 6 Version of Display          7 Version of Capture
    2929 ; 8  1=Normal startup 2=Started by CPRS 3=Import API
    3030 ; 9 OS Version                 10 VistaRad Version
    31  ; 11 RPCBroker Server    12 RPCBroker Port
    3231 N X,Y,Z
    3332 N MAGNAME,MAGCDT,MAGDDT,MAG0,MAGLOC,MAGIEN,MAGSETUP,MAGSTART,MAGSRV
     
    4039 S MAGSETUP=$P(DATA,U,5)
    4140 S MAGVERSD=$P(DATA,U,6)
    42  I MAGVERSD S MAGJOB("DISPLAY")=""
    4341 S MAGVERSC=$P(DATA,U,7)
    44  I MAGVERSC S MAGJOB("CAPTURE")=""
    4542 S MAGMODE=$P(DATA,U,8)
    4643 S MAGOSVER=$P(DATA,U,9)
    4744 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)
    5045 S MAGIEN=0
    5146 I $L(MAGNAME) S MAGIEN=$O(^MAG(2006.81,"B",MAGNAME,""))
     
    5954 L +^MAG(2006.81,"LOCK",MAGIEN):0
    6055 S MAGIEN=+MAGIEN_","
    61  S MAGGFDA(2006.81,MAGIEN,.01)=MAGNAME ; Computer Name
     56 S MAGGFDA(2006.81,MAGIEN,.01)=MAGNAME ; Compter Name
    6257 I MAGCDT>-1 S MAGGFDA(2006.81,MAGIEN,4)=MAGCDT ;TELE19N.EXE dttm
    6358 I MAGDDT>-1 S MAGGFDA(2006.81,MAGIEN,5)=MAGDDT ;IMGVWP10.EXE dttm
     
    6560 S MAGGFDA(2006.81,MAGIEN,8)=1 ; Active or not.
    6661 S MAGGFDA(2006.81,MAGIEN,6)=MAGLOC ; location free text from .INI
    67  S MAGGFDA(2006.81,MAGIEN,3)="@" ; delete logoff time for this job.
     62 S MAGGFDA(2006.81,MAGIEN,3)="@" ; delete logff time for this job.
    6863 S MAGGFDA(2006.81,MAGIEN,10)="@" ; delete session pointer
    6964 S MAGGFDA(2006.81,MAGIEN,11)="@" ; reset the session error count.
     
    7570 S X=$P(MAG0,U,12)
    7671 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.
    7873 S MAGPL=0 I $D(DUZ(2)) S MAGPL=+$$PLACE^MAGBAPI(DUZ(2)) ; DBI
    7974 I MAGPL S MAGGFDA(2006.81,MAGIEN,.04)=MAGPL ; DBI
     
    8782 D UPDATE^DIE("S","MAGGFDA","MAGXIEN","MAGXERR")
    8883 I $D(DIERR) D RTRNERR(.MAGRY) Q
    89  ; The MAGJOB( array is used by Imaging routines that are
     84 ; The " MAGJOB(" array is used by Imaging routines that are
    9085 ; called from the Delphi App.
     86 ; We use nodes of the Array MAGJ0B to organize the shared partition variables.
    9187 ;
    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.
    9389 S MAGVERX=$S(MAGVERSD]"":MAGVERSD,MAGVERSC]"":MAGVERSC,MAGVERVR]"":MAGVERVR,1:0)
    9490 S MAGJOB("WRKSIEN")=+MAGIEN
     
    9692 S MAGRY="1^"
    9793 ;
    98  ; SESSION : Create new session entry
     94 ; SESSION : Now we create new session entry
    9995 D GETS^DIQ(200,DUZ_",","29","I","Z","") ; service/section
    10096 S MAGSRV=$G(Z(200,DUZ_",",29,"I"))
     
    158154 ; $P(9) is Vrad REMOTE Read flag (1/0; 1=REMOTE)
    159155 ; $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 whether or not to log the time of the Action.  Default = 0
     156 ; LOGTM   - [1|0] Flag to indicate wheter or not to log the time of the Action.  Default = 0
    161157 ; MAGSESS - Session IEN where the action should be logged.  Default to MAGJOB("SESSION")
    162158 ;
     
    202198 ;   and marks the session closed.
    203199 ;
     200 K ^TMP("MAGGTAU","LOGOFF",$J)
    204201 S MAGRY=1
    205202 N MAGGFDA,MAGXERR,MAGXIEN,MAGIEN,MAGSESS,MAGEND,MAGCON
Note: See TracChangeset for help on using the changeset viewer.