public class WPTool extends WPItem implements WPToolRemote
See WorkOrder Package description for detail.
There is no key attribute for this object.
The attributes in this object are as follows:
| Attribute Name | Description | |||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CatalogCode | See WPItem for details.
| |||||||||||||||||||||||||||||||||||||||||||||||
| Description | See WPItem for details.
| |||||||||||||||||||||||||||||||||||||||||||||||
| DirectReq | See WPItem for details.
| |||||||||||||||||||||||||||||||||||||||||||||||
| IssueTo | See WPItem for details.
| |||||||||||||||||||||||||||||||||||||||||||||||
| LineType | The line type of work plan tools. | |||||||||||||||||||||||||||||||||||||||||||||||
LdKeyLineCostA non-persistent attribute to calculate the total cost of the line(ToolHrs*ToolQty*Rate).
| Location | Primary or alternate location from inventory for this work plan material/service/tool item.
| Manufacturer | See | WPItem for details.
ModelNum | See | WPItem for details.
PR} | See | WPItem for details.
PRLineNum | See | WPItem for details.
RequestBy | See | WPItem for details.
RequireDate | See | WPItem for details.
SiteIdIdentifier of the site
for this failure.
| OrderUnit | See | WPItem
OrgIdIdentifier of the organization for this failure.
| RateTool Rate when work order was approved.
| RateHasChanged | Flag tracks if the tool rate 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.
| SiteIdIdentifier of the site for this failure.
| TaskIDA non-persistent attribute to identify the task number of the Work Order associate with this work plan tool.
| HoursNumber of hours for which a tool is used.
| ItemNumIdentification number of Tool for this work plan tool.
| ItemQtyQuantity of the tool for this Work Plan.
| WoNum | Identifier of the workorder associate with this work plan tool.
| Vendor | See | WPItem for details.
VendorPackCode | See | WPItem for details.
VendorPackQuantity | See | WPItem for details.
VendorUnitPrice | See | WPItem for details.
VendorWareHouse | See | WPItem for details.
|
MULTILANGCOPY, 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 |
|---|
WPTool(MboSet ms)
Construct the WPTool.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add()
Sets Default value for some of the fields of the new WPTool.
|
void |
appValidate()
validates WPTool.
|
void |
canDelete()
Can not delete if there exists an Actual Tool for this WPTool.
|
void |
copyPlan(MboRemote source)
Used to fill in data when copying from Job Tool.
|
void |
delete(long accessModifier)
Subtracts the line cost from WO.EstToolCost.
|
MboRemote |
getAssociatedLabor() |
void |
init()
Initialize the WPTool object.
|
boolean |
isCrewTool() |
void |
refreshRate()
If ratehaschanged is false, copy tool.toolrate to wptool.rate.
|
void |
removeTool() |
void |
setFieldsFlagInDuplicate()
Set fields read only or editable based on the Reservereq.
|
void |
undelete()
Adds the line cost to WO.EstMatCost.
|
void |
updateEstimateTotal(double delta)
Used to update WO.EstToolCost when the Quantity, Rate, or Hours changes on a WPTool.
|
void |
updateTotals(MboRemote wo,
boolean isGain)
Updates the work order totals related to the work plan mbo.
|
void |
validateToolAvailInStorerooms()
Checks to see whether this tool is available in any of the storerooms for a given storeroom's site
|
copyHazardForItem, getRequiredMaterialCost, getValidateOrder, isNullQty, propagateKeyValue, setBaseCurrencyUnitCost, setEstCost, setLocation, setVendor, validateStoreLocSiteaddMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, checkFieldAccess, checkMethodAccess, checkMethodAccess, checkQualifiedRestriction, checkSiteOrgAccessForSave, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, 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, 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, unlock, unselect, useDataSecurity, validate, validateAttributes, validateKeyUniqueness, valueChangedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddMboSetForRequiredCheck, addToDeleteForInsertList, blindCopy, checkMethodAccess, clear, copy, copy, copy, copyFake, copyValue, copyValue, createComm, 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, 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, smartFindByObjectName, smartFindByObjectName, smartFindByObjectNameDirect, startCheckpoint, thisToBeUpdated, toBeAdded, toBeDeleted, toBeSaved, toBeUpdated, toBeValidated, unlock, unselect, validate, validateAttributespublic WPTool(MboSet ms) throws MXException, java.rmi.RemoteException
ms - The WPTool MboSet.MXExceptionjava.rmi.RemoteExceptionpublic void init()
throws MXException
init in class MboMXApplicationException - ownerWoWPTool when its owner is not Workorder.MXExceptionpublic 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 |
|---|---|
| LINECOST | 0.0 |
| Hours | 0.0 |
| Linetype | TOOL |
| StoreLocSite | Owner's SiteID |
add in interface MboRemoteadd in class WPItemMXApplicationException - ownerWoWPLabor when this wptool's owner is not a workorder.MXExceptionjava.rmi.RemoteExceptionpublic void appValidate()
throws MXException,
java.rmi.RemoteException
appValidate in class MboMXApplicationException - ("workorder", "NeedStoreroom") is thrown when the Reservereq is true.MXExceptionjava.rmi.RemoteExceptionpublic void canDelete()
throws MXException
canDelete in class MboMXAccessException - deletewptool when there exists an Actual tool for this WPTOOLMXExceptionpublic void refreshRate()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void copyPlan(MboRemote source) throws MXException, java.rmi.RemoteException
copyPlan in interface WorkPlanMbocopyPlan in class WPItemsource - the job tool Mbo used to copy data from.MXExceptionjava.rmi.RemoteExceptionWPItem.getRequiredMaterialCost(),
#getItemCostFromInventory,
WPItem.copyHazardForItem()public void updateEstimateTotal(double delta)
throws MXException,
java.rmi.RemoteException
delta - The change in toolcost need be added to WO.EstToolCost.MXExceptionjava.rmi.RemoteExceptionpublic void validateToolAvailInStorerooms()
throws MXException,
java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic void delete(long accessModifier)
throws MXException,
java.rmi.RemoteException
delete in interface MboRemotedelete in class MboaccessModifier - MXExceptionjava.rmi.RemoteExceptionMbo.delete(long)public void undelete()
throws MXException,
java.rmi.RemoteException
undelete in interface MboRemoteundelete in class MboMXExceptionjava.rmi.RemoteExceptionpublic void updateTotals(MboRemote wo, boolean isGain) throws MXException, java.rmi.RemoteException
updateTotals in interface WorkPlanMboupdateTotals in class WPItemwo - The work order Mbo to update.isGain - Is this a gain or loss for the work order.MXExceptionjava.rmi.RemoteExceptionpublic void setFieldsFlagInDuplicate()
throws MXException,
java.rmi.RemoteException
setFieldsFlagInDuplicate in interface WPToolRemoteMXExceptionjava.rmi.RemoteExceptionsetFieldsFlagInDuplicate()public boolean isCrewTool()
throws MXException,
java.rmi.RemoteException
isCrewTool in interface WPToolRemoteMXExceptionjava.rmi.RemoteExceptionisCrewTool()public MboRemote getAssociatedLabor() throws java.rmi.RemoteException, MXException
getAssociatedLabor in interface WPToolRemotejava.rmi.RemoteExceptionMXExceptiongetAssociatedLabor()public void removeTool()
throws MXException,
java.rmi.RemoteException
removeTool in interface WPToolRemoteMXExceptionjava.rmi.RemoteException