psdi.app.rfq

Class RFQVendorTerm

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


    public class RFQVendorTerm
    extends Mbo
    implements RFQVendorTermRemote
    MBO to represent RFQVendor Terms and Conditions. The RFQVendor object represents the terms and conditions for a RFQVendor. These terms and conditions are to be defined at the organization and site level.

    The key attributes for this object are OrgID and RFQNUM

    The attributes in this object are as follows:

    Attribute NameAttribute Description
    RFQVENDORRequest for Quatations for a vendor
    SEQNUMSequence order of the terms
    TermIdTerm or Condition to which the Terms apply.
    DescriptionDescription of the Term.
    LDKEY Long Description Key
    SiteidSite Identifier
    OrgidOrganization Identifier
    Description_longdescription Long Description for Term Description
    • Constructor Detail

      • RFQVendorTerm

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

      • init

        public void init()
                  throws MXException
        Initialized RFQVendorTerm mbo. Set all RFQVENDORTERM fields to readonly when fetched from database if the CANEDIT field is set to false
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        This is called when a new RFQVENDORTERM object is added to the RFQVENDORTERM MboSet collection. The field defaults and field flags are set here.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Validating that either TERM or TERM Description is entered.
        Overrides:
        appValidate 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.If this field does not need to be copied return true.
        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:
        java.rmi.RemoteException
        MXException
      • generateSeqNumID

        protected int generateSeqNumID()
                                throws MXException,
                                       java.rmi.RemoteException
        Generates a unique Seq ID with an interval.
        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 RFQNUM.
        Specified by:
        propagateKeyValue in interface MboRemote
        Overrides:
        propagateKeyValue in class Mbo
        Parameters:
        keyName - Should equal "RFQNUM" or else nothing will be propagated.
        keyValue - The new value of RFQNUM.
        Throws:
        MXException
        java.rmi.RemoteException