public class AssignmentSet extends MboSet implements AssignmentSetRemote, MboSetListenable
| Modifier and Type | Field and Description |
|---|---|
boolean |
showPage |
fetchStopLimitEnabled, LOOKUPMAXROW, maxSorterSize, mboCountCleanuplist, perfStats, strNoBaseLangValueEnteredASSIGNLABOR, CRAFT, CRAFTSKILL, DISPATCHASSIGN, LABOR, WORKORDER, WPLABORINSERTONLY, INSERTORUPDATE, UPDATEONLYALLROWS, 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 |
|---|
AssignmentSet(MboServerInterface ms)
Construct the set of assignment.
|
| Modifier and Type | Method and Description |
|---|---|
MboRemote |
addAtIndex(long accessModifier,
int index)
Method overridden to support MboSet Listeners.
|
void |
addListener(MboSetListener l)
Add a listener to this MboSet.
|
java.lang.String |
addToUserPrefWhere()
Add this where clause to the MboSet's getUserPrefWhere()
|
void |
assignCrew(AMCrewRemote crewMbo,
java.lang.String theDay) |
void |
assignLabor(LaborCraftRateRemote laborCraftRateMbo,
java.lang.String theDay)
This method assigns the selected labor to the selected assignments at those
dates and times when hours are available, starting with the earliest available
time on the selected day.
|
void |
assignmentsForCrewAndWorkOrder(java.lang.String amcrew,
long[] workOrderIds)
Sets this AssignmentSet to assignments assigned to the crew, ordered by the
Schedule date.
|
void |
assignmentsForLaborCode(java.lang.String labor)
Sets this AssignmentSet to assignments assigned to the laborcode, ordered by the
Schedule date.
|
void |
assignmentsForLaborCodeAndWorkOrder(java.lang.String labor,
java.lang.String woIDs)
Sets this AssignmentSet to assignments assigned to the laborcode, ordered by the
Schedule date.
|
void |
canAdd()
Determines if the work order can add Asssignments.
|
MboSetRemote |
finishAssignment()
Finish the assignments -- loop through them and change their status to
"COMPLETE" one by one, which will trigger events in fldAssignStatus.
|
void |
fireEventsAfterDB(MXTransaction txn)
If we're doing something that involves an explicit save by the user, saving or deleting rows in
the Work List of Assignment Manager, where the objects are WMAssignment Mbos as opposed to regular
Assignments, this will set the main MboSet on the app back to being saved at this point in the
process; without this action, the WMAssignmentSet is removed from the transaction queue permanently,
its status is never advanced, and no further new rows in Assignment Manager can be saved.
|
void |
fireEventsAfterDBCommit(MXTransaction txn)
fire events for all mbos in the transaction after db commit.
|
java.lang.String |
getColumnValue(java.lang.String columnName) |
java.util.Date |
getEarliestDate()
Finds the earliest schedule date among the assigned or completed assignments in this AssignmentSet.
|
java.util.Date |
getFinishDate() |
java.util.Date |
getLatestDate()
Finds the latest finish date among the assigned or completed assignments in this AssignmentSet.
|
int |
getRescheduled() |
void |
getSevenDayWindow(CalendarViewSetRemote calendarViewSet)
Limits the AssignmentSet to those assignments that fall within the seven-day
range defined by the calendarViewSet fields.
|
int |
getUnassigned() |
java.lang.String |
getUserAndQbeWhere()
Returns the combined user where and QBE where clause in native SQL format.
|
java.lang.String |
getUserPrefWhere()
Override the MboSet getUserPrefWhere() to return a userpref where clause
which is appended to th existing whereClause.
|
MboSetRemote |
interruptAssignment()
Interrupt the assignments -- loop through them and change their status to
"INTERPT" one by one, which will trigger events in fldAssignStatus.
|
void |
remove(MboRemote mbo)
remove the child mbo need remove it from the childlookup.
|
void |
removeListener(MboSetListener l)
Remove a listener
|
void |
reportModifiedMbo(MboRemote modifiedMbo)
Assumes that the modified Mbo is a member of the set.
|
void |
save()
Sends changes to the database for all objects in the collection.
|
void |
setFinishDate(java.util.Date finishDate) |
void |
setRescheduled(int rescheduled) |
void |
setUnassigned(int unassigned) |
MboSetRemote |
startAssignment()
Start the assignments -- loop through them and change their status to "STARTED"
one by one, which will trigger events in fldAssignStatus.
|
abortSql, add, add, addAtEnd, addAtEnd, addAtIndex, addFakeAtEnd, addFederatedMboToSorter, addSubQbe, addSubQbe, addSubQbe, addSubQbe, addToEndOfSelectStatement, addWarning, addWarnings, appendToWhere, applyRowSecurity, avg, cancelAndClose, checkMethodAccess, checkMethodAccess, cleanup, clear, clearBatchedPreparedStmt, clearBatchedPreparedStmts, clearESigTransactionIdThread, clearESigTransIDForAdmin, clearIgnoredAutokeyAttrs, clearLongOpPipe, clearToBeSaved, clearTransactionReference, clearWarnings, close, commit, commitTransaction, copy, copy, copy, copyForDM, count, count, deleteAll, deleteAll, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemoveAll, deleteAndRemoveAll, determineRequiredFieldsFromERM, dump, earliestDate, enableMethod, executeBatch, fetchNext, findAllNullRequiredFields, findByIntegrationKey, findKey, fireEventsBeforeDB, forceDBSort, getAllowQualifiedRestriction, getAlwaysFlags, getAlwaysFlags, getApp, getAppAlwaysFieldFlags, getAppWhere, getAttrRestrictions, getBoolean, getByte, getBytes, getClientLocale, getClientTimeZone, getCompleteWhere, getCurrentPosition, getDate, getDBFetchMaxRows, getDefaultValue, getDefaultValueHash, getDouble, getERMEntity, getESigTransactionId, getExcludeMeFromPropagation, getFlags, getFloat, getIgnoredAutokeyAttrs, getInsertCompanySet, getInsertItemSet, getInsertOrg, getInsertSite, getInt, getJspDefaultValueHash, getKeyAttributes, getList, getList, getLong, getMaxAppsWhere, getMaxMessage, getMbo, getMbo, getMboForUniqueId, getMboLogger, getMboServer, getMboSetData, getMboSetData, getMboSetInfo, getMboSetRetainMboPositionData, getMboSetRetainMboPositionInfo, getMboSetValueData, getMboSetValueData, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMLFromClause, getMultiSiteWhere, getMXTransaction, getName, getOrderBy, getOwner, getParentApp, getPreparedStmt, getProfile, getProxy, getQbe, getQbe, getQbe, getQbeSiteAuthorization, getQbeWhere, getQualifiedWhere, getQueryTimeout, getRelationName, getRelationship, getRowRestrictions, getSecurityLogger, getSelection, getSelectionWhere, getSetOrderByForUI, getSharedMboSet, getSize, getSkipFirstNRows, getSqlLogger, getSQLOptions, getString, getTxnPropertyMap, getUserInfo, getUserName, getUserWhere, getUserWhere, getWarnings, getWhere, getZombie, handleMLMbo, handleMLMbo, hasMLQbe, hasQbe, hasWarnings, ignoreAutokeyAttr, ignoreAutokeyAttr, ignoreQbeExactMatchSet, incrementDeletedCount, init, init, initDataDictionary, isBasedOn, isClosed, isDeltaStorage, isDMDeploySet, isDMSkipFieldValidation, isEAuditFieldModified, isEmpty, isESigFieldModified, isESigNeeded, isFlagSet, isIgnoreQbeExactMatchSet, isLookup, isNull, isQbeCaseSensitive, isQbeExactMatch, isRetainMboPosition, isTableDomainLookup, latestDate, locateMbo, logESigVerification, logRowUpdatedException, max, min, moveFirst, moveLast, moveNext, movePrev, moveTo, moveToKey, newMboIndex, notExist, positionState, processML, remove, remove, reset, resetForRefreshOnSave, resetQbe, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, rollbackTransaction, save, save, save, saveMbos, saveTransaction, select, select, select, selectAll, setAllowQualifiedRestriction, setApp, setAppAlwaysFieldFlag, setAppWhere, setAutoKeyFlag, setDBFetchMaxRows, setDefaultOrderBy, setDefaultValue, setDefaultValue, setDefaultValues, setDefaultValues, setDMDeploySet, setDMSkipFieldValidation, setEAuditFieldModified, setERMEntity, setESigFieldModified, setExcludeMeFromPropagation, setFederatedResources, setFlag, setFlag, setFlags, setInsertCompanySet, setInsertItemSet, setInsertOrg, setInsertSite, setLastESigTransId, setLogLargFetchResultDisabled, setMboSetInfo, setMXTransaction, setNoNeedtoFetchFromDB, setOrderBy, setOrderByNVL, setOwner, setPreserveOrderByCase, setProxy, setQbe, setQbe, setQbe, setQbe, setQbe, setQbeCaseSensitive, setQbeCaseSensitive, setQbeExactMatch, setQbeExactMatch, setQbeOperatorOr, setQueryBySiteQbe, setQueryTimeout, setRelationName, setRelationship, setRequiedFlagsFromERM, setRetainMboPosition, setSetOrderByForUI, setSkipFirstNRows, setSQLOptions, setTableDomainLookup, setTxnPropertyMap, setupLongOpPipe, setUserWhere, setUserWhereAfterParse, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, setWhere, setWhereQbe, smartFill, smartFill, smartFind, smartFind, smartFind, smartFind, sort, splitOrderBy, startCheckpoint, startCheckpoint, sum, toBeSaved, undeleteAll, undoTransaction, unselect, unselect, unselect, unselectAll, useStoredQuery, validate, validateTransaction, verifyESigequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabortSql, add, add, addAtEnd, addAtEnd, addAtIndex, addFakeAtEnd, addSubQbe, addSubQbe, addSubQbe, addSubQbe, addWarning, addWarnings, checkMethodAccess, cleanup, clear, clearLongOpPipe, close, commit, copy, copy, copyForDM, count, count, deleteAll, deleteAll, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemove, deleteAndRemoveAll, deleteAndRemoveAll, determineRequiredFieldsFromERM, earliestDate, fetchNext, findAllNullRequiredFields, findByIntegrationKey, findKey, getApp, getAppAlwaysFieldFlags, getAppWhere, getCompleteWhere, getCurrentPosition, getDBFetchMaxRows, getDefaultValue, getERMEntity, getESigTransactionId, getExcludeMeFromPropagation, getFlags, getKeyAttributes, getList, getList, getMaxMessage, getMbo, getMbo, getMboForUniqueId, getMboSetData, getMboSetData, getMboSetInfo, getMboSetRetainMboPositionData, getMboSetRetainMboPositionInfo, getMboSetValueData, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMLFromClause, getMXTransaction, getName, getOrderBy, getOwner, getParentApp, getProfile, getQbe, getQbe, getQbe, getQbeWhere, getQueryTimeout, getRelationName, getRelationship, getSelection, getSelectionWhere, getSetOrderByForUI, getSize, getSQLOptions, getTxnPropertyMap, getUserInfo, getUserName, getUserWhere, getWarnings, getWhere, getZombie, hasMLQbe, hasQbe, hasWarnings, ignoreQbeExactMatchSet, incrementDeletedCount, init, isBasedOn, isDMDeploySet, isDMSkipFieldValidation, isEmpty, isESigNeeded, isFlagSet, isQbeCaseSensitive, isQbeExactMatch, isRetainMboPosition, latestDate, locateMbo, logESigVerification, max, min, moveFirst, moveLast, moveNext, movePrev, moveTo, newMboIndex, notExist, positionState, processML, remove, remove, reset, resetQbe, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, save, select, select, select, selectAll, setAllowQualifiedRestriction, setApp, setAppAlwaysFieldFlag, setAppWhere, setAutoKeyFlag, setDBFetchMaxRows, setDefaultOrderBy, setDefaultValue, setDefaultValue, setDefaultValues, setDMDeploySet, setDMSkipFieldValidation, setERMEntity, setESigFieldModified, setExcludeMeFromPropagation, setFlag, setFlag, setFlags, setInsertCompanySet, setInsertItemSet, setInsertOrg, setInsertSite, setLastESigTransId, setLogLargFetchResultDisabled, setMboSetInfo, setMXTransaction, setNoNeedtoFetchFromDB, setOrderBy, setOwner, setQbe, setQbe, setQbe, setQbe, setQbe, setQbeCaseSensitive, setQbeCaseSensitive, setQbeExactMatch, setQbeExactMatch, setQbeOperatorOr, setQueryBySiteQbe, setQueryTimeout, setRelationName, setRelationship, setRequiedFlagsFromERM, setRetainMboPosition, setSetOrderByForUI, setSQLOptions, setTableDomainLookup, setTxnPropertyMap, setupLongOpPipe, setUserWhere, setUserWhereAfterParse, setWhere, setWhereQbe, smartFill, smartFill, smartFind, smartFind, startCheckpoint, startCheckpoint, sum, toBeSaved, undeleteAll, unselect, unselect, unselect, unselectAll, useStoredQuery, validate, verifyESiggetBoolean, getByte, getBytes, getDate, getDouble, getFloat, getInt, getLong, getString, isNull, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNullcommitTransaction, fireEventsBeforeDB, rollbackTransaction, saveTransaction, undoTransaction, validateTransactionpublic AssignmentSet(MboServerInterface ms) throws MXException, java.rmi.RemoteException
ms - The MboServerInterface for AssignmentSet.MXExceptionjava.rmi.RemoteExceptionpublic void assignmentsForLaborCode(java.lang.String labor)
throws MXException,
java.rmi.RemoteException
assignmentsForLaborCode in interface AssignmentSetRemotelabor - The LaborCode to search for.MXExceptionjava.rmi.RemoteExceptionassignmentsForLaborCode(String labor)public void assignmentsForLaborCodeAndWorkOrder(java.lang.String labor,
java.lang.String woIDs)
throws MXException,
java.rmi.RemoteException
assignmentsForLaborCodeAndWorkOrder in interface AssignmentSetRemotelabor - The LaborCode to search for.MXExceptionjava.rmi.RemoteExceptionpsdi.app.workorder.AssignmentSet#assignmentsForLaborCodeAndWorkOrder(String labor, long[] workOrderId)public void assignmentsForCrewAndWorkOrder(java.lang.String amcrew,
long[] workOrderIds)
throws MXException,
java.rmi.RemoteException
assignmentsForCrewAndWorkOrder in interface AssignmentSetRemoteamcrew - The crew to search for.MXExceptionjava.rmi.RemoteExceptionpsdi.app.workorder.AssignmentSet#assignmentsForCrewAndWorkOrder(String amcrew, long workOrderId)public java.lang.String addToUserPrefWhere()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getUserPrefWhere()
getUserPrefWhere in class MboSetMXExceptionjava.rmi.RemoteExceptionpublic void canAdd()
throws MXException
canAdd in class MboSetMXApplicationException - Thrown with "workorder","ownerWoAssign" if
this set isn't owned by a work order. MXExceptionpublic MboRemote addAtIndex(long accessModifier, int index) throws MXException, java.rmi.RemoteException
addAtIndex in interface MboSetRemoteaddAtIndex in class MboSetaccessModifier - Determines whether an access check is made.index - Where to add the new Mbo. Zero is the beginning, while -1 will put the Mbo at
the end of the MboSet.MXExceptionjava.rmi.RemoteExceptionMboSet.getMboInstance(psdi.mbo.MboSet),
MboSet.addMbo(Mbo),
MboSet.addMbo(Mbo, int),
MboSet.moveTo(int)public void remove(MboRemote mbo) throws MXException, java.rmi.RemoteException
remove in interface MboSetRemoteremove in class MboSetMXExceptionjava.rmi.RemoteExceptionpublic void addListener(MboSetListener l)
addListener in interface MboSetListenablel - The listener to add.public void removeListener(MboSetListener l)
removeListener in interface MboSetListenablel - The listener to remove.public void reportModifiedMbo(MboRemote modifiedMbo) throws MXException, java.rmi.RemoteException
reportModifiedMbo in interface MboSetListenableMXExceptionjava.rmi.RemoteExceptionListeners are informed of the modified Mbo.public void getSevenDayWindow(CalendarViewSetRemote calendarViewSet) throws MXException, java.rmi.RemoteException
getSevenDayWindow in interface AssignmentSetRemoteMXExceptionjava.rmi.RemoteExceptionpublic void save()
throws MXException,
java.rmi.RemoteException
MboSetsave in interface MboSetRemotesave in class MboSetMXExceptionjava.rmi.RemoteExceptionMboSet.reset()public void fireEventsAfterDB(MXTransaction txn) throws MXException, java.rmi.RemoteException
fireEventsAfterDB in interface AssignmentSetRemotefireEventsAfterDB in interface TransactablefireEventsAfterDB in class MboSettxn - TransactionMXException - Error while committingjava.rmi.RemoteException - Network errorpublic int getRescheduled()
public int getUnassigned()
public void setRescheduled(int rescheduled)
public void setUnassigned(int unassigned)
public void assignLabor(LaborCraftRateRemote laborCraftRateMbo, java.lang.String theDay) throws MXException, java.rmi.RemoteException
assignLabor in interface AssignmentSetRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote startAssignment() throws MXException, java.rmi.RemoteException
startAssignment in interface AssignmentSetRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote interruptAssignment() throws MXException, java.rmi.RemoteException
interruptAssignment in interface AssignmentSetRemoteMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote finishAssignment() throws MXException, java.rmi.RemoteException
finishAssignment in interface AssignmentSetRemoteMXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getColumnValue(java.lang.String columnName)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.util.Date getFinishDate()
public void setFinishDate(java.util.Date finishDate)
public java.util.Date getEarliestDate()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.util.Date getLatestDate()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void assignCrew(AMCrewRemote crewMbo, java.lang.String theDay) throws MXException, java.rmi.RemoteException
assignCrew in interface AssignmentSetRemoteMXExceptionjava.rmi.RemoteExceptionassignCrew(AMCrewRemote, String)public java.lang.String getUserAndQbeWhere()
throws MXException,
java.rmi.RemoteException
MboSetgetUserAndQbeWhere in interface MboSetRemotegetUserAndQbeWhere in class MboSetMXExceptionjava.rmi.RemoteExceptionpublic void fireEventsAfterDBCommit(MXTransaction txn) throws MXException, java.rmi.RemoteException
MboSetfireEventsAfterDBCommit in interface TransactablefireEventsAfterDBCommit in class MboSettxn - TransactionMXException - Error while committingjava.rmi.RemoteException - Network error