Handling Overtime, Remaining Costs and Work

Handling Overtime, Remaining Costs and Work

The Asn class exposes a number of properties for handling an assignment’s overtime, remaining costs and work:

To see assignment overtime, remaining cost and work in Microsoft Project:

  1. On the Task Usage screen, select the Insert menu, then Column.
  2. Add the desired columns.

Getting Assignment Overtimes in Aspose.Tasks

The following example shows how to get assignment overtimes, remaining costs and work using Aspose.Tasks.

 1Project project = new Project("New Project.mpp");
 2
 3// Print assignment overtimes
 4foreach (ResourceAssignment ra in project.ResourceAssignments)
 5{
 6    Console.WriteLine(ra.Get(Asn.OvertimeCost));
 7    Console.WriteLine(ra.Get(Asn.OvertimeWork).ToString());
 8    Console.WriteLine(ra.Get(Asn.RemainingCost));
 9    Console.WriteLine(ra.Get(Asn.RemainingOvertimeCost));
10    Console.WriteLine(ra.Get(Asn.RemainingOvertimeWork).ToString());
11    Console.WriteLine(ra.Get(Asn.RemainingOvertimeWork).ToString());
12}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.