psdi.app.calendar

Class WorkPeriod

  • java.lang.Object
    • Constructor Detail

      • WorkPeriod

        public WorkPeriod(MboSet ms)
                   throws MXException,
                          java.rmi.RemoteException
        Construct the WorkPeriod object
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Description copied from class: Mbo
        Called by the framework when the Mbo has been constructed and the MboValues have been initialized. This can be overridden by the programmer to provide any custom initialization they would like to do.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Description copied from class: Mbo
        This is called when a new Mbo is added to the Mboset collection. It is called AFTER user defaults have been set from the data dictionary. Programmer should usually override this to set some defaults. Default behavior is to do nothing.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canAdd

        public void canAdd()
                    throws MXException,
                           java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • applyShiftPatternDay

        public void applyShiftPatternDay(ShiftPatternDay patternDay,
                                         java.util.Date workDate,
                                         java.lang.String calNum)
                                  throws MXException,
                                         java.rmi.RemoteException
        Public but not remote. Called by WorkPeriodRemote in addNewDayInPattern(). If the pattern day is not empty, it adds one row in workperiod. and sets the field values accordingly.
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        Overrides the skipCopyField() in the Mbo. Since this method takes the MboValueInfo as its parameter just check to see if this field needs to be copied or skipped by using the data from the static HashTable. If this field does not need to be copied return true. The following are Calendar field will be skipped without being copied to the newly duplicated Calendar
        1. CALNUM
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        - - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        - True,if the field does not need to be copied.In all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Description copied from class: Mbo
        Pre-save validation method. Programmer can override with specific rules.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException