psdi.webclient.beans.workman

Class AMBaseBean

    • Constructor Detail

      • AMBaseBean

        public AMBaseBean()
    • Method Detail

      • setPageStartIndex

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

        public void AMSetCurrentRow(int nRow)
        Allows the protected DataBean attribute currentRow to be set in classes that are not direct subclasses of DataBean (such as AMLaborTableBean -- for an example of its use see AMManageQueriesBean). This also allows currentRow to be set without any other actions being performed. The setCurrentRow method in DataBean does do other things in some cases -- not in this one, at present, but that may not always be the case.
      • AMSetTableFlag

        public void AMSetTableFlag(long flag,
                                   boolean value)
        Allows the protected DataBean attribute tableStateFlags to be set in classes that are not direct subclasses of DataBean (such as AMLaborTableBean -- for an example of its use see AMManageQueriesBean). This also allows tableStateFlags to be set without any other actions being performed. The setTableFlag method in DataBean in fact does not do anything else, but this may not always be the case.
      • AMSetCurrentQueryName

        public void AMSetCurrentQueryName(java.lang.String queryName)
        Allows the protected DataBean attribute currentQuery to be set in classes that are not direct subclasses of DataBean (such as AMLaborTableBean -- for an example of its use see AMManageQueriesBean). This also allows currentQuery to be set without any other actions being performed. The setCurrentQueryName method in DataBean in fact does not do anything else, but this may not always be the case. Moreover, it's protected, so a method in AMBaseBean would be necessary anyway.
      • getAMCalendarViewBean

        public DataBean getAMCalendarViewBean()
        Returns the AMCalendarView databean so its ID need not be hard-coded elsewhere.
      • getAMCalendarViewSet

        public MboSetRemote getAMCalendarViewSet()
                                          throws MXException,
                                                 java.rmi.RemoteException
        Returns the CalendarViewSet attached to the AMCalendarView databean; this mboset is the repository of the dates that make up the seven-day window in which assignments are made.
        Throws:
        MXException
        java.rmi.RemoteException
      • getAMLaborTableBean

        public DataBean getAMLaborTableBean()
                                     throws MXException,
                                            java.rmi.RemoteException
        Returns the AMLaborTableBean.
        Throws:
        MXException
        java.rmi.RemoteException
      • getAMLaborCraftRateSet

        public MboSetRemote getAMLaborCraftRateSet()
                                            throws MXException,
                                                   java.rmi.RemoteException
        Returns the LaborCraftRateSet attached to the AMLaborTable databean, which is the bean bound to the Labor List table.
        Throws:
        MXException
        java.rmi.RemoteException
      • resetWorkList

        public int resetWorkList()
                          throws MXException,
                                 java.rmi.RemoteException
        Calls the resetWorkList method in the main app bean. 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
        Calls the resetLaborList method in the main app bean. 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
        Calls the resetWorkAndLaborLists method in the main app bean. 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
      • execute

        public int execute()
                    throws MXException,
                           java.rmi.RemoteException
        This.save() is called explicitly here because we do **not** want to save the parent bean, which may be either WorkmanAppBean or AMTableBean. The LaborCraftRate mboset never changes and we wish to actively prevent the WMAssignmentSet from being saved.
        Overrides:
        execute in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException