public class WPLabor extends Mbo implements WPLaborRemote, WorkPlanMbo
See WorkOrder Package description.
The key attributes for this object is WPLaborId and SiteID.
The attributes in this object are as follows:
Attribute Name | Description |
---|---|
QUANTITY | Quantity of craft for an operation. |
LaborCode | Identifier of the Craft. |
LaborHrs | Labor hours required by this work plan task. |
LdKey | Long description key. This is a link to text stored in the LongDescription table. |
LineCost | A non-persistent attribute to calculate the total cost of the line(LaborHrs*QUANTITY*Rate). |
OrgId | Identifier of the organization for this failure. |
Rate | Labor rate when workorder was approved. |
RateHasChanged | Flag tracks if the labor rate has been overwritten by user. |
SiteId | Identifier of the site for this failure. |
TaskID | A non-persistent attribute to identify the task number of the the work order associate with this work plan labor. |
Vendor | Identifier of the Company for contractor who is a supplier of labor resources for this work plan labor. |
WoNum | Identifier of the work order associate with this work plan labor. |
WPLaborId | Unique Identifier of this wplabor object. If no - field will be overwritten by MAXIMO on Approval. If yes - field will not be overwritten by MAXIMO on Approval. |
WPL1-WPL3 | Extra fields, crossover fields from JobLabor.JL1-JL3. |
WPL7-WPL9 | Extra fields, crossover fields from JobLabor.JL7-JL9. |
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 |
---|
WPLabor(MboSet ms)
Construct the WPLabor.
|
Modifier and Type | Method and Description |
---|---|
void |
add()
Sets Default value for some of the fields of the new WPLabor.
|
void |
appValidate()
Validate that a craft rate exists that matches this WPLabor.
|
double |
calculatetotalcost()
Calculates the Total Cost
|
void |
canDelete()
Can not delete if there exists an Actual Labor for this WPLABOR
|
void |
copyPlan(MboRemote source)
Used to fill in data when copying from Job Plan to Work Plan
|
void |
delete(long accessModifier)
Deletes assignments related to the WPLabor object and subtract this line's
cost and hours from WO.EstLabCost and WO.EstLabHrs.
|
void |
deleteAssociatedTool() |
void |
deleteAssociatedTool(MboValue value) |
void |
deleteAssociatedTool(java.lang.String assoc) |
void |
deleteAssociatedTool(java.lang.String attributename,
java.lang.String svalue) |
java.util.List |
findAssignments()
Creates a vector of Assignment Mbo's which have the wpLaborId.
|
java.lang.String[] |
getValidateOrder()
Validation Order for Labor attributes.
|
void |
init()
Initialize the WPLabor object.
|
void |
propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
Set value for Wonum.
|
void |
refreshRate()
If ratehaschanged is false, copy labor.payrate to wplabor.rate
|
void |
undelete()
Adds the cost and hours back in and creates new assignments.
|
void |
undeleteAddAssociatedTool() |
void |
updateAssignments(int newQty)
Called by the LaborQty field validation class, this function attempts to match the number of
assigments to the labor quantity called for by the WPLabor object.
|
void |
updateAssignments(java.lang.String attr,
java.lang.String value) |
void |
UpdateAssignmentSet(boolean apptRequired,
java.lang.String laborid)
This method sets the apptrequired flag for assignment set for corresponding labor.
|
void |
updateAssociatedToolData() |
void |
updateTotals(MboRemote wo,
boolean isGain)
Updates the work order totals related to the work plan mbo.
|
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, 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 WPLabor(MboSet ms) throws MXException, java.rmi.RemoteException
ms
- The MboSet of the WPLabor.MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXApplicationException
- ownerWoWPLabor when this wplabor does not have a owner or its owner is not a 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 |
---|---|
QUANTITY | 1.0 |
LaborHrs | 0.0 |
Rate | 0.0 |
WPLaborID | auto-generated number |
RateHasChanged | false |
LineCost | 0.0 |
add
in interface MboRemote
add
in class Mbo
MXApplicationException
- ownerWoWPLabor when this wplabor does not have a owner or its owner is not a workorder.MXException
java.rmi.RemoteException
public void canDelete() throws MXException
canDelete
in class Mbo
MXAccessException
- deletewplabor when there exists an Actual Labor for this WPLABORMXException
public void refreshRate() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public double calculatetotalcost()
public void copyPlan(MboRemote source) throws MXException, java.rmi.RemoteException
copyPlan
in interface WorkPlanMbo
source
- remote JobPlan labor objectMXException
java.rmi.RemoteException
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
delete
in interface MboRemote
delete
in class Mbo
accessModifier
- The bitwise flag specified to determine if certain normal
security checks are to be bypassed for this delete request.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 java.util.List findAssignments() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void updateAssignments(int newQty) throws MXException, java.rmi.RemoteException
newQty
- the quantity of this wplaborMXException
java.rmi.RemoteException
public void updateAssignments(java.lang.String attr, java.lang.String value) 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 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 appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXException
java.rmi.RemoteException
public java.lang.String[] getValidateOrder()
getValidateOrder
in class Mbo
public void deleteAssociatedTool() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void deleteAssociatedTool(java.lang.String assoc) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public void updateAssociatedToolData() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void undeleteAddAssociatedTool() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void deleteAssociatedTool(MboValue value) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void deleteAssociatedTool(java.lang.String attributename, java.lang.String svalue) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void UpdateAssignmentSet(boolean apptRequired, java.lang.String laborid) throws MXException, java.rmi.RemoteException
boolean
- laborid
- MXException
java.rmi.RemoteException