public class LaborService extends AppService implements LaborServiceRemote, MboConstants
critISCRAFT, critISLABORALLROWS, 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, USERAPPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGERappenderPrefix, 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, verifyUserequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonService, restartpublic LaborService()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic LaborService(MXServer mxServer) throws java.rmi.RemoteException
srvEnv - -- the "Server Environment" this Service is being
created in.java.rmi.RemoteExceptionpublic void init()
init in interface Serviceinit in class AppServiceThis listener gets setup.public void destroy()
destroy in interface Servicedestroy in class AppServiceAppService.destroy()public void initCriteriaList(java.util.Hashtable criteriaTable)
throws MXException,
java.rmi.RemoteException
initCriteriaList in class AppServiceMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote getServReceiptSet(UserInfo ui, java.lang.String ponum) throws MXException, java.rmi.RemoteException
getServReceiptSet in interface LaborServiceRemoteMXExceptionjava.rmi.RemoteExceptiongetServReceiptSet(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 LaborServiceRemoteMXExceptionjava.rmi.RemoteExceptioncreateServiceReceipts(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 LaborServiceRemoteuserinfo - 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.MXExceptionjava.rmi.RemoteExceptioncreateServiceReceipts(UserInfo, Vector, boolean, Date, Date)public void createInvoiceForLabTrans(MboRemote labTransMbo, UserInfo userInfo) throws MXException, java.rmi.RemoteException
createInvoiceForLabTrans in interface LaborServiceRemotelabTransMbo - userInfo - MXExceptionjava.rmi.RemoteExceptioncreateInvoiceForLabTrans(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 hoursMXExceptionjava.rmi.RemoteException