psdi.app.workorder

Class FldInterfaceWonum

    • Constructor Detail

      • FldInterfaceWonum

        public FldInterfaceWonum(MboValue mbv,
                                 java.lang.String taskidName,
                                 java.lang.String refwoName,
                                 java.lang.String criteriaName)
                          throws MXException
        Constructor.
        Parameters:
        mbv - the current mbo value.
        taskidName - 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 this column.
        Throws:
        MXException
      • FldInterfaceWonum

        public FldInterfaceWonum(MboValue mbv)
                          throws MXException
        Default parameters constructor. This constructor uses the following defaults to construct the listener:
        taskidName = "TaskID"
        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
        Setting this attribute updates the TaskID and RefWO attributes. The RefWO attribute is set to this attribute's value. The TaskID attribute is cleared. If this value has a value, the TaskID attribute will be editable.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • getWoOwner

        public MboRemote getWoOwner()
                             throws MXException,
                                    java.rmi.RemoteException
        Helper method determines when this attribute's Mbo is owned by a workorder. If so, the workorder mbo is returned. Otherwise null is returned.
        Throws:
        MXException
        java.rmi.RemoteException