자원 작업 차이
Contents
[
Hide
Show
]작업 차이는 추정 작업 (기준선)과 실제 작업의 차이입니다.
분산 처리
리소스 클래스에 의해 노출 된 WorkVariance 속성은 작업의 차이를 처리합니다.
- WorkVariance : 기준선 작업과의 프로젝트 리소스의 차이 (Double).
리소스 작업 분산의 Microsoft 프로젝트보기
Microsoft Project의 리소스 작업 분산을 보려면 :
- 리소스 시트에서 삽입 메뉴로 이동하여 열을 선택하십시오.
- 분산 열을 추가하십시오.
Aspose.Tasks에서 리소스 작업 분산 얻기
다음 코드 예제는 Aspose.Tasks 를 사용하여 리소스 작업 분산을 얻는 방법을 보여주었습니다.
1// Read the input Project file
2System::SharedPtr<Project> project = System::MakeObject<Project>(dataDir + u"WorkVariance.mpp");
3Key<System::SharedPtr<Resource>, AsnKey> asnRsc = Asn::Resource();
4
5{
6 auto ra_enumerator = (project->get_ResourceAssignments())->GetEnumerator();
7 decltype(ra_enumerator->get_Current()) ra;
8 while (ra_enumerator->MoveNext() && (ra = ra_enumerator->get_Current(), true))
9 {
10 System::SharedPtr<Resource> rsc;
11
12 // C# preprocessor directive: #if !__cplusplus
13
14
15 // C# preprocessor directive: #endif
16
17 rsc = ra->Get(asnRsc);
18
19 double d = rsc->Get<double>(Rsc::WorkVariance());
20
21 System::Console::WriteLine(d);
22 }
23}