작업을 중지하고 재개하십시오

작업 중지 날짜는 종료 된 날짜입니다. 때로는 작업이 일시적으로 중지 된 다음 나중에 재개해야합니다. Microsoft Project는 정지 날짜를 계산하거나 사용자가 수동으로 입력 할 수 있습니다.

중지 및 재개 작업 작업

TSK 클래스에 의해 노출 된 STOP이력서 속성은 작업 중지 및 재개 날짜를 읽거나 쓰는 데 사용됩니다.

Microsoft Project STOP 및 이력서 날짜의보기

To see a task’s stop and resume dates:

  1. In the Task Entry form, on the Insert menu, select Column.

  2. Add the Stop and Resume columns.

Getting Stop and Resume Dates

The stop and resume dates are NA if the task has never stopped. For date values equal to NA, Aspose.Tasks takes the value “1/1/2000” if you’re using the evaluation version. When fully licensed, Aspose.Tasks uses DateTime.MinValue for NA values. The following examples display the stop and resume dates for all the tasks in a project.

 1Project project = new Project("New Project.mpp");
 2
 3// Create a ChildTasksCollector instance
 4ChildTasksCollector collector = new ChildTasksCollector();
 5
 6// Collect all the tasks from RootTask using TaskUtils
 7TaskUtils.Apply(project.RootTask, collector, 0);
 8
 9// Check Stop and Resume dates for all tasks
10foreach (Task task in collector.Tasks)
11{
12    if (task.Get(Tsk.Stop).ToShortDateString() == "1/1/2000")
13        Console.WriteLine("Stop: NA");
14    else
15        Console.WriteLine("Stop: " + task.Get(Tsk.Stop).ToShortDateString());
16
17    if (task.Get(Tsk.Resume).ToShortDateString() == "1/1/2000")
18        Console.WriteLine("Resume: NA");
19    else
20        Console.WriteLine("Resume: " + task.Get(Tsk.Resume).ToShortDateString());
21}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.