psdi.app.workorder

Class WPMaterialSet

    • Field Detail

      • invReserveSet

        public MboSetRemote invReserveSet
        IV34122:The InvReserveSet when wpmaterial changes - either new material or itemqty was modified, it can contain new InvResrve, existing invreserves, or modified invreserve
    • Constructor Detail

      • WPMaterialSet

        public WPMaterialSet(MboServerInterface ms)
                      throws MXException,
                             java.rmi.RemoteException
        Construct the set of work plan material.
        Parameters:
        ms - The MboServerInterface for WPMaterialSet to access internals of the MXServer.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Factory method to create a work plan material.
        Overrides:
        getMboInstance in class WPItemSet
        Parameters:
        ms - The WPMaterial MboSet.
        Returns:
        a work plan material Mbo.
        Throws:
        MXException
        java.rmi.RemoteException
      • clearIfFirst

        protected void clearIfFirst()
                             throws MXException,
                                    java.rmi.RemoteException
        Clears the work order estimates if this is the first mbo to be added
        Overrides:
        clearIfFirst in class WPItemSet
        Throws:
        MXException
        java.rmi.RemoteException
      • findReservation

        public MboRemote findReservation(WPMaterial wpm)
                                  throws MXException,
                                         java.rmi.RemoteException
        Find the InvReserve for a WPMaterial, if any. Used by the WPMaterial Mbo in the delete and undelete methods.
        Parameters:
        wpm - The WPMaterial Mbo
        Returns:
        The corrosponding InvReserve Mbo or null.
        Throws:
        MXException
        java.rmi.RemoteException
      • checkStorerooms

        public void checkStorerooms()
                             throws java.rmi.RemoteException,
                                    MXException
        Check all storerooms of members of this set.
        Throws:
        MXApplicationException - Thrown with "workorder", "WPMaterialStore" + [title & value of ItemNum] if a line doesn't have a storeroom.
        java.rmi.RemoteException
        MXException
      • allMaterialRecordsUpdated

        public boolean allMaterialRecordsUpdated()
                                          throws java.rmi.RemoteException,
                                                 MXException
        Return true, if all material records are updated.
        Returns:
        boolean
        Throws:
        java.rmi.RemoteException
        MXException
      • getModifiedWPMVector

        public java.util.Vector getModifiedWPMVector()
                                              throws MXException,
                                                     java.rmi.RemoteException
        IJ30306:
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException