psdi.app.workorder

Class WPLaborSet

    • Constructor Detail

      • WPLaborSet

        public WPLaborSet(MboServerInterface ms)
                   throws MXException,
                          java.rmi.RemoteException
        Construct the set.
        Parameters:
        ms - The MboServerInterface WPLaborSet used to access internals of the MXServer.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Generates a new WPLabor object.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - the WPLabor MboSet.
        Returns:
        a new WPLabor Mbo object.
        Throws:
        MXException
        java.rmi.RemoteException
      • addToUserPrefWhere

        public java.lang.String addToUserPrefWhere()
                                            throws MXException,
                                                   java.rmi.RemoteException
        Add this where clause to the MboSet's getUserPrefWhere()
        Returns:
        The where clause.
        Throws:
        MXException
        java.rmi.RemoteException
      • getUserPrefWhere

        public java.lang.String getUserPrefWhere()
        Override the MboSet getUserPrefWhere() to return a userpref where clause which is appended to th existing whereClause. This is called by the framework to allow any app specific modifications to the whereClause.
        Overrides:
        getUserPrefWhere in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • canAdd

        public void canAdd()
                    throws MXException
        Determines if the work order can add work plan labors.
        Overrides:
        canAdd in class MboSet
        Throws:
        MXApplicationException - Thrown with "workorder","ownerWoWPLabor" if this set isn't owned by a work order.
        Thrown with "workorder", "WOHistory", param (wonum) if the work order is in history.
        Thrown with "workorder", "WPLaborEdit", param (wonum, status) if the work order edit setting for Labors isn't enabled for this work order's status.
        MXException
      • remove

        public void remove(MboRemote mbo)
                    throws MXException,
                           java.rmi.RemoteException
        remove the child mbo need remove it from the childlookup. Also informs the listeners of the removal.
        Specified by:
        remove in interface MboSetRemote
        Overrides:
        remove in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException