public class WPItem extends Mbo implements WPItemRemote, WorkPlanMbo
See WorkOrder Package description.
There is no key attribute for this object. The attributes in this object are as follows:
Attribute Name | Description |
---|---|
CatalogCode | The Catalog code for the item, or the vendor part number. |
Description | The Description for the item/service/tools. |
DirectReq | This is to signify if the item on this reservation will be ordered outside of standard inventory. |
IssueTo | Issue to a laborcode or craft. |
ItemNum | Identifier of the this WPItem. |
ItemQty | Item quantity required for the work plan task. |
LineCost | A attribute to calculate the total cost of the line(ItemQty * UnitCost). |
LineType | The type of work plan material/service/tools. It could be ITEM, MATERIAL, EXTERNAL or SPORDER type for WPMaterial, SERVICE and STDSERVICE FOR WPSERVICE, TOOL for WPTool. |
Location | Primary or alternate location from inventory for this work plan material/service/tool item. |
Manufacturer | The Manufacturer of this work plan material/service item. |
ModelNum | Model number or manufacturer part number for the item of this work plan material. |
OrderUnit | Order unit for the item of this work plan material/service. |
OrgId | Identifier of the organization for this failure. |
PR} | Identifier of the purchase requisition of the ordered item
of this work plan material/service.
|
PRLineNum | The Purchase requisition Line number of the
ordered item of this work plan material/service.
|
RequestBy | The Person requesting this item of this work plan material/service. |
RequireDate | The Date this item is needed. |
SiteId | Identifier of the site for this failure. |
TaskID | A non-persistent attribute to reprsent the task identifier of the Work Order associate with this work plan material/service. |
UnitCost} | Item unit cost when work order was approved. |
UnitCostHasChanged | Flag tracks if the unit cost has been overwritten by user. If No - field will be overwritten by MAXIMO on Approval. If Yes - field will not be overwritten by MAXIMO on Approval. |
Vendor | Suggested vendor
to order this item from.
|
VendorPackCode | Vendor's pack code for the item. |
VendorPackQuantity | Vendor's pack quantity for the item. |
VendorUnitPrice | The unit price of the item in vendor's currency. |
VendorWareHouse | Vendor's warehouse for the item. |
WoNum | Identifier of the work order associate with
this work plan material/service.
|
WPM1-WPM3 | Extra fields, crossover fields from JobMaterial.JM1-JM3. |
RATE | The toolrate of the tool |
RaterHasChanged | Set to True when a user manually enters rate for a tool |
Hours | The number of hours that this tool will be used for. User-entered value. |
RESERVEREQ | Indicates whether or not the tool requires a reservation. |
MULTILANGCOPY, phantomList, phantomQueue
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
Modifier and Type | Method and Description |
---|---|
void |
add()
Sets Default value for some of the fields of the new WPItem.
|
void |
copyHazardForItem()
Copy Hazard for Item
|
void |
copyPlan(MboRemote source)
Used to copy data from a JobMaterial /JobService object.
|
void |
getRequiredMaterialCost()
Supplies a unit cost for direct requests.
|
java.lang.String[] |
getValidateOrder()
Validation Order for WPItem attributes.
|
void |
isNullQty()
This method is used to check if the itemqty field on the WPMaterial is null
Check to see if this MRLine's itemqty is null.
|
void |
propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
Set value for Wonum.
|
void |
setBaseCurrencyUnitCost(double vendorunitcost)
Calculate unitcost based on vendorunitcost and set the unitcost.
|
void |
setEstCost(MboRemote wo,
double lineCost)
Set the Estimated Material(EstMatCost), Service(EstServCost) and Tool(EstToolCost) Cost
in workorder
|
void |
setLocation()
set the location field if there is only one inventory record
|
void |
setVendor()
set the vendor if it finds one.
|
void |
updateTotals(MboRemote wo,
boolean isGain)
Updates the work order totals related to the work plan mbo.
|
void |
validateStoreLocSite()
Checks to see whether it has a valid StoreLocSite
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, appValidate, blindCopy, canDelete, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, determineRequiredFieldsFromERM, duplicate, enableMethod, evaluateCondition, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, evaluateRestriction, excludeObjectForPropagate, findAllNullRequiredFields, fireEvent, generateAutoKey, generateContentUID, getAlwaysFlags, getAttrRestrictionFlag, getAttrRestrictions, getBoolean, getByte, getBytes, getCheckpoint, getClientLocale, getClientTimeZone, getCommLogOwnerNameAndUniqueId, getCondition, getDatabaseValue, getDate, getDeleteForInsertList, getDocLinksCount, getDomainFilterWhere, getDomainIDs, getDouble, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgForGL, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getRowRestrictionFlag, getRowStamp, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUserInfo, getUserName, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, init, initFieldFlagsOnMbo, initRelationship, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, removeRelatedSet, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMLValue, setModified, setNewMbo, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, 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, sigOptionAccessAuthorized, smartFill, smartFind, smartFind, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, delete, delete, duplicate, evaluateCondition, evaluateCtrlConditions, evaluateCtrlConditions, excludeObjectForPropagate, generateAutoKey, 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, getMboSet, getMboValueData, getMboValueData, getMboValueData, 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, 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, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, undelete, unlock, unselect, validate, validateAttributes
public WPItem(MboSet ms) throws MXException, java.rmi.RemoteException
ms
- The WPItem MboSet.MXException
java.rmi.RemoteException
public void add() throws MXException, java.rmi.RemoteException
WONUM defaults from the parent and set WONUM of parent to read only.
The table below shows the default values for each of the attributes listed.
Attribute Name | Attribute Value |
---|---|
wonum | Workorder's wonum |
LineCost | 0.0 |
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
public void propagateKeyValue(java.lang.String keyName, java.lang.String keyValue) throws MXException, java.rmi.RemoteException
propagateKeyValue
in interface MboRemote
propagateKeyValue
in class Mbo
keyName
- Should equal "wonum" or else nothing will be propagated.keyValue
- The new value of wonum.MXException
java.rmi.RemoteException
public void copyPlan(MboRemote source) throws MXException, java.rmi.RemoteException
copyPlan
in interface WorkPlanMbo
source
- The JobMaterial /JobService Mbo used to copy data from.MXException
java.rmi.RemoteException
getRequiredMaterialCost()
,
#getItemCostFromInventory
,
copyHazardForItem()
public void copyHazardForItem() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void updateTotals(MboRemote wo, boolean isGain) throws MXException, java.rmi.RemoteException
updateTotals
in interface WorkPlanMbo
wo
- The work order Mbo to update.isGain
- Is this a gain or loss for the work order.MXException
java.rmi.RemoteException
public void setEstCost(MboRemote wo, double lineCost) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void validateStoreLocSite() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setLocation() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void getRequiredMaterialCost() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setBaseCurrencyUnitCost(double vendorunitcost) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String[] getValidateOrder()
getValidateOrder
in class Mbo
public void isNullQty() throws MXException, java.rmi.RemoteException
isNullQty
in interface WPItemRemote
MXException
java.rmi.RemoteException
isNullQty()
public void setVendor() throws MXException, java.rmi.RemoteException
MXException
- Inventoryjava.rmi.RemoteException