psdi.webclient.beans.workman

Class WorkmanAppBean

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


    public class WorkmanAppBean
    extends AppBean
    • Constructor Detail

      • WorkmanAppBean

        public WorkmanAppBean()
    • Method Detail

      • initialize

        protected void initialize()
                           throws MXException,
                                  java.rmi.RemoteException
        Initialize() filters out Closed and Cancelled Work Orders from the Work List by setting the HistoryFlag qbe. Such work orders can't have assignments, so they aren't relevant to Assignment Manager.
        Overrides:
        initialize in class AppBean
        Throws:
        MXException
        java.rmi.RemoteException
      • setPageStartIndex

        public boolean setPageStartIndex(int nRow)
        Allows the starting row of a table bound to the bean to be set at will.
      • getAMLaborTableBean

        public DataBean getAMLaborTableBean()
                                     throws MXException,
                                            java.rmi.RemoteException
        Returns the AMLaborTableBean so its ID need not be hard-coded elsewhere.
        Throws:
        MXException
        java.rmi.RemoteException
      • resetWorkList

        public int resetWorkList()
                          throws MXException,
                                 java.rmi.RemoteException
        Resets the Work List while insuring that it continues displaying the same page (as far as is possible, given that the list will usually have changed).
        Throws:
        MXException
        java.rmi.RemoteException
      • resetLaborList

        public int resetLaborList()
                           throws MXException,
                                  java.rmi.RemoteException
        Resets the Labor List while insuring that it continues displaying the same page.
        Throws:
        MXException
        java.rmi.RemoteException
      • resetWorkAndLaborLists

        public int resetWorkAndLaborLists()
                                   throws MXException,
                                          java.rmi.RemoteException
        Resets the Work and Labor Lists while insuring that both continue displaying the same pages (as far as is possible, given that the Work List will usually have changed).
        Throws:
        MXException
        java.rmi.RemoteException
      • amworkrefresh

        public int amworkrefresh()
                          throws MXException,
                                 java.rmi.RemoteException
        Refreshes (that is, resets) the Work List upon the user's request.
        Throws:
        MXException
        java.rmi.RemoteException
      • SHOWALLLAB

        public int SHOWALLLAB()
                       throws MXException,
                              java.rmi.RemoteException
        In principle, this fulfills the same function for the Labor List table as the "All Records" menu option does for all app list tables -- it clears the Qbe and resets the table. The framework normally does this by calling queryAllRecs in DataBean. What's actually done here is to reproduce the state created when the app is first entered. The qbe and where clause are cleared and the settings set at initialization time (in AMLaborTableBean) are set here.
        Throws:
        MXException
        java.rmi.RemoteException
      • ASSIGNLAB

        public int ASSIGNLAB()
                      throws MXException,
                             java.rmi.RemoteException
        This method is called when the users assign labor by either the menu option or the toolbar button approach. In either case the search for available hours always begins with day1 by default. The number of selected rows is checked. If the total number of selected rows is greater than 1, the desired action is many-to-many and assignLaborManyToMany is called. If it equals 1 (that is, only one labor list row selected), then assignLabor is called. It's only in the single labor case that it's possible for the Assign Labor dialog to be opened.
        Throws:
        MXException
        java.rmi.RemoteException
      • STARTASSN

        public int STARTASSN()
                      throws MXException,
                             java.rmi.RemoteException
        Called to start one or more assignments. If a single assignment is to be started, the dialog is displayed and the save handled by AMDispatchBean. If a set, then they're handled here with no dialog being displayed.
        Throws:
        MXException
        java.rmi.RemoteException
      • INTRPTASSN

        public int INTRPTASSN()
                       throws MXException,
                              java.rmi.RemoteException
        Called to interrupt one or more assignments. If a single assignment is to be interrupted, the dialog is displayed and the save handled by AMDispatchBean. If a set, then they're handled here with no dialog being displayed.
        Throws:
        MXException
        java.rmi.RemoteException
      • FNSHASSN

        public int FNSHASSN()
                     throws MXException,
                            java.rmi.RemoteException
        Called to finish one or more assignments. If a single assignment is to be finished, the dialog is displayed and the save handled by AMDispatchBean. If a set, then they're handled here with no dialog being displayed.
        Throws:
        MXException
        java.rmi.RemoteException
      • CRWSHOWALL

        public int CRWSHOWALL()
                       throws MXException,
                              java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • CRWASSIGN

        public int CRWASSIGN()
                      throws MXException,
                             java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • resetCrewList

        public int resetCrewList()
                          throws MXException,
                                 java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • checkWMAssigments

        public void checkWMAssigments(java.util.Vector assigments,
                                      boolean forcrew)
                               throws MXException,
                                      java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException