psdi.app.pr

Class PRService

    • Constructor Detail

      • PRService

        public PRService()
                  throws java.rmi.RemoteException
        The PR service object.
        Throws:
        java.rmi.RemoteException
      • PRService

        public PRService(MXServer mxServer)
                  throws java.rmi.RemoteException
        The Server environment this service is created in.
        Parameters:
        mxServer - Mxserver
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • initCriteriaList

        public void initCriteriaList(java.util.Hashtable criteriaTable)
                              throws MXException,
                                     java.rmi.RemoteException
        Criteria defined for the PRService object. HISTORY - All closed and cancelled purchase orders. APPR - Approved purchase requisitions. WAPPR - Waiting for approval purchase requisitions. CLOSE - Closed purchase requisitions. This method is originally in AppService and it is overridden here Some of the above are for future use.
        Overrides:
        initCriteriaList in class AppService
        Parameters:
        criteriaTable - criteria Hashtable
        Throws:
        MXException
        java.rmi.RemoteException
      • getPRLinesForPO

        public MboSetRemote getPRLinesForPO(MboRemote mboRemote)
                                     throws MXException,
                                            java.rmi.RemoteException
        Depends on PRAPPROVAL maxvar to get a set of PR. If PRAPPROVAL is true, get a set of PRLine with APPR status and no ponum or rfqnum assigened to it. If PRAPPROVAL is false, get a set of PRLine with open status and no ponum or rfqnum or contractnum assigned to it. A PR whose status is not CLOSE or CANCEL is said to be an open PR.
        Specified by:
        getPRLinesForPO in interface PRServiceRemote
        Parameters:
        the - PO Mbo.
        Returns:
        a set of PRLine with no ponum or rfqnum assigned and proper status.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        PRService.getPRLinesForPO(MboRemote)
      • getPRLinesForResultPO

        public MboSetRemote getPRLinesForResultPO(MboRemote mboRemote)
                                           throws MXException,
                                                  java.rmi.RemoteException
        Depends on PRAPPROVAL maxvar to get a set of External PR. If PRAPPROVAL is true, get a set of PRLine with APPR status and no ponum, rfqnum or contractnum assigned to it. If PRAPPROVAL is false, get a set of PRLine with open status and no ponum, rfqnum or contractnum assigned to it. A PR whose status is not CLOSE or CANCEL is said to be an open PR.
        Specified by:
        getPRLinesForResultPO in interface PRServiceRemote
        Parameters:
        the - PO Mbo.
        Returns:
        a set of PRLine with no ponum, refnum or contractnum assigned and proper status.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        PRService.getPRLinesForResultPO(MboRemote)
      • getPRLinesForRFQ

        public MboSetRemote getPRLinesForRFQ(MboRemote mboRemote)
                                      throws MXException,
                                             java.rmi.RemoteException
        Depends on PRAPPROVAL maxvar to get a set of PR. If PRAPPROVAL is true, get a set of PRLine with APPR status with no market place item and no ponum or rfqnum assigened to it. If PRAPPROVAL is false, get a set of PRLine with open status with no market place item and no ponum or rfqnum assigened to it. Open status for PR is status != CLOSE or CANCEL.
        Specified by:
        getPRLinesForRFQ in interface PRServiceRemote
        Parameters:
        userInfo - User Info object
        Returns:
        a set of PRLine with no ponum or rfqnum assigned and proper status.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        PRService.getPRLinesForRFQ(MboRemote)
      • changeStatus

        public void changeStatus(PRRemote pr,
                                 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 PRServiceRemote
        Parameters:
        pr - PR Mbo
        siteid - SiteID of the PR
        status - The new status
        date - The date
        memo - The memo.
        Throws:
        MXApplicationException("pr", - "invalidstatuschange"); MXApplicationException("pr", "invalidstatus") MXApplicationException("pr","LinesNotAssignedToPO") MXApplicationException("pr", "statusdate") MXApplicationException("pr", "approveamountexceeded") MXApplicationException("pr", "invalidWO", params) MXApplicationException("pr", "AlreadyAssignedToPO")
        MXException
        java.rmi.RemoteException
        See Also:
        throws MXException, RemoteException