ue_maintenance

Object for administrate maintenance

 

Object name:  ue_maintenance

 

declare=mtc=ue_maintenance

 

The Object is designed to manage actions related with an existing Maintenance plan.

Currently, you cannot create Maintenance plans with this object, and only the following actions can be managed:

 

import_compments

Imports components from a work order

change_component

Changes components

add_history

adds history entry

automatictasks

runs automatic tasks, creates work orders, service calls and so on

add_workorder

adds work order to a maintenance order

add_servicecall

adda service call to a maintenance order

add_activity

addd an activity to a maintenance order

order

created or updates a maintenance order.

see order

 

Function order

(Table: beas_maintanance_calendar)

order.new

initial a new order.

order.new

order.setparameter

order.add

order.add

inserts the order that you defined with order.new and order.parameters...

order.load

order.update

without function

 

Properties order

maintenancenr

Maintenance nr. Mandatory!

planid

Plan ID from maintenance. Mandatory!

date

the Date. Mandatory!

Statusid, status

the Status. 0=Plan,1=In Work, 2=Closed

Remarks

Remark information

udf1..udf4

UDF's

servicecallid


belnr_id

the work order reference

recurrence_id


 

Example - add an order:
declare=mtc=ue_maintenance
mtc.order.new
mtc.order.maintenancenr=1
mtc.order.planid=plan1
mtc.order.date=<today>
mtc.order.add