DSIYWO1 WOSCH WORK ORD SCH

TITLEVALUE
NAMEDSIYWO1 WOSCH WORK ORD SCH
DESCRIPTIONWOSCH

RCP to return Work Orders when searching by several types of fields.

Because of the nature of this search, not all fields can be combined.














NOTE: When searching from the dashboard, leave STAT="" when pulling up
items by either Status or Priority to retrieve all with that Status or
Priority.
TAGWOSCH
ROUTINEDSIYWO1
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERTERM
DESCRIPTIONTERM

Search term, if nothing sent, assume to stop at the beginning of
whichever type of search we are using.

This is the starting point for the search.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH20

INPUT PARAMETERSSEQUENCE NUMBER2
INPUT PARAMETERSCHBY
DESCRIPTIONSCHBY

Type of search, valid values are:

"B" Search by Work Order #& Original WO #
"C" Location
"F" Manufacturer Name
"E" Equipment ID
"S" Equipment Serial #
"M" Equipment Model #
"P" Shop
"T" Status
"N" Search by Technician
"R" Search by Priority
"D" Search by Date Entered

If the search is to be within a field, add a "+" to the search type
For example, to search within Serial # use "S+"

The searches which can use the "within" feature have asterisk above.
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH5

INPUT PARAMETERSSEQUENCE NUMBER3
INPUT PARAMETERNOREC
DESCRIPTIONNOREC

Number of records to return - not required.
= 40.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH4

INPUT PARAMETERSSEQUENCE NUMBER4
INPUT PARAMETERSTAT
DESCRIPTIONSTAT

Internal value for status code.
Not Required, default = all OPEN statuses
Multiple statuses can be entered - to enter more than one status, use the
format:
^STAT^STAT^STAT^

Make sure the "^" is before and after the first/last status code.

Not Required, default = all OPEN statuses
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH25

INPUT PARAMETERSSEQUENCE NUMBER5
INPUT PARAMETERDSIYNEXT
DESCRIPTIONDSIYNEXT

This parameter is only used when the user is asking for more data for a
search (pressing pageup/pagedown at the end of the data, etc.) This will
allow the RPC to grab the next set of data to display to the user.

Format is:

MOVE^FIRST/LAST IEN

If the user indicates they want to move down through the data - send
1^the last IEN from the last search

If the user indicates they want to move up through the data - send
-1^the first IEN from the last search

All other parameters (TERM, BY, USE, NOREC, SCHTXT) need to be sent
exactly as they were for the original search in this session.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH30

INPUT PARAMETERSSEQUENCE NUMBER6
INPUT PARAMETERPMWO
DESCRIPTIONPMWO

Set to "P" to pull on "PM-" Work Orders
Set to "A" to pull ALL Work Orders

If not set, only non-PM Work Orders will be pulled (default)
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH1

INPUT PARAMETERSSEQUENCE NUMBER7
INPUT PARAMETERSTATION
DESCRIPTIONFILTER BY STATION
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH12

RETURN VALUE TYPEGLOBAL ARRAY
RETURN PARAMETER DESCRIPTIONRETURN PARAMETER

RET(1) -1^Error Message if errors

RET(1) 0^Warning Message if warnings such as no data found

DSIYRET(WONUM)=the following pieces:
p1: Work Order IEN
p2: Original Work Order #
p3: Work Order Number
p4: Task Description
p5: Date Entered
p6: Priority
p7: Location
p8: Equipment IEN
p9: Manufacturer
p10: Model
p11: Shop
p12: Technician Name
p13: Status
p14: User can edit WO 1=yes
p15: PM Status
p16: Date Closed
AVAILABILITYPUBLIC
INACTIVEACTIVE
CLIENT MANAGER
WORD WRAP ONTRUE
VERSION
SUPPRESS RDV USER SETUP
APP PROXY ALLOWED