psdi.app.workorder

Class FldWpMatLocation

  • All Implemented Interfaces:
    MboConstants, MboValueListener
    Direct Known Subclasses:
    FldWPMatStoreLocSite, FldWpToolLocation


    public class FldWpMatLocation
    extends MAXTableDomain
    Location attribute of WpMaterial. Must be a valid location of type STOREROOM. IF an ITEMNUM has been set, and UNITCOSTHASCHNAGED is false, set the UNITCOST field to INVENTORY issue cost. Change in cost is updated in the WorkOrder.EstMatCost.
    • Constructor Detail

      • FldWpMatLocation

        public FldWpMatLocation(MboValue mbv)
                         throws MXException
        construct and attach to the MboValue. The location must be an storeroom type location.
        Parameters:
        mbv - the MboValue Location attribute of WpMaterial attach to.
        Throws:
        MXException
    • Method Detail

      • getList

        public MboSetRemote getList()
                             throws MXException,
                                    java.rmi.RemoteException
        List the storeroom locations based on the value filled in Storelocsite and SiteID filled The business rules are as follows If the Storeroom Site is blank, the Storeroom lookup will show Storerooms from Sites that belongs to the same Organization as the WO Site's Organization. If the Storeroom Site is filled in then the Storeroom lookup will show storerooms belonging to the Storeroom Site.
        Specified by:
        getList in interface MboValueListener
        Overrides:
        getList in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        If an ITEMNUM has been set, and UNITCOSTHASCHNAGED is false, set the UNITCOST field to be INVENTORY issue cost . and update the linecost and the workorder.EstMatCost.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException