psdi.app.jobplan

Class JobMaterial

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


    public class JobMaterial
    extends JobItem
    implements JobMaterialRemote
    MBO object that represents a Job Material that inherites from JobItem.
    See JobPlan Package description for details.

    This is itemset level object that can be defined to exist at the organization level or site level.

    The attributes in this object are as follows::

    Attribute NameDescription
    DirectReqIndicates whether the item will be purchased with the intent of issuing the it directly upon receipt or not.
    ItemnumIdentifier of the item being used.
    ItemQtySpecifies the number of items needed for the task.
    JpnumIdentifier for the Job Plan. This will be copied from owner Job Plan to this Job Material.
    JpTaskIdentifier of the the Job Plan task for which this Item is used.
    LineCostA non-persistent attribute that indicates the estimated total cost of the Item.
    LineTypeThe type of job plan. It could be ITEM, MATERIAL, EXTERNAL or SPORDER type.
    LocationIdentifier of the storeroom location of this item.
    storelocsiteIdentifier of the storeroom's site of this item.
    OrgIdIdentifier of the organization for the Job Material.
    SiteIdIdentifier of the site for the Job Material.
    UnitCostA non-persistent attribute that indicates the unit cost of the Item.
    VendorIdentifier of the Company for Contractor who supplies the materials.
    JM1 through JM6Extra Fields.

    • Constructor Detail

      • JobMaterial

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

      • init

        public void init()
                  throws MXException
        If the directreq is true, set the location and storelocsite to readonly.
        Overrides:
        init in class JobItem
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new Job Material.
        When a new job material is added, the following attributes are set to the default values. Also the jobplan number and pluscrevnum is copied from the jobplan which owns this object.
        linetype is set to ITEM

        Specified by:
        add in interface MboRemote
        Overrides:
        add in class JobItem
        Throws:
        MXException
        java.rmi.RemoteException
      • supplyStoreroom

        public void supplyStoreroom(PM pm)
                             throws java.rmi.RemoteException,
                                    MXException
        Examines the jobmaterial record and supplies the storeroom when where the record is in need of a storeroom location. This method uses the needsStoreroom method to determine if the location is needed. This method is called by PM forcast cost methods a If JOBMaterial records still need a storeroom location, the user's Labor StoreLocation is supplied. Finally, the supplied site's default storeroom will be used.
        Throws:
        java.rmi.RemoteException
        MXException
        See Also:
        PM.getResourcesForForecastSegement(psdi.mbo.MboRemote, psdi.mbo.MboRemote)
      • needsStoreroom

        public boolean needsStoreroom()
                               throws MXException,
                                      java.rmi.RemoteException
        Determines if this WPMaterial needs a value for Location attribute. Called by appValidate. This method is used by the PM Work Order Generation methods to determine where the work plan needs the PM's store location.
        Returns:
        true if this WPMaterial needs a value for Location attribute.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Called here to validate this record., Called here to find WPM missing a storeroom., A PM generate work orders method., A PM generate work orders method., A PM generate work orders method., This is the low-level method which may be catching the "LocMissing" exception.