AssignmentModel

This class represents a single assignment of a resource to a task in your gantt chart.

Properties

65

Class hierarchy

isAssignmentModel: Boolean= truereadonly
Identifies an object as an instance of AssignmentModel class, or subclass thereof.
isAssignmentModel: Boolean= truereadonlystatic
Identifies an object as an instance of AssignmentModel class, or subclass thereof.
isAssignmentModelMixinAssignmentModelMixin
isModelModel
isModelLinkModelLink
isModelStmModelStm
isTreeNodeTreeNode

Editing

copyOfModel
isValidModel

Fields

allFieldsstaticModel
autoExposeFieldsstaticModel
childrenFieldstaticModel
defaultsstaticModel
fieldMapstaticModel
fieldsstaticModel
idFieldstaticModel

Grouping

Identification

keyModel

JSON

jsonModel

Lifecycle

configBase

Linked records

hasLinksModelLink
isLinkedModelLink
recordLinksModelLink

Misc

stmModelStm

Other

$namestaticModel
eventNameAssignmentModelMixin
relationsstaticModel
resourceNameAssignmentModelMixin

Parent & children

allChildrenTreeNode
childLevelTreeNode
firstChildTreeNode
isLeafTreeNode
isLoadedTreeNode
isParentTreeNode
isRootTreeNode
lastChildTreeNode
nextSiblingTreeNode
parentTreeNode
parentIdTreeNode

Functions

56

Configuration

applyDefaultsstaticBase

Editing

copyModel
getDataModel
removeModel
setModel
setAsyncAssignmentModelMixin

Events

Fields

addFieldstaticModel
getModel
processFieldstaticModel
removeFieldstaticModel

Identification

asIdstaticModel
generateIdstaticModel

JSON

toJSONModel

Lifecycle

destroystaticBase

Misc

equalsModel
initClassstaticBase
isOfTypeNamestaticBase
linkModelLink
mixinstaticBase

Other

getResourceAssignmentModelMixin

Parent & children

appendChildTreeNode
bubbleTreeNode
bubbleWhileTreeNode
containsTreeNode
insertChildTreeNode
isExpandedTreeNode
removeChildTreeNode
traverseTreeNode

Typedefs

1

Fields

9

Common

effort: Number

A numeric value indicating the effort contributed by this assignment to the event.

Since 7.0.0 release, the effort for all assignments is tracked separately (previously it was tracked on the event level).

Note, that relation between the assignment's duration, effort and units is defined by the event's scheduling mode and effortDriven flag.

Please refer to time-phased assignments guide for more details.

Other

duration: Number

The duration of this assignment. Assigning at least 2 variables from 3 (startDate, endDate, duration) will make assignment "time-phased".

Please refer to time-phased assignments guide for more details.

See also durationUnit.

durationUnit: Number

The time unit for duration. It has the same meaning and values as durationUnit.

effortUnit: Number

The time unit for effort. It has the same meaning and values as effortUnit.

endDate: Date

The end date of this assignment. Assigning at least 2 variables from 3 (startDate, endDate, duration) will make assignment "time-phased".

Please note that the field has effect only only when TimePhasedProjectModel is used. Please refer to time-phased assignments guide for more details.

Id for event to assign. Note that after load it will be populated with the actual event.

Id for resource to assign to. Note that after load it will be populated with the actual resource.

startDate: Date

The start date of this assignment. Assigning at least 2 variables from 3 (startDate, endDate, duration) will make assignment "time-phased".

Please note that the field has effect only only when TimePhasedProjectModel is used. Please refer to time-phased assignments guide for more details.

units: Number

The numeric, percent-like value, indicating what is the "contribution level" of the resource availability to the task. Number 100, means that the assigned resource spends 100% of its working time to the task. Number 50 means that the resource spends only half of its available time for the assigned task.