Handling Overtime, Remaining Costs and Work

When managing projects, it is often important to track how much overtime work is planned, how much cost is remaining, and what part of the assignment is still unfinished. These values directly affect the overall project budget and scheduling. With Aspose.Tasks for .NET you can programmatically read and update these fields, enabling you to build reporting tools, perform cost analysis, or synchronize data with external systems without requiring Microsoft Project.

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 demonstrates how to retrieve assignment overtime, remaining costs, and work values programmatically. This code loads an existing project, iterates over resource assignments, and prints overtime and remaining work-related information.

 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}

FAQ

Q: Do I need Microsoft Project installed to read Actual Properties?

Q: Can I update RemainingWork values with Aspose.Tasks?

Q: Which project file formats are supported for handling assignment costs and work?

Conclusion

In this article, we explored how to handle overtime, remaining costs, and work assignments using Aspose.Tasks for .NET. With the help of the Asn class, developers can easily access, display, and modify overtime and cost-related properties directly in their .NET applications. This approach provides flexibility, independence from Microsoft Project, and simplifies project cost and resource management workflows.

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.