psdi.app.contract.schedule

Class SchPurchView

  • java.lang.Object
    • Constructor Detail

      • SchPurchView

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        This is called when a new schedule is added to the Schedule MboSet collection. The field defaults and field flags are set here. The table below shows the default values for each of the attributes listed.
        Attribute NameAttribute Value
        contractidOwner contract's ID
        enddateCurrent date
        inclusive1..inclusive2..inclusive3...No
        interimcharge0.0
        leaseratefactor0.0
        periodicpayment0.0
        scheduleidUnique ID
        schedulenumAdd one to the existing maximum value
        scheduletype
        singlelinefalse
        startdateCurrent date
        targinvstatusWAPPR
        Specified by:
        add in interface MboRemote
        Overrides:
        add 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 by using the data from the static HashTable. If this field does not need to be copied return true. The same method is over-rided also in ContractLine so that certain ContractLine fields can be skipped without being copied. The following are Contract fields will be skipped without being copied to the newly duplicated Contract
        1. CONTRACTLINEID
        2. CONTRACTNUM
        3. REVISIONNUM
        4. SCHEDULEID
        5. SCHEDULENUM
        6. TARGINVSTATUS
        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
        See Also:
        ContractLine.skipCopyField(psdi.mbo.MboValueInfo), ContractLine.loadSkipFieldCopyHashSet()
      • 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 this payment schedule. In this case the target MboSet is ScheduleLine.
        Overrides:
        initRelationship in class Mbo
        Parameters:
        relationName - the relationship name
        mboSet - the mboset
        Throws:
        MXException
        java.rmi.RemoteException