public class JobLabor extends Mbo implements JobLaborRemote
This is organization level object that can be defined to exist at the organization level or site level.
The key attributes for this object are OrgId,SiteId,Jpnum,Jptask and Laborcode
The attributes in this object are as follows::
Attribute Name | Description |
---|---|
Contractnum | The crafts Contract Number |
psdi.app.jobplan.FldJobLaborCraftRate Craft) | Identifier of the craft who will perform this task. |
Joblaborid | A system generated unique identifier for this Job Labor. |
Jobplanid | A system generated unique identifier for the job plan that owns this Job Labor. This will be copied from owner Job Plan to this Job Labor. |
{@link psdi.app.jobplan.FldJpnum Jpnum} | Identifier for the Job Plan. This will be copied from owner Job Plan to this Job Labor. |
{@link psdi.app.jobplan.FldJpTask JpTask} | Identifier of the the Job Plan task for which this labor is used. |
{@link psdi.app.jobplan.FldJobLaborLaborCode LaborCode} | Identifier of the labor who will perform this task. |
{@link psdi.app.jobplan.FldJobLaborLaborHrs LaborHrs} | Indicates the number of hours needed for this craft or labor to complete the task. |
{@link psdi.app.jobplan.FldJobLaborLineCost LineCost} | A non-persistent attribute that indicates the estimated total cost of the labor or craft. |
OrgId | Identifier of the {@link psdi.app.site.Organization organization} for this Job Plan. |
{@link psdi.app.jobplan.FldJobLaborPayRate PayRate} | A non-persistent attribute that indicates the hourly pay rate for the labor or craft. |
{@link psdi.app.jobplan.FldJobLaborQty Quantity} | Indicates the number of labor or crafs needed for this Job Plan. The default quantity is 1. For a labor, the quantity will always be 1. |
SiteId | Identifier of the {@link psdi.app.site.Site site} for the Job Plan. |
{@link psdi.app.jobplan.FldJobLaborCraftRate Skilllevel} | The crafts Skill Level |
{@link psdi.app.jobplan.FldJobLaborCraftRate Vendor} | Identifier of the Company or Contractor who supplies the craft. |
JL1 through JL9 | Extra Fields. |
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 |
---|
JobLabor(MboSet ms)
Construct the JobLabor object
|
Modifier and Type | Method and Description |
---|---|
void |
add()
Add a new Job Labor.
|
void |
appValidate()
This method will be called to make sure
(1) The Task Number:Orgid:Siteid key combination is a valid JobTask key combination.
|
void |
delete(long accessModifier)
Mark the object to be deleted depending on the access modifier.
|
void |
deleteAssociatedTool() |
java.lang.String[] |
getValidateOrder()
Validation Order for job labor attributes.
|
void |
init()
Initialize the Job Labor object.
|
void |
propagateKeyValue(java.lang.String keyName,
java.lang.String keyValue)
Set value for jpnum.
|
void |
setLineCost()
Set linecost value
The linecost represents the estimated total cost of the labor or craft.
|
void |
undelete()
undeletes the job Labor.
|
void |
undeleteAddAssociatedTool() |
void |
updateAssociatedToolData() |
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, blindCopy, canDelete, 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 JobLabor(MboSet ms) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void init() throws MXException
init
in class Mbo
MXException
public void add() throws MXException, java.rmi.RemoteException
add
in interface MboRemote
add
in class Mbo
MXException
java.rmi.RemoteException
JobPlan.componentAdded()
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 "jpnum" or else nothing will be propagated.keyValue
- The new value of jpnum.MXException
java.rmi.RemoteException
public void setLineCost() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String[] getValidateOrder()
getValidateOrder
in class Mbo
public void undeleteAddAssociatedTool() throws MXException, java.rmi.RemoteException
undeleteAddAssociatedTool
in interface JobLaborRemote
MXException
java.rmi.RemoteException
undeleteAddAssociatedTool()
public void deleteAssociatedTool() throws MXException, java.rmi.RemoteException
deleteAssociatedTool
in interface JobLaborRemote
MXException
java.rmi.RemoteException
JobLabor#deleteAssociatedTool(MboValue)
public void delete(long accessModifier) throws MXException, java.rmi.RemoteException
Mbo
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.
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.MXException
java.rmi.RemoteException
Mbo.delete(long)
public void undelete() throws java.rmi.RemoteException, MXException
undelete
in interface MboRemote
undelete
in class Mbo
MXException
java.rmi.RemoteException
public void updateAssociatedToolData() throws MXException, java.rmi.RemoteException
updateAssociatedToolData
in interface JobLaborRemote
MXException
java.rmi.RemoteException
psdi.plusd.app.jobplan.PlusDJobLaborRemote#updateAssociatedToolData()
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXApplicationException
- If there is no labor or craft then
MXApplicationException("jobplan","nolabororcraft")MXException
- If JobTask key is invalid then
MXApplicationException("jobplan","notvalidjptask")MXApplicationException
- If the craftrate fields can return more than 1 CRAFTRATE row
MXApplicationException("jobplan","morethanonecraftrate")java.rmi.RemoteException
psdi.app.jobplan.JobTask#iisValidTaskComponentKey(MboRemote mbo)