VIAAEAD ;ALB/CR - RTLS Multiple RPCs for Engineering ;5/4/16 10:08am
Source file <VIAAEAD.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
EQMVUPD(RETSTA,AEMSID,ROOMNUM,TMSTMP) | ; Equipment move into AEMS
; RPC [VIAA ENG ASSET MOVE] |
|
RTLSDTEX(RETSTA,REQDATA,DATAID) | ; Extract AEMS-RTLS DATA
; RPC [VIAA ENG GET DATA] ; ; This RPC allows retrieval of one or all entries from the following ; files: ; EQUIPMENT INV. (6914) ; EQUIPMENT CATEGORY (6911) ; ENG SPACE (6928) ; ; Input: ; RETSTA is the name of the return array ; REQDATA identifies the type of data that is required ; "EQUIPMENT" for equipment ; "CATEGORY" for categories ; "LOCATION" for locations ; DATAID identifies which data is to be returned for REQDATA ; "ALL" for all data for a given REQDATA ; AEMSID for individual equipment item ; CATID for an individual category ; LOCID (IEN) for an individual location ; Output: ; Global ^TMP("VIAA"_REQDATA,$J) ; Contains data for REQDATA and DATAID, ; (if REQDATA="EQUIPMENT" and DATAID="ALL" ; then just AEMSIDs are returned) ; otherwise ; "-###^" concatenated with reason for failure message, where ; '###' is a 3-digit code |
|
EX1 | ||
GETEQPD(REQDATA,DATAID) | ; get equipment data
|
|
GETEQPD1(AEMSID) | ; get data for one item
|
|
GETCATD(REQDATA,DATAID) | ; retrieve AEMS category data from file 6911
|
|
GETCATD1(CATID) | ; get data for one category
|
|
GETSPCD(REQDATA,DATAID) | ; retrieve AEMS space/location data from file 6928
|
|
GETSPCD1(LOCID) | ; get data for one location
|
|
GETSPCD2(LOCDESC) | ; get data for all locations
|
|
GETNEENS(RETSTA,AEMSID,NUMBER) | ; Get a number of AEMSID's
|
|
EQSEED(RETSTA,AEMSID,LOCID,TMSTMP) | ; RPC to save an equipment move into AEMS
; When equipment moves to a new location ; this function updates the following fields in file 6914: ; LOCATION ; ; RETSTA is the name of the return array ; AEMSID is equipment ID (IEN in 6914) ; LOCID is the identity of the location at which the equipment is arriving ; TMSTMP is timestamp in ISO format |
|
ISO2FM(TMSTMP) | ; External date to FM date
; incoming format yyyy-mm-dd<space>hh:MM:ss ; e.g. 2012-02-07 09:08:06 |
|
FM2ISO(DATE) | ; convert FM date to ISO date
|
|
SYN(CATEG) | ; get all synonyms for a given category in a piece of equipment
|
RPC Name | Call Tags |
---|---|
VIAA ENG ASSET MOVE | EQMVUPD |
VIAA ENG GET DATA | RTLSDTEX |
FileNo | Call Tags |
---|---|
^DIC(6910 - [#6910] | GET1^DIQ |
^ENG(6914 - [#6914] | GET1^DIQ |
6914.04 | GET1^DIQ |
^ENG(6914.1 - [#6914.1] | GET1^DIQ |
^ENCSN(6917 - [#6917] | GET1^DIQ |