Class ResourceAssignment
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
Represents a resource assignment in a project.
public class ResourceAssignment : IEquatable<resourceassignment>
Inheritance
Implements
IEquatable<resourceassignment>
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
ACWP
Gets or sets a value of ACWP.
[EntityField]
public double ACWP { get; set; }
Property Value
ActualCost
Gets or sets a value of ActualCost.
[EntityField]
public decimal ActualCost { get; set; }
Property Value
ActualFinish
Gets or sets a value of ActualFinish.
[EntityField]
public DateTime ActualFinish { get; set; }
Property Value
ActualOvertimeCost
Gets or sets a value of ActualOvertimeCost.
[EntityField]
public decimal ActualOvertimeCost { get; set; }
Property Value
ActualOvertimeWork
Gets or sets a value of ActualOvertimeWork.
[EntityField]
public Duration ActualOvertimeWork { get; set; }
Property Value
ActualOvertimeWorkProtected
Gets or sets a value of ActualOvertimeWorkProtected.
[EntityField]
public Duration ActualOvertimeWorkProtected { get; set; }
Property Value
ActualStart
Gets or sets a value of ActualStart.
[EntityField]
public DateTime ActualStart { get; set; }
Property Value
ActualWork
Gets or sets a value of ActualWork.
[EntityField]
public Duration ActualWork { get; set; }
Property Value
ActualWorkProtected
Gets or sets a value of ActualWorkProtected.
[EntityField]
public Duration ActualWorkProtected { get; set; }
Property Value
AssignmentOwner
Gets or sets a value of AssignmentOwner.
[EntityField]
public string AssignmentOwner { get; set; }
Property Value
AssignmentOwnerGuid
Gets or sets a value of AssignmentOwnerGuid.
[EntityField]
public string AssignmentOwnerGuid { get; set; }
Property Value
BCWP
Gets or sets a value of BCWP.
[EntityField]
public double BCWP { get; set; }
Property Value
BCWS
Gets or sets a value of BCWS.
[EntityField]
public double BCWS { get; set; }
Property Value
Baselines
Gets AssignmentBaselineCollection object. The collection of baseline values associated with an assignment.
public AssignmentBaselineCollection Baselines { get; }
Property Value
BookingType
Gets or sets a value of BookingType.
[EntityField]
public BookingType BookingType { get; set; }
Property Value
BudgetCost
Gets or sets a value of BudgetCost.
[EntityField]
public decimal BudgetCost { get; set; }
Property Value
BudgetWork
Gets or sets a value of BudgetWork.
[EntityField]
public Duration BudgetWork { get; set; }
Property Value
CV
Gets or sets a value of CV.
[EntityField]
public double CV { get; set; }
Property Value
Confirmed
Gets or sets a value indicating whether Confirmed is set or not.
[EntityField]
public bool Confirmed { get; set; }
Property Value
Cost
Gets or sets a value of Cost.
[EntityField]
public decimal Cost { get; set; }
Property Value
CostRateTableType
Gets or sets a value of CostRateTableType.
[EntityField]
public RateType CostRateTableType { get; set; }
Property Value
CostVariance
Gets or sets a value of CostVariance.
[EntityField]
public double CostVariance { get; set; }
Property Value
Created
Gets or sets a value of Created.
[EntityField]
public DateTime Created { get; set; }
Property Value
Delay
Gets or sets a value of Delay.
[EntityField]
public Duration Delay { get; set; }
Property Value
ExtendedAttributes
Gets or sets an instance of the ExtendedAttributeCollection class for this object.
public ExtendedAttributeCollection ExtendedAttributes { get; set; }
Property Value
Remarks
Reading supported for XML format only.
Finish
Gets or sets a value of Finish.
[EntityField]
public DateTime Finish { get; set; }
Property Value
FinishVariance
Gets or sets a value of FinishVariance.
[EntityField]
public Duration FinishVariance { get; set; }
Property Value
FixedMaterial
Gets or sets a value indicating whether FixedMaterial is set or not.
[EntityField]
public bool FixedMaterial { get; set; }
Property Value
Guid
Gets or sets unique identifier for this assignment.
public Guid? Guid { get; set; }
Property Value
Guid?
HasFixedRateUnits
Gets or sets a value indicating whether HasFixedRateUnits is set or not.
[EntityField]
public bool HasFixedRateUnits { get; set; }
Property Value
Hyperlink
Gets or sets a value of Hyperlink.
[EntityField]
public string Hyperlink { get; set; }
Property Value
HyperlinkAddress
Gets or sets a value of HyperlinkAddress.
[EntityField]
public string HyperlinkAddress { get; set; }
Property Value
HyperlinkSubAddress
Gets or sets a value of HyperlinkSubAddress.
[EntityField]
public string HyperlinkSubAddress { get; set; }
Property Value
LevelingDelay
Gets or sets a value of LevelingDelay.
[EntityField]
public Duration LevelingDelay { get; set; }
Property Value
LinkedFields
Gets or sets a value indicating whether LinkedFields is set or not.
[EntityField]
public bool LinkedFields { get; set; }
Property Value
Milestone
Gets or sets a value indicating whether Milestone is set or not.
[EntityField]
public bool Milestone { get; set; }
Property Value
NotesRTF
Gets or sets the text notes in RTF format.
[EntityField]
public string NotesRTF { get; set; }
Property Value
NotesText
Gets or sets notes’ plain text extracted from RTF data.
[EntityField]
public string NotesText { get; set; }
Property Value
Overallocated
Gets or sets a value indicating whether Overallocated is set or not.
[EntityField]
public bool Overallocated { get; set; }
Property Value
OvertimeCost
Gets or sets a value of OvertimeCost.
[EntityField]
public decimal OvertimeCost { get; set; }
Property Value
OvertimeWork
Gets or sets a value of OvertimeWork.
[EntityField]
public Duration OvertimeWork { get; set; }
Property Value
ParentProject
Gets parent project for this assignment.
public Project ParentProject { get; }
Property Value
PeakUnits
Gets or sets a value of PeakUnits.
[EntityField]
public double PeakUnits { get; set; }
Property Value
PercentWorkComplete
Gets or sets a value of PercentWorkComplete.
[EntityField]
public int PercentWorkComplete { get; set; }
Property Value
RateScale
Gets or sets a value of RateScale.
[EntityField]
public RateScaleType RateScale { get; set; }
Property Value
RegularWork
Gets or sets a value of RegularWork.
[EntityField]
public Duration RegularWork { get; set; }
Property Value
RemainingCost
Gets or sets a value of RemainingCost.
[EntityField]
public decimal RemainingCost { get; set; }
Property Value
RemainingOvertimeCost
Gets or sets a value of RemainingOvertimeCost.
[EntityField]
public decimal RemainingOvertimeCost { get; set; }
Property Value
RemainingOvertimeWork
Gets or sets a value of RemainingOvertimeWork.
[EntityField]
public Duration RemainingOvertimeWork { get; set; }
Property Value
RemainingWork
Gets or sets a value of RemainingWork.
[EntityField]
public Duration RemainingWork { get; set; }
Property Value
Resource
The resource assigned to a task.
public Resource Resource { get; set; }
Property Value
ResponsePending
Gets or sets a value indicating whether ResponsePending is set or not.
[EntityField]
public bool ResponsePending { get; set; }
Property Value
Resume
Gets or sets a value of Resume.
[EntityField]
public DateTime Resume { get; set; }
Property Value
SV
Gets or sets a value of SV.
[EntityField]
public double SV { get; set; }
Property Value
Start
Gets or sets a value of Start.
[EntityField]
public DateTime Start { get; set; }
Property Value
StartVariance
Gets or sets a value of StartVariance.
[EntityField]
public Duration StartVariance { get; set; }
Property Value
Stop
Gets or sets a value of Stop.
[EntityField]
public DateTime Stop { get; set; }
Property Value
Summary
Gets or sets a value indicating whether Summary is set or not.
[EntityField]
public bool Summary { get; set; }
Property Value
Task
The task to which a resource is assigned.
public Task Task { get; set; }
Property Value
TimephasedData
Gets or sets the instance of Aspose.Tasks.TimephasedDataCollection class containing elements of Aspose.Tasks.ResourceAssignment.TimephasedData class.
public TimephasedDataCollection TimephasedData { get; set; }
Property Value
Uid
Gets or sets a value of Uid.
[EntityField]
public int Uid { get; set; }
Property Value
Units
Gets or sets a value of Units.
[EntityField]
public double Units { get; set; }
Property Value
UpdateNeeded
Gets or sets a value indicating whether UpdateNeeded is set or not.
[EntityField]
public bool UpdateNeeded { get; set; }
Property Value
VAC
Gets or sets a value of VAC.
[EntityField]
public double VAC { get; set; }
Property Value
Work
Gets or sets a value of Work.
[EntityField]
public Duration Work { get; set; }
Property Value
WorkContour
Gets or sets a value of WorkContour.
[EntityField]
public WorkContourType WorkContour { get; set; }
Property Value
WorkVariance
Gets or sets a value of WorkVariance.
[EntityField]
public Duration WorkVariance { get; set; }
Property Value
Methods
Delete()
Deletes resource assignment from project assignments collection.
public void Delete()
Equals(ResourceAssignment)
Returns a value indicating whether this instance is equal to a specified instance of the Aspose.Tasks.ResourceAssignment class.
public bool Equals(ResourceAssignment other)
Parameters
other
ResourceAssignment
The specified instance of the Aspose.Tasks.ResourceAssignment class to compare with this instance.
Returns
True if the specified instance of the Aspose.Tasks.ResourceAssignment class has the same UID value as this instance; otherwise, false.
Equals(object)
Returns a value indicating whether this instance is equal to a specified object.
public override bool Equals(object obj)
Parameters
obj
object
The object to compare with this instance.
Returns
True if o is a ResourceAssignment that assign the same resource and task as this instance; otherwise, false.
Get<t>(Key<t, asnkey="">)
Returns the value to which the property is mapped in this container.
public T Get<t>(Key<t, asnkey=""> key)
Parameters
the specified property key. Aspose.Tasks.Asn for getting the property key.
Returns
T
the value to which the property is mapped in this container.
Type Parameters
T
the type of the mapped value.
GetHashCode()
Returns a hash code value for the instance of the Aspose.Tasks.ResourceAssignment class.
public override int GetHashCode()
Returns
returns a hash code value for this object.
GetTimephasedData(DateTime, DateTime, TimephasedDataType)
Returns the instance Aspose.Tasks.TimephasedDataCollection class containing instances of Aspose.Tasks.ResourceAssignment.TimephasedData class within given start and end dates of specified Aspose.Tasks.TimephasedDataType.
public TimephasedDataCollection GetTimephasedData(DateTime start, DateTime end, TimephasedDataType timephasedType)
Parameters
start
DateTime
The start date for the time phased data.
end
DateTime
The end date for the time phased data.
timephasedType
TimephasedDataType
The type of time phased data (Aspose.Tasks.TimephasedDataType).
Returns
returns a list which contains instances of Aspose.Tasks.TimephasedData class.
GetTimephasedData(DateTime, DateTime)
Returns Aspose.Tasks.TimephasedDataCollection object with the instances of Aspose.Tasks.ResourceAssignment.TimephasedData class within given start and end dates of Aspose.Tasks.TimephasedDataType.AssignmentWork.
public TimephasedDataCollection GetTimephasedData(DateTime start, DateTime end)
Parameters
start
DateTime
The start date for the time phased data.
end
DateTime
The end date for the time phased data.
Returns
returns a list containing instances of Aspose.Tasks.TimephasedData class.
GetTimephasedWork(DateTime, DateTime, TimephasedDataType)
Gets amount of timephased work for the specified date time interval.
public TimeSpan GetTimephasedWork(DateTime start, DateTime end, TimephasedDataType timephasedDataType)
Parameters
start
DateTime
Start of the date time interval.
end
DateTime
End of the date time interval.
timephasedDataType
TimephasedDataType
Type of the timephased data to use.
Returns
GetTimephasedWork(DateTime, DateTime)
Gets amount of timephased work for the specified date time interval.
public TimeSpan GetTimephasedWork(DateTime start, DateTime end)
Parameters
start
DateTime
Start of the date time interval.
end
DateTime
End of the date time interval.
Returns
MakeTPs(DateTime, TimeSpan, Calendar, List<timephaseddata>, bool, int)
Generates a list of time phased data.
public DateTime MakeTPs(DateTime start, TimeSpan time, Calendar calendar, List<timephaseddata> list, bool isWorking, int type)
Parameters
start
DateTime
The specified start date.
time
TimeSpan
The specified working time.
calendar
Calendar
The specified working calendar.
list
List<TimephasedData>
The list of time phased data.
isWorking
bool
The specified flag which specifies whether time-phased data is working or not.
type
int
The specified time-phased data type.
Returns
A maximum date from list or start date if list is empty.
Set<t>(Key<t, asnkey="">, T)
Maps the specified property to the specified value in this container.
public void Set<t>(Key<t, asnkey=""> key, T val)
Parameters
the specified property key. Aspose.Tasks.Asn for getting the property key.
val
T
the value.
Type Parameters
T
the type of the mapped value.
SetMaterialResourceUnits(double, RateScaleType)
Sets units for assignment of a material resource with variable material consumption. The variable material consumption means that as the assignment duration changes, the quantity of materials used changes proportionally.
public void SetMaterialResourceUnits(double units, RateScaleType rateScaleType)
Parameters
units
double
Number of units accrued at the time period.
rateScaleType
RateScaleType
Time period at which the unit value is accrued.
Remarks
For example, to set ‘123/month’, SetUnitsScaled(123D, RateScaleType.Month) should be called.
Exceptions
If the method is called for assignment of non-material resource.
SplitTask(DateTime, DateTime, Calendar)
Splits task into two parts.
public void SplitTask(DateTime start, DateTime finish, Calendar calendar)
Parameters
start
DateTime
The beginning of work interruption to split based on.
finish
DateTime
The end of work interruption to split based on.
calendar
Calendar
The calendar to split based on.
Exceptions
Throws when start date is less than the assignment start date.
Throws when finish date is greater than the assignment finish date.
TimephasedDataFromTaskDuration(Calendar)
Generates list of time phased data based on the task duration and the scheduled start date.
public void TimephasedDataFromTaskDuration(Calendar calendar)
Parameters
calendar
Calendar
The calendar to generate time phased data from.
ToString()
Returns short string representation of the instance of the Aspose.Tasks.ResourceAssignment class. The exact details of the representation are unspecified and subject to change.
public override string ToString()
Returns
short string which represents assignment object. </t,></t,></t,></t></timephaseddata></t,></t,></t,></t></resourceassignment>