psdi.app.workorder

Class WoTagOutSet

    • Method Detail

      • copyFromTagOut

        public MboRemote copyFromTagOut(MboRemote tagOut,
                                        java.lang.String dataSource)
                                 throws MXException,
                                        java.rmi.RemoteException
        Given a TagOut mbo, clone it for this workorder.
        Parameters:
        tagOut - The TagOut mbo to be cloned.
        dataSource - The value for wosafetydatasource (SOURCE_WORKORDER, SOURCE_WORKPLAN, or SOURCE_SAFETYPLAN).
        Returns:
        The woTagOut 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 WoTagOut.

        If owner is null or is not WORKORDER, WOSAFETYLINK, or WOHAZARD, throws workorder/ownerWoTagOut.

        If owner is WORKORDER, or owner's owner is WORKORDER, call canEditRelatedSet with param WOTAGOUT.

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

        Overrides:
        canAdd in class MboSet
        Throws:
        MXException