public class LaborService extends AppService implements LaborServiceRemote, MboConstants
critISCRAFT, critISLABOR
ALLROWS, CHANGEDBY_USER, COUNT_ADDITIONS, COUNT_AFTERSAVE, COUNT_DATABASE, COUNT_DELETED, COUNT_EXISTING, DBCONFIG, DELAYVALIDATION, DELAYVALIDATIONONLY, DISCARDABLE, GOTCOMPLETEWHERE, HIDDEN, NO_RELATEDMBOS_OF_OWNERSCHILDREN_FETCH, NOACCESSCHECK, NOACTION, NOADD, NOCOMMIT, NODELETE, NONE, NOOVERWRITE, NOSAVE, NOSETVALUE, NOUPDATE, NOVALIDATION, NOVALIDATION_AND_NOACTION, NOVALIDATION_AND_NOACTION_ALLOWCROSSOVER, READONLY, REBUILD, REQUIRED, SAMEVALUEVALIDATION, SETBYPARENT, USER
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
LaborService() |
LaborService(MXServer mxServer) |
Modifier and Type | Method and Description |
---|---|
void |
createInvoiceForLabTrans(MboRemote labTransMbo,
UserInfo userInfo)
This method should only be used by MEA to create invoice from a labor transaction.
|
void |
createServiceReceipts(UserInfo userinfo,
MboRemote forLabor,
boolean createSummary,
java.util.Date startDate,
java.util.Date endDate)
Create service receipts for a single labor.
|
void |
createServiceReceipts(UserInfo userinfo,
java.util.Vector forLabor,
boolean createSummary,
java.util.Date startDate,
java.util.Date endDate)
Create service receipts for a list of labor.
|
void |
destroy()
Destroy the LabTransListener
|
MboSetRemote |
getServReceiptSet(UserInfo ui,
java.lang.String ponum)
Returns a set of ServRecTrans records that are yet to be approved.
|
void |
init()
Initialization
|
void |
initCriteriaList(java.util.Hashtable criteriaTable)
Criteria defined for the LaborService object:
ISCRAFT - all laborcodes where isCraft='Y'
ISLABOR - all labor laborcodes, where isCraft is false
|
void |
updateHours(UserInfo userinfo,
java.lang.String laborcode,
java.lang.String orgid,
double regHours,
double otHours)
Service method to update the regular and year to date hours on a labor record.
|
checkSecurity, configure, freeDBConnection, freeMboSet, getCriteria, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, isAppService, isRunning, isSingletonService, restart, setProxy, setRunning, setURL, verifyUser, verifyUser
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUser
isAppService, isSingletonService, restart
public LaborService() throws java.rmi.RemoteException
java.rmi.RemoteException
public LaborService(MXServer mxServer) throws java.rmi.RemoteException
srvEnv
- -- the "Server Environment" this Service is being
created in.java.rmi.RemoteException
public void init()
init
in interface Service
init
in class AppService
This listener gets setup.
public void destroy()
destroy
in interface Service
destroy
in class AppService
AppService.destroy()
public void initCriteriaList(java.util.Hashtable criteriaTable) throws MXException, java.rmi.RemoteException
initCriteriaList
in class AppService
MXException
java.rmi.RemoteException
public MboSetRemote getServReceiptSet(UserInfo ui, java.lang.String ponum) throws MXException, java.rmi.RemoteException
getServReceiptSet
in interface LaborServiceRemote
MXException
java.rmi.RemoteException
getServReceiptSet(psdi.security.UserInfo, java.lang.String)
public final void createServiceReceipts(UserInfo userinfo, MboRemote forLabor, boolean createSummary, java.util.Date startDate, java.util.Date endDate) throws MXException, java.rmi.RemoteException
createServiceReceipts
in interface LaborServiceRemote
MXException
java.rmi.RemoteException
createServiceReceipts(UserInfo, Vector, boolean, Date, Date)
public void createServiceReceipts(UserInfo userinfo, java.util.Vector forLabor, boolean createSummary, java.util.Date startDate, java.util.Date endDate) throws MXException, java.rmi.RemoteException
createServiceReceipts
in interface LaborServiceRemote
userinfo
- Used to access the databaseforLabor
- 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.MXApplicationException
- Thrown with "Labor","noservreceipt" if no receipts can be
created from the given parameters.MXException
java.rmi.RemoteException
createServiceReceipts(UserInfo, Vector, boolean, Date, Date)
public void createInvoiceForLabTrans(MboRemote labTransMbo, UserInfo userInfo) throws MXException, java.rmi.RemoteException
createInvoiceForLabTrans
in interface LaborServiceRemote
labTransMbo
- userInfo
- MXException
java.rmi.RemoteException
createInvoiceForLabTrans(psdi.mbo.MboRemote, psdi.security.UserInfo)
public void updateHours(UserInfo userinfo, java.lang.String laborcode, java.lang.String orgid, double regHours, double otHours) throws MXException, java.rmi.RemoteException
userinfo
- -- A UserInfo object to be used for getting a LABOR mboset from the MXServerlaborcode
- -- The laborcode to updateorgid
- -- The org level laborcode to updateregHours
- -- a quantity of regular hours to add to the labors reported hoursotHours
- -- a quantity of over time hours to add to the labors year to date over time hoursMXException
java.rmi.RemoteException