psdi.app.asset

Class AssetHistory

  • All Implemented Interfaces:
    java.rmi.Remote, AssetHistoryRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class AssetHistory
    extends Mbo
    implements AssetHistoryRemote
    MBO that represents a snap shot of the meter readings and costs associated with a particular piece of asset on a work order. See Asset package description for details.

    This is a site level object.

    The key attributes for this object are as follows: SiteId,Wonum, Assetnum.

    The attributes in this object are as follows:

    Attribute NameDescription
    AssetnumUnique identifier for the asset object on the work order that was closed.
    OrgIdIdentifier of the organization for this AssetHistory.
    SiteIdIdentifier of the site for this AssetHistory.
    WonumUnique identifier of the work order for which the AssetHistory record described by this object was created when the work order was closed.

    The following persistent attributes are copied from the asset object to Assethistory when the work order is closed. See Asset for a description of these attributes.

    Attribute Name
    Budgetcost
    Ldkey
    Totalcost
    Totunchargedcost
    Ytdcost
    • Constructor Detail

      • AssetHistory

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        adds a new ASSETHISTORY record if the owner is the Asset object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXApplicationException("asset","assetHistoryNoAdd")\ - if owner is not the Asset object
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        before deleting this object, checks to make sure that the owner is the Asset object
        Overrides:
        canDelete in class Mbo
        Throws:
        MXApplicationException("asset","assetHistoryNoDelete") - if owner is not the Asset object
        MXException
        java.rmi.RemoteException