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. | |||||||||||||||||||||||||||||||||||||||||||||||
LdKeyLineCost A 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.
SiteId Identifier of the site
for this failure.
| OrderUnit | See | WPItem
OrgId Identifier of the organization for this failure.
| Rate Tool 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.
| SiteId Identifier of the site for this failure.
| TaskID A non-persistent attribute to identify the task number of the Work Order associate with this work plan tool.
| Hours Number of hours for which a tool is used.
| ItemNum Identification number of Tool for this work plan tool.
| ItemQty Quantity 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, 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
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, validateStoreLocSite
addMboSetForRequiredCheck, 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, valueChanged
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMboSetForRequiredCheck, 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, validateAttributes
public WPTool(MboSet ms) throws MXException, java.rmi.RemoteException
ms
- The WPTool MboSet.MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXApplicationException
- ownerWoWPTool when its owner is not Workorder.MXException
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 |
---|---|
LINECOST | 0.0 |
Hours | 0.0 |
Linetype | TOOL |
StoreLocSite | Owner's SiteID |
add
in interface MboRemote
add
in class WPItem
MXApplicationException
- ownerWoWPLabor when this wptool's owner is not a workorder.MXException
java.rmi.RemoteException
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXApplicationException
- ("workorder", "NeedStoreroom") is thrown when the Reservereq is true.MXException
java.rmi.RemoteException
public void canDelete() throws MXException
canDelete
in class Mbo
MXAccessException
- deletewptool when there exists an Actual tool for this WPTOOLMXException
public void refreshRate() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void copyPlan(MboRemote source) throws MXException, java.rmi.RemoteException
copyPlan
in interface WorkPlanMbo
copyPlan
in class WPItem
source
- the job tool Mbo used to copy data from.MXException
java.rmi.RemoteException
WPItem.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.MXException
java.rmi.RemoteException
public void validateToolAvailInStorerooms() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
delete
in interface MboRemote
delete
in class Mbo
accessModifier
- MXException
java.rmi.RemoteException
Mbo.delete(long)
public void undelete() throws MXException, java.rmi.RemoteException
undelete
in interface MboRemote
undelete
in class Mbo
MXException
java.rmi.RemoteException
public void updateTotals(MboRemote wo, boolean isGain) throws MXException, java.rmi.RemoteException
updateTotals
in interface WorkPlanMbo
updateTotals
in class WPItem
wo
- The work order Mbo to update.isGain
- Is this a gain or loss for the work order.MXException
java.rmi.RemoteException
public void setFieldsFlagInDuplicate() throws MXException, java.rmi.RemoteException
setFieldsFlagInDuplicate
in interface WPToolRemote
MXException
java.rmi.RemoteException
setFieldsFlagInDuplicate()
public boolean isCrewTool() throws MXException, java.rmi.RemoteException
isCrewTool
in interface WPToolRemote
MXException
java.rmi.RemoteException
isCrewTool()
public MboRemote getAssociatedLabor() throws java.rmi.RemoteException, MXException
getAssociatedLabor
in interface WPToolRemote
java.rmi.RemoteException
MXException
getAssociatedLabor()
public void removeTool() throws MXException, java.rmi.RemoteException
removeTool
in interface WPToolRemote
MXException
java.rmi.RemoteException