-
Notifications
You must be signed in to change notification settings - Fork 14
/
AssignmentOvertimeAndRemainingCosts.php
33 lines (25 loc) · 1.25 KB
/
AssignmentOvertimeAndRemainingCosts.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
namespace Aspose\Tasks\WorkingWithResourceAssignments;
use com\aspose\tasks\Project as Project;
use com\aspose\tasks\Asn as Asn;
class AssignmentOvertimeAndRemainingCosts{
public static function run($dataDir=null){
# Instantiate project object
$project = new Project($dataDir . 'test_tasks.mpp');
$resource_assignments = $project->getResourceAssignments()->toList();
# Parse through all the collected resource assignments
$asn=new Asn();
$i = 0;
while ($i < sizeof($resource_assignments)) {
$ra = $resource_assignments -> get($i);
print "Overtime Cost: " . $ra -> get($asn -> OVERTIME_COST).PHP_EOL;// . toString()
print "Overtime Work: " . $ra -> get($asn -> OVERTIME_WORK).PHP_EOL;// . toString()
print "Remaining Cost: " . $ra -> get($asn -> REMAINING_COST).PHP_EOL;// . toString()
print "Remaining Overtime Cost: " . $ra -> get($asn -> REMAINING_OVERTIME_COST).PHP_EOL;// . toString()
print "Remaining Overtime Work: " . $ra -> get($asn -> REMAINING_OVERTIME_WORK).PHP_EOL;// . toString()
print "--------------------------------------------------------".PHP_EOL;
$i += 1;
}
}
}
?>