Managing Resource Overtimes

The Calendar class exposes a number of properties for managing resource overtime:

Working with Resource Overtimes

To see overtime cost, overtime rate and overtime work in Microsoft Project:

  1. On the Resource sheet, select the Insert menu and then select Column.
  2. Add the columns.

Overtime columns added to the Resource sheet in Microsoft Project

overtime resource values in Microsoft Project

Getting Resource Overtimes in Aspose.Tasks

The following example shows how to get resource overtimes using Aspose.Tasks.

 1// For complete examples and data files, please go to https://github.com/aspose-tasks/Aspose.Tasks-for-Java
 2// The path to the documents directory.
 3String dataDir = Utils.getDataDir(OvertimesResource.class);
 4
 5Project prj = new Project(dataDir + "project5.mpp");
 6for (Resource res : prj.getResources()) {
 7    if (res.get(Rsc.NAME) != null) {
 8        System.out.println(res.get(Rsc.OVERTIME_COST));
 9        System.out.println(res.get(Rsc.OVERTIME_WORK).toString());
10        System.out.println(res.get(Rsc.OVERTIME_RATE_FORMAT).toString());
11    }
12}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.