psdi.webclient.beans.fwm

Class ResultsItemsBean

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


    public class ResultsItemsBean
    extends DataBean
    this bean is only used to show a summed up set of wpitem records for all workorders in the result set. this set cannot be filtered or sorted
    • Constructor Detail

      • ResultsItemsBean

        public ResultsItemsBean()
    • Method Detail

      • initialize

        protected void initialize()
                           throws MXException,
                                  java.rmi.RemoteException
        will generate a set of all wpitems attached to all records in the result set any qty in the set will be summed up by itemnum and storeroom location. this is to imitate a group by, which we can't do
        Overrides:
        initialize in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboSetRemote

        protected MboSetRemote getMboSetRemote()
                                        throws MXException,
                                               java.rmi.RemoteException
        there is no parent/child relationship set up for this bean, but we want to know when the results_showlist changes, so get the results_showlist bean and add this bean as a listener
        Overrides:
        getMboSetRemote in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • count

        public int count()
                  throws MXException,
                         java.rmi.RemoteException
        overrode count() to fix the "x-y of z" tablecounter property. had to account for rows removed by the summation code in above initialize method
        Overrides:
        count in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboSet

        public MboSetRemote getMboSet()
                               throws MXException,
                                      java.rmi.RemoteException
        Description copied from class: DataBean
        Returns the reference to the remote MboSet. Checks to see if the DataBean has a mboSetRemote is it doesn't and the resetRemote flag is true it will try and obtain a MboSetRemote for the bean via the getMboSetRemote method. IMPORTANT: This method should not be overidden. Override getMboSetRemote if the bean needs to get a MboSetRemote in a "non-standard" way. But if it is absolutely necessary make sure to call the initalize() method after obtaining the MboSetRemote and to set the flag resetRemote = false.
        Overrides:
        getMboSet in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException