public class ReorderSet extends MboSet implements ReorderSetRemote
Modifier and Type | Field and Description |
---|---|
MRRemote |
mrPassedIn
A Hashtable to keep track of used funds for each used blanket contracts during
this reorder process.
|
java.lang.String |
mutexOrg |
java.lang.String |
mutexSite
Site and Org ID.
|
java.lang.String |
mutexType
The type of this reorder set.
|
java.util.Vector |
warnings
A vector of warning warnings.
|
fetchStopLimitEnabled, LOOKUPMAXROW, maxSorterSize, mboCountCleanuplist, perfStats, strNoBaseLangValueEntered
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 |
---|
ReorderSet(MboServerInterface ms)
Construct the ReorderSet
|
Modifier and Type | Method and Description |
---|---|
void |
addWarning(MXApplicationException e)
Adds one warning to the list of warning exceptions.
|
void |
cancelReorder()
Cancel the reorder process.
|
ReorderSetRemote |
decideVendorAndCost(boolean groupByVendor,
boolean considerContract,
int allowanceDays)
Processing vendor and cost for each reorder item.
|
void |
deleteNullOrderUnit(UserInfo userInfo,
java.lang.String siteID)
Delete records from ReorderPad if the order unit is null.
|
java.lang.Object[] |
getReorderResult()
Get the information that reflects either the preview or the final
reorder result.
|
java.util.Vector |
getReorderWarnings()
Returns a vector of MXApplicationExceptions.
|
void |
monitorLock(java.lang.String siteID)
Spawn a thread to sleep the amount of time specified in mxserver.properties'
mxe.reorder.previewtimeout, and wake up to check if the reorder is being performed
on the request locked by the specified reordermutex record.
|
void |
processQuantity(int allowanceDays,
boolean ignoreReorderPoint) |
void |
reorder() |
void |
reorder(boolean groupByVendor,
boolean considerContract)
This method generates PRs and/or POs for the items in the reorder set.
|
void |
setInsertDate(java.lang.Object parent,
java.util.Date date) |
void |
setKey(java.lang.Object parent,
java.lang.String key,
java.lang.String type,
java.lang.String siteID,
java.lang.String orgID)
Determines what type of reorder request this is and what the key is
to the mutex entry in the mutex table if it has one.
|
void |
setUserName(java.lang.Object parent,
java.lang.String theUserName)
Determines who the user is who placed this reorder request.
|
void |
setViewOnly(java.lang.Object parent,
boolean viewOnlyFlag)
Set the view only flag of this reorder set.
|
void |
useAgreement(boolean useA) |
abortSql, add, add, addAtEnd, addAtEnd, addAtIndex, addAtIndex, addFakeAtEnd, addFederatedMboToSorter, addSubQbe, addSubQbe, addSubQbe, addSubQbe, addToEndOfSelectStatement, addWarning, addWarnings, appendToWhere, applyRowSecurity, avg, canAdd, 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, fireEventsAfterDB, fireEventsAfterDBCommit, 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, getUserAndQbeWhere, getUserInfo, getUserName, getUserPrefWhere, 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, remove, reset, resetForRefreshOnSave, resetQbe, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, rollbackTransaction, save, 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, verifyESig
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
abortSql, add, add, addAtEnd, addAtEnd, addAtIndex, 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, getUserAndQbeWhere, 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, remove, reset, resetQbe, resetWithSelection, rollback, rollbackToCheckpoint, rollbackToCheckpoint, save, 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, fireEventsAfterDB, fireEventsAfterDBCommit, fireEventsBeforeDB, rollbackTransaction, saveTransaction, undoTransaction, validateTransaction
public java.lang.String mutexType
public java.lang.String mutexSite
public java.lang.String mutexOrg
public MRRemote mrPassedIn
public java.util.Vector warnings
public ReorderSet(MboServerInterface ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void processQuantity(int allowanceDays, boolean ignoreReorderPoint) throws MXException, java.rmi.RemoteException
processQuantity
in interface ReorderSetRemote
MXException
java.rmi.RemoteException
processQuantity(int, boolean)
public void cancelReorder() throws MXException, java.rmi.RemoteException
getReorderSet()
,
getReorderSetForMR()
,
and getReorderSetForDirectOrderOnly()
methods.
It clears the exclusive lock for this reorder if there is one and if it is a request from MR,
the entries in the reorder table will also be removed.cancelReorder
in interface ReorderSetRemote
none
- none
MXException
java.rmi.RemoteException
cancelReorder()
public ReorderSetRemote decideVendorAndCost(boolean groupByVendor, boolean considerContract, int allowanceDays) throws MXException, java.rmi.RemoteException
Reorder.processVendorAndCost(boolean)
for detail.decideVendorAndCost
in interface ReorderSetRemote
groupByVendor
- Indicates if generated PR/POs needs to be grouped by vendors. If it is true,
different items reordered from the same vendors will be different PR/PO
lines on the same PR/PO.considerContract
- True if vendor contract is considered.none
MXException
java.rmi.RemoteException
Reorder#processVendorAndCost(boolean)
public void reorder(boolean groupByVendor, boolean considerContract) throws MXException, java.rmi.RemoteException
reorder
in interface ReorderSetRemote
groupByVendor
- True to genreate PRs grouped by vendor. If groupByVendor is true, each PR is generated for one blanket contract for a vendor.
Multiple PRLines will be inserted. If groupByVendor is false, One PR is
generated for one reorder item.considerContract
- booleannone
MXException
java.rmi.RemoteException
reorder(boolean, boolean)
public void setKey(java.lang.Object parent, java.lang.String key, java.lang.String type, java.lang.String siteID, java.lang.String orgID) throws MXException, java.rmi.RemoteException
parent
- Identifies the caller.theStoreRoom
- The storeroom. ReorderServiceRemote.REORDERONLY if it is direct order only.key
- According to the type, the key can be location, mrnum or even blank if it is direct order
only.type
- The type can be "DIRECTORDER", "STOREROOM", "STOREROOMDIRECTORDER", and "MR".MXApplicationException
- GROUP | KEY | REASON | |
---|---|---|---|
reorder | InvalidSetStoreRoom | if parent is not serviceRemote |
MXException
java.rmi.RemoteException
public void setInsertDate(java.lang.Object parent, java.util.Date date) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setUserName(java.lang.Object parent, java.lang.String theUserName) throws MXException, java.rmi.RemoteException
parent
- Identifies the caller of this function.theUserName
- The user name for this reorder.MXApplicationException
- GROUP | KEY | REASON | |
---|---|---|---|
reorder | InvalidSetUserName | if parent is not serviceRemote |
MXException
java.rmi.RemoteException
public void setViewOnly(java.lang.Object parent, boolean viewOnlyFlag) throws MXException, java.rmi.RemoteException
parent
- Identifies the caller of this functionviewOnlyFlag
- View only flag.MXApplicationException
- GROUP | KEY | REASON | |
---|---|---|---|
reorder | InvalidSetViewOnly | if parent is not serviceRemote |
MXException
java.rmi.RemoteException
public void addWarning(MXApplicationException e) throws java.rmi.RemoteException
addWarning
in interface ReorderSetRemote
e
- MXApplication exception, which is the warning exception should be reported to the user
but shouldn't throw.none
java.rmi.RemoteException
addWarning(MXApplicationException)
public java.util.Vector getReorderWarnings() throws java.rmi.RemoteException
getReorderWarnings
in interface ReorderSetRemote
none
- none
java.rmi.RemoteException
getReorderWarnings()
public void useAgreement(boolean useA) throws java.rmi.RemoteException
useAgreement
in interface ReorderSetRemote
java.rmi.RemoteException
useAgreement(boolean)
public void reorder() throws MXException, java.rmi.RemoteException
reorder
in interface ReorderSetRemote
MXException
java.rmi.RemoteException
reorder()
public java.lang.Object[] getReorderResult() throws java.rmi.RemoteException
getReorderResult
in interface ReorderSetRemote
java.rmi.RemoteException
getReorderResult()
public void monitorLock(java.lang.String siteID) throws MXException, java.rmi.RemoteException
monitorLock
in interface ReorderSetRemote
MXException
java.rmi.RemoteException
monitorLock(String)
public void deleteNullOrderUnit(UserInfo userInfo, java.lang.String siteID) throws MXException, java.rmi.RemoteException
deleteNullOrderUnit
in interface ReorderSetRemote
userInfo
- UserInfo object of whom is performing this operation.siteID
- Site.MXException
java.rmi.RemoteException
ReorderItemsSet#execute()