psdi.app.asset

Class DepSchedSet

    • Field Detail

      • recalcEnabled

        protected MboRemote recalcEnabled
        Stores (if there is any) the recalculation point mbo It is used to determine up front whether a refreshing of an existing depreciation schedule will replace the entire current depreciation schedule ( as will be the case when recalcEnabled is false).
        See Also:
        #handleCurrentDepSchedule(MboRemote)
    • Constructor Detail

      • DepSchedSet

        public DepSchedSet(MboServerInterface ms)
                    throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • getMboInstance

        protected Mbo getMboInstance(MboSet ms)
                              throws MXException,
                                     java.rmi.RemoteException
        Description copied from class: MboSet
        Factory to create the business objects This must be overridden in derived class
        Specified by:
        getMboInstance in class MboSet
        Throws:
        MXException
        java.rmi.RemoteException
      • generateDepSchedule

        public boolean generateDepSchedule(MboRemote asset,
                                           boolean previewAction)
                                    throws MXException,
                                           java.rmi.RemoteException
        Generates the depreciation schedule using the following parameters.
                  
        Used for Both Date and Meter MethodsUsed for Date MethodUsed for Meter Method
        DEPMETHOD DEPEXPLIFEUOMDEPMETER
        DEPPERIODTYPE DEPSTARTDATEDEPMETERSTART
        DEPCOST  DEPEXPLIFE
        DEPSALVAGEAMT   
        DEPPERIODS   
        After generating the schedule, the common, date and meter generation parameters are temporarily stored in case the schedule is refreshed or regenerated before the dialog is closed.
        Specified by:
        generateDepSchedule in interface DepSchedSetRemote
        Parameters:
        asset - asset mbo for which depreciation schedule will be generated
        previewAction - true - this generation was called from the preview button false - this generation was called from the OK button on the dialog
        Returns:
        true if generation is successful; false if user does not want to replace this asset's entire already existing depreciation schedule.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        #handleCurrentDepSchedule(MboRemote), DepSchedSet.setSchedGenerationParamsUsed(boolean), psdi.webclient.beans.Asset.AssetAppBean
      • maintainSingleRecalcPoint

        protected MboRemote maintainSingleRecalcPoint(MboRemote modRecalcPoint)
                                               throws MXException,
                                                      java.rmi.RemoteException
        when a recalculation point is set on a DepSched, loops through the DepSchedSet to clear any previous recalculation point. A DepSchedSet can have only one recalculation point.
        Parameters:
        modRecalcPoint - DepScheduleSet mbo that has had its recalculation point value modified
        Returns:
        return the mbo that is previous to the selected
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        FldDepScheduleRecalcPoint.action()