8 #include <system/nullable.h>
9 #include <system/multicast_delegate.h>
10 #include <system/iequatable.h>
11 #include <system/guid.h>
13 #include "aspose.tasks.cpp/PropertyContainer.h"
14 #include "aspose.tasks.cpp/IEntityWithNotes.h"
15 #include "aspose.tasks.cpp/IEntityWithHyperlink.h"
16 #include "aspose.tasks.cpp/IContainer.h"
17 #include "aspose.tasks.cpp/TimephasedData.h"
18 #include "aspose.tasks.cpp/Task.h"
19 #include "aspose.tasks.cpp/Resource.h"
20 #include "aspose.tasks.cpp/Key.h"
21 #include "aspose.tasks.cpp/IExtendedAttributeParent.h"
22 #include "aspose.tasks.cpp/Enums/AsnKey.h"
23 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
29 class AssignmentBaseline;
30 class AssignmentBaselineCollection;
31 class AutoRecalculationState;
32 enum class BaselineType;
33 enum class BookingType;
34 namespace Calculations
36 class ActualsByPercentCompleteUpdater;
37 class AssignmentProjection;
38 class IWorkContourIterator;
39 class RescheduleIncompleteWorkCalculator;
40 class ResourceAssignmentCalculator;
41 class ResourceAssignmentCostCalculator;
42 class ResourceAssignmentPeakCalculator;
43 class ResourceAssignmentRateByDateEnumerator;
44 class ResourceAssignmentVarianceCalculator;
45 class ResourceAssignmentWorkCalculator;
46 class ResourceOverAllocationCalculator;
47 class ResourceWorkCalculator;
48 class TaskByAssignmentCalculator;
50 class TimephasedDataCalculator;
53 namespace Connectivity
55 class MpdAssignmentBaselineMapper;
56 class MpdAssignmentMapper;
57 template <
typename>
class MpdField;
58 class MspAssignmentBaseLineMapper;
59 class MspAssignmentMapper;
60 class PmResourceAssignmentMapper;
62 class DatesCalculator;
64 class EvaluationModeDatesResetter;
66 class ExtendedAttributeCollection;
69 class ResourceAssignmentValidByTaskFilter;
70 class ResourceAssignmentValidMaterialByTaskFilter;
71 class ResourceAssignmentValidWorkByTaskFilter;
73 class FixedDurationEffortDrivenTaskPlanner;
74 class FixedDurationTaskPlanner;
75 class FixedWorkTaskPlanner;
80 class HtmlResourceAssignmentBaseLineTableReader;
81 class HtmlResourceAssignmentTableReader;
87 class AssignmentExtendedAttributeFlagOffsets;
90 class MPP12ResourceAssignmentWriter;
91 class MPP14As9AssnWriter;
92 template <
typename>
class MPP14AsXResourceAssignmentReader;
94 class MPP14ResourceAssignmentWriter;
95 class MPP14TaskWriter;
97 class MPP9ResourceAssignmentReader;
98 class MPP9ResourceAssignmentWriter;
99 class MPPAssignmentExtendedAttributeReader;
101 class MPPResourceAssignmentWriter;
102 class MPPTimephasedDataReader;
103 class MppTimephasedDataWriter;
105 namespace PrimaveraXml
107 class PrimaveraAssignmentsNodeReader;
111 namespace InternalApi
115 class AssignmentContourDataMapper;
116 class ProjectAssignmentsMapper;
122 class XerAssignmentReader;
126 class ResourceAssignmentFactory;
127 class ResourceAssignmentNodeReader;
128 class ResourceAssignmentNodeWriter;
133 class LevelingAlgorithm;
136 class PercentCompleteCalculator;
139 class ProjectWorkUpdater;
141 enum class RateScaleType;
143 namespace Recalculation
145 class TaskSplitCalculator;
147 class ResourceAssignmentCollection;
148 class ResourceAssignmentTimephasedDataCollection;
151 class HtmlResourceAssignmentBaseLineTable;
152 class PrimaveraAssignmentNodeWriter;
153 class TemplateWriter;
154 class XerAssignmentTable;
158 class FromFinishScheduler;
159 class FromStartScheduler;
161 class SplitPartCollection;
162 class SplitsCalculator;
164 class TaskBaselineCollection;
166 class TaskPlannerAssignmentManager;
169 class TimephasedDataByScaledEnumerator;
170 class TimeScaledWorkContourBuilder;
172 class TimephasedDataCollection;
173 class TimephasedDataMaker;
174 enum class TimephasedDataType : int8_t;
175 class TimephasedWorkCostSelector;
176 class TimeScaledExceptions;
177 class TimeScaledParentWorkUnit;
178 class TimeScaledWorkUnit;
181 template <
typename T>
using ConditionDelegate = System::MulticastDelegate<bool(T)>;
182 class DateTimeInterval;
184 namespace Visualization
186 class ApsResourceUsageBuilder;
187 class ApsResourceUsagePage;
188 class ApsTaskUsageBuilder;
190 class AssignmentToColumnText;
191 template <
typename>
class FieldToColumnText;
192 class TaskToColumnText;
194 enum class WorkContourType;
195 class WorkingTimeCollection;
200 namespace Collections
204 template <
typename>
class IEnumerable;
205 template <
typename>
class IList;
206 template <
typename>
class List;
221 class ASPOSE_TASKS_SHARED_CLASS
ResourceAssignment :
public Aspose::Tasks::IContainer<Aspose::Tasks::AsnKey>,
public System::IEquatable<System::SharedPtr<Aspose::Tasks::ResourceAssignment>>,
public Aspose::Tasks::IExtendedAttributeParent,
public Aspose::Tasks::IEntityWithNotes,
public Aspose::Tasks::IEntityWithHyperlink
224 typedef Aspose::Tasks::IContainer<Aspose::Tasks::AsnKey> BaseType;
225 typedef System::IEquatable<System::SharedPtr<Aspose::Tasks::ResourceAssignment>> BaseType1;
226 typedef Aspose::Tasks::IExtendedAttributeParent BaseType2;
227 typedef Aspose::Tasks::IEntityWithNotes BaseType3;
228 typedef Aspose::Tasks::IEntityWithHyperlink BaseType4;
230 typedef ::System::BaseTypesInfo<BaseType, BaseType1, BaseType2, BaseType3, BaseType4> ThisTypeBaseTypesInfo;
231 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
234 friend class Aspose::Tasks::Calculations::AssignmentProjection;
235 friend class Aspose::Tasks::Calculations::RescheduleIncompleteWorkCalculator;
236 friend class Aspose::Tasks::Calculations::ResourceOverAllocationCalculator;
237 friend class Aspose::Tasks::Calculations::ResourceAssignmentRateByDateEnumerator;
238 friend class Aspose::Tasks::Calculations::ResourceAssignmentCalculator;
239 friend class Aspose::Tasks::Calculations::ResourceAssignmentCostCalculator;
240 friend class Aspose::Tasks::Calculations::ResourceAssignmentPeakCalculator;
241 friend class Aspose::Tasks::Calculations::ResourceAssignmentWorkCalculator;
242 friend class Aspose::Tasks::Calculations::ResourceWorkCalculator;
243 friend class Aspose::Tasks::Calculations::ActualsByPercentCompleteUpdater;
244 friend class Aspose::Tasks::Calculations::TaskByAssignmentCalculator;
245 friend class Aspose::Tasks::Calculations::TaskCalculator;
246 friend class Aspose::Tasks::Calculations::ResourceAssignmentVarianceCalculator;
247 friend class Aspose::Tasks::Calculations::TimephasedDataCalculator;
248 friend class Aspose::Tasks::IO::PrimaveraXml::PrimaveraAssignmentsNodeReader;
249 friend class Aspose::Tasks::Leveling::LevelingAlgorithm;
252 friend class Aspose::Tasks::Timephased::TimeScaledWorkContourBuilder;
253 friend class Aspose::Tasks::Timephased::TimephasedDataByScaledEnumerator;
254 friend class Aspose::Tasks::Filters::ResourceAssignmentValidByTaskFilter;
255 friend class Aspose::Tasks::Filters::ResourceAssignmentValidMaterialByTaskFilter;
256 friend class Aspose::Tasks::Filters::ResourceAssignmentValidWorkByTaskFilter;
257 friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::AssignmentContourDataMapper;
258 friend class Aspose::Tasks::IO::Xml::ResourceAssignmentFactory;
259 friend class Aspose::Tasks::EVCalculator;
260 friend class Aspose::Tasks::Connectivity::MpdAssignmentBaselineMapper;
261 friend class Aspose::Tasks::Connectivity::MpdAssignmentMapper;
262 template<
typename FT0>
friend class Aspose::Tasks::Connectivity::MpdField;
263 friend class Aspose::Tasks::Connectivity::MspAssignmentBaseLineMapper;
264 friend class Aspose::Tasks::Connectivity::MspAssignmentMapper;
265 friend class Aspose::Tasks::Connectivity::PmResourceAssignmentMapper;
266 friend class Aspose::Tasks::IO::Html::HtmlResourceAssignmentBaseLineTableReader;
267 friend class Aspose::Tasks::IO::Html::HtmlResourceAssignmentTableReader;
268 friend class Aspose::Tasks::Visualization::ApsResourceUsagePage;
269 friend class Aspose::Tasks::Visualization::ApsUsagePage;
270 friend class Aspose::Tasks::IO::MSProject::MPPAssignmentExtendedAttributeReader;
271 friend class Aspose::Tasks::IO::MSProject::MPP12Reader;
272 friend class Aspose::Tasks::IO::MSProject::MPPReader;
273 friend class Aspose::Tasks::IO::MSProject::MPP9ResourceAssignmentReader;
274 template<
typename FT0>
friend class Aspose::Tasks::IO::MSProject::MPP14AsXResourceAssignmentReader;
275 friend class Aspose::Tasks::IO::MSProject::MPP14Reader;
276 friend class Aspose::Tasks::IO::MSProject::MPP14ResourceAssignmentWriter;
277 friend class Aspose::Tasks::IO::MSProject::MPP14TaskWriter;
278 friend class Aspose::Tasks::IO::MSProject::MPP9Reader;
279 friend class Aspose::Tasks::IO::MSProject::Metadata::AssignmentExtendedAttributeFlagOffsets;
280 friend class Aspose::Tasks::IO::MSProject::MPPTimephasedDataReader;
281 friend class Aspose::Tasks::IO::MSProject::MPP12ResourceAssignmentWriter;
282 friend class Aspose::Tasks::IO::MSProject::MPPResourceAssignmentWriter;
283 friend class Aspose::Tasks::IO::MSProject::MPP14As9AssnWriter;
284 friend class Aspose::Tasks::IO::MSProject::MPP9ResourceAssignmentWriter;
285 friend class Aspose::Tasks::IO::MSProject::MppTimephasedDataWriter;
286 friend class Aspose::Tasks::IO::Xer::XerAssignmentReader;
287 friend class Aspose::Tasks::IO::Pwa::InternalApi::Mapping::ProjectAssignmentsMapper;
288 friend class Aspose::Tasks::IO::Xml::ResourceAssignmentNodeReader;
289 friend class Aspose::Tasks::IO::Xml::ResourceAssignmentNodeWriter;
290 friend class Aspose::Tasks::AutoRecalculationState;
291 friend class Aspose::Tasks::ProjectState;
292 friend class Aspose::Tasks::DatesCalculator;
293 friend class Aspose::Tasks::EvaluationModeDatesResetter;
294 friend class Aspose::Tasks::TaskPlannerAssignmentManager;
295 friend class Aspose::Tasks::FixedDurationEffortDrivenTaskPlanner;
296 friend class Aspose::Tasks::TaskPlanner;
297 friend class Aspose::Tasks::FixedDurationTaskPlanner;
298 friend class Aspose::Tasks::FixedWorkTaskPlanner;
299 friend class Aspose::Tasks::ManualState;
300 friend class Aspose::Tasks::PercentCompleteCalculator;
301 friend class Aspose::Tasks::ProjectWorkUpdater;
302 friend class Aspose::Tasks::SplitsCalculator;
303 friend class Aspose::Tasks::Recalculation::TaskSplitCalculator;
305 friend class Aspose::Tasks::ResourceAssignmentTimephasedDataCollection;
306 friend class Aspose::Tasks::Saving::HtmlResourceAssignmentBaseLineTable;
307 friend class Aspose::Tasks::Saving::XerAssignmentTable;
308 friend class Aspose::Tasks::Saving::PrimaveraAssignmentNodeWriter;
309 friend class Aspose::Tasks::Saving::TemplateWriter;
310 friend class Aspose::Tasks::Scheduling::FromFinishScheduler;
311 friend class Aspose::Tasks::Scheduling::FromStartScheduler;
313 friend class Aspose::Tasks::TimephasedDataMaker;
314 friend class Aspose::Tasks::TimephasedWorkCostSelector;
315 friend class Aspose::Tasks::Visualization::ApsResourceUsageBuilder;
316 friend class Aspose::Tasks::Visualization::ApsTaskUsageBuilder;
317 friend class Aspose::Tasks::Visualization::AssignmentToColumnText;
318 template<
typename FT0>
friend class Aspose::Tasks::Visualization::FieldToColumnText;
319 friend class Aspose::Tasks::Visualization::TaskToColumnText;
323 using TimephasedMaker = System::MulticastDelegate<void(System::SharedPtr<TimeScaledParentWorkUnit>, TimephasedDataType, System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Tasks::TimephasedData>>>)>;
331 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<Aspose::Tasks::Task>& get_Task()
const;
335 ASPOSE_TASKS_SHARED_API
void set_Task(
const System::SharedPtr<Aspose::Tasks::Task>& value);
339 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<Aspose::Tasks::Resource>& get_Resource()
const;
343 ASPOSE_TASKS_SHARED_API
void set_Resource(
const System::SharedPtr<Aspose::Tasks::Resource>& value);
347 ASPOSE_TASKS_SHARED_API System::Nullable<System::Guid> get_Guid()
const;
351 ASPOSE_TASKS_SHARED_API
void set_Guid(System::Nullable<System::Guid> value);
355 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<Project>& get_ParentProject()
const override;
360 ASPOSE_TASKS_SHARED_API System::SharedPtr<AssignmentBaselineCollection> get_Baselines();
365 ASPOSE_TASKS_SHARED_API System::SharedPtr<ExtendedAttributeCollection> get_ExtendedAttributes()
override;
370 ASPOSE_TASKS_SHARED_API
void set_ExtendedAttributes(
const System::SharedPtr<ExtendedAttributeCollection>& value);
374 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimephasedDataCollection> get_TimephasedData();
378 ASPOSE_TASKS_SHARED_API
void set_TimephasedData(
const System::SharedPtr<TimephasedDataCollection>& value);
382 ASPOSE_TASKS_SHARED_API int32_t get_Uid();
386 ASPOSE_TASKS_SHARED_API
void set_Uid(int32_t value);
390 ASPOSE_TASKS_SHARED_API int32_t get_PercentWorkComplete();
394 ASPOSE_TASKS_SHARED_API
void set_PercentWorkComplete(int32_t value);
398 ASPOSE_TASKS_SHARED_API System::Decimal get_ActualCost();
402 ASPOSE_TASKS_SHARED_API
void set_ActualCost(System::Decimal value);
406 ASPOSE_TASKS_SHARED_API System::DateTime get_ActualFinish();
410 ASPOSE_TASKS_SHARED_API
void set_ActualFinish(System::DateTime value);
414 ASPOSE_TASKS_SHARED_API System::Decimal get_ActualOvertimeCost();
418 ASPOSE_TASKS_SHARED_API
void set_ActualOvertimeCost(System::Decimal value);
422 ASPOSE_TASKS_SHARED_API System::DateTime get_ActualStart();
426 ASPOSE_TASKS_SHARED_API
void set_ActualStart(System::DateTime value);
430 ASPOSE_TASKS_SHARED_API
Duration get_ActualWork();
434 ASPOSE_TASKS_SHARED_API
void set_ActualWork(
Duration value);
438 ASPOSE_TASKS_SHARED_API
double get_ACWP();
442 ASPOSE_TASKS_SHARED_API
void set_ACWP(
double value);
446 ASPOSE_TASKS_SHARED_API
bool get_Confirmed();
450 ASPOSE_TASKS_SHARED_API
void set_Confirmed(
bool value);
454 ASPOSE_TASKS_SHARED_API System::Decimal get_Cost();
458 ASPOSE_TASKS_SHARED_API
void set_Cost(System::Decimal value);
462 ASPOSE_TASKS_SHARED_API RateType get_CostRateTableType();
466 ASPOSE_TASKS_SHARED_API
void set_CostRateTableType(RateType value);
470 ASPOSE_TASKS_SHARED_API
double get_CostVariance();
474 ASPOSE_TASKS_SHARED_API
void set_CostVariance(
double value);
478 ASPOSE_TASKS_SHARED_API
double get_CV();
482 ASPOSE_TASKS_SHARED_API
void set_CV(
double value);
486 ASPOSE_TASKS_SHARED_API
Duration get_Delay();
490 ASPOSE_TASKS_SHARED_API
void set_Delay(
Duration value);
494 ASPOSE_TASKS_SHARED_API System::DateTime get_Finish();
498 ASPOSE_TASKS_SHARED_API
void set_Finish(System::DateTime value);
502 ASPOSE_TASKS_SHARED_API
Duration get_FinishVariance();
506 ASPOSE_TASKS_SHARED_API
void set_FinishVariance(
Duration value);
510 ASPOSE_TASKS_SHARED_API System::String get_Hyperlink()
override;
514 ASPOSE_TASKS_SHARED_API
void set_Hyperlink(System::String value)
override;
518 ASPOSE_TASKS_SHARED_API System::String get_HyperlinkAddress()
override;
522 ASPOSE_TASKS_SHARED_API
void set_HyperlinkAddress(System::String value)
override;
526 ASPOSE_TASKS_SHARED_API System::String get_HyperlinkSubAddress()
override;
530 ASPOSE_TASKS_SHARED_API
void set_HyperlinkSubAddress(System::String value)
override;
534 ASPOSE_TASKS_SHARED_API
Duration get_WorkVariance();
538 ASPOSE_TASKS_SHARED_API
void set_WorkVariance(
Duration value);
542 ASPOSE_TASKS_SHARED_API
bool get_HasFixedRateUnits();
546 ASPOSE_TASKS_SHARED_API
void set_HasFixedRateUnits(
bool value);
550 ASPOSE_TASKS_SHARED_API
bool get_FixedMaterial();
554 ASPOSE_TASKS_SHARED_API
void set_FixedMaterial(
bool value);
558 ASPOSE_TASKS_SHARED_API
Duration get_LevelingDelay();
562 ASPOSE_TASKS_SHARED_API
void set_LevelingDelay(
Duration value);
566 ASPOSE_TASKS_SHARED_API
bool get_LinkedFields();
570 ASPOSE_TASKS_SHARED_API
void set_LinkedFields(
bool value);
574 ASPOSE_TASKS_SHARED_API
bool get_Milestone();
578 ASPOSE_TASKS_SHARED_API
void set_Milestone(
bool value);
582 ASPOSE_TASKS_SHARED_API System::String get_NotesText()
override;
586 ASPOSE_TASKS_SHARED_API
void set_NotesText(System::String value)
override;
591 ASPOSE_TASKS_SHARED_API System::String get_NotesRTF()
override;
596 ASPOSE_TASKS_SHARED_API
void set_NotesRTF(System::String value)
override;
600 ASPOSE_TASKS_SHARED_API
bool get_Overallocated();
604 ASPOSE_TASKS_SHARED_API
void set_Overallocated(
bool value);
608 ASPOSE_TASKS_SHARED_API System::Decimal get_OvertimeCost();
612 ASPOSE_TASKS_SHARED_API
void set_OvertimeCost(System::Decimal value);
616 ASPOSE_TASKS_SHARED_API
Duration get_OvertimeWork();
620 ASPOSE_TASKS_SHARED_API
void set_OvertimeWork(
Duration value);
624 ASPOSE_TASKS_SHARED_API
double get_PeakUnits();
628 ASPOSE_TASKS_SHARED_API
void set_PeakUnits(
double value);
632 ASPOSE_TASKS_SHARED_API
Duration get_RegularWork();
636 ASPOSE_TASKS_SHARED_API
void set_RegularWork(
Duration value);
640 ASPOSE_TASKS_SHARED_API System::Decimal get_RemainingCost();
644 ASPOSE_TASKS_SHARED_API
void set_RemainingCost(System::Decimal value);
648 ASPOSE_TASKS_SHARED_API System::Decimal get_RemainingOvertimeCost();
652 ASPOSE_TASKS_SHARED_API
void set_RemainingOvertimeCost(System::Decimal value);
656 ASPOSE_TASKS_SHARED_API
Duration get_RemainingOvertimeWork();
660 ASPOSE_TASKS_SHARED_API
void set_RemainingOvertimeWork(
Duration value);
664 ASPOSE_TASKS_SHARED_API
Duration get_RemainingWork();
668 ASPOSE_TASKS_SHARED_API
void set_RemainingWork(
Duration value);
672 ASPOSE_TASKS_SHARED_API
bool get_ResponsePending();
676 ASPOSE_TASKS_SHARED_API
void set_ResponsePending(
bool value);
680 ASPOSE_TASKS_SHARED_API System::DateTime get_Start();
684 ASPOSE_TASKS_SHARED_API
void set_Start(System::DateTime value);
688 ASPOSE_TASKS_SHARED_API System::DateTime get_Stop();
692 ASPOSE_TASKS_SHARED_API
void set_Stop(System::DateTime value);
696 ASPOSE_TASKS_SHARED_API System::DateTime get_Resume();
700 ASPOSE_TASKS_SHARED_API
void set_Resume(System::DateTime value);
704 ASPOSE_TASKS_SHARED_API
Duration get_StartVariance();
708 ASPOSE_TASKS_SHARED_API
void set_StartVariance(
Duration value);
712 ASPOSE_TASKS_SHARED_API
bool get_Summary();
716 ASPOSE_TASKS_SHARED_API
void set_Summary(
bool value);
720 ASPOSE_TASKS_SHARED_API
double get_SV();
724 ASPOSE_TASKS_SHARED_API
void set_SV(
double value);
728 ASPOSE_TASKS_SHARED_API
double get_Units();
732 ASPOSE_TASKS_SHARED_API
void set_Units(
double value);
736 ASPOSE_TASKS_SHARED_API
bool get_UpdateNeeded();
740 ASPOSE_TASKS_SHARED_API
void set_UpdateNeeded(
bool value);
744 ASPOSE_TASKS_SHARED_API
double get_VAC();
748 ASPOSE_TASKS_SHARED_API
void set_VAC(
double value);
752 ASPOSE_TASKS_SHARED_API
Duration get_Work();
756 ASPOSE_TASKS_SHARED_API
void set_Work(
Duration value);
760 ASPOSE_TASKS_SHARED_API WorkContourType get_WorkContour();
764 ASPOSE_TASKS_SHARED_API
void set_WorkContour(WorkContourType value);
768 ASPOSE_TASKS_SHARED_API
double get_BCWS();
772 ASPOSE_TASKS_SHARED_API
void set_BCWS(
double value);
776 ASPOSE_TASKS_SHARED_API
double get_BCWP();
780 ASPOSE_TASKS_SHARED_API
void set_BCWP(
double value);
784 ASPOSE_TASKS_SHARED_API Aspose::Tasks::BookingType get_BookingType();
788 ASPOSE_TASKS_SHARED_API
void set_BookingType(Aspose::Tasks::BookingType value);
792 ASPOSE_TASKS_SHARED_API
Duration get_ActualWorkProtected();
796 ASPOSE_TASKS_SHARED_API
void set_ActualWorkProtected(
Duration value);
800 ASPOSE_TASKS_SHARED_API
Duration get_ActualOvertimeWorkProtected();
804 ASPOSE_TASKS_SHARED_API
void set_ActualOvertimeWorkProtected(
Duration value);
808 ASPOSE_TASKS_SHARED_API
Duration get_ActualOvertimeWork();
812 ASPOSE_TASKS_SHARED_API
void set_ActualOvertimeWork(
Duration value);
816 ASPOSE_TASKS_SHARED_API System::DateTime get_Created();
820 ASPOSE_TASKS_SHARED_API
void set_Created(System::DateTime value);
824 ASPOSE_TASKS_SHARED_API System::String get_AssignmentOwner();
828 ASPOSE_TASKS_SHARED_API
void set_AssignmentOwner(
const System::String& value);
832 ASPOSE_TASKS_SHARED_API System::String get_AssignmentOwnerGuid();
836 ASPOSE_TASKS_SHARED_API
void set_AssignmentOwnerGuid(
const System::String& value);
840 ASPOSE_TASKS_SHARED_API System::Decimal get_BudgetCost();
844 ASPOSE_TASKS_SHARED_API
void set_BudgetCost(System::Decimal value);
848 ASPOSE_TASKS_SHARED_API
Duration get_BudgetWork();
852 ASPOSE_TASKS_SHARED_API
void set_BudgetWork(
Duration value);
856 ASPOSE_TASKS_SHARED_API RateScaleType get_RateScale();
860 ASPOSE_TASKS_SHARED_API
void set_RateScale(RateScaleType value);
868 template <
typename T>
871 if (key.
get_KeyType() == Aspose::Tasks::AsnKey::Task)
873 return System::ExplicitCast<T>(System::ExplicitCast<System::Object>(this->get_Task()));
876 if (key.
get_KeyType() == Aspose::Tasks::AsnKey::Resource)
878 return System::ExplicitCast<T>(System::ExplicitCast<System::Object>(this->get_Resource()));
880 System::SharedPtr<System::Object> res;
881 if (this->GetCalculatedValue(key.
get_KeyType(), res))
883 return System::ExplicitCast<T>(res);
886 return this->container->template CheckPropAndGet<T>(key);
895 template <
typename T>
899 if (key.
get_KeyType() == Aspose::Tasks::AsnKey::Task)
901 this->set_Task(System::ExplicitCast<Aspose::Tasks::Task>(System::ExplicitCast<System::Object>(val)));
904 if (key.
get_KeyType() == Aspose::Tasks::AsnKey::Resource)
906 this->set_Resource(System::ExplicitCast<Aspose::Tasks::Resource>(System::ExplicitCast<System::Object>(val)));
910 auto castVal = System::ExplicitCast<System::Object>(val);
911 if (this->SetCalculatedValue(key.
get_KeyType(), castVal))
916 this->container->template CheckPropAndSet<T>(key, val);
918 if (key.get_KeyType() == Aspose::Tasks::AsnKey::WorkContour)
920 this->set_IsWorkContourChanged(
true);
927 ASPOSE_TASKS_SHARED_API
void Delete();
933 ASPOSE_TASKS_SHARED_API
bool Equals(System::SharedPtr<ResourceAssignment> other)
override;
939 ASPOSE_TASKS_SHARED_API
bool Equals(System::SharedPtr<System::Object> obj)
override;
945 ASPOSE_TASKS_SHARED_API System::String ToString()
const override;
950 ASPOSE_TASKS_SHARED_API int32_t GetHashCode()
const override;
955 ASPOSE_TASKS_SHARED_API
void TimephasedDataFromTaskDuration(
const System::SharedPtr<Calendar>& calendar);
966 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);
975 ASPOSE_TASKS_SHARED_API
void SplitTask(System::DateTime start, System::DateTime finish,
const System::SharedPtr<Calendar>& calendar);
983 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimephasedDataCollection> GetTimephasedData(System::DateTime start, System::DateTime end, TimephasedDataType timephasedType);
990 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimephasedDataCollection> GetTimephasedData(System::DateTime start, System::DateTime end);
998 ASPOSE_TASKS_SHARED_API System::TimeSpan GetTimephasedWork(System::DateTime start, System::DateTime end, TimephasedDataType timephasedDataType);
1005 ASPOSE_TASKS_SHARED_API System::TimeSpan GetTimephasedWork(System::DateTime start, System::DateTime end);
1014 ASPOSE_TASKS_SHARED_API
void SetMaterialResourceUnits(
double units, RateScaleType rateScaleType);
1015 static bool _anonymous_method_0(System::SharedPtr<Aspose::Tasks::TimephasedData> td);
1016 static bool _anonymous_method_1(System::SharedPtr<Aspose::Tasks::TimephasedData> td);
1017 static bool _anonymous_method_2(System::SharedPtr<Aspose::Tasks::TimephasedData> td);
1018 static bool _anonymous_method_3(System::SharedPtr<Aspose::Tasks::TimephasedData> td);
1019 static bool _anonymous_method_4(System::SharedPtr<Aspose::Tasks::TimephasedData> td);
1020 static bool _anonymous_method_5(System::SharedPtr<Aspose::Tasks::TimephasedData> td);
1027 ASPOSE_TASKS_SHARED_API
void set_ParentProject(
const System::SharedPtr<Project>& value);
1032 ASPOSE_TASKS_SHARED_API
void set_Baselines(
const System::SharedPtr<AssignmentBaselineCollection>& value);
1033 ASPOSE_TASKS_SHARED_API int32_t get_ExtendedAttributesCount();
1034 ASPOSE_TASKS_SHARED_API int32_t get_BaselineCount();
1035 ASPOSE_TASKS_SHARED_API
bool get_IsShared()
const;
1036 ASPOSE_TASKS_SHARED_API
void set_IsShared(
bool value);
1037 ASPOSE_TASKS_SHARED_API
bool get_IsWork();
1038 ASPOSE_TASKS_SHARED_API
bool get_IsFlatContour();
1039 ASPOSE_TASKS_SHARED_API
bool get_IsMaterial();
1040 ASPOSE_TASKS_SHARED_API
bool get_IsCost();
1041 ASPOSE_TASKS_SHARED_API System::Guid get_TempGuid()
const;
1042 ASPOSE_TASKS_SHARED_API
void set_TempGuid(System::Guid value);
1043 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calendar> get_AssignmentCalendar();
1044 ASPOSE_TASKS_SHARED_API
void set_AssignmentCalendar(
const System::SharedPtr<Calendar>& value);
1045 ASPOSE_TASKS_SHARED_API
bool get_IsValid();
1046 ASPOSE_TASKS_SHARED_API
bool get_IsValidWork();
1047 ASPOSE_TASKS_SHARED_API
bool get_IsSharedWork();
1051 ASPOSE_TASKS_SHARED_API System::SharedPtr<SplitPartCollection> get_SplitParts();
1055 ASPOSE_TASKS_SHARED_API
void set_SplitParts(
const System::SharedPtr<SplitPartCollection>& value);
1056 ASPOSE_TASKS_SHARED_API System::SharedPtr<Rate> get_CurrentRate();
1057 ASPOSE_TASKS_SHARED_API
void set_CurrentRate(
const System::SharedPtr<Rate>& value);
1058 ASPOSE_TASKS_SHARED_API
const System::ArrayPtr<uint8_t>& get_WorkCompleteRawTD()
const;
1059 ASPOSE_TASKS_SHARED_API
const System::ArrayPtr<uint8_t>& get_WorkIncompleteRawTD()
const;
1060 ASPOSE_TASKS_SHARED_API
const System::ArrayPtr<uint8_t>& get_WorkOverallocatedRawTD()
const;
1061 ASPOSE_TASKS_SHARED_API
const System::ArrayPtr<uint8_t>& get_WorkingExceptionsRaw()
const;
1062 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> get_ScaledWorkComplete()
const;
1063 ASPOSE_TASKS_SHARED_API
void set_ScaledWorkComplete(
const System::SharedPtr<TimeScaledParentWorkUnit>& value);
1064 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> get_ScaledWorkIncomplete()
const;
1065 ASPOSE_TASKS_SHARED_API
void set_ScaledWorkIncomplete(
const System::SharedPtr<TimeScaledParentWorkUnit>& value);
1066 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> get_ScaledWorkOverallocated()
const;
1067 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<Aspose::Tasks::TimeScaledExceptions>& get_TimeScaledExceptions()
const;
1068 ASPOSE_TASKS_SHARED_API
void set_TimeScaledExceptions(
const System::SharedPtr<Aspose::Tasks::TimeScaledExceptions>& value);
1069 ASPOSE_TASKS_SHARED_API
double get_PlannedValueNoCostUse()
const;
1070 ASPOSE_TASKS_SHARED_API
void set_PlannedValueNoCostUse(
double value);
1071 ASPOSE_TASKS_SHARED_API
bool get_IsCompleted();
1072 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calendar> get_ResourceCalendar();
1073 ASPOSE_TASKS_SHARED_API
bool get_IsTimephasedDataInitialized();
1074 ASPOSE_TASKS_SHARED_API
bool get_IsWorkContourChanged()
const;
1075 ASPOSE_TASKS_SHARED_API
void set_IsWorkContourChanged(
bool value);
1080 ASPOSE_TASKS_SHARED_API
ResourceAssignment(
const System::SharedPtr<Project>& project);
1082 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
ResourceAssignment, CODEPORTING_ARGS(
const System::SharedPtr<Project>& project));
1089 ASPOSE_TASKS_SHARED_API
ResourceAssignment(
const System::SharedPtr<Project>& project,
const System::SharedPtr<Aspose::Tasks::Resource>& resource);
1091 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
ResourceAssignment, CODEPORTING_ARGS(
const System::SharedPtr<Project>& project,
const System::SharedPtr<Aspose::Tasks::Resource>& resource));
1098 ASPOSE_TASKS_SHARED_API
ResourceAssignment(
const System::SharedPtr<Aspose::Tasks::Task>& task,
const System::SharedPtr<Aspose::Tasks::Resource>& resource);
1100 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));
1107 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
ResourceAssignment, CODEPORTING_ARGS());
1108 template <
typename T>
1111 this->container->template CheckPropAndSet<T>(key, val);
1114 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);
1115 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimephasedDataCollection> GetTimephasedData(
bool addBaselineTDs);
1116 ASPOSE_TASKS_SHARED_API
void ResetOnlyTimephasedData();
1117 ASPOSE_TASKS_SHARED_API
void ResetTimephasedData();
1118 ASPOSE_TASKS_SHARED_API
void SetWorkContourType(WorkContourType type);
1119 ASPOSE_TASKS_SHARED_API
void SetTimephasedData(
const System::SharedPtr<ResourceAssignmentTimephasedDataCollection>& list);
1126 ASPOSE_TASKS_SHARED_API System::SharedPtr<SplitPartCollection> GetCalculatedSplitParts();
1127 ASPOSE_TASKS_SHARED_API System::DateTime GetStartAddDelay(System::DateTime startDate);
1128 ASPOSE_TASKS_SHARED_API
void SetStart();
1129 ASPOSE_TASKS_SHARED_API
void SetFinish();
1130 ASPOSE_TASKS_SHARED_API System::String GetUnitsString();
1131 ASPOSE_TASKS_SHARED_API
void SetCalendar(
const System::SharedPtr<Project>& project);
1132 ASPOSE_TASKS_SHARED_API
void MoveSplits(System::DateTime date);
1133 ASPOSE_TASKS_SHARED_API
void CleanActualProperties();
1134 ASPOSE_TASKS_SHARED_API
void SetBaseline(BaselineType baselineType);
1135 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Tasks::TimephasedData>>> GetSortedTimephasedData();
1136 ASPOSE_TASKS_SHARED_API Util::DateTimeInterval GetStartFinishOfTimephasedData();
1137 ASPOSE_TASKS_SHARED_API
void GetCalendars(System::SharedPtr<Calendar>& taskCal, System::SharedPtr<Calendar>& rscCal);
1138 ASPOSE_TASKS_SHARED_API
void AddAssignments();
1139 ASPOSE_TASKS_SHARED_API
void CalculateTimephasedData(
const System::SharedPtr<TimephasedDataCollection>& list,
bool addBaselineTimephased);
1140 ASPOSE_TASKS_SHARED_API
void RecalculateTimephasedData();
1141 ASPOSE_TASKS_SHARED_API Duration GetContouredRemainingWork();
1142 ASPOSE_TASKS_SHARED_API
bool GetCalculatedValue(AsnKey key, System::SharedPtr<System::Object>& res)
const;
1143 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> InferScaledWorkComplete();
1144 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> InferScaledWorkActual();
1145 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> InferScaledWorkRemaining();
1146 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> InferScaledWork(TimephasedDataType timephasedDataType);
1147 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledParentWorkUnit> InferScaledWork(Util::ConditionDelegate<System::SharedPtr<Aspose::Tasks::TimephasedData>> timephasedDataCondition);
1148 ASPOSE_TASKS_SHARED_API
void SetSplitsFinish(System::DateTime finish);
1149 ASPOSE_TASKS_SHARED_API Duration GetWork();
1150 ASPOSE_TASKS_SHARED_API
double GetMeanLoad();
1151 ASPOSE_TASKS_SHARED_API System::SharedPtr<TimeScaledWorkUnit> GetMeanUnit();
1152 ASPOSE_TASKS_SHARED_API
void AddImplicitWorkingTimeException(System::DateTime date,
const System::SharedPtr<WorkingTimeCollection>& workingTimes);
1153 ASPOSE_TASKS_SHARED_API
void RemoveImplicitWorkingTimeException(System::DateTime date);
1154 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calculations::IWorkContourIterator> GetActualWorkIterator();
1155 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calculations::IWorkContourIterator> GetRemainingWorkIterator();
1156 ASPOSE_TASKS_SHARED_API System::SharedPtr<Calculations::IWorkContourIterator> GetWorkIterator();
1157 ASPOSE_TASKS_SHARED_API
bool SetCalculatedValue(AsnKey keyType,
const System::SharedPtr<System::Object>& v);
1164 ASPOSE_TASKS_SHARED_API
void MakeWorkTPs(System::SharedPtr<TimeScaledParentWorkUnit> unit, TimephasedDataType type, System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Tasks::TimephasedData>>> outputList);
1166 virtual ASPOSE_TASKS_SHARED_API ~ResourceAssignment();
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 ASPOSE_TASKS_SHARED_API
bool get_HasChildren()
override;
1191 ASPOSE_TASKS_SHARED_API 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 bool HasMppTimephased();
1219 System::SharedPtr<TimeScaledParentWorkUnit> InferScaledWork(
const System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::TimephasedData>>>& tds);
1220 System::SharedPtr<Calendar> TryToInheritCalendarFromTask();
1221 System::SharedPtr<Calendar> TryToInheritCalendarFromResource(
const System::SharedPtr<Project>& project);
1222 void MakeTimephasedData(
const System::SharedPtr<TimeScaledParentWorkUnit>& unit, System::DateTime start, System::DateTime end, ResourceAssignment::TimephasedMaker maker, TimephasedDataType type,
const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Tasks::TimephasedData>>>& outputList);
1229 void MakeCostTPs(System::SharedPtr<TimeScaledParentWorkUnit> unit, TimephasedDataType type, System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Tasks::TimephasedData>>> outputList);
1230 void MakeTimephasedDataFromMpp(
const System::SharedPtr<TimephasedDataCollection>& td);
1231 void MakeTimephasedDataFromXml(
const System::SharedPtr<TimephasedDataCollection>& td);
1232 void AddBaselineTimephasedData(
const System::SharedPtr<TimephasedDataCollection>& td);
1233 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);
1234 void MakeWorkTPs(System::DateTime start, System::TimeSpan time, System::TimeSpan workTime, System::SharedPtr<Calendar> calendar, TimephasedDataType type,
bool isLast, System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Tasks::TimephasedData>>> resultingList, System::Nullable<System::DateTime> nextUnitStart);
1235 void MakeCostTPs(System::DateTime start, System::TimeSpan time, System::TimeSpan workTime, System::SharedPtr<Calendar> calendar,
double units, TimephasedDataType type, System::Decimal rate, System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Tasks::TimephasedData>>> outputList);
1236 System::SharedPtr<SplitPartCollection> CalculateSplitParts();
1237 System::SharedPtr<System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::TimephasedData>>> GenerateTimephased(System::DateTime start, System::DateTime end, TimephasedDataType timephasedType);
1238 Duration GetRemainingWork();
1239 Duration GetActualWork();
1240 void GenerateTimephasedFromWorkUnit(System::DateTime start, System::DateTime end, TimephasedDataType timephasedType, System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Tasks::TimephasedData>>> outputList);
1241 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);
1242 void SetBaselineValues(
const System::SharedPtr<AssignmentBaseline>& bl);
1243 void SetBaselineTimephased(
const System::SharedPtr<AssignmentBaseline>& bl);
1244 void TimephasedDataChanged(
const System::SharedPtr<System::Object>& sender,
const System::SharedPtr<System::EventArgs>& e);
1245 System::SharedPtr<Calendar> WrapCalendarIfNecessary(
const System::SharedPtr<Calendar>& calendar);
Represents Baseline of a resource assignment.
Definition: AssignmentBaseline.h:83
Represents a task in a project.
Definition: Task.h:383
Represents duration in a project.
Definition: Duration.h:162
K get_KeyType() const
Gets the key of the property.
Definition: Key.h:119
T Get(const Key< T, AsnKey > &key) const
Returns the value to which the property is mapped in this container.
Definition: ResourceAssignment.h:869
Represents a collection of TaskBaseline objects.
Definition: TaskBaselineCollection.h:99
Represents a project.
Definition: Project.h:551
void Set(const Key< T, AsnKey > &key, const T &val)
Maps the specified property to the specified value in this container.
Definition: ResourceAssignment.h:896
Represents a resource assignment in a project.
Definition: ResourceAssignment.h:221
Represents a property key of a class of the specified type. An instance of this class is used when ge...
Definition: Asn.h:19
Represents a collection of ResourceAssignment objects.
Definition: ResourceAssignmentCollection.h:101