psdi.app.workorder.virtual

Class FldShowWPTaskID

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldShowWPTaskID
    extends MboValueAdapter
    Attribute Listener class for WP TaskID attributes in a ShowPlan*Set. When the TaskID changes, the work plan mbo actually gets deleted and recreate in the correct wo's set.
    • Constructor Detail

    • Method Detail

      • initValue

        public void initValue()
                       throws MXException,
                              java.rmi.RemoteException
        Sets the value of this attribute based on the whether it's work oder is currently the parent or a child. A work order owns the WorkPlanMbo which contains this attribute. If this work order is owned by another work order, it is a child. If the work order isn't owned by another work order, it is a parent and this attribute will be null.
        Specified by:
        initValue in interface MboValueListener
        Overrides:
        initValue in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException
      • getList

        public MboSetRemote getList()
                             throws MXException,
                                    java.rmi.RemoteException
        Returns the WO's list (related MboSet) of Tasks - SHOWTASKS. This attribute listener is only used in a show set, so it's alright to reference a show set from here.
        Specified by:
        getList in interface MboValueListener
        Overrides:
        getList in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException
      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Updates the totals of the work order that used to own the Mbo and the work order that gain this Mbo. Also updates the wonum attribute to match the TaskID.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException