psdi.app.asset.virtual

Class DowntimeReport

    • Constructor Detail

      • DowntimeReport

        public DowntimeReport(MboSet ms)
                       throws MXException,
                              java.rmi.RemoteException
        Constructor
        Parameters:
        ms - The DowntimeReport MboSet.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        sets up a new DowntimeReport object using the owning work order MBO and the Asset MBO for the Assetnum attribute on that work order MBO.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • setDownTimeRptFlags

        protected void setDownTimeRptFlags()
                                    throws MXException,
                                           java.rmi.RemoteException
        sets READONLY and REQUIRED flags for the DowntimeReport attributes. When performing downtime reporting, "STATUSCHANGECODE" and "STATUSCHANGEDATE" are READONLY and not REQUIRED. When performing an asset status change, these attributes are not READONLY, and "STATUSCHANGEDATE" is REQUIRED.

        When performing downtime reporting, "STARTDATE","ENDDATE","CODE","DOWNTIME" and "STARTDATESOURCE" are not READONLY, and "STARTDATE","ENDDATE" and "DOWNTIME" are REQUIRED. When performing an asset status change, these attributes are READONLY and not REQUIRED.

        Throws:
        MXException
        java.rmi.RemoteException
      • setDownTimeRptValues

        protected void setDownTimeRptValues()
                                     throws MXException,
                                            java.rmi.RemoteException
        sets DowntimeReport values based on whether a downtime report or an asset status change is being performed.
        Throws:
        MXException
        java.rmi.RemoteException
      • getAssetMbo

        public AssetRemote getAssetMbo()
                                throws MXException,
                                       java.rmi.RemoteException
        Returns:
        the AssetRemote for the asset associated with the Downtime Report's or Asset Status Change's owning work order.
        Throws:
        MXException
        java.rmi.RemoteException