public class Item extends StatefulMbo implements ItemRemote
This is a organization level object.
The key attributes for this object are as follows: Itemnum and ItemSetID
The attributes in this object are as follows:
| Attribute Name | Description |
|---|---|
| Capitalized | Specifies whether or not this item object is to be financially accounted for as a capitalized or non-capitalized cost. If capitalized is true, this item will always be issued and returned at zero cost regardless of the cost carried in inventory. If capitalized is false, this item will be issued and returned at the standard, last or average cost. The default is false. |
Classstructureid | Class structure identifier. Class structures are the hierarchies of
classifications (for example, centrifugal or rotarty pumps) around which assets can be organized.
|
| Description | Short description for this object. A long description may be associated with this object via the Ldkey attribute. |
GroupName | Meter group
for the item. This attribute pertains to rotating items only, and is used to set the GroupName
attribute of the new asset created from this item during
the application of an item assembly structure.
|
Hazardid | Safety hazard associated with this item object.
|
HasIAS | Non-persistant attribute.Indicates if this Item has an IAS associated with it. |
| Inspectionrequired | Indicates whether inspection of item is required upon receipt. If true, receipts of this item will not be added to inventory until inspection is completed. |
Itemnum | Unique identifier for this piece of item. |
ItemSetID | Identifier of the itemset identifier for this object.
|
Instance | Non-persistant attribute.Used to copy item assembly structure. |
| Ldkey | Long description key. |
| Lifeexp | Life expectancy of the item, in hours. |
| Lottype | Specifies whether or not this item object is tracked by lot. A lotted item typically has an expiration date that is assigned via a lotnum on receipt. Lot information is contained in the Invlot object. Valid untranslated values are LOT, indicating that an item is lotted, and NOLOT, indicating that an item is not lotted. |
MeterName | Meter associated with the item. This is the meter for which a meter reading is to be recorded if this item is issued to an asset that is associated with the same meter via an AssetMeter object. Only non-rotating items can be associated with a meter. |
| Msdsnum | Material Safety Data Sheet (MSDS) number issued by the Occupational Safety and Health Association (OSHA). The MSDS describes product dangers and must be available to purchasers and users of commercial quantities of all hazardous materials. |
| Outside | True if this item object belongs to a contractor or vendor and is stored onsite, and the company will be charged for its use. |
Rotating | Is this item object a rotating item? That is, must each item in stock, on reserve or issued to a work order also be associated with a particular asset object via the itemnum attribute on an Asset object? Rotating items, since they also possess asset attributes as rotating asset, can also be moved to locations and added as subassemblies to parent asset objects. The default value for the rotating attribute is false. |
| Sparepartautoadd | Indicates if a new spare part object should be added to the sparepart table for this piece of item upon issue of this item object to an asset. |
Stocktype | Item category, for example, BEARINGS, FILTERS and VALVES. The values come from the STKTYPE value list. |
Tax1code - Tax5code | tax 1 code to tax 5 code. |
| In19 - In27 | cross-over fields to Prline.Rlin1 - Rlin9 |
onListTab, statusChangeButtonSigoption, targetStatusOptionMULTILANGCOPY, phantomList, phantomQueueALLROWS, 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| Constructor and Description |
|---|
Item(MboSet ms)
Construct the item object
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
Add a new Item object.
|
MboRemote |
addSparePart(java.lang.String assetnum,
java.lang.String siteid)
add a sparepart record.
|
InventoryRemote |
addToStore(java.lang.String store)
addToStore (String) - public method
WHAT: method used to create an Inventory Record associated with the
passed in storeroom, and with the passed in category type.
|
InventoryRemote |
addToStore(java.lang.String store,
java.lang.String category) |
InventoryRemote |
addToStore(java.lang.String store,
java.lang.String category,
boolean validateLocationLater)
addToStore (String, String,boolean) - public method
WHAT: method used to create an Inventory Record associated with the
passed-in storeroom, and with the passed-in category type.
|
void |
appendDescription(java.lang.String descSpec)
append the passed description from an ItemSpec to the item.description;need to
get classtructure related description first and only one time.
|
void |
applyIAS(MboRemote applyToMbo)
Used by Apply IAS.
|
void |
appValidate()
Checks if rotating item has meter name attached to it
|
void |
autoKeyItemnum() |
void |
canAddKitToStore()
can this kitted item be added to a storeroom, that is, does
it have components, and do all its components have an issue
unit specified in their corresponding Item records.
|
void |
canDelete()
Item.canDelete()-
Checks to see if this object can be deleted
if it is on an asset, throw exception
if it is on a masterpm, throw exception
if this is on a sparepart, throw exception
if this is on an itemstruct, throw exception
if this is part of an inventory - and the inventory can't be deleted - throw exception.
|
void |
canModifyKitStructure()
checks whether it's OK to add or remove an ItemStruct from a kit's
structure.
|
boolean |
canSparePartAutoAdd()
return true if the item allows spareparts to be added.
|
protected void |
canToggleConditionEnabledToStandard()
Can we convert a condition enabled item to standard?
if inventory records exists for the item, then do not allowed.
|
protected void |
canToggleIsKit()
Can this item's IsKit flag be toggled?
|
protected void |
canToggleRotating() |
protected void |
canToggleToConditionEnabled()
Can we convert a standard item to condition enabled?
if rotating item and assets exist for the item, then do not allowed.
|
MboSetRemote |
changeCapitalizedStatus(boolean capitalized)
Deprecated.
|
void |
changeCapitalizedStatus(boolean capitalized,
java.lang.String capitalacc,
java.lang.String memo)
loops through all occurrences of this Item's itemnum
attribute in the Inventory object to update GL information
and create and write Capital Cost Adjustment (CAPCSTADJ)
InvTrans records
changes the capitalized attribute for this Item object
|
void |
changeStatus(java.lang.String status,
boolean rolldown,
java.util.Date date,
java.lang.String memo,
long accessModifier)
This method is overridden to add a wrapper to exceptions thrown during change status
and to write warnings whether or not the status change is successful
|
void |
changeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo,
long accessModifier)
This method is overridden to add a wrapper to exceptions thrown during change status
and to write warnings whether or not the status change is successful
|
boolean |
checkAssetExists()
This method checks if the item exist in Asset.
|
boolean |
checkCIExists()
This method checks if the item exist in CI.
|
boolean |
checkContractExists()
This method checks if the item exist in ContractLine for Contract that are in a status other than
CAN or CLOSE.
|
boolean |
checkInvBalancesExists()
This method checks if the item exist in InvBalances.
|
boolean |
checkJPExists()
This method checks if the item exist in JobItem for job plans that are in a status other
than INACTIVE.
|
void |
checkKitCostType(boolean isKit)
This methods check if the item assembly structure item have lifo/fifo cost type.
|
boolean |
checkMRExists()
This method checks if the item exist in MRLine for MR that are in a status other than CAN
or CLOSE
|
boolean |
checkPOExists()
This method checks if the item exist in POLine for PO that are in a status other than
CAN or CLOSE.
|
boolean |
checkPRExists()
This method checks if the item exist in PRLine for PR that are in a status other than
CAN or COMP.
|
boolean |
checkWOExists()
This method checks if the item exist in WPItem for work orders that are in a status other than COMP
or CLOSE
|
void |
clearClassification()
This method clears the classtructureid and delete itemspec
|
MboSetRemote |
createItemSpecSet()
Deprecated.
replaced by generateItemSpec
|
MboRemote |
createNewDepreciation() |
void |
createTopItemStruct()
Protected method to add a top level ItemStruct for this Item only once.
|
void |
delete(long access)
delete(long) - standard Mbo Delete method.
|
protected void |
doTopItemStruct(MboRemote itemStruct)
Protected method to indicate if this item is a top-level ItemStruct.
|
MboRemote |
duplicate()
Duplicate a new item with DocLinks and Item Specifications.
|
void |
generateAutoKey()
Item Object allows the generation of autokeys
Overrides the generateAutoKey() in the Mbo
|
MboSetRemote |
generateItemSpec()
This method generates a new itemspec set based on the classstructureid;it
copies the attriubtes from the classspec.
|
java.lang.String |
getDefaultBin() |
java.lang.String |
getInternalItemType()
Returns the internal representation of the itemtype field.
|
MboSetRemote |
getMboSet(java.lang.String name)
IV30930/60768: this is View Item Availabity mbosets - Locations, Lots, Purchase Orders, Purchase Req, and Contract
Since the mainMbo ITEM is not connected to any owner via relationship - all the child sets are not
subject to security checking - making all the child sets a lookup enabled for the mboframework to
apply security.
|
int |
getNumberOfRotatingAssets()
Get the number of rotating assets for the item - determines if we want to use direct
prepared statements when itemspec.alnvalue/numvalue/tablevalue is changed.
|
MboRemote |
getOneHundredPercent()
return the 100% ItemCondition record for the item
|
java.lang.String |
getProcess()
Gets the work flow process for item.
|
protected StatusHandler |
getStatusHandler()
Gets a status handler to change the work order status.
|
protected MboSetRemote |
getStatusHistory()
Gets the itemstatus objects.
|
java.lang.String |
getStatusListName()
Gets the name of the value list that contains all the status's.
|
java.lang.String |
getThisComponentsDefaultBin() |
java.lang.String |
getThisComponentsKit() |
protected MboRemote |
getTopItemStruct()
returns this item's top ItemStruct mbo
|
MboSetRemote |
getUseThisItemSpecSet()
09-14572: return useThisItemSpecSet
|
void |
init()
Initialize the Item object
|
void |
initFieldFlagsOnMbo(java.lang.String attrName)
The logic of setting the readonly field flags to the mbo for rotating and iskit
attributes.
|
boolean |
isCapitalized()
is this item capitalized?
|
boolean |
isConditionEnabled()
Check to see is this item is condition enabled
|
boolean |
isKit()
is this item a kit, that is, a group of items used
to address a common maintenance need?
|
boolean |
isLotted()
Check to see is this item is lotted
If LOTTYPE's internal value is "LOT"
|
protected boolean |
isNewDuplicatedItem() |
void |
isNewKitComponentUniqueToSet(Mbo newKitItemStruct)
ensures that the passed in kit component has not yet been added
to the kit.
|
boolean |
isObsolete()
Returns true if this item was Obsolete.
|
boolean |
isPendobs()
Returns true if this item was pending obsolence.
|
boolean |
isPlanning()
Returns true if this item was Planning.
|
boolean |
isRollDown()
Returns true if rolldown is true.
|
boolean |
isRotating()
is this a rotating item?
|
protected void |
modifyCommodityGroup()
performs tasks related to changing of this object's commoditygroup
attribute.
|
void |
processItemSpecSet()
Process the new ItemSpec Set and the old ItemSpec Set(exsiting in db-to be deleted).
|
void |
processUpdateClassStructureID(java.lang.String updateSql)
Update assets(especially large amount of assets) when item classstructure is cleared or changed.
|
boolean |
removeSpecialOrderItems(java.util.Vector storeLoc)
removes those inventory objects that are related to this object by itemnum and that have
a Location attribute in the passed vector and a Category attribute that indicates a special
order item
|
void |
save()
In saving an item, if the classstructureid has been changed
and item is rotating, will need to update asset.classstructureid
and location.classstructureid and need to update the description based upon classstructure
and itemspec.
|
protected void |
setConditionEnabledRelatedInfo()
sets read/write flags for those attributes related to the ConditionEnabled attribute;
if ConditionEnabled has been set to true, sets values for those related attributes.
The related attributes are: LOTTYPE ISKIT |
protected void |
setKitRelatedInfo()
sets read/write flags for those attributes related to the IsKit attribute; if IsKit
has been modified to be true, sets values for those related attributes.
The related attributes are: ROTATING CONDITIONENABLED LOTTYPE METERNAME |
void |
setLotTypeReadOnly(boolean state)
Set Lot Type to read only.
|
protected void |
setLotTypeRelatedInfo()
sets read/write flags for those attributes related to the LotType attribute;
if LotType has been modified to be "LOT", sets values for those related attributes.
The related attributes are: CONDITIONENABLED ISKIT |
void |
setThisComponentsKitAndDefaultBin(java.lang.String kitNum,
java.lang.String defaultBin) |
void |
setUseThisItemSpecSet(MboSetRemote itemSpecSet)
09-14572
|
protected boolean |
skipCopyField(MboValueInfo mvi)
Overrides the skipCopyField() in the Mbo.
|
boolean |
sparePartExists(java.lang.String assetnum,
java.lang.String siteid)
returns true if a sparepart record with the combination of assetnum/itemnum
exists else returns false.
|
void |
toggleRotating()
Toggle the item's rotating flag
|
void |
updateDesc()
set the description field to be the generated value obtained from
the setup of the classstructureid (in asset catalog setup)
and the values/measureunits in the itemspec set.
|
void |
updateInvVendor()
Updates Invvendor non persistent field itemtype.
|
void |
updateRelatedObjects(java.lang.String newStatus,
java.util.Date date,
java.lang.String memo)
Update Inventory and ItemOrgInfo tables with the new status for the item.
|
void |
updateRotatingClassStructureSQLServer(java.lang.String where,
int counter,
long accessModifier)
10-18610: update the passet mboset.classstructureid for SQLServer - also performance
will do incremental save if there are a large number of rotating assets
this is for SQLSERVER only because the one-large insert caused the assetspecid and assetspechistid
too high.
|
void |
validateChangeStatus(java.lang.String status,
boolean rolldown,
java.util.Date date,
java.lang.String memo)
This method validates if the status change is allowed.
|
void |
validateDepreciation() |
canChangeMaxStatus, canChangeStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, checkStatusChangeAuthorization, filterByValidStatusList, fireEvent, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOption, statusToOptionNameaddMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkRecordLock, checkSiteOrgAccessForSave, clear, clearRelatedSets, clearRelatedSets, commit, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, deleteDoclinks, determineRequiredFieldsFromERM, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getESId, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertOrgForSite, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboCtx, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSetInfo, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRecordType, getRelatedSets, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getTenantIdForNoMboRecordData, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, getValidateOrder, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initRelationship, isApiBatchError, isAppLockEnabled, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isDuringInit, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, propagateKeyValue, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDatabaseDefaultValues, setDatabaseDefaultValues, setDefaultValue, setDefaultValues, setDeleted, setDuringInit, setEAuditFieldModified, setESId, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMboCtx, setMLValue, setModified, setModifiedForIntegrationOnly, setNewMbo, setNoSql, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setRecordType, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, setTenantIdForNoMboRecordData, setUniqueIDValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueFromSequence, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, throwRequiredException, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, undeleteDoclinks, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanChangeMaxStatus, canChangeStatus, canChangeStatus, canDeleteAttachedDocs, changeMaxStatus, changeMaxStatus, changeStatus, changeStatus, checkForOpenStatus, getInternalStatus, getOnListTab, getOverridePVStatusException, getStatusChangeButtonSigoption, getStatusList, getTargetStatusOption, getValidStatusList, setOnListTab, setOverridePVStatusException, setStatusChangeButtonSigoption, setTargetStatusOptionaddMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, getBoolean, getByte, getBytes, getCommLogOwnerNameAndUniqueId, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainIDs, getDouble, getExistingMboSet, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInt, getKeyValue, getLinesRelationship, getList, getLockedByDisplayName, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboInitialValue, getMboList, getMboSet, getMboSet, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getPropagateKeyFlag, getRecordIdentifer, getSiteOrg, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getThisMboSet, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasHierarchyLink, hasLockSaveRights, isAutoKeyed, isBasedOn, isFlagSet, isForDM, isLocked, isLocked, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isZombie, lock, propagateKeyValue, rollbackToCheckpoint, select, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDeleted, setESigFieldModified, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setIgnoreRecordLockCheck, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setReferencedMbo, setReferencedMbo, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueNull, setValueNull, sigopGranted, sigopGranted, sigopGranted, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributespublic Item(MboSet ms) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getProcess()
protected MboSetRemote getStatusHistory() throws MXException, java.rmi.RemoteException
getStatusHistory in class StatefulMboMXExceptionjava.rmi.RemoteExceptionprotected StatusHandler getStatusHandler()
getStatusHandler in class StatefulMboObject returned.public java.lang.String getStatusListName()
getStatusListName in interface StatefulMboRemotegetStatusListName in class StatefulMbopublic void init()
throws MXException
init in class MboMXExceptionpublic void setLotTypeReadOnly(boolean state)
throws MXException,
java.rmi.RemoteException
setLotTypeReadOnly in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.setLotTypeReadOnly(boolean state)public void initFieldFlagsOnMbo(java.lang.String attrName)
throws MXException
initFieldFlagsOnMbo in class MboMXExceptionpublic void add()
throws MXException,
java.rmi.RemoteException
add in interface MboRemoteadd in class MboMXExceptionjava.rmi.RemoteExceptionprotected void setKitRelatedInfo()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void canAddKitToStore()
throws MXException,
java.rmi.RemoteException
canAddKitToStore in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.checkKitComponents(MboSetRemote components)public void canModifyKitStructure()
throws MXException,
java.rmi.RemoteException
canModifyKitStructure in interface ItemRemoteMXApplicationException("item","cantModKitInStoresStruc",errItem)MXExceptionjava.rmi.RemoteExceptionItem.canModifyKitStructure()public void isNewKitComponentUniqueToSet(Mbo newKitItemStruct) throws MXException, java.rmi.RemoteException
isNewKitComponentUniqueToSet in interface ItemRemotethisMbo - the object to which the meter is being addedMXExceptionjava.rmi.RemoteExceptionItem.isNewKitComponentUniqueToSet(Mbo newKitItemStruct)protected void setLotTypeRelatedInfo()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected void setConditionEnabledRelatedInfo()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote duplicate() throws MXException, java.rmi.RemoteException
duplicate in interface ItemRemoteduplicate in interface MboRemoteduplicate in class MboMXExceptionjava.rmi.RemoteExceptionItem.duplicate()protected boolean isNewDuplicatedItem()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected boolean skipCopyField(MboValueInfo mvi) throws java.rmi.RemoteException, MXException
skipCopyField in class MboThe - MboValueInfo object of the MboValue that needs to be copied.java.rmi.RemoteExceptionMXExceptionItem.loadSkipFieldCopyHashSet()protected void doTopItemStruct(MboRemote itemStruct) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void createTopItemStruct()
throws MXException,
java.rmi.RemoteException
createTopItemStruct in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionprotected MboRemote getTopItemStruct() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionFldItemItemStructItemnum.action()public void autoKeyItemnum()
throws MXException,
java.rmi.RemoteException
autoKeyItemnum in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.autoKeyItemnum()public boolean isRotating()
throws MXException,
java.rmi.RemoteException
isRotating in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.isRotating()public boolean isCapitalized()
throws MXException,
java.rmi.RemoteException
isCapitalized in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.isCapitalized()public boolean isKit()
throws MXException,
java.rmi.RemoteException
isKit in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.isKit()public void toggleRotating()
throws MXException,
java.rmi.RemoteException
toggleRotating in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.toggleRotating()protected void canToggleRotating()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected void canToggleConditionEnabledToStandard()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected void canToggleToConditionEnabled()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionprotected void canToggleIsKit()
throws MXException,
java.rmi.RemoteException
MXApplicationException("item", - "itemCannotToggleIsKit") if InvBalances exist for the itemMXApplicationException("item", - "itemCannotKitLottedItem") if item is lotted, item cannot be a kitMXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote changeCapitalizedStatus(boolean capitalized) throws MXException, java.rmi.RemoteException
changeCapitalizedStatus in interface ItemRemotecapitalized - If true, item will be capitalized. If false, item
will be non-capitalized.MXExceptionjava.rmi.RemoteExceptionItem.changeCapitalizedStatus(boolean capitalized)public void changeCapitalizedStatus(boolean capitalized,
java.lang.String capitalacc,
java.lang.String memo)
throws MXException,
java.rmi.RemoteException
changeCapitalizedStatus in interface ItemRemotecapitalized - If true, item will be capitalized. If false, item
will be non-capitalized.capitalacc - GL Capital Account value provided through the UImemo - free-form text to be written to InvTrans.MemoMXExceptionjava.rmi.RemoteExceptionInventory.changeCapitalizedStatus(boolean, java.lang.String, java.lang.String)public InventoryRemote addToStore(java.lang.String store, java.lang.String category, boolean validateLocationLater) throws MXException, java.rmi.RemoteException
addToStore in interface ItemRemoteString - store = the storeroom to which item should be addedString - category = the inventory.category which it will be assignedboolean - validateLocationLater, if true, not checking if
the store exists in the locations table; if false, perform
regular check
RETURNS:
InventoryRemote - the method returns the NEWLY created Inventory MBO,
using the storeroom/category passed in, and THIS itemnum.
CAUTIONS: To avoid letting anyone insert primary key twice
during same process (prior to commit) logic has been
placed here to never let that happen. The logic, however,
will generate a new set each and every time this method is
called successfully.
!!!!!!30 calls before a commit = 30 MboSets in memory. !!!!!
THEREFORE: call commit - ie SAVE - after completing
addToStore transaction (a transaction may include, of course,
calling this method and then setting values.)
or else, face possible resource consequences....
particularly important if this method is being used in any batch scenarios.MXExceptionjava.rmi.RemoteExceptionItem.addToStore(String store,String category,boolean validateLocationLater)public InventoryRemote addToStore(java.lang.String store) throws MXException, java.rmi.RemoteException
addToStore in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.addToStore(String store)public InventoryRemote addToStore(java.lang.String store, java.lang.String category) throws MXException, java.rmi.RemoteException
addToStore in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.addToStore(String store,String category)public boolean isLotted()
throws MXException,
java.rmi.RemoteException
isLotted in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.isLotted()public boolean isConditionEnabled()
throws MXException,
java.rmi.RemoteException
isConditionEnabled in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.isConditionEnabled()public java.lang.String getDefaultBin()
throws MXException,
java.rmi.RemoteException
getDefaultBin in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.getDefaultBin()public void canDelete()
throws MXException,
java.rmi.RemoteException
canDelete in class MboMXException - - will throw this exception if it can't be deletedjava.rmi.RemoteExceptionpublic void delete(long access)
throws MXException,
java.rmi.RemoteException
delete in interface MboRemotedelete in class Mboaccess - The bitwise flag specified to determine
if certain normal security checks are to be
bypassed for this delete request.
For example:
if the accessModifer is NOACCESSCHECK, then the
check for the object's NODELETE flag and the
call to the object's canDelete() method
will not be performed.
If the accessModifer is NONE, then all the
access checks are performed before this object
is marked delete.MXExceptionjava.rmi.RemoteExceptionMbo.delete(long)public boolean canSparePartAutoAdd()
throws MXException,
java.rmi.RemoteException
canSparePartAutoAdd in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.canSparePartAutoAdd()public boolean sparePartExists(java.lang.String assetnum,
java.lang.String siteid)
throws MXException,
java.rmi.RemoteException
sparePartExists in interface ItemRemoteassetnum - siteid - MXExceptionjava.rmi.RemoteExceptionItem.sparePartExists(String assetnum, String siteid)public MboRemote addSparePart(java.lang.String assetnum, java.lang.String siteid) throws MXException, java.rmi.RemoteException
addSparePart in interface ItemRemoteassetnum - siteid - asset siteidMXExceptionjava.rmi.RemoteExceptionItem.addSparePart(String assetnum, String siteid)public void applyIAS(MboRemote applyToMbo) throws MXException, java.rmi.RemoteException
applyIAS in interface ItemRemoteapplyToMbo - The mbo (e.q. AssetRemote) to which the
IAS should be applied.MXExceptionjava.rmi.RemoteExceptionItem.applyIAS(MboRemote applyToMbo)public MboSetRemote createItemSpecSet() throws MXException, java.rmi.RemoteException
createItemSpecSet in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.createItemSpecSet()public void updateDesc()
throws MXException,
java.rmi.RemoteException
updateDesc in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.updateDesc()public void updateRelatedObjects(java.lang.String newStatus,
java.util.Date date,
java.lang.String memo)
throws MXException,
java.rmi.RemoteException
updateRelatedObjects in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.updateRelatedObjects(String newStatus, Date date, String memo)public void appValidate()
throws MXException,
java.rmi.RemoteException
appValidate in class MboMXExceptionjava.rmi.RemoteExceptionpublic void save()
throws MXException,
java.rmi.RemoteException
save in class StatefulMboMXExceptionjava.rmi.RemoteExceptionpublic void appendDescription(java.lang.String descSpec)
throws MXException,
java.rmi.RemoteException
descSpec - the numvalue/alnvalue + measureunitid/abbreviation from
one itemspec.MXExceptionjava.rmi.RemoteExceptionpublic void generateAutoKey()
throws java.rmi.RemoteException,
MXException
generateAutoKey in interface MboRemotegenerateAutoKey in class MboMXExceptionjava.rmi.RemoteExceptionMbo.generateAutoKey()public MboSetRemote generateItemSpec() throws java.rmi.RemoteException, MXException
generateItemSpec in interface ItemRemotejava.rmi.RemoteExceptionMXExceptionItem.generateItemSpec()public void processItemSpecSet()
throws MXException,
java.rmi.RemoteException
processItemSpecSet in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.processItemSpecSet()public void clearClassification()
throws java.rmi.RemoteException,
MXException
clearClassification in interface ItemRemotejava.rmi.RemoteExceptionMXExceptionItem.clearClassification()public boolean removeSpecialOrderItems(java.util.Vector storeLoc)
throws MXException,
java.rmi.RemoteException
removeSpecialOrderItems in interface ItemRemotestoreLoc - vector containing the storerooms from which the special order items
are to be removed. Inventory objects whose Location attribute is in the vector
and whose Category attribute indicates a special order item will be marked for deletion.MXApplicationException("item","fromitemserviceonly") - is thrown if this
method is called from another object. This method should only be
called from method removeSpecialOrderItems in ItemService.MXExceptionjava.rmi.RemoteExceptionItem.removeSpecialOrderItems(Vector storeLoc)protected void modifyCommodityGroup()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionFldItemCommodityGrppublic MboRemote getOneHundredPercent() throws MXException, java.rmi.RemoteException
getOneHundredPercent in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.getOneHundredPercent()public void setThisComponentsKitAndDefaultBin(java.lang.String kitNum,
java.lang.String defaultBin)
throws MXException,
java.rmi.RemoteException
setThisComponentsKitAndDefaultBin in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.setThisComponentsKitAndDefaultBin(String kitNum,String defaultBin)public java.lang.String getThisComponentsKit()
throws MXException,
java.rmi.RemoteException
getThisComponentsKit in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.getThisComponentsKit()public java.lang.String getThisComponentsDefaultBin()
throws MXException,
java.rmi.RemoteException
getThisComponentsDefaultBin in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.getThisComponentsDefaultBin()public java.lang.String getInternalItemType()
throws MXException,
java.rmi.RemoteException
getInternalItemType in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.getInternalItemType()public boolean checkWOExists()
throws MXException,
java.rmi.RemoteException
checkWOExists in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.item.Item#checkWorkOrder()public boolean checkInvBalancesExists()
throws MXException,
java.rmi.RemoteException
checkInvBalancesExists in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.item.Item#checkInvBalances()public boolean checkAssetExists()
throws MXException,
java.rmi.RemoteException
checkAssetExists in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.item.Item#checkAsset()public boolean checkJPExists()
throws MXException,
java.rmi.RemoteException
checkJPExists in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.item.Item#checkJobPlan()public boolean checkMRExists()
throws MXException,
java.rmi.RemoteException
checkMRExists in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.item.Item#checkMR()public boolean checkPRExists()
throws MXException,
java.rmi.RemoteException
checkPRExists in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.item.Item#checkPR()public boolean checkPOExists()
throws MXException,
java.rmi.RemoteException
checkPOExists in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.item.Item#checkPO()public boolean checkContractExists()
throws MXException,
java.rmi.RemoteException
checkContractExists in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.item.Item#checkContracExists()public boolean checkCIExists()
throws MXException,
java.rmi.RemoteException
checkCIExists in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.checkCIExists()public void changeStatus(java.lang.String status,
java.util.Date date,
java.lang.String memo,
long accessModifier)
throws MXException,
java.rmi.RemoteException
changeStatus in interface StatefulMboRemotechangeStatus in class StatefulMbostatus - The new desired status. This is the translated status
(that is, the status code as it would have been entered by a user, or
valuelist.value), not
the internal status value (valuelist.maxvalue).date - The effective date of the new status is the current date/time.memo - A string briefly describing the circumstances of the change. The
memo can be null.accessModifier - A value of NOACCESSCHECK will cause the method not to call canChangeStatus.
Callers using this flag are responsible for ensuring that they are attempting a valid status change.MXException - Thrown if there is a problem.java.rmi.RemoteExceptionStatefulMbo.canChangeStatus(String)public void changeStatus(java.lang.String status,
boolean rolldown,
java.util.Date date,
java.lang.String memo,
long accessModifier)
throws MXException,
java.rmi.RemoteException
changeStatus in interface ItemRemotestatus - The new desired status. This is the translated status
(that is, the status code as it would have been entered by a user, or
valuelist.value), not
the internal status value (valuelist.maxvalue).date - The effective date of the new status is the current date/time.memo - A string briefly describing the circumstances of the change. The
memo can be null.MXException - Thrown if there is a problem.java.rmi.RemoteExceptionItem.changeStatus(String status, Date date, String memo, long accessModifier)public void validateChangeStatus(java.lang.String status,
boolean rolldown,
java.util.Date date,
java.lang.String memo)
throws MXException,
java.rmi.RemoteException
validateChangeStatus in interface ItemRemoteMXException - Thrown if there is a problem.java.rmi.RemoteExceptionItem.validateChangeStatus(String status, boolean rolldown, Date date, String memo)public boolean isPendobs()
throws MXException,
java.rmi.RemoteException
isPendobs in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionItem.isPendobs()public boolean isObsolete()
throws MXException,
java.rmi.RemoteException
isObsolete in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.item.Item#Obsolete()public boolean isPlanning()
throws MXException,
java.rmi.RemoteException
isPlanning in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionpsdi.app.item.Item#Planning()public boolean isRollDown()
public void updateInvVendor()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void setUseThisItemSpecSet(MboSetRemote itemSpecSet) throws MXException, java.rmi.RemoteException
itemSpecSet - MXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote getUseThisItemSpecSet() throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void updateRotatingClassStructureSQLServer(java.lang.String where,
int counter,
long accessModifier)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic int getNumberOfRotatingAssets()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void processUpdateClassStructureID(java.lang.String updateSql)
throws MXException,
java.rmi.RemoteException
updateSql - MXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote getMboSet(java.lang.String name) throws MXException, java.rmi.RemoteException
getMboSet in interface MboRemotegetMboSet in class Mboname - The relationship provided to retrieve a
related mboSet, usually using foreign keys.
For example,
"psdi.app.workorder.WOSetRemote.ASSET" is
a relationship for the work order object to
access the asset Set where
"workorder.assetnum=asset.assetnum". The relationship can
also be chained. Such as ASSET.ASSETSTATUS.MXException - "A relationship called {0} does not exist
for the {1} business object" exception
will be thrown if the relationship was not
found.
"Unknown Object" exception will be thrown
if the database object can not be
found through the relationship.java.rmi.RemoteExceptionMbo.getMboSet(String)public void checkKitCostType(boolean isKit)
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboRemote createNewDepreciation() throws MXException, java.rmi.RemoteException
createNewDepreciation in interface ItemRemoteMXExceptionjava.rmi.RemoteExceptionpublic void validateDepreciation()
throws MXException,
java.rmi.RemoteException
validateDepreciation in interface ItemRemoteMXExceptionjava.rmi.RemoteException