psdi.app.workorder

Class FldTaskID

    • Field Detail

      • wonumField

        protected java.lang.String wonumField
        Name of the wonum column on the Mbo.
      • refwoField

        protected java.lang.String refwoField
        Name of the RefWO column on the Mbo. This is the actual work order associated with the Mbo.
    • Constructor Detail

      • FldTaskID

        public FldTaskID(MboValue mbv,
                         java.lang.String wonumName,
                         java.lang.String refwoName,
                         java.lang.String criteriaName)
                  throws MXException
        Constructor.
        Parameters:
        mbv - the current mbo value.
        wonumName - Name of the wonum column in this Mbo.
        refwoName - Name of the RefWO column in this Mbo.
        criteriaName - Name of the criteria to validate work orders for the RefWO column.
        Throws:
        MXException
      • FldTaskID

        public FldTaskID(MboValue mbv)
                  throws MXException
        Default parameters constructor. This constructor uses the following defaults to construct the listener:
        wonumName = "WONUM"
        refwoName = "RefWO"
        criteriaName = psdi.app.workorder.WOServiceRemote.critAPPROVED
        Parameters:
        mbv - the current mbo value.
        Throws:
        MXException
    • Method Detail

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Updates the RefWO attribute based on the wonum and taskID attributes. It sets the RefWO attribute to the wonum of the work order whose parent is specified by the wonum attribute and has taskid matching this value. If the taskID attribute was cleared, RefWO will be set to the wonum attribute's value. Attribute EnteredAsTask is set or cleared, based on whether this field has a value.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException