psdi.app.contract.master

Class MasterView

  • All Implemented Interfaces:
    java.rmi.Remote, PurchasingMboRemote, ContractRemote, MasterViewRemote, MboConstants, MboRemote, StatefulMboRemote, MaxRemoteProxy


    public class MasterView
    extends Contract
    implements MasterViewRemote
    MBO object to represent the view containing the Contract and the Master Contract tables. The key attributes for this object are ContractNum, RevisionNum and OrgId.

    See Contract Package description.
    The attributes in this object are as follows:


    Attribute Name Description
    AcceptanceLoss Liable for acceptance loss?
    AcceptPeriod Acceptance period in days.
    AddLinesOnUse Can additional lines be added to purchase document with contract reference.
    AdjustAmt Non-persistent field to indicate the amount that the unitcost must be incremented or decremented.
    AmtRemaining Difference between the maximum volume and the commited cost for a volume specified contract.
    AutoExtendPeriod Auto extend period in days.
    BuyAhead Is this a buy ahead rate, ie entered directly by the user and not calculated from the list of active exchange rates.
    CustomerNum Vendors' number identifying our company.
    CanExceedVolume Can the specified maximum volume be exceeded?
    ChangeBy, ChangeDate The name of the person who last modified the form and the date on which the form was last modified.
    CondForExtConditions for extension.
    Contact Vendors' contact name.
    ContractId Unique identifier for every Contract in the database. Every Contract has a unique ContractID.*
    ContractNum Contract Number. This is one of the key fields. Each ContractNum need not be unique. Every new revision of the same contract will carry the same contract number.
    ContractMasterId Unique identifier of the ContractMaster table.
    ContractType Indicates whether the type of the contract is Labor or Lease or Maintenance or Purchase or Master or Rental or Software License or Warranty.
    CreateRel Flag indicating if a Release PO can be created from the contract.
    CurrencyCode Currencycode of the Contract.
    CustNotifyPeriod Customer notification period in days.
    CustomerNum Vendors' number identifying our company.
    CustomerTermAllowed Flag to indicate if early termination is allowed by the customer.
    DeliveryLoss Flag to indicate if there is a liability for delivery loss.
    Description Description of the Purchase Contract.
    Description_LongDescription Long description of the Purchase Contract.
    EndDate Date when is Contract is no longer valid.
    EnforceBundle Bundle enforced?
    ExchangeDate Date on which the exchange rate was obtained.
    ExchangeRate Exchange rate at the time of contract approval.
    ExchangeRate2 Exchangerate in basecurrency2.
    Extendable Is the contract extendable?
    FOB Freight on Board. The point where responsibility and liability are transferred.
    FreightTermsThe terms under which the shipment is made. For example, the field may contain "Perishable goods. Deliver ASAP"
    HasInsuranceDoes this vendor have a current insurance policy ?
    HistoryFlag Flag indicating history Purchase Contracts.
    Inclusive Flag indicating if the Contract Total is inclusive of same number Tax field. (e.g. Inclusive1 ... Tax1, Inclusive2 .. Tax2, etc.)
    InsuranceExpDate Expiration date of the vendors insurance policy.
    MasterNum Master Contract Number.
    MaxRelVol Maximum Release Volume.
    MaxVol Maximum Volume.
    OrgId Identifier of the organization for this Purchase Order.
    PaymentSched Is there a payment schedule for this contract?
    PaymentTerms Specified terms of payment for this vendor. For example we can say "TEN " which means the invoice will be paid with 10 days.
    PORequired Will a PO be required for this contract?
    PurchaseAgent The name of the Purchase Agent.
    RenewalDate Date that the contract can be renewed.
    RevComments Revision Comments.
    RevisionNum Revision number of the contract.
    ShippingLoss Liable for shipping loss?
    ShipVia Specifies how the goods should be shipped (FedEx,UPS etc)
    StartDate Beginning of the Validity period of a contract.
    StatusThe status of the Contract. Can be one of approved, draft, waiting for approval, canceled, closed, waiting to start, expired.
    StatusDate The date on which the status of this contract was changed.
    TotalBaseCost The total cost of the contract in Base Currency 1.
    TotalCost The Total Cost of the Contract.
    VendNotifyPeriod Vendor notice of termination in days.
    Vendor Identifier of the vendor code.
    VendorRefNum Vendor reference number.
    VendorTermAllowed Is early termination allowed by vendor?
    OwnerSysId, SenderSysId Columns used by MAXIMO E-Commerce Adapter (MEA).
    • Constructor Detail

      • MasterView

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

      • getStatusHistory

        protected MboSetRemote getStatusHistory()
                                         throws MXException,
                                                java.rmi.RemoteException
        Return the CONTRACTSTATUS object. Required for statefullness.
        Overrides:
        getStatusHistory in class Contract
        Returns:
        The set of CONTRACTSTATUS records
        Throws:
        MXException
        java.rmi.RemoteException
      • init

        public void init()
                  throws MXException
        Initialize the Purchase Contract View object. Set certain fields to always read-only.
        Overrides:
        init in class Contract
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add method on the Master Contract View. All default values for fields are specified in the database.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Contract
        Throws:
        MXException
        java.rmi.RemoteException
      • canAssociateChildren

        public void canAssociateChildren()
                                  throws MXException,
                                         java.rmi.RemoteException
        Checks to see if the Master Contract is in the approved status before children can be associated with it.
        Specified by:
        canAssociateChildren in interface MasterViewRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        associateChildren
      • duplicate

        public MboRemote duplicate()
                            throws MXException,
                                   java.rmi.RemoteException
        Duplicates a Master Contract,its associated commodities, sla, authorized sites and its terms and conditions.
        Specified by:
        duplicate in interface MboRemote
        Overrides:
        duplicate in class Mbo
        Returns:
        MboRemote-the newly duplicated Contract
        Throws:
        MXException
        java.rmi.RemoteException
      • initRelationship

        public void initRelationship(java.lang.String relationName,
                                     MboSetRemote mboSet)
                              throws MXException,
                                     java.rmi.RemoteException
        Called whenever a relationship is initialized or reset from this Mbo to another MboSet. Set the editibility of the Mbos related to the contract. The initRelationship() only when the relationship name that is specified inside this method is used to obtain the target MboSet.
        Overrides:
        initRelationship in class Contract
        Parameters:
        relationName - the relationship name
        mboSet - the mboset
        Throws:
        MXException
        java.rmi.RemoteException
      • setEditibilityFlags

        protected void setEditibilityFlags(boolean flag)
                                    throws MXException,
                                           java.rmi.RemoteException
        sets the editibility flags for fields in Contract.
        Throws:
        MXException
        java.rmi.RemoteException