psdi.webclient.beans.workorder

Class ReschedAssignBean

  • All Implemented Interfaces:
    java.util.EventListener, javax.servlet.http.HttpSessionBindingListener, DataBeanListener


    public class ReschedAssignBean
    extends DataBean
    The bean that handles the Reschedule Assignments action on the WOTrack List tab
    • Constructor Detail

      • ReschedAssignBean

        public ReschedAssignBean()
    • Method Detail

      • execute

        public int execute()
                    throws MXException,
                           java.rmi.RemoteException
        Executes when the OK button is clicked. Calls the bulk reschedule method for each of the selected work orders on the List tab, which may be all of them.
        Overrides:
        execute in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • BulkRescheduleSaveWO

        public void BulkRescheduleSaveWO(WO thePassedWO,
                                         boolean resched,
                                         java.util.Date reschedDate,
                                         boolean fromListTab)
                                  throws MXException,
                                         java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • BulkRescheduleSaveWO

        public void BulkRescheduleSaveWO(WO thePassedWO,
                                         boolean resched,
                                         java.util.Date reschedDate)
                                  throws MXException,
                                         java.rmi.RemoteException
        Calls bulkReschedule for the passed WO and then saves it but does so in such a way as to take advantage of the fact that the WOSet of which the WO is a member is discardable. That way is to fetch a fresh WOSet that contains a fresh instance of this WO (we do so by setting QBE on the WorkorderID). We then perform a transaction save. In this way, the auxiliary WOSet can be discarded by the framework and memory cleared.
        Parameters:
        thePassedWO - The workorder whose assignments are to be rescheduled or unassigned.
        resched - A boolean based on a checkbox on the dialog, this tells whether they are rescheduling the assignments of the WO or merely unassigning them.
        reschedDate - If the action is rescheduling assignments, this is the date on which they will now start, if availability allows that. If the action is unassigning, this may be either null or contain a date; if it does contain a date, the date will be the new schedule start date for the Work Order.
        Throws:
        MXException
        java.rmi.RemoteException