비판적 및 노력 중심의 작업
Contents
[
Hide
Show
]Microsoft Project는 여러 가지 유형의 작업을 인식했습니다. 예를 들어 지속 시간이없는 작업은 기본적으로 이정표로 간주됩니다. 중요한 작업은 중요한 경로, 궁극적으로 프로젝트의 시간을 결정하는 일련의 작업을 구성합니다.
비판적 및 노력 중심의 작업으로 작업
TSK 클래스는 비판적 및 노력 중심의 작업을 처리하기 위해 iscritical 및 iseffortdriven 속성을 노출시킵니다.
- iscritical sets 또는 작업이 중요한지 여부 (BOOL 값).
- iseffortdriven : 작업이 노력 중심 (bool 값)인지 여부를 설정하거나받습니다.
Microsoft Project의 비판적 및 노력 중심 작업
Microsoft Project에서 작업이 중요하거나 노력하는지 여부를 확인하려면 작업 입력 양식에서 작업을 두 번 클릭하십시오.
비판적이고 노력하는 작업을받는 것
다음 코드 예제는 작업이 중요하거나 노력하는지에 대한 정보를 얻는 방법을 보여줍니다.
1// Read project from file stream
2System::String dataDir = RunExamples::GetDataDir(System::Reflection::MethodBase::GetCurrentMethod(ASPOSE_CURRENT_FUNCTION)->get_DeclaringType().get_FullName());
3System::SharedPtr<System::IO::FileStream> fs = System::MakeObject<System::IO::FileStream>(dataDir + u"CriticalEffortDrivenTasks.mpp", System::IO::FileMode::Open);
4System::SharedPtr<Project> prj = System::MakeObject<Project>(fs);
5fs->Close();
6
7// Create a ChildTasksCollector instance
8System::SharedPtr<ChildTasksCollector> collector = System::MakeObject<ChildTasksCollector>();
9
10// Collect all the tasks from RootTask using TaskUtils
11TaskUtils::Apply(prj->get_RootTask(), collector, 0);
12
13// Parse through all the collected tasks
14
15{
16 auto tsk1_enumerator = (collector->get_Tasks())->GetEnumerator();
17 decltype(tsk1_enumerator->get_Current()) tsk1;
18 while (tsk1_enumerator->MoveNext() && (tsk1 = tsk1_enumerator->get_Current(), true))
19 {
20 System::String strED = tsk1->Get<NullableBool>(Tsk::IsEffortDriven()).get_Value() ? System::String(u"EffortDriven") : System::String(u"Non-EffortDriven");
21 System::String strCrit = tsk1->Get<NullableBool>(Tsk::IsCritical()).get_Value() ? System::String(u"Critical") : System::String(u"Non-Critical");
22 System::Console::WriteLine(tsk1->Get(Tsk::Name()) + u" : " + strED);
23 System::Console::WriteLine(tsk1->Get(Tsk::Name()) + u" : " + strCrit);
24 }
25}