psdi.webclient.beans.inventory

Class SpecifyInvCostBean

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


    public class SpecifyInvCostBean
    extends DataBean
    This bean is used for LifoFifo cost type items to specify the unit cost and cost date for new items.
    • Constructor Detail

      • SpecifyInvCostBean

        public SpecifyInvCostBean()
    • Method Detail

      • execute

        public int execute()
                    throws MXException,
                           java.rmi.RemoteException
        Description copied from class: DataBean
        This method is meant to be overrided by dialog beans but by default if the bean's remote is a NonPersistentMboSetRemote, then execute is called on the bean's remote and if the DataBean has a parent then execute is called on the bean's parent bean. If the remote is not a NonPersistentMboSetRemote then if the bean has a parentbean and a parent relationship then execute is called on the parent bean, else save is called on the bean's remote If you do not want to save the parent of the bean then override execute and just call save.
        Overrides:
        execute in class DataBean
        Throws:
        MXException
        java.rmi.RemoteException
      • refreshcostdate

        public int refreshcostdate()
                            throws MXException,
                                   java.rmi.RemoteException
        This method is used to apply the cost date entered to the all the records in the table.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getMboSetRemote

        protected MboSetRemote getMboSetRemote()
                                        throws MXException,
                                               java.rmi.RemoteException
        This method returns the lifofifocostset for the user to enter the unitcost and costdate.
        Overrides:
        getMboSetRemote in class DataBean
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • close

        public void close()
        This method cleans up attributes for this databean
        Overrides:
        close in class DataBean