Managing Assignment Cost in PHP
Contents
[
Hide
Show
]Aspose.Tasks - Managing Assignment Cost
To manage Assignment Cost using Aspose.Tasks Java for PHP, simply invoke AssignmentCost module. Here you can see example code.
PHP Code
1$project = new Project('test_tasks.mpp');
2$resource_assignments = $project->getResourceAssignments()->toList();
3$asn = new Asn();
4$i = 0;
5while ($i < sizeof($resource_assignments))
6{
7 $assignment = $resource_assignments -> get($i);
8 print "COST: " . (string)$assignment -> get($asn -> COST);
9 print "\nACWP: " . (string)$assignment -> get($asn -> ACWP);
10 print "\nBCWP: " . (string)$assignment -> get($asn -> BCWP);
11 print "\nBCWS: " . (string)$assignment -> get($asn -> BCWS);
12 print "\n--------------------------------------------------------";
13 $i += 1;
14}
Download Running Code
Download Managing Assignment Cost (Aspose.Tasks) from any of the below mentioned social coding sites: