psdi.app.item

Class InvVendor

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


    public class InvVendor
    extends Mbo
    implements InvVendorRemote
    Mbo object to represent Inventory Vendor. See Item Package description for details.

    This is a organization level object.

    The key attributes in this object are as follows: OrgId, ItemNum, ItemSetID, Vendor, Manufacturer, ModelNum.

    The attributes in this object are as follows:

    Attribute NameDescription
    BiddateDate of vendor's bid price.
    BidpricePrice promised by vendor for this item, manufacturer, model and catalog code.
    CatalogcodeIdentification code for this item object in the vendor's catalog.
    CatalogwebpageVendor's catalog URL.
    IsdefaultUsed by material requisition to determine if this invvendor object is the default for this item.
    ItemnumPrimary item number.
    ItemSetIDIdentifier of the itemset identifier for this object.
    LastcostVendor's price the last time an order was placed for this item, manufacturer, model and catalog code combination.
    LastdateLast date an order was placed for this item, manufacturer, model and catalog code combination.
    LdkeyLong description key
    ManufacturerManufacturer identification code. Manufacturer need not exist in Companies table. However, the manufacturer can be selected from the Companies table.
    ModelnumVendor's or manufacturer's identification number for this item.
    OrderunitOrder unit associated with vendor's bid price.
    OrgIdIdentifier of the organization for this InvVendor.
    PromdeliverytimeVendor's promised delivery time for this item, manufacturer, model and catalog code.
    Tax1code - TaxNcodeTax1code - TaxNcodeTax 1 code to tax N code - N is defined by System Administrator
    VendorVendor identification code. Vendor must exist in Companies table.
    • Constructor Detail

      • InvVendor

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        set default values and field flags
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • init

        public void init()
                  throws MXException
        issue#025207CR added init() to set readonlyness Initialization rountine. Set vendor,modelnum, and manufacturer readonly if existing
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • getLastCost

        public double getLastCost()
                           throws MXException,
                                  java.rmi.RemoteException
        return the lastcost for thie invvendor record
        Throws:
        MXException
        java.rmi.RemoteException
      • getInventorySet

        public InventorySetRemote getInventorySet()
                                           throws MXException,
                                                  java.rmi.RemoteException
        getInventorySet- (a remote public method) -WHAT: this method will provide the complete set of inventory records where... this invvendor.itemnum = inventory.itemnum AND this invvendor.itemsetid = inventory.itemsetid AND this invvendor.vendor = inventory.vendor AND this invvendor.manufacturer = inventory.manufacturer AND this invvendor.modelnum = inventory.modelnum AND this invvendor.catalogcode = inventory.catalogcode -USE: this method allows a programmer access to an inventory set containing all inventory records that have this vendor info - Bottom line: you are not going to get anything more than a few inventory records - the same itemnum - but possibly different locations. -RETURN: InventorySetRemote - Can most definitely return an empty set! -REMEMBER: This returns the set using above defined where clause using EXACT values
        Specified by:
        getInventorySet in interface InvVendorRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        InvVendor.getInventorySet()
      • validateDefaultVendor

        public void validateDefaultVendor()
                                   throws MXException,
                                          java.rmi.RemoteException
        This method validates if there are multiple vendor records set as default for this item.
        Throws:
        MXApplicationException
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        appValidate() Application validation routine called before the invvendor object is saved Method validates if there are multiple invvendor records for this item are set as default vendor.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • isConditionEnabled

        protected boolean isConditionEnabled()
                                      throws MXException,
                                             java.rmi.RemoteException
        Is the inventory item condition enabled?
        Throws:
        MXException
        java.rmi.RemoteException