psdi.app.common

Class FldCommonFinishDate

  • All Implemented Interfaces:
    MboConstants, MboValueListener
    Direct Known Subclasses:
    FldWOActualDate, FldWOSchedDate, FldWOTargetDate


    public class FldCommonFinishDate
    extends MboValueAdapter
    Common validation class for FldCommonFinishDate. If start date (that is, ACTSTART,SCHEDSTART, or TARGSTARTDATE) is set at 12:15:30 PM using MXServer.getMXServer().getDate() and finish date is set using the date/time lookup (it will be set to 12:15:00 if the TPAE system property setting.DISPLAYTIME does not include seconds) in the same minute, validation will fail. This class evaluates if start date is greater than finish date and start date (with SECONDS and MILLISECONDS set to zero) equals finish date (with SECONDS and MILLISECONDS already at zero due to the exclusion of SECONDS in setting.DISPLAYTIME format that is used by the date/time lookup). If the start date with zeroed SECONDS and MILLISECONDS is equal to the finish date, then the finish date is set equal to the finish date. As a result, validation will succeed. This can occur in Quick Reporting or in any application with start/finish date combinations if the system date/time is used as a default value to set the start date and the date/time lookup is used to set the corresponding finish date within the same minute unless setting.DISPLAYTIME is configured to include seconds (for example, setting.DISPLAYTIME = HH:mm:ss. If setting.DISPLAYTIME is set to include seconds, all TPAE date/time fields will display seconds in the UI because this is a sytem setting).
    See Also:
    FldWOActualDate.validate(), FldWOSchedDate.validate(), FldWOTargetDate.validate()
    • Constructor Detail

      • FldCommonFinishDate

        public FldCommonFinishDate(MboValue mbv)
        constructs and attaches to the MboValue.
        Parameters:
        mbv - MboValue to which the specified attribute attaches.
    • Method Detail

      • resolveServerStartVSZeroSecondsFinish

        public boolean resolveServerStartVSZeroSecondsFinish()
                                                      throws MXException,
                                                             java.rmi.RemoteException
        If the start date with zeroed SECONDS and MILLISECONDS is equal to the finish date, then the finish date is set equal to the finish date. As a result, validation to insure that the start date precedes or is equal to the finish date will succeed.
        Throws:
        MXException
        java.rmi.RemoteException