psdi.app.workorder

Class WoPrecautionSet

    • Method Detail

      • copyFromPrecaution

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

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

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

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

        Overrides:
        canAdd in class MboSet
        Throws:
        MXException