psdi.webclient.beans.workman

Class AssignLabBean

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


    public class AssignLabBean
    extends AMBaseBean
    • Constructor Detail

      • AssignLabBean

        public AssignLabBean()
    • Method Detail

      • getMboSetRemote

        protected MboSetRemote getMboSetRemote()
                                        throws MXException,
                                               java.rmi.RemoteException
        This retrieves the AssignmentSet created in WMAssignmentSet.assignLabor and attaches it to this bean for display in the table.
        Overrides:
        getMboSetRemote in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • cancelAMAssignLabDialog

        public int cancelAMAssignLabDialog()
                                    throws MXException,
                                           java.rmi.RemoteException
        If the user cancels out of the Assign Labor dialog, we must clear the selection on the labor list, but only if the action was clicking the availability grid. If they checked a checkbox and then used the drop-down menu or the toolbar button we want to let the selection stand (because it's visible). This method also takes care of another case. If they select a row *and* click the grid, we unselect the row before doing anything, so it's no problem in the objects, but we also must clear the checked checkbox on the screen. The call to Utility.sendEvent triggers a refresh event on the main page, as opposed to the Assign Labor dialog, which is what's needed -- as per Scott Manning's recommendation.
        Throws:
        MXException
        java.rmi.RemoteException