psdi.app.labor

Interface LaborRemote

    • Method Detail

      • getUserNameForLabor

        java.lang.String getUserNameForLabor()
                                      throws MXException,
                                             java.rmi.RemoteException
        Return the username for the labor
        Returns:
        Return the user name for the labor.
        Throws:
        MXException
        java.rmi.RemoteException
      • zeroYTD

        void zeroYTD(boolean bReported,
                     boolean bOvertime,
                     boolean bOTRefused)
              throws MXException,
                     java.rmi.RemoteException
        Zeros the selected YTD Fields for either the Current Query (append sWhere) or the Current Record (append the key field)
        Throws:
        MXException
        java.rmi.RemoteException
      • associateLoc

        void associateLoc(java.lang.String loc)
                   throws MXException,
                          java.rmi.RemoteException
        This method gets called to associate selected location for the current labor record
        Throws:
        MXException
        java.rmi.RemoteException
      • setWorkHrs

        void setWorkHrs(java.util.Date workdate)
                 throws MXException,
                        java.rmi.RemoteException
        Sets the available hours for the 7 dayN attributes (all non-persistent). This method fetches the eligible hours from the corresponding person object and subtracts the hours already consumed by assignments.
        Throws:
        MXException
        java.rmi.RemoteException
      • getServerDTFromClientDT

        java.util.Date getServerDTFromClientDT(java.util.Date clientDateTime,
                                               java.util.GregorianCalendar scratchCal)
                                        throws MXException,
                                               java.rmi.RemoteException
        Generates a datetime in the server time zone from a datetime in the client time zone, using previously calculated zone offsets.
        Throws:
        MXException
        java.rmi.RemoteException
      • getClientDTFromServerDT

        java.util.Date getClientDTFromServerDT(java.util.Date serverDateTime,
                                               java.util.GregorianCalendar scratchCal)
                                        throws MXException,
                                               java.rmi.RemoteException
        Generates a datetime in the client time zone from a datetime in the server time zone, using previously calculated zone offsets.
        Throws:
        MXException
        java.rmi.RemoteException
      • getWPEndDateTime

        java.util.Date getWPEndDateTime(MboRemote WorkTimeMbo,
                                        java.util.Date wpStartDateTime,
                                        java.util.GregorianCalendar scratchCal,
                                        AvailCalc availCalc)
                                 throws MXException,
                                        java.rmi.RemoteException
        Gets the end datetime for the workperiod. Deals with the case when the workperiod spans midnight.
        Throws:
        MXException
        java.rmi.RemoteException
      • getDayNAssignmentSet

        MboSetRemote getDayNAssignmentSet(MboRemote theLaborMbo,
                                          java.util.Date wpStartDateTime,
                                          java.util.Date wpEndDateTime)
                                   throws MXException,
                                          java.rmi.RemoteException
        Fetch the mboset of those assignments for this laborcode that start within the working time of the dayN under consideration.
        Throws:
        MXException
        java.rmi.RemoteException
      • getAssignedHours

        double getAssignedHours(boolean insideCurrentDateWorkingTime,
                                java.util.Date wpStartDateTime,
                                java.util.Date wpEndDateTime,
                                MboSetRemote dayNAssignmentSet)
                         throws MXException,
                                java.rmi.RemoteException
        Sums up the assigned hours of the assignments in the assignment set.
        Throws:
        MXException
        java.rmi.RemoteException
      • getServerDateColumn

        java.util.Date[] getServerDateColumn()
                                      throws MXException,
                                             java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • setServerDateColumn

        void setServerDateColumn(java.util.Date[] newDateColumn)
                          throws MXException,
                                 java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • checkCalendarAndShift

        void checkCalendarAndShift()
                            throws MXException,
                                   java.rmi.RemoteException
        This method checks whether this labor has a calendar and a shift associated with it. If not, no calendar exceptions may be added to the modavail table through the Modify Availability dialog in Assignment Manager.
        Throws:
        MXException
        java.rmi.RemoteException
      • calculateAvailabilityData

        void calculateAvailabilityData()
                                throws MXException,
                                       java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • getEligibleHours

        double[] getEligibleHours()
                           throws MXException,
                                  java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException