psdi.app.labor.virtual

Class ConfirmLabtrans

    • Constructor Detail

      • ConfirmLabtrans

        public ConfirmLabtrans(MboSet ms)
                        throws MXException,
                               java.rmi.RemoteException
        Constructor
        Parameters:
        ms - The ConfirmLabtrans MboSet.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Sets up a new TKChangeStatus object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • setValuesForRegularHrs

        public void setValuesForRegularHrs()
                                    throws MXException,
                                           java.rmi.RemoteException
        This will set the values for regularhrs and othrs when there is a change in the date and time values
        Throws:
        MXException
        java.rmi.RemoteException
      • getDatesDiff

        public double getDatesDiff()
                            throws MXException,
                                   java.rmi.RemoteException
        Return the time difference between the startdate, starttime, finishdate and finishtime.
        Throws:
        MXException
        java.rmi.RemoteException
      • getFinishDateTime

        public java.util.Date getFinishDateTime()
                                         throws MXException,
                                                java.rmi.RemoteException
        Return the time difference between the startdate, starttime, finishdate and finishtime.
        Throws:
        MXException
        java.rmi.RemoteException
      • getTotalHrsinMinutes

        public int getTotalHrsinMinutes()
                                 throws MXException,
                                        java.rmi.RemoteException
        Return the totalhrs in minutes for regularhrs and othrs
        Throws:
        MXException
        java.rmi.RemoteException
      • setFinishDateTime

        public void setFinishDateTime()
                               throws MXException,
                                      java.rmi.RemoteException
        set finishdate and time
        Throws:
        MXException
        java.rmi.RemoteException
      • checkDates

        public void checkDates()
                        throws MXException,
                               java.rmi.RemoteException
        Check finishdate, finishtime, startdate and starttime validity. If the startdate is later than the finishdate or if the combination of startdate and starttime is later than than the combination of finishdate and finishtime, then throw the exception.
        Throws:
        MXException
        java.rmi.RemoteException
      • validateDateTime

        public java.util.Date validateDateTime(java.util.Date date,
                                               java.util.Date time)
                                        throws MXException,
                                               java.rmi.RemoteException
        This method will take two dates as a parameters and remove the date section from one and combine it with the time section from the other. The return value will be a new date/time object.
        Parameters:
        time -
        date -
        Throws:
        MXException
        java.rmi.RemoteException
      • validateDateTimeWithTimeZone

        public java.util.Date validateDateTimeWithTimeZone(java.util.Date date,
                                                           java.util.Date time)
                                                    throws MXException,
                                                           java.rmi.RemoteException
        This method will take two dates as a parameters and remove the date section from one and combine it with the time section from the other. The return value will be a new date/time object.
        Parameters:
        time -
        date -
        Throws:
        MXException
        java.rmi.RemoteException
      • getStartDateTime

        public java.util.Date getStartDateTime()
                                        throws MXException,
                                               java.rmi.RemoteException
        Return the time difference between the startdate, starttime, finishdate and finishtime.
        Throws:
        MXException
        java.rmi.RemoteException