psdi.app.labor

Class LaborService

    • Constructor Detail

      • LaborService

        public LaborService()
                     throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • LaborService

        public LaborService(MXServer mxServer)
                     throws java.rmi.RemoteException
        Parameters:
        srvEnv - -- the "Server Environment" this Service is being created in.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • initCriteriaList

        public void initCriteriaList(java.util.Hashtable criteriaTable)
                              throws MXException,
                                     java.rmi.RemoteException
        Criteria defined for the LaborService object: ISCRAFT - all laborcodes where isCraft='Y' ISLABOR - all labor laborcodes, where isCraft is false
        Overrides:
        initCriteriaList in class AppService
        Throws:
        MXException
        java.rmi.RemoteException
      • createServiceReceipts

        public void createServiceReceipts(UserInfo userinfo,
                                          java.util.Vector forLabor,
                                          boolean createSummary,
                                          java.util.Date startDate,
                                          java.util.Date endDate)
                                   throws MXException,
                                          java.rmi.RemoteException
        Create service receipts for a list of labor.
        Specified by:
        createServiceReceipts in interface LaborServiceRemote
        Parameters:
        userinfo - Used to access the database
        forLabor - The labor codes to generate service receipts for. Vector of MboRemote.
        createSummary - Flag indicating that combined receipts should be created for the same PO+POLine. Otherwise a service receipt will be created for each labor transaction.
        startDate - Defines the start of a date range. Can be null.
        endDate - The end of the date range. Can be null.
        Throws:
        MXApplicationException - Thrown with "Labor","noservreceipt" if no receipts can be created from the given parameters.
        MXException
        java.rmi.RemoteException
        See Also:
        LaborService.createServiceReceipts(UserInfo, Vector, boolean, Date, Date)
      • updateHours

        public void updateHours(UserInfo userinfo,
                                java.lang.String laborcode,
                                java.lang.String orgid,
                                double regHours,
                                double otHours)
                         throws MXException,
                                java.rmi.RemoteException
        Service method to update the regular and year to date hours on a labor record. This is a synchronized method designed to prevent more than one LabTransSet from updating the labor row at a time.
        Parameters:
        userinfo - -- A UserInfo object to be used for getting a LABOR mboset from the MXServer
        laborcode - -- The laborcode to update
        orgid - -- The org level laborcode to update
        regHours - -- a quantity of regular hours to add to the labors reported hours
        otHours - -- a quantity of over time hours to add to the labors year to date over time hours
        Throws:
        MXException
        java.rmi.RemoteException