psdi.webclient.beans.workman

Class AMLaborTableBean

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


    public class AMLaborTableBean
    extends AMBaseBean
    • Constructor Detail

      • AMLaborTableBean

        public AMLaborTableBean()
    • Method Detail

      • initialize

        protected void initialize()
                           throws MXException,
                                  java.rmi.RemoteException
        Initialize() defaults the qbe for defaultcraft to 1, then applies the default query, if there is one.
        Overrides:
        initialize in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • getActiveLaborRestriction

        public java.lang.String getActiveLaborRestriction()
                                                   throws MXException,
                                                          java.rmi.RemoteException
        Pass the permanent restrictions to other objects.
        Throws:
        MXException
        java.rmi.RemoteException
      • getActiveVendorRestriction

        public java.lang.String getActiveVendorRestriction()
                                                    throws MXException,
                                                           java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • amlaborrefresh

        public int amlaborrefresh()
                           throws MXException,
                                  java.rmi.RemoteException
        Refreshes (i.e. resets) the Labor List upon the user's request.
        Throws:
        MXException
        java.rmi.RemoteException
      • assignlabgrid

        public int assignlabgrid()
                          throws MXException
        This method is called when the users assign labor by clicking on the available hours grid. The row and column of the cell clicked come from the WebClientEvent and ControlProperties objects, respectively. Rows in addition to the one clicked may have also been selected (the clicked one may be one of the selected ones). 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, one row clicked and no rows other than that same 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
      • modavail

        public int modavail()
                     throws MXException,
                            java.rmi.RemoteException
        This method verifies that the selected labor has a calendar and a shift associated with it before it allows the modavail dialog to be called.
        Throws:
        MXException
        java.rmi.RemoteException
      • getRemoteForDownload

        public MboSetRemote getRemoteForDownload()
                                          throws java.rmi.RemoteException,
                                                 MXException
        Override Databean's getRemoteForDownload method so that the client work date can be passed to the download mboset; in this way, the downloaded set will use the same work date and therefore display the same 7-day window in the availability grid as does the Labor List on the screen.
        Overrides:
        getRemoteForDownload in class DataBean
        Throws:
        java.rmi.RemoteException
        MXException