v7.3.0
SupportExamplesFree Trial

TimePhasedAssignmentModel

This class extends AssignmentModel with time-phased data support, allowing assignment effort and units to vary across different time periods rather than being a single flat value. It is used when the project is configured with TimePhasedProjectModel, which enables fine-grained control over how resources are allocated to events over time.

See also

No results

Fields

Fields belong to a Model class and define the Model data structure
  • The total projected cost for the assignment. The field value is calculated for a material or work resource assignment. For a cost-type resources the cost is meant to be provided.

  • Specify false to opt out of drawing dependencies from/to this assignment

  • A numeric value indicating the effort contributed by the assigned resource to the event.

  • Id for event to assign. Can be used as an alternative to eventId, but please note that after load it will be populated with the actual event and not its id. This field is not persistable.

  • Id for the event to assign

  • Id for resource to assign to. Can be used as an alternative to resourceId, but please note that after load it will be populated with the actual resource and not its id. This field is not persistable.

  • Id for the resource to assign to

  • The end date of the assignment. If not provided the assignments lasts till the task end date. Please note that the field has effect only only in the Gantt and when TimePhasedProjectModel is used.

  • The start date of the assignment. If not provided the assignment starts from the task start date. Please note that the field has effect only only in the Gantt and when TimePhasedProjectModel is used.

  • Start expanded or not (only valid for tree data)

  • This is a read-only field provided in server synchronization packets to specify which position the node takes in the parent's ordered children array. This index is set on load and gets updated on reordering nodes in tree. Sorting and filtering have no effect on it.

  • parentId : String/Number/null
    READONLY
    TreeNode

    This is a read-only field provided in server synchronization packets to specify which record id is the parent of the record.

  • This is a read-only field provided in server synchronization packets to specify which position the node takes in the parent's children array. This index is set on load and gets updated automatically after row reordering, sorting, etc. To save the order, need to persist the field on the server and when data is fetched to be loaded, need to sort by this field.

  • Deprecated:

    This field has been deprecated. Please read the guide to find out if your app needs to use the new isFullyLoaded field.

    This field is added to the class at runtime when the Store is configured with lazyLoad. The number specified should reflect the total amount of children of a parent node, including nested descendants.

Properties

Properties are getters/setters or publicly accessible variables on this class
  • isAssignmentModelMixin : Booleantrue
    READONLY
    static
    ADVANCED
    AssignmentModelMixin
    Identifies an object as an instance of AssignmentModelMixin class, or subclass thereof.
  • isModelStm : Booleantrue
    READONLY
    static
    ADVANCED
    ModelStm
    Identifies an object as an instance of ModelStm class, or subclass thereof.
  • isTimePhasedAssignmentModel : Booleantrue
    READONLY
    static
    ADVANCED
    Identifies an object as an instance of TimePhasedAssignmentModel class, or subclass thereof.
  • isTreeNode : Booleantrue
    READONLY
    static
    ADVANCED
    TreeNode
    Identifies an object as an instance of TreeNode class, or subclass thereof.
  • A class property getter for the default values of internal properties for this class.

  • An array containing all the defined fields for this Model class. This will include all superclass's defined fields.

  • fieldMap : Object<String, DataField>
    READONLY
    static
    AssignmentModel

    An object containing all the defined fields for this Model class. This will include all superclass's defined fields through its prototype chain. So be aware that Object.keys and Object.entries will only access this class's defined fields.

  • The data source for the id field which provides the ID of instances of this Model.

Functions

Functions are methods available for calling on the class
  • onClassMixedIn( )
    internal
    static
    AssignmentModel

    This optional class method is called when a class is mixed in using the mixin() method.

  • initClass( )
    static
    ADVANCED
    AssignmentModel

    Registers this class type with its Factory

  • exposeRelations( )
    internal
    static
    AssignmentModel

    Makes getters and setters for related records. Populates a Model#relation array with the relations, to allow it to be modified later when assigning stores.

  • Cancels current batch operation. Any changes during the batch are discarded.

  • Reverts changes in this back to their original values.

  • Called from insertChild to notify StateTrackingManager about children insertion. Provides it with all necessary context information collected in beforeInsertChild required to undo/redo the action.

  • Called from removeChild to notify StateTrackingManager about children removing. Provides it with all necessary context information collected in beforeRemoveChild required to undo/redo the action.

  • Called during creation to also turn any children into Models joined to the same stores as this model

  • Initializes model relations. Called from store when adding a record.

  • clear( )
    private
    TreeNode

    Removes all records from the rootNode

Source path

SchedulerPro/model/TimePhasedAssignmentModel.js

Contents