psdi.app.contract

Class ContractStatus

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


    public class ContractStatus
    extends Mbo
    implements MboRemote
    MBO to represent a Purchase Contract Status. A new ContractStatus object is created every time a new purchase contract is created and also every time an existing purchase contract changes from one status to another permissible status. The object contains information like the Contract number, its current status, the date it was changed to the current status and also the description (memo) that the user provided at the time of status change. This object is used to keep a history of the status changes.

    See Purchase Contract Package description.

    This is an organization level object.

    The key attributes for this object are ContractNum, RevisionNum and OrgID.

    The attributes in this object are as follows:

    Attribute Name Attribute Value
    ChangeBy, ChangeDate The username of the person who changed purchase contract status; date and time the status last changed.
    MemoStatus change notes.
    OrgIdIdentifier of the organization for this purchase contract status.
    ContractNumPurchase Contract number.
    RevisionNum The revision number of the Purchase Contract.
    Status Purchase Contract status. The status can be one of draft, waiting for approval, approved, in progress, closed , cancelled, pending revision, waiting to start, revised or expired.
    See Also:
    StatefulMbo
    • Constructor Detail

      • ContractStatus

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new ContractStatus object This cannot be called except by the PR object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • getContractStatusRecord

        public java.util.Vector getContractStatusRecord()
                                                 throws MXException,
                                                        java.rmi.RemoteException
        Gets historical data from ContractStatus.
        Returns:
        Vector Consists of ContractStatus.changedate, ContractStatus.description, ContractStatus.status, ContractStatus.changeby, Contract reference, ContractStatus.contractnum, "".
        Throws:
        MXException
        java.rmi.RemoteException
      • propagateKeyValue

        public void propagateKeyValue(java.lang.String keyName,
                                      java.lang.String keyValue)
                               throws MXException,
                                      java.rmi.RemoteException
        Set value for CONTRACTNUM.
        Specified by:
        propagateKeyValue in interface MboRemote
        Overrides:
        propagateKeyValue in class Mbo
        Parameters:
        keyName - Should equal "CONTRACTNUM" or else nothing will be propagated.
        keyValue - The new value of CONTRACTNUM.
        Throws:
        MXException
        java.rmi.RemoteException