8 #include <system/object_ext.h>
9 #include <system/nullable.h>
10 #include <system/multicast_delegate.h>
11 #include <system/iequatable.h>
12 #include <system/guid.h>
13 #include <system/array.h>
16 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
17 #include "aspose.tasks.cpp/IEntityWithNotes.h"
18 #include "aspose.tasks.cpp/IEntityWithHyperlink.h"
19 #include "aspose.tasks.cpp/IContainer.h"
20 #include "aspose.tasks.cpp/Enums/AsnKey.h"
21 #include "aspose.tasks.cpp/IExtendedAttributeParent.h"
22 #include "aspose.tasks.cpp/IEntityWithTd.h"
23 #include "aspose.tasks.cpp/Task.h"
24 #include "aspose.tasks.cpp/Resource.h"
25 #include "aspose.tasks.cpp/Key.h"
26 #include "aspose.tasks.cpp/PropertyContainer.h"
32 class AssignmentBaseline;
33 class AssignmentBaselineCollection;
34 class AutoRecalculationState;
35 enum class BaselineType;
36 enum class BookingType;
37 namespace Calculations
39 class ActualsByPercentCompleteUpdater;
40 class ActualTimephasedDataUpdater;
41 class AssignmentProjection;
42 class IWorkContourIterator;
43 class RescheduleIncompleteWorkCalculator;
44 class ResourceAssignmentCalculator;
45 class ResourceAssignmentCostCalculator;
46 class ResourceAssignmentPeakCalculator;
47 class ResourceAssignmentRateByDateEnumerator;
48 class ResourceAssignmentVarianceCalculator;
49 class ResourceAssignmentWorkCalculator;
50 class ResourceOverAllocationCalculator;
51 class ResourceWorkCalculator;
52 class TaskByAssignmentCalculator;
54 class TaskStopResumeCalculator;
55 class TimephasedDataCalculator;
58 namespace Connectivity
60 class MpdAssignmentBaselineMapper;
61 class MpdAssignmentMapper;
62 template <
typename>
class MpdField;
63 class MspAssignmentBaseLineMapper;
64 class MspAssignmentMapper;
65 class PmResourceAssignmentMapper;
67 class DatesCalculator;
69 class EvaluationModeDatesResetter;
71 class ExtendedAttributeCollection;
74 class ResourceAssignmentValidByTaskFilter;
75 class ResourceAssignmentValidMaterialByTaskFilter;
76 class ResourceAssignmentValidWorkByTaskFilter;
78 class FixedDurationEffortDrivenTaskPlanner;
79 class FixedDurationTaskPlanner;
80 class FixedWorkTaskPlanner;
85 class HtmlResourceAssignmentBaseLineTableReader;
86 class HtmlResourceAssignmentTableReader;
92 class AssignmentExtendedAttributeFlagOffsets;
95 class MPP12ResourceAssignmentWriter;
96 template <
typename>
class MPP14AsXResourceAssignmentReader;
98 class MPP14ResourceAssignmentWriter;
99 class MPP14TaskWriter;
101 class MPP9ResourceAssignmentReader;
102 class MPP9ResourceAssignmentWriter;
103 class MPPAssignmentExtendedAttributeReader;
105 class MPPResourceAssignmentWriter;
106 class MPPTimephasedDataReader;
107 class MppTimephasedDataWriter;
109 namespace PrimaveraXml
111 class PrimaveraAssignmentsNodeReader;
115 namespace InternalApi
119 class AssignmentContourDataMapper;
120 template <
typename>
class BinaryDataPropertyMapper;
121 template <
typename>
class ExtendedAttributeParentEntityToRawValuesMapper;
122 class ProjectAssignmentsMapper;
128 class XerAssignmentReader;
132 class ResourceAssignmentFactory;
133 class ResourceAssignmentNodeReader;
134 class ResourceAssignmentNodeWriter;
139 class LevelingAlgorithm;
142 class PercentCompleteCalculator;
145 class ProjectWorkUpdater;
147 enum class RateScaleType;
149 namespace Recalculation
151 class TaskSplitCalculator;
153 class ResourceAssignmentCollection;
154 class ResourceAssignmentTimephasedDataCollection;
157 class HtmlResourceAssignmentBaseLineTable;
158 class PrimaveraAssignmentNodeWriter;
159 class TemplateWriter;
160 class XerAssignmentTable;
164 class FromFinishScheduler;
165 class FromStartScheduler;
167 class SplitPartCollection;
168 class SplitsCalculator;
169 class TaskBaselineCollection;
171 class TaskPlannerAssignmentManager;
174 class TimephasedDataByScaledEnumerator;
175 class TimeScaledWorkContourBuilder;
177 class TimephasedData;
178 class TimephasedDataByScaledMaker;
179 class TimephasedDataCollection;
180 class TimephasedDataMaker;
181 enum class TimephasedDataType : int8_t;
182 class TimephasedWorkCostSelector;
183 class TimeScaledExceptions;
184 class TimeScaledParentWorkUnit;
185 class TimeScaledWorkUnit;
188 template <
typename T>
using ConditionDelegate = System::MulticastDelegate<bool(T)>;
189 class DateTimeInterval;
191 namespace Visualization
193 class ApsResourceUsageBuilder;
194 class ApsResourceUsagePage;
195 class ApsTaskUsageBuilder;
197 class AssignmentToColumnText;
198 template <
typename>
class FieldToColumnText;
199 class TaskToColumnText;
201 enum class WorkContourType;
202 class WorkingTimeCollection;
207 namespace Collections
211 template <
typename>
class IEnumerable;
212 template <
typename>
class IList;
213 template <
typename>
class List;
229 class ASPOSE_TASKS_SHARED_CLASS
ResourceAssignment :
public IEntityWithNotes,
public IEntityWithHyperlink,
public IContainer<AsnKey>,
public System::IEquatable<System::SharedPtr<ResourceAssignment>>,
public IExtendedAttributeParent,
public IEntityWithTd
232 typedef IEntityWithNotes BaseType;
233 typedef IEntityWithHyperlink BaseType1;
234 typedef IContainer<AsnKey> BaseType2;
235 typedef System::IEquatable<System::SharedPtr<ResourceAssignment>> BaseType3;
236 typedef IExtendedAttributeParent BaseType4;
239 typedef ::System::BaseTypesInfo<BaseType, BaseType1, BaseType2, BaseType3, BaseType4, BaseType5> ThisTypeBaseTypesInfo;
240 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
242 friend class Aspose::Tasks::Calculations::ResourceAssignmentRateByDateEnumerator;
243 friend class Aspose::Tasks::Calculations::ResourceAssignmentCalculator;
244 friend class Aspose::Tasks::IO::MSProject::MppTimephasedDataWriter;
246 friend class FixedWorkTaskPlanner;
247 template<
typename FT0>
friend class Aspose::Tasks::Visualization::FieldToColumnText;
248 friend class Aspose::Tasks::Calculations::ResourceAssignmentWorkCalculator;
249 friend class Aspose::Tasks::IO::MSProject::MPP9ResourceAssignmentWriter;
250 friend class Aspose::Tasks::Calculations::TaskStopResumeCalculator;
251 friend class EVCalculator;
252 friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::AssignmentContourDataMapper;
253 friend class TimephasedDataByScaledMaker;
254 friend class Aspose::Tasks::IO::MSProject::MPP12ResourceAssignmentWriter;
255 friend class DatesCalculator;
256 friend class Aspose::Tasks::IO::MSProject::MPP9ResourceAssignmentReader;
257 friend class Aspose::Tasks::Leveling::LevelingAlgorithm;
258 friend class Aspose::Tasks::Visualization::TaskToColumnText;
259 friend class Aspose::Tasks::Filters::ResourceAssignmentValidMaterialByTaskFilter;
260 friend class Aspose::Tasks::IO::MSProject::MPPAssignmentExtendedAttributeReader;
261 friend class Aspose::Tasks::Calculations::ActualsByPercentCompleteUpdater;
262 friend class ProjectWorkUpdater;
263 friend class Aspose::Tasks::Calculations::ResourceWorkCalculator;
264 friend class Aspose::Tasks::Visualization::AssignmentToColumnText;
265 friend class Aspose::Tasks::Saving::TemplateWriter;
266 friend class Aspose::Tasks::IO::MSProject::MPP12Reader;
267 template<
typename FT0>
friend class Aspose::Tasks::IO::MSProject::MPP14AsXResourceAssignmentReader;
269 template<
typename FT0>
friend class Aspose::Tasks::Connectivity::MpdField;
270 friend class Aspose::Tasks::Calculations::TaskCalculator;
271 friend class AutoRecalculationState;
272 friend class EvaluationModeDatesResetter;
273 friend class Aspose::Tasks::Connectivity::MpdAssignmentMapper;
274 friend class Aspose::Tasks::Visualization::ApsTaskUsageBuilder;
275 friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::ProjectAssignmentsMapper;
276 friend class Aspose::Tasks::IO::Xml::ResourceAssignmentFactory;
277 friend class Aspose::Tasks::Calculations::RescheduleIncompleteWorkCalculator;
278 friend class Aspose::Tasks::Saving::PrimaveraAssignmentNodeWriter;
279 friend class Aspose::Tasks::IO::Html::HtmlResourceAssignmentTableReader;
280 friend class Aspose::Tasks::Connectivity::MspAssignmentBaseLineMapper;
281 friend class Aspose::Tasks::Connectivity::MpdAssignmentBaselineMapper;
283 friend class Aspose::Tasks::IO::MSProject::MPPTimephasedDataReader;
284 friend class TaskPlannerAssignmentManager;
285 friend class Aspose::Tasks::Calculations::ResourceAssignmentVarianceCalculator;
286 friend class Aspose::Tasks::Recalculation::TaskSplitCalculator;
287 friend class Aspose::Tasks::IO::MSProject::MPPResourceAssignmentWriter;
288 friend class TimephasedWorkCostSelector;
289 friend class TaskPlanner;
290 friend class Aspose::Tasks::Calculations::ResourceAssignmentCostCalculator;
291 friend class Aspose::Tasks::IO::Xml::ResourceAssignmentNodeReader;
292 friend class Aspose::Tasks::Calculations::TaskByAssignmentCalculator;
293 friend class Aspose::Tasks::IO::MSProject::MPPReader;
295 friend class Aspose::Tasks::IO::MSProject::Metadata::AssignmentExtendedAttributeFlagOffsets;
296 friend class Aspose::Tasks::IO::MSProject::MPP14ResourceAssignmentWriter;
297 friend class Aspose::Tasks::IO::MSProject::MPP9Reader;
298 friend class Aspose::Tasks::Calculations::ActualTimephasedDataUpdater;
299 friend class TimephasedDataMaker;
300 template<
typename FT0>
friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::BinaryDataPropertyMapper;
301 friend class Aspose::Tasks::Scheduling::FromFinishScheduler;
302 friend class Aspose::Tasks::IO::Xml::ResourceAssignmentNodeWriter;
303 friend class ManualState;
304 friend class Aspose::Tasks::Visualization::ApsResourceUsageBuilder;
305 template<
typename FT0>
friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::ExtendedAttributeParentEntityToRawValuesMapper;
306 friend class Aspose::Tasks::Connectivity::MspAssignmentMapper;
307 friend class FixedDurationTaskPlanner;
308 friend class Aspose::Tasks::IO::Xer::XerAssignmentReader;
309 friend class Aspose::Tasks::IO::Html::HtmlResourceAssignmentBaseLineTableReader;
311 friend class Aspose::Tasks::Connectivity::PmResourceAssignmentMapper;
312 friend class Aspose::Tasks::Calculations::ResourceAssignmentPeakCalculator;
313 friend class Aspose::Tasks::IO::MSProject::MPP14TaskWriter;
314 friend class Aspose::Tasks::Visualization::ApsUsagePage;
315 friend class Aspose::Tasks::IO::MSProject::MPP14Reader;
316 friend class SplitsCalculator;
317 friend class Aspose::Tasks::Saving::HtmlResourceAssignmentBaseLineTable;
318 friend class Aspose::Tasks::IO::PrimaveraXml::PrimaveraAssignmentsNodeReader;
319 friend class FixedDurationEffortDrivenTaskPlanner;
320 friend class Aspose::Tasks::Calculations::ResourceOverAllocationCalculator;
321 friend class Aspose::Tasks::Calculations::AssignmentProjection;
322 friend class Aspose::Tasks::Calculations::TimephasedDataCalculator;
323 friend class Aspose::Tasks::Scheduling::FromStartScheduler;
324 friend class PercentCompleteCalculator;
325 friend class Aspose::Tasks::Filters::ResourceAssignmentValidByTaskFilter;
326 friend class ResourceAssignmentTimephasedDataCollection;
327 friend class ProjectState;
328 friend class Aspose::Tasks::Timephased::TimephasedDataByScaledEnumerator;
329 friend class Aspose::Tasks::Filters::ResourceAssignmentValidWorkByTaskFilter;
330 friend class Aspose::Tasks::Visualization::ApsResourceUsagePage;
331 friend class Aspose::Tasks::Saving::XerAssignmentTable;
332 friend class Aspose::Tasks::Timephased::TimeScaledWorkContourBuilder;
339 ASPOSE_TASKS_SHARED_API int32_t
get_Uid()
override;
343 ASPOSE_TASKS_SHARED_API
void set_Uid(int32_t value);
399 ASPOSE_TASKS_SHARED_API
void set_ACWP(
double value);
411 ASPOSE_TASKS_SHARED_API System::Decimal
get_Cost();
415 ASPOSE_TASKS_SHARED_API
void set_Cost(System::Decimal value);
439 ASPOSE_TASKS_SHARED_API
void set_CV(
double value);
455 ASPOSE_TASKS_SHARED_API
void set_Finish(System::DateTime value);
553 ASPOSE_TASKS_SHARED_API
void set_NotesRTF(System::String value)
override;
637 ASPOSE_TASKS_SHARED_API System::DateTime
get_Start()
override;
641 ASPOSE_TASKS_SHARED_API
void set_Start(System::DateTime value);
645 ASPOSE_TASKS_SHARED_API System::DateTime
get_Stop();
649 ASPOSE_TASKS_SHARED_API
void set_Stop(System::DateTime value);
657 ASPOSE_TASKS_SHARED_API
void set_Resume(System::DateTime value);
681 ASPOSE_TASKS_SHARED_API
void set_SV(
double value);
705 ASPOSE_TASKS_SHARED_API
void set_VAC(
double value);
729 ASPOSE_TASKS_SHARED_API
void set_BCWS(
double value);
737 ASPOSE_TASKS_SHARED_API
void set_BCWP(
double value);
821 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<Aspose::Tasks::Task>&
get_Task()
const;
825 ASPOSE_TASKS_SHARED_API
void set_Task(
const System::SharedPtr<Aspose::Tasks::Task>& value);
829 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<Aspose::Tasks::Resource>&
get_Resource()
const;
833 ASPOSE_TASKS_SHARED_API
void set_Resource(
const System::SharedPtr<Aspose::Tasks::Resource>& value);
837 ASPOSE_TASKS_SHARED_API System::Nullable<System::Guid>
get_Guid()
const;
841 ASPOSE_TASKS_SHARED_API
void set_Guid(System::Nullable<System::Guid> value);
850 ASPOSE_TASKS_SHARED_API System::SharedPtr<AssignmentBaselineCollection>
get_Baselines();
868 ASPOSE_TASKS_SHARED_API
void set_TimephasedData(
const System::SharedPtr<TimephasedDataCollection>& value);
879 if (key.
get_KeyType() == Aspose::Tasks::AsnKey::Task)
881 return System::ExplicitCast<T>(System::ExplicitCast<System::Object>(this->get_Task()));
884 if (key.
get_KeyType() == Aspose::Tasks::AsnKey::Resource)
886 return System::ExplicitCast<T>(System::ExplicitCast<System::Object>(this->get_Resource()));
888 System::SharedPtr<System::Object> res;
889 if (this->GetCalculatedValue(key.
get_KeyType(), res))
891 return System::ExplicitCast<T>(res);
894 return this->container->template CheckPropAndGet<T>(key);
907 if (key.
get_KeyType() == Aspose::Tasks::AsnKey::Task)
909 this->set_Task(System::ExplicitCast<Aspose::Tasks::Task>(System::ExplicitCast<System::Object>(val)));
912 if (key.
get_KeyType() == Aspose::Tasks::AsnKey::Resource)
914 this->set_Resource(System::ExplicitCast<Aspose::Tasks::Resource>(System::ExplicitCast<System::Object>(val)));
918 auto castVal = System::ExplicitCast<System::Object>(val);
919 if (this->SetCalculatedValue(key.
get_KeyType(), castVal))
924 this->container->template CheckPropAndSet<T>(key, val);
926 if (key.
get_KeyType() == Aspose::Tasks::AsnKey::WorkContour)
928 this->set_IsWorkContourChanged(
true);
941 ASPOSE_TASKS_SHARED_API
bool Equals(System::SharedPtr<ResourceAssignment> other)
override;
947 ASPOSE_TASKS_SHARED_API
bool Equals(System::SharedPtr<System::Object> obj)
override;
953 ASPOSE_TASKS_SHARED_API System::String
ToString()
const override;
974 ASPOSE_TASKS_SHARED_API System::DateTime
MakeTPs(System::DateTime start, System::TimeSpan time,
const System::SharedPtr<Calendar>& calendar,
const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Tasks::TimephasedData>>>& list,
bool isWorking, int32_t type);
983 ASPOSE_TASKS_SHARED_API
void SplitTask(System::DateTime start, System::DateTime finish,
const System::SharedPtr<Calendar>& calendar);
991 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimephasedDataCollection>
GetTimephasedData(System::DateTime start, System::DateTime end, TimephasedDataType timephasedType);
998 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimephasedDataCollection>
GetTimephasedData(System::DateTime start, System::DateTime end);
1006 ASPOSE_TASKS_SHARED_API System::TimeSpan
GetTimephasedWork(System::DateTime start, System::DateTime end, TimephasedDataType timephasedDataType);
1013 ASPOSE_TASKS_SHARED_API System::TimeSpan
GetTimephasedWork(System::DateTime start, System::DateTime end);
1029 ASPOSE_TASKS_SHARED_API
void set_ParentProject(
const System::SharedPtr<Project>& value);
1034 ASPOSE_TASKS_SHARED_API
void set_Baselines(
const System::SharedPtr<AssignmentBaselineCollection>& value);
1035 ASPOSE_TASKS_SHARED_API int32_t get_ExtendedAttributesCount();
1036 ASPOSE_TASKS_SHARED_API int32_t get_BaselineCount();
1037 ASPOSE_TASKS_SHARED_API
bool get_IsShared()
const;
1038 ASPOSE_TASKS_SHARED_API
void set_IsShared(
bool value);
1039 ASPOSE_TASKS_SHARED_API
bool get_IsWork();
1040 ASPOSE_TASKS_SHARED_API
bool get_IsFlatContour();
1041 ASPOSE_TASKS_SHARED_API
bool get_IsMaterial();
1042 ASPOSE_TASKS_SHARED_API
bool get_IsCost();
1043 ASPOSE_TASKS_SHARED_API System::Guid get_TempGuid()
const;
1044 ASPOSE_TASKS_SHARED_API
void set_TempGuid(System::Guid value);
1045 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calendar> get_AssignmentCalendar();
1046 ASPOSE_TASKS_SHARED_API
void set_AssignmentCalendar(
const System::SharedPtr<Calendar>& value);
1047 ASPOSE_TASKS_SHARED_API
bool get_IsValid();
1048 ASPOSE_TASKS_SHARED_API
bool get_IsValidWork();
1049 ASPOSE_TASKS_SHARED_API
bool get_IsSharedWork();
1053 ASPOSE_TASKS_SHARED_API System::SharedPtr<SplitPartCollection> get_SplitParts();
1057 ASPOSE_TASKS_SHARED_API
void set_SplitParts(
const System::SharedPtr<SplitPartCollection>& value);
1058 ASPOSE_TASKS_SHARED_API System::SharedPtr<Rate> get_CurrentRate();
1059 ASPOSE_TASKS_SHARED_API
void set_CurrentRate(
const System::SharedPtr<Rate>& value);
1060 ASPOSE_TASKS_SHARED_API
const System::ArrayPtr<uint8_t>& get_WorkCompleteRawTD()
const;
1061 ASPOSE_TASKS_SHARED_API
const System::ArrayPtr<uint8_t>& get_WorkIncompleteRawTD()
const;
1062 ASPOSE_TASKS_SHARED_API
const System::ArrayPtr<uint8_t>& get_WorkOverallocatedRawTD()
const;
1063 ASPOSE_TASKS_SHARED_API
const System::ArrayPtr<uint8_t>& get_WorkingExceptionsRaw()
const;
1064 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> get_ScaledWorkComplete()
const;
1065 ASPOSE_TASKS_SHARED_API
void set_ScaledWorkComplete(
const System::SharedPtr<TimeScaledParentWorkUnit>& value);
1066 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> get_ScaledWorkIncomplete()
const;
1067 ASPOSE_TASKS_SHARED_API
void set_ScaledWorkIncomplete(
const System::SharedPtr<TimeScaledParentWorkUnit>& value);
1068 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> get_ScaledWorkOverallocated()
const;
1069 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<Aspose::Tasks::TimeScaledExceptions>& get_TimeScaledExceptions()
const;
1070 ASPOSE_TASKS_SHARED_API
void set_TimeScaledExceptions(
const System::SharedPtr<Aspose::Tasks::TimeScaledExceptions>& value);
1071 ASPOSE_TASKS_SHARED_API
double get_PlannedValueNoCostUse()
const;
1072 ASPOSE_TASKS_SHARED_API
void set_PlannedValueNoCostUse(
double value);
1073 ASPOSE_TASKS_SHARED_API
bool get_IsCompleted();
1074 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calendar> get_ResourceCalendar();
1075 ASPOSE_TASKS_SHARED_API
bool get_IsTimephasedDataInitialized();
1076 ASPOSE_TASKS_SHARED_API
bool get_IsWorkContourChanged()
const;
1077 ASPOSE_TASKS_SHARED_API
void set_IsWorkContourChanged(
bool value);
1082 ASPOSE_TASKS_SHARED_API
ResourceAssignment(
const System::SharedPtr<Project>& project);
1084 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
ResourceAssignment, CODEPORTING_ARGS(
const System::SharedPtr<Project>& project));
1091 ASPOSE_TASKS_SHARED_API
ResourceAssignment(
const System::SharedPtr<Project>& project,
const System::SharedPtr<Aspose::Tasks::Resource>& resource);
1093 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
ResourceAssignment, CODEPORTING_ARGS(
const System::SharedPtr<Project>& project,
const System::SharedPtr<Aspose::Tasks::Resource>& resource));
1100 ASPOSE_TASKS_SHARED_API
ResourceAssignment(
const System::SharedPtr<Aspose::Tasks::Task>& task,
const System::SharedPtr<Aspose::Tasks::Resource>& resource);
1102 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
ResourceAssignment, CODEPORTING_ARGS(
const System::SharedPtr<Aspose::Tasks::Task>& task,
const System::SharedPtr<Aspose::Tasks::Resource>& resource));
1109 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
ResourceAssignment, CODEPORTING_ARGS());
1111 template<
typename T>
1114 this->container->template CheckPropAndSet<T>(key, val);
1117 ASPOSE_TASKS_SHARED_API
void SetMppTimephasedRawData(
const System::ArrayPtr<uint8_t>& completeWorkRaw,
const System::ArrayPtr<uint8_t>& remainingWorkRaw,
const System::ArrayPtr<uint8_t>& overallocatedWorkRaw,
const System::ArrayPtr<uint8_t>& workingExceptionRaw,
const System::SharedPtr<TimeScaledParentWorkUnit>& scaledCompleteWork,
const System::SharedPtr<TimeScaledParentWorkUnit>& scaledRemainingWork,
const System::SharedPtr<TimeScaledParentWorkUnit>& scaledOverallocatedWork,
const System::SharedPtr<Aspose::Tasks::TimeScaledExceptions>& scaledWorkingExceptions);
1118 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimephasedDataCollection> GetTimephasedData(
bool addBaselineTDs);
1119 ASPOSE_TASKS_SHARED_API
void ResetOnlyTimephasedData();
1120 ASPOSE_TASKS_SHARED_API
void SetTimeScaledExceptionsChanged();
1121 ASPOSE_TASKS_SHARED_API
void ResetTimephasedData();
1122 ASPOSE_TASKS_SHARED_API
void SetWorkContourType(WorkContourType type);
1123 ASPOSE_TASKS_SHARED_API
void SetTimephasedData(
const System::SharedPtr<ResourceAssignmentTimephasedDataCollection>& list);
1130 ASPOSE_TASKS_SHARED_API System::SharedPtr<SplitPartCollection> GetCalculatedSplitParts();
1131 ASPOSE_TASKS_SHARED_API System::DateTime GetStartAddDelay(System::DateTime startDate);
1132 ASPOSE_TASKS_SHARED_API
void SetStart();
1133 ASPOSE_TASKS_SHARED_API
void SetFinish();
1134 ASPOSE_TASKS_SHARED_API System::String GetUnitsString();
1135 ASPOSE_TASKS_SHARED_API
void SetCalendar(
const System::SharedPtr<Project>& project);
1136 ASPOSE_TASKS_SHARED_API
void MoveSplits(System::DateTime date);
1137 ASPOSE_TASKS_SHARED_API
void CleanActualProperties();
1138 ASPOSE_TASKS_SHARED_API
void SetBaseline(BaselineType baselineType);
1139 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Tasks::TimephasedData>>> GetSortedTimephasedData();
1140 ASPOSE_TASKS_SHARED_API Util::DateTimeInterval GetStartFinishOfTimephasedData();
1141 ASPOSE_TASKS_SHARED_API
void GetCalendars(System::SharedPtr<Calendar>& taskCal, System::SharedPtr<Calendar>& rscCal);
1142 ASPOSE_TASKS_SHARED_API
void AddAssignments();
1143 ASPOSE_TASKS_SHARED_API
void CalculateTimephasedData(
const System::SharedPtr<TimephasedDataCollection>& list,
bool addBaselineTimephased);
1144 ASPOSE_TASKS_SHARED_API
void RecalculateTimephasedData();
1145 ASPOSE_TASKS_SHARED_API
Duration GetContouredRemainingWork();
1146 ASPOSE_TASKS_SHARED_API
bool GetCalculatedValue(AsnKey key, System::SharedPtr<System::Object>& res)
const;
1147 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> InferScaledWorkComplete();
1148 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> InferScaledWorkActual();
1149 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> InferScaledWorkRemaining();
1150 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> InferScaledWork(TimephasedDataType timephasedDataType);
1151 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> InferScaledWork(Util::ConditionDelegate<System::SharedPtr<Aspose::Tasks::TimephasedData>> timephasedDataCondition);
1152 ASPOSE_TASKS_SHARED_API
void SetSplitsFinish(System::DateTime finish);
1153 ASPOSE_TASKS_SHARED_API
Duration GetWork();
1154 ASPOSE_TASKS_SHARED_API
double GetMeanLoad();
1155 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledWorkUnit> GetMeanUnit();
1156 ASPOSE_TASKS_SHARED_API
void AddImplicitWorkingTimeException(System::DateTime date,
const System::SharedPtr<WorkingTimeCollection>& workingTimes);
1157 ASPOSE_TASKS_SHARED_API
void AddImplicitWorkingTimeExceptionInterval(System::DateTime start, System::DateTime finish);
1158 ASPOSE_TASKS_SHARED_API
void RemoveImplicitWorkingTimeException(System::DateTime date);
1159 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> GetScaledActualWork();
1160 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> GetScaledRemainingWork();
1161 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calculations::IWorkContourIterator> GetActualWorkIterator();
1162 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calculations::IWorkContourIterator> GetRemainingWorkIterator();
1163 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calculations::IWorkContourIterator> GetWorkIterator();
1164 ASPOSE_TASKS_SHARED_API
bool SetCalculatedValue(AsnKey keyType,
const System::SharedPtr<System::Object>& v);
1168 #ifdef ASPOSE_GET_SHARED_MEMBERS
1169 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
1175 System::SharedPtr<PropertyContainer<AsnKey>> container;
1176 System::SharedPtr<TimephasedDataCollection> timephasedData;
1177 System::SharedPtr<Calendar> assignmentCalendar;
1178 System::SharedPtr<SplitPartCollection> splitParts;
1179 System::SharedPtr<Rate> currentRate;
1180 System::SharedPtr<AssignmentBaselineCollection> baselines;
1181 System::SharedPtr<ExtendedAttributeCollection> extendedAttributes;
1182 System::SharedPtr<TimeScaledParentWorkUnit> scaledWorkComplete;
1183 System::SharedPtr<TimeScaledParentWorkUnit> scaledWorkIncomplete;
1184 System::SharedPtr<TimeScaledParentWorkUnit> scaledWorkOverallocated;
1185 System::WeakPtr<Aspose::Tasks::Task> pr_Task;
1186 System::WeakPtr<Aspose::Tasks::Resource> pr_Resource;
1187 System::Nullable<System::Guid> pr_Guid;
1188 System::WeakPtr<Project> pr_ParentProject;
1190 bool get_HasChildren()
override;
1191 System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<IExtendedAttributeParent>>> get_Items()
override;
1194 System::Guid pr_TempGuid;
1195 System::ArrayPtr<uint8_t> pr_WorkCompleteRawTD;
1197 ASPOSE_TASKS_SHARED_API
void set_WorkCompleteRawTD(
const System::ArrayPtr<uint8_t>& value);
1199 System::ArrayPtr<uint8_t> pr_WorkIncompleteRawTD;
1201 ASPOSE_TASKS_SHARED_API
void set_WorkIncompleteRawTD(
const System::ArrayPtr<uint8_t>& value);
1203 System::ArrayPtr<uint8_t> pr_WorkOverallocatedRawTD;
1205 ASPOSE_TASKS_SHARED_API
void set_WorkOverallocatedRawTD(
const System::ArrayPtr<uint8_t>& value);
1207 System::ArrayPtr<uint8_t> pr_WorkingExceptionsRaw;
1209 ASPOSE_TASKS_SHARED_API
void set_WorkingExceptionsRaw(
const System::ArrayPtr<uint8_t>& value);
1210 ASPOSE_TASKS_SHARED_API
void set_ScaledWorkOverallocated(
const System::SharedPtr<TimeScaledParentWorkUnit>& value);
1212 System::SharedPtr<Aspose::Tasks::TimeScaledExceptions> pr_TimeScaledExceptions;
1213 double pr_PlannedValueNoCostUse;
1214 bool pr_IsWorkContourChanged;
1216 System::String get_DebuggerDisplay();
1218 System::SharedPtr<Calendar> GetCalendar()
override;
1219 static bool IsGeneratedTimephasedType(TimephasedDataType timephasedType);
1220 bool HasMppTimephased();
1221 System::SharedPtr<TimeScaledParentWorkUnit> InferScaledWork(
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::TimephasedData>>>& tds);
1222 System::SharedPtr<Calendar> TryToInheritCalendarFromTask();
1223 System::SharedPtr<Calendar> TryToInheritCalendarFromResource(
const System::SharedPtr<Project>& project);
1224 void MakeTimephasedDataFromMpp(
const System::SharedPtr<TimephasedDataCollection>& td);
1225 void MakeTimephasedDataFromXml(
const System::SharedPtr<TimephasedDataCollection>& td);
1226 void AddBaselineTimephasedData(
const System::SharedPtr<TimephasedDataCollection>& td);
1227 void UpdateWorkTD(
const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Tasks::TimephasedData>>>& complete,
const System::SharedPtr<System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Tasks::TimephasedData>>>& overtimeComplete);
1228 System::SharedPtr<SplitPartCollection> CalculateSplitParts();
1229 System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::TimephasedData>>> GenerateTimephased(System::DateTime start, System::DateTime end, TimephasedDataType timephasedType);
1233 void GenerateTimephasedFromTimeScaledData(System::DateTime start, System::DateTime end, TimephasedDataType timephasedType,
const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Tasks::TimephasedData>>>& outputList);
1234 System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Tasks::TimephasedData>>> FilterTimephasedData(
const System::SharedPtr<TimephasedDataCollection>& timephasedData, System::DateTime startDate, System::DateTime endDate, TimephasedDataType type);
1235 void SetBaselineValues(
const System::SharedPtr<AssignmentBaseline>& bl);
1236 void SetBaselineTimephased(
const System::SharedPtr<AssignmentBaseline>& bl);
1237 void TimephasedDataChanged(
const System::SharedPtr<System::Object>& sender,
const System::SharedPtr<System::EventArgs>& e);
1238 System::SharedPtr<Calendar> WrapCalendarIfNecessary(
const System::SharedPtr<Calendar>& calendar);
Represents Baseline of a resource assignment.
Definition: AssignmentBaseline.h:78
Represents duration in a project.
Definition: Duration.h:161
Denotes an entity which can contain Timephased Data.
Definition: IEntityWithTd.h:33
Represents a property key of a class of the specified type. An instance of this class is used when ge...
Definition: Key.h:78
K get_KeyType() const
Gets the key of the property.
Definition: Key.h:121
Represents a project.
Definition: Project.h:551
Represents a collection of ResourceAssignment objects.
Definition: ResourceAssignmentCollection.h:102
Represents a resource assignment in a project.
Definition: ResourceAssignment.h:230
int32_t get_PercentWorkComplete()
Gets a value of PercentWorkComplete.
double get_CostVariance()
Gets a value of CostVariance.
void set_PeakUnits(double value)
Sets a value of PeakUnits.
void set_Overallocated(bool value)
Sets a value indicating whether Overallocated is set or not.
bool get_Confirmed()
Gets a value indicating whether Confirmed is set or not.
double get_ACWP()
Gets a value of ACWP.
void set_FixedMaterial(bool value)
Sets a value indicating whether FixedMaterial is set or not.
void set_RegularWork(Duration value)
Sets a value of RegularWork.
System::Nullable< System::Guid > get_Guid() const
Gets unique identifier for this assignment.
Duration get_LevelingDelay()
Gets a value of LevelingDelay.
void set_FinishVariance(Duration value)
Sets a value of FinishVariance.
bool get_Milestone()
Gets a value indicating whether Milestone is set or not.
void set_ActualFinish(System::DateTime value)
Sets a value of ActualFinish.
void set_ResponsePending(bool value)
Sets a value indicating whether ResponsePending is set or not.
double get_PeakUnits()
Gets a value of PeakUnits.
void SetMaterialResourceUnits(double units, RateScaleType rateScaleType)
Sets units for assignment of a material resource with variable material consumption....
void set_ActualStart(System::DateTime value)
Sets a value of ActualStart.
void set_ExtendedAttributes(const System::SharedPtr< ExtendedAttributeCollection > &value)
Sets an instance of the ExtendedAttributeCollection class for this object.
bool get_LinkedFields()
Gets a value indicating whether LinkedFields is set or not.
void set_SV(double value)
Sets a value of SV.
System::Decimal get_Cost()
Gets a value of Cost.
Duration get_RemainingOvertimeWork()
Gets a value of RemainingOvertimeWork.
void set_Task(const System::SharedPtr< Aspose::Tasks::Task > &value)
The task to which a resource is assigned.
void set_Start(System::DateTime value)
Sets a value of Start.
bool get_UpdateNeeded()
Gets a value indicating whether UpdateNeeded is set or not.
Duration get_ActualOvertimeWork()
Gets a value of ActualOvertimeWork.
Duration get_Work()
Gets a value of Work.
double get_SV()
Gets a value of SV.
void set_PercentWorkComplete(int32_t value)
Sets a value of PercentWorkComplete.
int32_t get_Uid() override
Gets a value of Uid.
Duration get_ActualWork()
Gets a value of ActualWork.
void set_BookingType(Aspose::Tasks::BookingType value)
Sets a value of BookingType.
void set_BCWS(double value)
Sets a value of BCWS.
bool get_Overallocated()
Gets a value indicating whether Overallocated is set or not.
void set_RemainingOvertimeWork(Duration value)
Sets a value of RemainingOvertimeWork.
void set_Stop(System::DateTime value)
Sets a value of Stop.
WorkContourType get_WorkContour()
Gets a value of WorkContour.
System::String get_AssignmentOwnerGuid()
Gets a value of AssignmentOwnerGuid.
bool get_HasFixedRateUnits()
Gets a value indicating whether HasFixedRateUnits is set or not.
System::String get_HyperlinkAddress() override
Gets a value of HyperlinkAddress.
Duration get_ActualWorkProtected()
Gets a value of ActualWorkProtected.
void set_AssignmentOwner(const System::String &value)
Sets a value of AssignmentOwner.
bool get_Summary()
Gets a value indicating whether Summary is set or not.
void set_VAC(double value)
Sets a value of VAC.
void set_Resume(System::DateTime value)
Sets a value of Resume.
System::DateTime get_ActualStart()
Gets a value of ActualStart.
System::SharedPtr< TimephasedDataCollection > GetTimephasedData(System::DateTime start, System::DateTime end)
Returns TimephasedDataCollection object with the instances of TimephasedData class within given start...
int32_t GetHashCode() const override
Returns a hash code value for the instance of the ResourceAssignment class.
void set_Units(double value)
Sets a value of Units.
System::SharedPtr< AssignmentBaselineCollection > get_Baselines()
Gets AssignmentBaselineCollection object. The collection of baseline values associated with an assign...
void set_Confirmed(bool value)
Sets a value indicating whether Confirmed is set or not.
bool get_ResponsePending()
Gets a value indicating whether ResponsePending is set or not.
void set_Resource(const System::SharedPtr< Aspose::Tasks::Resource > &value)
The resource assigned to a task.
void set_Milestone(bool value)
Sets a value indicating whether Milestone is set or not.
void set_CostRateTableType(RateType value)
Sets a value of CostRateTableType.
void set_Uid(int32_t value)
Sets a value of Uid.
void set_LinkedFields(bool value)
Sets a value indicating whether LinkedFields is set or not.
void set_RemainingOvertimeCost(System::Decimal value)
Sets a value of RemainingOvertimeCost.
System::Decimal get_RemainingOvertimeCost()
Gets a value of RemainingOvertimeCost.
Duration get_Delay()
Gets a value of Delay.
Duration get_StartVariance()
Gets a value of StartVariance.
System::DateTime get_Start() override
Gets a value of Start.
double get_CV()
Gets a value of CV.
void SplitTask(System::DateTime start, System::DateTime finish, const System::SharedPtr< Calendar > &calendar)
Splits task into two parts.
void set_ActualOvertimeCost(System::Decimal value)
Sets a value of ActualOvertimeCost.
void set_WorkContour(WorkContourType value)
Sets a value of WorkContour.
void set_Guid(System::Nullable< System::Guid > value)
Sets unique identifier for this assignment.
T Get(const Key< T, AsnKey > &key) const
Returns the value to which the property is mapped in this container.
Definition: ResourceAssignment.h:877
bool Equals(System::SharedPtr< ResourceAssignment > other) override
Returns a value indicating whether this instance is equal to a specified instance of the ResourceAssi...
Duration get_RegularWork()
Gets a value of RegularWork.
System::TimeSpan GetTimephasedWork(System::DateTime start, System::DateTime end, TimephasedDataType timephasedDataType)
Gets amount of timephased work for the specified date time interval.
Duration get_ActualOvertimeWorkProtected()
Gets a value of ActualOvertimeWorkProtected.
void set_Hyperlink(System::String value) override
Sets a value of Hyperlink.
System::SharedPtr< TimephasedDataCollection > GetTimephasedData(System::DateTime start, System::DateTime end, TimephasedDataType timephasedType)
Returns the instance TimephasedDataCollection class containing instances of TimephasedData class with...
System::TimeSpan GetTimephasedWork(System::DateTime start, System::DateTime end)
Gets amount of timephased work for the specified date time interval.
void set_UpdateNeeded(bool value)
Sets a value indicating whether UpdateNeeded is set or not.
System::Decimal get_RemainingCost()
Gets a value of RemainingCost.
System::String get_NotesText() override
Gets notes' plain text extracted from RTF data.
void set_Finish(System::DateTime value)
Sets a value of Finish.
void set_WorkVariance(Duration value)
Sets a value of WorkVariance.
void set_CV(double value)
Sets a value of CV.
double get_BCWP()
Gets a value of BCWP.
System::Decimal get_BudgetCost()
Gets a value of BudgetCost.
void set_CostVariance(double value)
Sets a value of CostVariance.
System::DateTime get_Created()
Gets a value of Created.
void set_HasFixedRateUnits(bool value)
Sets a value indicating whether HasFixedRateUnits is set or not.
void set_NotesText(System::String value) override
Sets notes' plain text extracted from RTF data.
Duration get_FinishVariance()
Gets a value of FinishVariance.
void set_BudgetCost(System::Decimal value)
Sets a value of BudgetCost.
bool Equals(System::SharedPtr< System::Object > obj) override
Returns a value indicating whether this instance is equal to a specified object.
Aspose::Tasks::BookingType get_BookingType()
Gets a value of BookingType.
bool get_FixedMaterial()
Gets a value indicating whether FixedMaterial is set or not.
System::Decimal get_ActualOvertimeCost()
Gets a value of ActualOvertimeCost.
void set_ActualOvertimeWorkProtected(Duration value)
Sets a value of ActualOvertimeWorkProtected.
double get_BCWS()
Gets a value of BCWS.
System::SharedPtr< ExtendedAttributeCollection > get_ExtendedAttributes() override
Gets an instance of the ExtendedAttributeCollection class for this object.
void set_Cost(System::Decimal value)
Sets a value of Cost.
void set_Work(Duration value)
Sets a value of Work.
void Delete()
Deletes resource assignment from project assignments collection.
System::DateTime get_Resume()
Gets a value of Resume.
void set_Created(System::DateTime value)
Sets a value of Created.
void set_RemainingCost(System::Decimal value)
Sets a value of RemainingCost.
void set_NotesRTF(System::String value) override
Sets the text notes in RTF format.
System::String get_HyperlinkSubAddress() override
Gets a value of HyperlinkSubAddress.
double get_Units()
Gets a value of Units.
System::DateTime get_Finish()
Gets a value of Finish.
System::DateTime MakeTPs(System::DateTime start, System::TimeSpan time, const System::SharedPtr< Calendar > &calendar, const System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Aspose::Tasks::TimephasedData >>> &list, bool isWorking, int32_t type)
Generates a list of time phased data.
void set_AssignmentOwnerGuid(const System::String &value)
Sets a value of AssignmentOwnerGuid.
System::DateTime get_Stop()
Gets a value of Stop.
System::SharedPtr< TimephasedDataCollection > get_TimephasedData()
Gets the instance of TimephasedDataCollection class containing elements of TimephasedData class.
void set_Summary(bool value)
Sets a value indicating whether Summary is set or not.
void set_HyperlinkAddress(System::String value) override
Sets a value of HyperlinkAddress.
System::Decimal get_ActualCost()
Gets a value of ActualCost.
void set_HyperlinkSubAddress(System::String value) override
Sets a value of HyperlinkSubAddress.
void set_ACWP(double value)
Sets a value of ACWP.
void set_BudgetWork(Duration value)
Sets a value of BudgetWork.
void set_ActualWork(Duration value)
Sets a value of ActualWork.
Duration get_OvertimeWork()
Gets a value of OvertimeWork.
void set_LevelingDelay(Duration value)
Sets a value of LevelingDelay.
const System::SharedPtr< Project > & get_ParentProject() const override
Gets parent project for this assignment.
void set_StartVariance(Duration value)
Sets a value of StartVariance.
void TimephasedDataFromTaskDuration(const System::SharedPtr< Calendar > &calendar)
Generates list of time phased data based on the task duration and the scheduled start date.
Duration get_WorkVariance()
Gets a value of WorkVariance.
System::DateTime get_ActualFinish()
Gets a value of ActualFinish.
System::String ToString() const override
Returns short string representation of the instance of the ResourceAssignment class....
void set_ActualOvertimeWork(Duration value)
Sets a value of ActualOvertimeWork.
void set_BCWP(double value)
Sets a value of BCWP.
void set_ActualWorkProtected(Duration value)
Sets a value of ActualWorkProtected.
void set_OvertimeWork(Duration value)
Sets a value of OvertimeWork.
void set_TimephasedData(const System::SharedPtr< TimephasedDataCollection > &value)
Sets the instance of TimephasedDataCollection class containing elements of TimephasedData class.
Duration get_RemainingWork()
Gets a value of RemainingWork.
const System::SharedPtr< Aspose::Tasks::Resource > & get_Resource() const
The resource assigned to a task.
void set_OvertimeCost(System::Decimal value)
Sets a value of OvertimeCost.
System::String get_Hyperlink() override
Gets a value of Hyperlink.
void Set(const Key< T, AsnKey > &key, const T &val)
Maps the specified property to the specified value in this container.
Definition: ResourceAssignment.h:904
System::String get_NotesRTF() override
Gets the text notes in RTF format.
System::Decimal get_OvertimeCost()
Gets a value of OvertimeCost.
void set_Delay(Duration value)
Sets a value of Delay.
Duration get_BudgetWork()
Gets a value of BudgetWork.
RateScaleType get_RateScale()
Gets a value of RateScale.
const System::SharedPtr< Aspose::Tasks::Task > & get_Task() const
The task to which a resource is assigned.
RateType get_CostRateTableType()
Gets a value of CostRateTableType.
System::String get_AssignmentOwner()
Gets a value of AssignmentOwner.
void set_ActualCost(System::Decimal value)
Sets a value of ActualCost.
double get_VAC()
Gets a value of VAC.
void set_RateScale(RateScaleType value)
Sets a value of RateScale.
void set_RemainingWork(Duration value)
Sets a value of RemainingWork.
Represents a collection of TaskBaseline objects.
Definition: TaskBaselineCollection.h:101
Represents a task in a project.
Definition: Task.h:394
Aspose.
Definition: Asn.h:13