psdi.app.workorder

Class WoLockOutSet

    • Method Detail

      • copyFromLockOut

        public MboRemote copyFromLockOut(MboRemote lockOut,
                                         java.lang.String dataSource)
                                  throws MXException,
                                         java.rmi.RemoteException
        Given a LockOut mbo, clone it for this workorder.
        Parameters:
        lockOut - The LockOut mbo to be cloned.
        dataSource - The value for wosafetydatasource (SOURCE_WORKORDER, SOURCE_WORKPLAN, or SOURCE_SAFETYPLAN).
        Returns:
        The WoLockOut mbo, either newly added or already existing.
        Throws:
        MXException
        java.rmi.RemoteException
      • canAdd

        public void canAdd()
                    throws MXException
        Determines if the work order can add WoLockOut.

        If owner is null or is not WORKORDER, WOTAGLOCK, or WOTAGOUT, throws workorder/ownerWoLockOut.

        If owner is WORKORDER, call canEditRelatedSet with param WOLOCKOUT.

        If owner is to be deleted, throws jspmessages/table_cannotadd.

        Overrides:
        canAdd in class MboSet
        Throws:
        MXException