public class JobItem extends Mbo implements JobItemRemote
The attributes in this object are as follows::
Attribute Name | Description |
---|---|
ConditionCode | The condition of the item in a given job plan |
DirectReq | Indicates whether the item will be purchased with the intent of issuing the it directly upon receipt or not. |
Hours | Number Of Hours For Which A Tool Is Used. APllicable to Tool only. |
Itemnum | Identifier of the item being used. |
ItemQty} | Specifies the number of items needed for the task. |
ITEMSETID | Set identifier for the item. |
Jobplanid | A system generated unique identifier for the job plan that owns this Job Item. This will be copied from owner Job Plan to this Job Item. |
JobItemid | A system generated unique identifier for this Job Tool. |
Jpnum | Identifier for the Job Plan. This will be copied from owner Job Plan to this Job Material. |
JpTask | Identifier of the the Job Plan task for which this Item is used. |
LineCost | A non-persistent attribute that indicates the estimated total cost of the Item. |
LineType | The Line type of JobMaterial, JobService and JobTool. |
Location | Identifier of the storeroom location of this item. |
OrgId | Identifier of the organization for the Job Item. |
siteid | Identifier of the Site for the Job Tool. |
Rate | Identifies the Cost for the Tool per hour. |
ReserveReq | Identifies Whether Reservation Required for this tool |
StoreLocSite | Storeroom's Site |
UnitCost | A non-persistent attribute that indicates the unit cost of the Item. |
Vendor | Identifier of the Company for Contractor who supplies the materials. |
JM1 through JM6 | 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 |
---|
JobItem(MboSet ms)
Construct the JobItem object
|
Modifier and Type | Method and Description |
---|---|
void |
add()
Add a new Job Item.
When a new JobItem(ie. |
void |
appValidate()
This method will be called to make sure
the Task Number:Orgid:Siteid key combination is a valid JobTask key combination
|
java.lang.String |
getOrgForGL(java.lang.String lookupAttr)
Override Mbo.getOrgForGL as JOBITEM is an ITEMSET object and GLAccount needs ORGID to work.
|
java.lang.String[] |
getValidateOrder()
Validation Order for job item attributes.
|
void |
init()
Initialize the Job Item object
Set the orgid READONLY flag to true if there is an orgid on the jobplan Set the siteid READONLY flag to true if there is a siteid on the jobplan |
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 item(Material/Service). |
void |
setToolRate() |
void |
setUnitCost()
Set unitcost value
The unitcost value will be set to the value of either "AVGCOST" or "STDCOST" or "LASTCOST" depending on the "DEFISSUECOST" of this item. |
void |
setUnitCostFromInvvendor()
Set unit cost from INVVENDOR
If it is direct issue - if it is a default vendor, then take last cost of the vendor and set it to unitcost - if it is not a default vendor and there invvendor records for this item, then take the latest "last date" vendor records and take last cost from that. |
void |
setVendor()
Set VENDOR value
The default Vendor will be depending on the "isdefault" of this item. |
void |
undelete()
undeletes the Job Material / Job Services.
|
void |
validateStoreLocSite()
Checks to see whether it has a valid StoreLocSite
|
addMboSetForRequiredCheck, addToDeleteForInsertList, andEvaluateConditions, 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, getESId, getExistingMboSet, getFetchIndex, getFieldExceptions, getFlags, getFloat, getIgnoreLockCheck, getInitialValue, getInsertCompanySetId, getInsertItemSetId, getInsertOrganization, getInsertOrgForSite, getInsertSite, getInstanciatedMboSet, getInstanciatedMboValue, getInt, getIntegrationService, getKeyValue, getLanguageRecordRowStamp, getLinesRelationship, getList, getLockedByDisplayName, getLockedByUserID, getLong, getMatchingAttr, getMatchingAttr, getMatchingAttrs, getMaxMessage, getMboCtx, getMboData, getMboDataSet, getMboForAttribute, getMboForAttributeStatic, getMboInitialValue, getMboList, getMboLogger, getMboRecordData, getMboServer, getMboSet, getMboSet, getMboSet, getMboSetInfo, getMboValue, getMboValueData, getMboValueData, getMboValueData, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, getOrgSiteForMaxvar, getOwner, getProfile, getPropagateKeyFlag, getProxy, getRecordIdentifer, getRecordMboName, getRelatedWhere, getRelatedWhere, getRelationshipNameToLangTable, getResourceName, getRowRestrictionFlag, getRowStamp, getRowStampObject, getSecurityLogger, getSiteOrg, getSqlLogger, getString, getString, getStringInBaseLanguage, getStringInSpecificLocale, getStringTransparent, getSynonymValueWhere, getTenantId, getThisMboSet, getTranslator, getUniqueIdentifer, getUniqueIDName, getUniqueIDValue, getUniqueLanguageIDRecord, getUserInfo, getUserName, hasFieldAccess, hasHierarchyLink, hasLockSaveRights, hasRelatedQbe, hasUniqueID, initFieldFlagsOnMbo, initRelationship, isApiBatchError, isAutoKeyed, isBasedOn, isChangeByUserWhenSetFromLookup, isEAuditFieldModified, isESigFieldModified, isFlagSet, isForDM, isLocked, isLocked, isLockedByMe, isMasterTenant, isMboLockedByMe, isModified, isModified, isNew, isNoSql, isNull, isOptionGranted, isSelected, isSkipCopyField, isValid, isZombie, lock, modify, moveFieldFlagsToMboValue, needCallInitFieldFlag, orEvaluateConditions, removeCtx, removeRelatedSet, resolveNoSqlWhere, rollbackToCheckpoint, select, setAppDefaultValue, setApplicationError, setApplicationRequired, setAutokeyFields, setCopyDefaults, setDefaultValue, setDefaultValues, setDeleted, setEAuditFieldModified, setESId, setESigFieldModified, setFetchIndex, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlag, setFieldFlags, setFlag, setFlag, setFlags, setForDM, setHierarchyLink, setIgnoreRecordLockCheck, setLangCodeDefault, setMboCtx, setMLValue, setModified, setModifiedForIntegrationOnly, setNewMbo, setNoSql, setPropagateKeyFlag, setPropagateKeyFlag, setProxy, setReadonlyWhenParentIsReadonly, setReferencedMbo, setReferencedMbo, setResolveNoSqlWhere, setResourceName, 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, 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, getMboValueDataForDownload, getMboValueInfoStatic, getMboValueInfoStatic, getMessage, getMessage, getMessage, getMessage, getMXTransaction, getName, 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 JobItem(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
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 void setUnitCost() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setVendor() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void setUnitCostFromInvvendor() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String[] getValidateOrder()
getValidateOrder
in class Mbo
public void undelete() throws java.rmi.RemoteException, MXException
undelete
in interface MboRemote
undelete
in class Mbo
MXException
java.rmi.RemoteException
psdi.app.jobplan.JobTask#iisValidTaskComponentKey(MboRemote mbo)
public void appValidate() throws MXException, java.rmi.RemoteException
appValidate
in class Mbo
MXApplicationException
- If JobItem key is invalid and is a material linetype, then MXApplicationException("jobplan","materialnotvalidjptask")MXApplicationException
- If JobItem key is invalid and is a service linetype, then MXApplicationException("jobplan","servicenotvalidjptask")MXApplicationException
- If JobItem key is invalid and is not a material or service linetype, then MXApplicationException("jobplan","notvalidjptask")MXApplicationException
- If this record has a location and no storelocsite, then MXApplicationException("jobplan","needstoreroomsite")MXException
java.rmi.RemoteException
public void setToolRate() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public void validateStoreLocSite() throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public java.lang.String getOrgForGL(java.lang.String lookupAttr) throws MXException, java.rmi.RemoteException
getOrgForGL
in interface MboRemote
getOrgForGL
in class Mbo
MXException
java.rmi.RemoteException