public class AssignmentSet extends MboSet implements AssignmentSetRemote, MboSetListenable
Modifier and Type | Field and Description |
---|---|
boolean |
showPage |
fetchStopLimitEnabled, LOOKUPMAXROW, maxSorterSize, mboCountCleanuplist, perfStats, strNoBaseLangValueEntered
ASSIGNLABOR, CRAFT, CRAFTSKILL, DISPATCHASSIGN, LABOR, WORKORDER, WPLABOR
INSERTONLY, INSERTORUPDATE, UPDATEONLY
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 |
---|
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 |
assignmentsForLaborCode(java.lang.String labor)
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.
|
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.
|
void |
getSevenDayWindow(CalendarViewSetRemote calendarViewSet)
Limits the AssignmentSet to those assignments that fall within the seven-day
range defined by the calendarViewSet fields.
|
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) |
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, addSubQbe, addSubQbe, addSubQbe, addSubQbe, addToEndOfSelectStatement, addWarning, addWarnings, appendToWhere, applyRowSecurity, cancelAndClose, checkMethodAccess, checkMethodAccess, cleanup, clear, 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, fetchNext, findAllNullRequiredFields, findByIntegrationKey, findKey, fireEventsAfterDBCommit, fireEventsBeforeDB, 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, getMboSetData, getMboSetData, getMboSetInfo, getMboSetRetainMboPositionData, getMboSetRetainMboPositionInfo, getMboSetValueData, getMboSetValueData, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMLFromClause, getMultiSiteWhere, getMXTransaction, getName, getOrderBy, getOwner, getParentApp, 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, 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, setFlag, setFlag, setFlags, setInsertCompanySet, setInsertItemSet, setInsertOrg, setInsertSite, setLastESigTransId, setLogLargFetchResultDisabled, setMboSetInfo, setMXTransaction, setNoNeedtoFetchFromDB, setOrderBy, 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, verifyESig
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
abortSql, 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, 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, verifyESig
getBoolean, 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, setValueNull
commitTransaction, fireEventsAfterDBCommit, fireEventsBeforeDB, rollbackTransaction, saveTransaction, undoTransaction, validateTransaction
public AssignmentSet(MboServerInterface ms) throws MXException, java.rmi.RemoteException
ms
- The MboServerInterface for AssignmentSet.MXException
java.rmi.RemoteException
public void assignmentsForLaborCode(java.lang.String labor) throws MXException, java.rmi.RemoteException
assignmentsForLaborCode
in interface AssignmentSetRemote
labor
- The LaborCode to search for.MXException
java.rmi.RemoteException
assignmentsForLaborCode(String labor)
public java.lang.String addToUserPrefWhere() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String getUserPrefWhere()
getUserPrefWhere
in class MboSet
MXException
java.rmi.RemoteException
public void canAdd() throws MXException
canAdd
in class MboSet
MXApplicationException
- Thrown with "workorder","ownerWoAssign" if
this set isn't owned by a work order. MXException
public MboRemote addAtIndex(long accessModifier, int index) throws MXException, java.rmi.RemoteException
addAtIndex
in interface MboSetRemote
addAtIndex
in class MboSet
accessModifier
- 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.MXException
java.rmi.RemoteException
MboSet.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 MboSetRemote
remove
in class MboSet
MXException
java.rmi.RemoteException
public void addListener(MboSetListener l)
addListener
in interface MboSetListenable
l
- The listener to add.public void removeListener(MboSetListener l)
removeListener
in interface MboSetListenable
l
- The listener to remove.public void reportModifiedMbo(MboRemote modifiedMbo) throws MXException, java.rmi.RemoteException
reportModifiedMbo
in interface MboSetListenable
MXException
java.rmi.RemoteException
Listeners are informed of the modified Mbo.
public void getSevenDayWindow(CalendarViewSetRemote calendarViewSet) throws MXException, java.rmi.RemoteException
getSevenDayWindow
in interface AssignmentSetRemote
MXException
java.rmi.RemoteException
public void save() throws MXException, java.rmi.RemoteException
MboSet
save
in interface MboSetRemote
save
in class MboSet
MXException
java.rmi.RemoteException
MboSet.reset()
public void fireEventsAfterDB(MXTransaction txn) throws MXException, java.rmi.RemoteException
fireEventsAfterDB
in interface AssignmentSetRemote
fireEventsAfterDB
in interface Transactable
fireEventsAfterDB
in class MboSet
txn
- TransactionMXException
- Error while committingjava.rmi.RemoteException
- Network errorpublic void assignLabor(LaborCraftRateRemote laborCraftRateMbo, java.lang.String theDay) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboSetRemote startAssignment() throws MXException, java.rmi.RemoteException
startAssignment
in interface AssignmentSetRemote
MXException
java.rmi.RemoteException
public MboSetRemote interruptAssignment() throws MXException, java.rmi.RemoteException
interruptAssignment
in interface AssignmentSetRemote
MXException
java.rmi.RemoteException
public MboSetRemote finishAssignment() throws MXException, java.rmi.RemoteException
finishAssignment
in interface AssignmentSetRemote
MXException
java.rmi.RemoteException
public java.lang.String getColumnValue(java.lang.String columnName) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Date getFinishDate()
public void setFinishDate(java.util.Date finishDate)
public java.util.Date getEarliestDate() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Date getLatestDate() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void assignCrew(AMCrewRemote crewMbo, java.lang.String theDay) throws MXException, java.rmi.RemoteException
assignCrew
in interface AssignmentSetRemote
MXException
java.rmi.RemoteException
assignCrew(AMCrewRemote, String)
public java.lang.String getUserAndQbeWhere() throws MXException, java.rmi.RemoteException
MboSet
getUserAndQbeWhere
in interface MboSetRemote
getUserAndQbeWhere
in class MboSet
MXException
java.rmi.RemoteException