psdi.app.inventory

Class InvReserveSet

    • Field Detail

      • dispWonumExpr

        protected java.lang.String dispWonumExpr
        Holds the QBE filter for the nonpersistent attribute DisplayWonum
      • dispTaskExpr

        protected java.lang.String dispTaskExpr
        Holds the QBE filter for the nonpersistent attribute DisplayTaskID
    • Method Detail

      • addWorkOrderReservation

        public InvReserveRemote addWorkOrderReservation(java.lang.String wonum,
                                                        java.lang.String itemnum,
                                                        java.lang.String itemsetid,
                                                        java.lang.String location,
                                                        java.lang.String storelocsite,
                                                        java.lang.String glaccount,
                                                        java.lang.String description,
                                                        boolean directreq,
                                                        boolean initFlag,
                                                        java.lang.String requestedBy,
                                                        java.util.Date requestDate,
                                                        java.util.Date requiredDate,
                                                        double qty,
                                                        double issueqty)
                                                 throws MXException,
                                                        java.rmi.RemoteException
        Deprecated. 
        Older method to create a work order reservation for a work order. Still here for compatibility reasons.
        Specified by:
        addWorkOrderReservation in interface InvReserveSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.inventory.InvReserveSet#addWorkOrderReservation(String,String,String,String,,String,String,String,boolean,boolean,String,Date,Date,double)
      • addWorkOrderReservation

        public InvReserveRemote addWorkOrderReservation(java.lang.String wonum,
                                                        java.lang.String itemnum,
                                                        java.lang.String itemsetid,
                                                        java.lang.String location,
                                                        java.lang.String storelocsite,
                                                        java.lang.String glaccount,
                                                        java.lang.String description,
                                                        boolean directreq,
                                                        boolean initFlag,
                                                        java.lang.String requestedBy,
                                                        java.util.Date requestDate,
                                                        java.util.Date requiredDate,
                                                        double qty,
                                                        double issueqty,
                                                        java.lang.String conditionCode,
                                                        java.lang.String issueTo)
                                                 throws MXException,
                                                        java.rmi.RemoteException
        Deprecated. 
        Older method to create a work order reservation for a work order. Still here for compatibility reasons.
        Specified by:
        addWorkOrderReservation in interface InvReserveSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.inventory.InvReserveSet#addWorkOrderReservation(String,String,String,String,,String,String,String,boolean,boolean,String,Date,Date,double)
      • addPOReservation

        public InvReserveRemote addPOReservation(java.lang.String ponum,
                                                 java.lang.String polinenum,
                                                 java.lang.String polineid,
                                                 java.lang.String itemnum,
                                                 java.lang.String itemsetid,
                                                 java.lang.String location,
                                                 java.lang.String glaccount,
                                                 java.lang.String description,
                                                 boolean directreq,
                                                 java.lang.String requestedBy,
                                                 java.util.Date requestDate,
                                                 java.util.Date requiredDate,
                                                 double qty)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Deprecated. 
        returns a new invreserve mbo when po is approved.
        Specified by:
        addPOReservation in interface InvReserveSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • addPOReservation

        public InvReserveRemote addPOReservation(java.lang.String ponum,
                                                 java.lang.String polinenum,
                                                 java.lang.String polineid,
                                                 java.lang.String itemnum,
                                                 java.lang.String itemsetid,
                                                 java.lang.String location,
                                                 java.lang.String glaccount,
                                                 java.lang.String description,
                                                 boolean directreq,
                                                 java.lang.String requestedBy,
                                                 java.util.Date requestDate,
                                                 java.util.Date requiredDate,
                                                 double qty,
                                                 java.lang.String conditionCode,
                                                 java.lang.String siteID,
                                                 java.lang.String storeLocSiteID)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Deprecated. 
        returns a new invreserve mbo when po is approved.
        Specified by:
        addPOReservation in interface InvReserveSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • addPOReservation

        public InvReserveRemote addPOReservation(MboRemote poline,
                                                 java.lang.String storeLoc,
                                                 java.lang.String storeLocSiteID,
                                                 java.lang.String glaccount,
                                                 boolean directreq)
                                          throws MXException,
                                                 java.rmi.RemoteException
        returns a new invreserve mbo when po is approved.
        Specified by:
        addPOReservation in interface InvReserveSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.inventory.InvReserveSet#addPOReservation(MboRemote,String,String,boolean)
      • deleteWorkOrderReservations

        public void deleteWorkOrderReservations(java.lang.String wonum)
                                         throws MXException,
                                                java.rmi.RemoteException
        Deprecated. This method simply calls the method without a parameter.
        This method is called by the WO package to delete all reservations related to a work order. Reservations also related to MRs and POs are not deleted. This method should be called on the workorder's INVRESERVE related MboSet.
        Specified by:
        deleteWorkOrderReservations in interface InvReserveSetRemote
        Parameters:
        wonum - This is left over from previous versions and is ignored.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        The workorder's INVRESERVE set.
      • deleteWorkOrderReservations

        public void deleteWorkOrderReservations()
                                         throws MXException,
                                                java.rmi.RemoteException
        This method is called by the WO package to delete all reservations related to a work order. Reservations also related to MRs and POs are not deleted. This method should be called on the workorder's INVRESERVE related MboSet.
        Specified by:
        deleteWorkOrderReservations in interface InvReserveSetRemote
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        The workorder's INVRESERVE set.
      • updateWpmReservation

        public void updateWpmReservation(MboRemote reservation,
                                         MboRemote wpm,
                                         boolean createInit,
                                         java.util.Date requiredDate)
                                  throws MXException,
                                         java.rmi.RemoteException
        When a work plan material Mbo is deleted, created, or modified, this method deletes, creates, or modifies the corrosponding reservation.
        Specified by:
        updateWpmReservation in interface InvReserveSetRemote
        Parameters:
        reservation - The reservation, if any, already existing that corrosponds to the WPMaterial. This parameter can be null.
        wpm - The WPMaterial
        createInit - true if reservations should be created with the InitFlag set.
        requiredDate - Date when the reservation is required.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        InvReserveSet.updateWpmReservation(MboRemote,MboRemote,boolean,Date)
      • getUserWhere

        public java.lang.String getUserWhere(java.lang.String alias)
                                      throws MXException,
                                             java.rmi.RemoteException
        This method overridden to support QBE on nonpersistent attributes DisplayWonum and DisplayTaskID. Method getQbeWhere is not overrideable but this method is called to get the "User" clause or the QBE clause by the method that builds the complete where clause.
        Overrides:
        getUserWhere in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • addInvReserveInvUseandLines

        public void addInvReserveInvUseandLines(MboRemote reserve,
                                                java.lang.String useType)
                                         throws MXException,
                                                java.rmi.RemoteException
        This method auto creates the invuse and invuselines for the reservation
        Parameters:
        reserve - The InvReserve Mbo
        createInvUse - The boolean flag to indicate if the invuse needs to be created
        type - The type indicates LineType. It cab be ITEM or TOOL
        Throws:
        MXException
        java.rmi.RemoteException
      • addInvReserveInvUseandLinesWO

        public void addInvReserveInvUseandLinesWO(MboRemote reserve,
                                                  java.lang.String useType)
                                           throws MXException,
                                                  java.rmi.RemoteException
        This method auto creates the invuse and invuselines for the reservation
        Parameters:
        reserve - The InvReserve Mbo
        useType - The type indicates Use Type.
        Throws:
        MXException
        java.rmi.RemoteException
      • getInvUseMap

        public MboRemote getInvUseMap(long invUseId)
                               throws MXException,
                                      java.rmi.RemoteException
        This method returns the invUseMap. This hashmap stores the invuseids. This map is created to cache the invuse mbos.
        Parameters:
        invUseId -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • putInvUseMap

        public void putInvUseMap(long invUseId,
                                 MboRemote invUseMbo)
                          throws MXException,
                                 java.rmi.RemoteException
        This method adds the invUseMap. This hashmap stores the invuseids.
        Parameters:
        invUseId -
        invUseMbo -
        Throws:
        MXException
        java.rmi.RemoteException
      • getInvUseMap

        public java.util.HashMap getInvUseMap()
                                       throws MXException,
                                              java.rmi.RemoteException
        This method clears the hashmap.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getStoreInvUseMap

        public java.util.HashMap getStoreInvUseMap()
                                            throws MXException,
                                                   java.rmi.RemoteException
        This method returns the hashmap. This hashmap stores the invuse objects for wonums. This map is created to cache the invuse mbos.
        Parameters:
        invUseId -
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • setCreateNewInvUse

        public void setCreateNewInvUse(boolean newInvUse)
                                throws MXException,
                                       java.rmi.RemoteException
        This method set createNewInvUse value
        Parameters:
        newInvUse -
        Throws:
        MXException
        java.rmi.RemoteException
      • needToCreateNewInvRes

        public boolean needToCreateNewInvRes(MboRemote wpm)
                                      throws MXException,
                                             java.rmi.RemoteException
        IJ33011: rework of IJ29269 which only checks if itemqty is modified If other necessary information is modified, then new invreserve was not created. If only unitcost is changed, then invreserve needs not to be recreated(IJ29269). All the other fields modified will require creating a new invreserve record
        Parameters:
        wpm - -WPMATERIAL
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • updatePotentialWpmBackOrderToHard

        public void updatePotentialWpmBackOrderToHard(MboRemote wpm,
                                                      double oldHardResQty)
                                               throws MXException,
                                                      java.rmi.RemoteException
        IJ30306: when wpmaterial records are changed, associated invreserve are changed. This method find potential invreserve to adjust when one with same item/location/site is changed from HARD to BACKORDER. The potential invreserve may need to change from BACKORDER to HARD for total balance consideration
        Parameters:
        wpm - - the wpm being modified
        oldHardResQty -
        Throws:
        MXException
        java.rmi.RemoteException