psdi.app.workorder

Class WorkType

  • All Implemented Interfaces:
    java.rmi.Remote, WorkTypeRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class WorkType
    extends Mbo
    implements WorkTypeRemote
    Mbo to represent the type of work order object.
    There are 5 default work types. They are
  • CM - Corrective Maintenance
  • CP - Capital Project
  • EM - Emergency Maintenance
  • EV - Event Report
  • PM - Preventive Maintenance User can modify these work types or can add new work types. For each work type, the following attributes indicate whether to copy the estimates on work plans to actuals when the work order is completed or not.

    See WorkOrder Package description.

    This Mbo is a site level object.

    The key attributes for this object are SiteID and WorkType.

    The attributes in this object are as follows:

    Attribute NameDescription
    OrgIdIdentifier of the organization for this failure.
    PromptDownIndicates whether to prompt the user for Downtime on completion of the work order.
    PromptFailIndicates whether to prompt the user for Failure Codes on completion of the work order.
    SiteIdIdentifier of the site for this failure.
    WorkTypeRepresents the type of the workorder.
    WTypeDescRepresents the work order type description.
    • Constructor Detail

      • WorkType

        public WorkType(MboSet ms)
                 throws MXException,
                        java.rmi.RemoteException
        construtor for WorkType object.
        Parameters:
        ms - the WorkType MboSet.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Initialize the object.
        The attribute 'Worktype' is read-only after insert.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        add a new work type.
        For a new work order type, the attributes PromptFail and PromptDown have a default value of 'false'.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        IJ32026: Check whether or not this Work Type can be deleted. If this Work Type is on an open Work Order, then it cannot be deleted.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException