psdi.app.workorder

Class WoLockOut

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, WoLockOutRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class WoLockOut
    extends Mbo
    implements WoLockOutRemote
    Mbo object to represent WoLockOut. Lockouts are related to tagouts via the WoTagLock object.

    See Work Order Safety Mbos Overview.

    This is a site level object.

    The key attributes for this object are SiteID, WoNum, LockOutID, and WoSafetyDataSource.

    This object includes non-persistent attributes. The attributes in this object are as follows:

    Attribute NameDescription
    ApplySeqNon-persistent attribute, same value as on WoTagLock. If this WoLockOut is not owned by WoTagOut or WoTagLock then these will not have a value because in this situation the correct WoTagLock cannot be retrieved.
    DescriptionFreeform description. Also accommodates a long description.
    DeviceDescriptionDescription of AssetNum or Location, or freeform description.
    AssetNum, Location, or DeviceDescription will identify the entity to be locked out (only one).
    AssetNumAsset number to be locked out. Foreign key to Asset.
    AssetNum, Location, or DeviceDescription will identify the entity to be locked out (only one).
    LocationLocation to be locked out. Foreign key to Location.
    AssetNum, Location, or DeviceDescription will identify the entity to be locked out (only one).
    LockOutIDMain identifier for this object. May be foreign key to LockOut.
    OrgIDThe organization for this site, stored on this table for ease of access. This equals the value for OrgID specified on the Site table.
    RemoveSeqNon-persistent attribute, same value as on WoTagLock. If this WoLockOut is not owned by WoTagOut or WoTagLock then these will not have a value because in this situation the correct WoTagLock cannot be retrieved.
    RequiredStateIdentifies the condition of the asset when locked out.
    SiteIDThe site to which this record pertains. Foreign key to Site.
    WoNumForeign key to Workorder.
    WoSafetyDataSourceSee Work Order Safety Mbos Overview.
    Extra Fields LCK01 thru LCK10extra fields, crossover from LockOut
    • Constructor Detail

      • WoLockOut

        public WoLockOut(MboSet ms)
                  throws MXException,
                         java.rmi.RemoteException
        Construct the WoLockOut object
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Owner must be workorder, wotaglock, or wotagout.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a mbo, defaulting the attributes shown below. The owner can be Workorder, WoTagLock, or WoTagOut.
        Attribute NameAttribute Value
        LockOutIDIf owner is WoTagLock, equals the owner's LockOutID.
        WoNumOwner's WoNum
        WoSafetyDataSourceIf owner is WoTagLock, equals the owner's WoSafetyDataSource.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • toBeSaved

        public boolean toBeSaved()
                          throws java.rmi.RemoteException
        Does the object need to be saved to persistent storage ? This will also check for change of non-persistent attributes applyseq and removeseq.
        Specified by:
        toBeSaved in interface MboRemote
        Overrides:
        toBeSaved in class Mbo
        Throws:
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Application validation routine. If manually adding a wolockout, add row to wotaglock.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        This method overrides the skipCopyField() in the Mbo.Since this method takes the MboValueInfo as its parameter just check to see if this field needs to be copied or skipped.If this field does not need to be copied return true. The following is a list of fields that are not copied from the source WOLOCKOUT to the target WOLOCKOUT.
        1. WONUM
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        - - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        - True,if the field does not need to be copied.In all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException
      • propagateKeyValue

        public void propagateKeyValue(java.lang.String keyName,
                                      java.lang.String keyValue)
                               throws MXException,
                                      java.rmi.RemoteException
        104194: propagate wonum from parent to the current wolockout if user changed the wonum of the main work order after autokeyed wonum Set value for Wonum.
        Specified by:
        propagateKeyValue in interface MboRemote
        Overrides:
        propagateKeyValue in class Mbo
        Parameters:
        keyName - Should equal "wonum" or else nothing will be propagated.
        keyValue - The new value of wonum.
        Throws:
        MXException
        java.rmi.RemoteException