public class MatUseTransSet extends MboSet implements MatUseTransSetRemote, MboSetListenable
Relationships to other MboSets:
Relationship Name | MboSet | Relationship |
---|---|---|
INVENTORY | INVENTORY | itemnum = matusetrans.itemnum and location = matusetrans.storeloc |
ITEM | ITEM | itemnum = matusetrans.itemnum |
fetchStopLimitEnabled, LOOKUPMAXROW, maxSorterSize, mboCountCleanuplist, perfStats, strNoBaseLangValueEntered
ALTITEM, ASSET, CURRENT_DATE, FROMINVENTORYSTATUS, INVBALANCES_BIN, INVBALANCES_BINLOT, INVBALANCES_BINNOLOT, INVBALANCES_NOBINLOT, INVBALANCES_NOBINNOLOT, INVENTORY, INVENTORY_BIN, INVENTORY_NOBIN, INVRESERVE, ISSUE, ITEM, LAST_NDAYS, LOCATION, NO_SELECTION, RANGE, RETURNS, ROTASSET, ROTATINGASSET, STORELOC, TOINVENTORY, WORKORDER, WOTASK, YEAR_TO_DATE
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 |
---|
MatUseTransSet(MboServerInterface ms)
Construct the set
|
Modifier and Type | Method and Description |
---|---|
MboRemote |
addAtIndex(long accessModifier,
int index)
Method overridden to support MboSet Listeners.
|
java.util.Date |
addDates(java.util.Date date,
int days)
Adds or subtracts days from the given date.
|
void |
addDeltaCurbal(MboRemote invBal,
double quantity,
MboRemote currentMatUse)
A method to accumulate curbal for the matusetrans objects added to this set.
|
void |
addDeltaIssueYTD(MboRemote inventory,
double quantity,
MboRemote currentMatUse)
A method to accumulate issue quantity for the matusetrans objects added to this set.
|
void |
addListener(MboSetListener l)
Add a listener to this MboSet.
|
MboRemote |
addMatUseFromInvReserve(MboRemote invRes)
Private method to add and copy necessary information from InvReserve to MatUseTrans.
|
void |
canAdd()
Determines if material transactions can be created.
|
void |
clearVectors()
12-14015/IV25282: after MatUseTransListener.postCommitAction, clear all cthe vecotrs holding inventory
retlated to inventory current balances - so if user does issues mutile times without leaving the
Issues and Transfers application, inventory balance is updated incorrectly.
|
void |
copyInvReserveSet(MboSetRemote invReserveSet)
Loops thru the passed InvReserveSet and add new MatUseTrans based on each InvReserve selected.
|
void |
copyMatUseTransSet(MboSetRemote matUseSet)
Loops thru the passed MatUseTransSet(ISSUE type) and add new MatUseTrans(RETURN type) based on each MatUseTrans selected.
|
void |
copySparePartSet(MboSetRemote sparePartSet)
Loops thru the passed SparePartSet and adds new MatUseTrans based on each SparePart selected.
|
int |
getDateRange()
Gets the type of date range setting, set by the user.
|
java.util.Date |
getEndDate()
Gets the end date set by the user.
|
java.util.Vector |
getInvReserveVector() |
int |
getLastNDays()
Gets the last number of days, set by the user.
|
java.util.Date |
getStartDate()
Get the start date set by the user.
|
java.util.Vector |
getUncommittedTransVector()
10-20360
|
java.lang.String |
getUserPrefWhere()
Overrides the MboSet getUserPrefWhere() to return a userpref "WHERE" clause
which is appended to the existing "WHERE" clause.
|
void |
preValidateIpcBom(IpcBomSetRemote bomset)
Hook for IPC to prevalidate bills of materials for this particular application
|
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 |
returnIPCParts(IpcSelectedPartsSetRemote partset)
Hook for IPC to return selected parts in IPC back to this mbo
|
MboRemote |
rotAssetExists(MboRemote matUse)
IV56875:applied 71 IV04697/11-15298:
|
void |
setDateRange(int type)
Sets the userpref date range setting.
|
void |
setEndDate(java.util.Date endDateActLab)
Sets the end date.
|
void |
setLastNDays(int nDays)
Sets the userpref last N days setting.
|
void |
setStartDate(java.util.Date startDateActLab)
Sets the start date.
|
void |
setUncommittedTransVector(java.util.Vector uncommitted)
10-20360
|
void |
storeToRotatingAssetHash(MboRemote matUse)
IV56875:applied 71 IV04697/11-15298:
|
void |
transCommitted()
A method to update the accumulated issue quantity and issue year to date for the MatUseTrans objects to the database.
|
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, fireEventsAfterDB, 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, getUserAndQbeWhere, 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, 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, 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, notExist, positionState, processML, 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 MatUseTransSet(MboServerInterface ms) throws MXException, java.rmi.RemoteException
ms
- none
MXException
java.rmi.RemoteException
public void copyInvReserveSet(MboSetRemote invReserveSet) throws MXException, java.rmi.RemoteException
copyInvReserveSet
in interface MatUseTransSetRemote
invReserveSet
- the MboSetRemote of InvReserveSetRemote instance. Only process the selected rows.MXException
java.rmi.RemoteException
psdi.app.inventory.MatUSeTransSet#copyInvReserveSet()
public void copySparePartSet(MboSetRemote sparePartSet) throws MXException, java.rmi.RemoteException
copySparePartSet
in interface MatUseTransSetRemote
SparePartSet
- the MboSetRemote of SparePartSetRemote instance. Only selected rows are processed.MXException
java.rmi.RemoteException
psdi.app.inventory.MatUseTransSet#copySparePartSet()
public MboRemote addMatUseFromInvReserve(MboRemote invRes) throws MXException, java.rmi.RemoteException
addMatUseFromInvReserve
in interface MatUseTransSetRemote
invRes
- The InvReserve mbo.MXException
java.rmi.RemoteException
psdi.app.inventory.MatUSeTransSet#addMatUseFromInvReserve()
public void copyMatUseTransSet(MboSetRemote matUseSet) throws MXException, java.rmi.RemoteException
copyMatUseTransSet
in interface MatUseTransSetRemote
matUseSet
- the MboSetRemote of MatUseTransSetRemote instance. Only process the selected rows.MXException
java.rmi.RemoteException
copyMatUseTransSet(MboSetRemote)
public void setDateRange(int type) throws MXException, java.rmi.RemoteException
setDateRange
in interface MatUseTransSetRemote
type
- The type of date range for userpref setting
0 - NO_SELECTION
1 - CURRENT_DATE
2 - LAST_NDAYS
3 - YEAR_TO_DATE
4 - RANGEMXException
java.rmi.RemoteException
psdi.app.inventory.MatUSeTransSet#setDateRange(int type)
public int getDateRange() throws MXException, java.rmi.RemoteException
getDateRange
in interface MatUseTransSetRemote
MXException
java.rmi.RemoteException
psdi.app.inventory.MatUSeTransSet#getDateRange()
public void setLastNDays(int nDays) throws MXException, java.rmi.RemoteException
setLastNDays
in interface MatUseTransSetRemote
int
- last number of daysMXException
java.rmi.RemoteException
psdi.app.inventory.MatUSeTransSet#setLastNDays(int nDays)
public int getLastNDays() throws MXException, java.rmi.RemoteException
getLastNDays
in interface MatUseTransSetRemote
MXException
java.rmi.RemoteException
psdi.app.inventory.MatUSeTransSet#getLastNDays()
public void setStartDate(java.util.Date startDateActLab) throws MXException, java.rmi.RemoteException
setStartDate
in interface MatUseTransSetRemote
startDateActLab
- The start date to be set by the user. Set to null to clear the date.MXException
java.rmi.RemoteException
setStartDate(java.util.Date)
public void setEndDate(java.util.Date endDateActLab) throws MXException, java.rmi.RemoteException
setEndDate
in interface MatUseTransSetRemote
endDateActLab
- The end date to be set by the user. Set to null to clear the date.MXException
java.rmi.RemoteException
setEndDate(java.util.Date)
public java.util.Date getStartDate() throws MXException, java.rmi.RemoteException
getStartDate
in interface MatUseTransSetRemote
none
- none
MXException
java.rmi.RemoteException
getStartDate()
public java.util.Date getEndDate() throws MXException, java.rmi.RemoteException
getEndDate
in interface MatUseTransSetRemote
none
- MXException
java.rmi.RemoteException
getEndDate()
public java.lang.String getUserPrefWhere()
getUserPrefWhere
in class MboSet
none
- public java.util.Date addDates(java.util.Date date, int days)
date
- a Date objectdays
- the positive or negative days to add to the datenone
public void canAdd() throws MXException
canAdd
in class MboSet
MXApplicationException
- Thrown with "inventory","matUseTransNoAdd" if not owned
by any Mbo or a Mbo of type not listed above. 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 returnIPCParts(IpcSelectedPartsSetRemote partset) throws MXException, java.rmi.RemoteException
returnIPCParts
in interface MatUseTransSetRemote
MXException
java.rmi.RemoteException
psdi.app.inventory.MatUSeTransSet#returnIPCParts
public void preValidateIpcBom(IpcBomSetRemote bomset) throws MXException, java.rmi.RemoteException
preValidateIpcBom
in interface MatUseTransSetRemote
MXException
java.rmi.RemoteException
psdi.app.inventory.MatUSeTransSet#preValidateIpcBom
public void addDeltaCurbal(MboRemote invBal, double quantity, MboRemote currentMatUse) throws MXException, java.rmi.RemoteException
invBal
- -- The invbalances to updatequantity
- -- a quntitycurrentMatUse
- -- the MatUseTrans object being saved in the setMXException
java.rmi.RemoteException
public void addDeltaIssueYTD(MboRemote inventory, double quantity, MboRemote currentMatUse) throws MXException, java.rmi.RemoteException
inventory
- -- The inventory to updatequantity
- -- a quntitycurrentMatUse
- -- the current MatUseTrans object in the set being savedMXException
java.rmi.RemoteException
public void transCommitted() throws MXException
MXException
public java.util.Vector getInvReserveVector() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.util.Vector getUncommittedTransVector() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setUncommittedTransVector(java.util.Vector uncommitted) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void clearVectors() throws MXException
MXException
public void storeToRotatingAssetHash(MboRemote matUse) throws MXException, java.rmi.RemoteException
matrec
- MXException
java.rmi.RemoteException
public MboRemote rotAssetExists(MboRemote matUse) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException