psdi.app.pr

Class PRLineSet

    • Field Detail

      • dbPRLineSet

        public MboSetRemote dbPRLineSet
        08-22527: contains prline set in database
      • maxPRLineSeq

        public int maxPRLineSeq
    • Constructor Detail

      • PRLineSet

        public PRLineSet(MboServerInterface ms)
                  throws MXException,
                         java.rmi.RemoteException
        Construct the set. Constructor that has a call to the super constructor.
        Parameters:
        ms - MboServer Interface
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Generates a new PRLine object.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - to which the new instance of the PRLine object should belong.
        Returns:
        Mbo a new instance of the PRLine Object which is part of the MboSet that was passed in.
        Throws:
        MXException
        java.rmi.RemoteException
      • canAdd

        public void canAdd()
                    throws MXException
        Can an object be added to the PRLine? The owner of PRLine must be PR and the status should be WAPPR.
        Overrides:
        canAdd in class MboSet
        Throws:
        MXApplicationException(pr, - addpoline) is thrown when the owner is not PR
        MXApplicationException(pr, - cannotAdd) is thrown when the PR status is not WAPPR
        MXException
      • getPRLinesForContract

        public void getPRLinesForContract(MboRemote mboRemote)
                                   throws MXException,
                                          java.rmi.RemoteException
        Depends on PRAPPROVAL maxvar to get a set of PRSet. 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:
        getPRLinesForContract in interface PRLineSetRemote
        Parameters:
        the - PO Mbo.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        psdi.app.pr.PRLine#getPRLinesForContract(MboRemote)
      • populatePRLineNum

        public void populatePRLineNum(MboRemote prLine)
                               throws MXException,
                                      java.rmi.RemoteException
        08-22875: populate prlinenum when a new PRLine record is created
        Parameters:
        prLine -
        Throws:
        MXException
        java.rmi.RemoteException
      • setDBPRLineSet

        public MboSetRemote setDBPRLineSet(MboRemote thisPRLine)
                                    throws MXException,
                                           java.rmi.RemoteException
        08-22527: set the instance variable dbPRLineSet if it is null
        Parameters:
        thisPRLine -
        Throws:
        MXException
        java.rmi.RemoteException
      • setMaxPRLineSeq

        public void setMaxPRLineSeq(int newSeq)
                             throws MXException,
                                    java.rmi.RemoteException
        The PRLine number maintained by populatePRLineNum method at PRLine.add method may be overwritten by duplicate process. If the seq passed is greater than maxPRLineSeq then we need to accept that value.
        Parameters:
        newSeq -
        Throws:
        MXException
        java.rmi.RemoteException