psdi.app.workorder.virtual

Class WOChangeStatusSet

    • Field Detail

      • pmResponse

        public boolean pmResponse
        Initialize the pmResponse variable to be used within this class.
    • Constructor Detail

      • WOChangeStatusSet

        public WOChangeStatusSet(MboServerInterface ms)
                          throws MXException,
                                 java.rmi.RemoteException
        Construct the set
        Parameters:
        ms - The MboServerInterface
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • changeStatusOnSet

        protected void changeStatusOnSet(MboSetRemote csSet,
                                         Mbo param)
                                  throws MXException,
                                         java.rmi.RemoteException
        Changes the status of all members of a set. Note that if doing a getMbo(int) on the set causes an exception, the exception is simply passed up the call chain.
        Overrides:
        changeStatusOnSet in class ChangeStatusSet
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Factory method to create an WOChangeStatus object.
        Specified by:
        getMboInstance in class MboSet
        Parameters:
        ms - The WOChangeStatusSet.
        Returns:
        an WOChangeStatusMbo object.
        Throws:
        MXException
        java.rmi.RemoteException
      • createCompletionOrder

        public java.util.Vector createCompletionOrder(java.util.Vector completionorder,
                                                      java.lang.String nextWO,
                                                      java.util.Hashtable htChildren,
                                                      java.util.Hashtable htTasks)
                                               throws MXException,
                                                      java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setLatestPMDueDate

        public void setLatestPMDueDate(java.lang.String pmnum,
                                       java.lang.String siteid,
                                       java.util.Date dueDate)
                                throws MXException,
                                       java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getLatestPMDueDate

        public java.util.Date getLatestPMDueDate(java.lang.String pmnum,
                                                 java.lang.String siteid)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setPMWOCancelUserListResponse

        public void setPMWOCancelUserListResponse(boolean response)
                                           throws MXException,
                                                  java.rmi.RemoteException
        This user response from the yes/no dialog when cancel is called gets set via this method from the WOChangeStatusBean.
        Specified by:
        setPMWOCancelUserListResponse in interface WOChangeStatusSetRemote
        Parameters:
        response - true Yes has been click on the dialog.
        Throws:
        MXException
        java.rmi.RemoteException
      • setReportParameterData

        public void setReportParameterData(ReportParameterData data)
                                    throws MXException,
                                           java.rmi.RemoteException
        Report parameters get set by this method from the WOChangeStatusBean. The parameters are used to generate a report.
        Specified by:
        setReportParameterData in interface WOChangeStatusSetRemote
        Parameters:
        Report - Paramters including appname, report name, and whereclause.
        Throws:
        MXException
        java.rmi.RemoteException
      • createFileFromStream

        public void createFileFromStream(java.io.File file,
                                         java.io.InputStream inputStream)
                                  throws java.io.IOException
        Converts bytes into an actual file.
        Parameters:
        file - Report in pdf format.
        inputStream -
        Throws:
        java.io.IOException