psdi.app.item

Class ItemService

    • Constructor Detail

      • ItemService

        public ItemService()
                    throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • ItemService

        public ItemService(MXServer mxServer)
                    throws java.rmi.RemoteException
        Parameters:
        srvEnv - -- the "Server Environment" this Service is being created in.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getInvVendorSql

        public java.lang.String getInvVendorSql(UserInfo userInfo,
                                                java.lang.String itemnum,
                                                java.lang.String itemsetid,
                                                java.lang.String vendor,
                                                java.lang.String manufacturer,
                                                java.lang.String modelnum)
                                         throws MXException,
                                                java.rmi.RemoteException
        This method will construct a sql statement based on the parameters for INVVENDOR; this code is here for convenience because MATRECTRANS INVENTORY, & POLINE needs to access INVVENDOR. INVVENDOR has five keys: itemnum,itemsetid,vendor,manufacturer, & modelnum only itemnum and itemsetid are required. The other three can be null. One can not just do a simple comparation on each column.
        Specified by:
        getInvVendorSql in interface ItemServiceRemote
        Parameters:
        itemnum - itemnum
        itemsetid - itemsetid
        vendor - vendor
        manufacturer - manufacturer
        modelnum - modelnum
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        ItemService.getInvVendorSql(UserInfo userInfo,String item,String itemsetid,String vendor,String manufacturer,String modelnum)
      • getInvVendorSql

        public java.lang.String getInvVendorSql(UserInfo userInfo,
                                                java.lang.String itemnum,
                                                java.lang.String itemsetid,
                                                java.lang.String vendor,
                                                java.lang.String manufacturer,
                                                java.lang.String modelnum,
                                                java.lang.String conditioncode)
                                         throws MXException,
                                                java.rmi.RemoteException
        This method will construct a sql statement based on the parameters for INVVENDOR; this code is here for convenience because MATRECTRANS INVENTORY, & POLINE needs to access INVVENDOR. INVVENDOR has five keys: itemnum,itemsetid,vendor,manufacturer, modelnum , &conditioncode only itemnum and itemsetid are required. The other three can be null. One can not just do a simple comparation on each column.
        Specified by:
        getInvVendorSql in interface ItemServiceRemote
        Parameters:
        itemnum - itemnum
        itemsetid - itemsetid
        vendor - vendor
        manufacturer - manufacturer
        modelnum - modelnum
        conditioncode - conditioncode
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        ItemService.getInvVendorSql(UserInfo userInfo,String item,String itemsetid,String vendor,String manufacturer,String modelnum,String conditioncode )
      • getInvVendorSql

        public java.lang.String getInvVendorSql(java.lang.String vendor,
                                                MboRemote mbo)
                                         throws MXException,
                                                java.rmi.RemoteException
        This method will construct a sql statement based on the parameters for INVVENDOR; this code is here for convenience because MATRECTRANS INVENTORY, & POLINE needs to access INVVENDOR. INVVENDOR has five keys: itemnum,itemsetid,vendor,manufacturer, modelnum , &conditioncode only itemnum and itemsetid are required. The other three can be null. One can not just do a simple comparation on each column.
        Specified by:
        getInvVendorSql in interface ItemServiceRemote
        Parameters:
        itemnum - itemnum
        itemsetid - itemsetid
        vendor - vendor
        manufacturer - manufacturer
        modelnum - modelnum
        conditioncode - conditioncode
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        ItemService.getInvVendorSql(String vendor,MboRemote mbo )
      • initCriteriaList

        public void initCriteriaList(java.util.Hashtable criteriaTable)
                              throws MXException,
                                     java.rmi.RemoteException
        initCriteriaList(hashtable) This method is designed to create a ready-made list of common where clauses, which can be called upon by anywhere, anywhere. The where clause is stored only here - a change in the business rules should only mean a change here. All users can call server.getCriteria() using one of the the pre-defined names of these where clause(s) - which are declared in ServiceRemote.java. Calling getCriteria will return a valid where clause Criteria defined for the Item object: - ROTATING (criteriaRotating) - all rotating items
        Overrides:
        initCriteriaList in class AppService
        Throws:
        MXException
        java.rmi.RemoteException
      • removeSpecialOrderItems

        public MboSetRemote removeSpecialOrderItems(UserInfo userInfo,
                                                    java.util.Vector storelocVec)
                                             throws MXException,
                                                    java.rmi.RemoteException
        gets the set of items that exist as a special order item in at least one storeroom location. The method then steps through each item object and calls removeSpecialOrderItems in the Item object. The vector of storerooms provided to this ItemService method is passed on to the Item object's removeSpecialOrderItems.
        Specified by:
        removeSpecialOrderItems in interface ItemServiceRemote
        Parameters:
        userInfo - user information to instantiate an Item MBO set
        storeLoc - vector containing the storerooms from which the special order items are to be removed
        Returns:
        the MboSet of items to be deleted. Inventory objects marked for deletion in the Item object will also be deleted when the Item MboSet is saved since the the Item MBOs were the source of the Inventory MBOs.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        ItemService.removeSpecialOrderItems(UserInfo userInfo,Vector storelocVec)
      • changeStatus

        public void changeStatus(ItemRemote item,
                                 java.lang.String status,
                                 java.util.Date date,
                                 java.lang.String memo)
                          throws MXException,
                                 java.rmi.RemoteException
        Service Method used to change status.
        Specified by:
        changeStatus in interface ItemServiceRemote
        Parameters:
        item - Mbo
        status - The new status
        date - The date
        memo - The memo.
        Throws:
        MXApplicationException("item", - "..."); MXApplicationException("invoice", "StatusDate") MXApplicationException(""invoice", "CanCancelForSchedulePO")
        MXException
        java.rmi.RemoteException
        See Also:
        throws MXException, RemoteException
      • getDefaultItemSet

        public MboRemote getDefaultItemSet(UserInfo userInfo)
                                    throws MXException,
                                           java.rmi.RemoteException
        Service Method used to get default itemset mbo
        Parameters:
        userInfo -
        Returns:
        sets mbo
        Throws:
        MXException
        java.rmi.RemoteException