Dealing Variances in PHP
Contents
[
Hide
]
Aspose.Tasks - Dealing Variances
To see resource assignment variance using Aspose.Tasks Java for PHP, simply invoke AssignmentVariance module. Here you can see example code.
PHP Code
$project = new Project('test_tasks.mpp');
$resource_assignments = $project->getResourceAssignments()->toList();
$i = 0;
$asn = new Asn();
while ($i < sizeof($resource_assignments))
{
$assignment = $resource_assignments->get($i);
print "Work Variance: " . (string)$assignment -> get($asn -> WORK_VARIANCE);
print "\nCost Variance: " . (string)$assignment -> get($asn -> COST_VARIANCE);
print "\nStart Variance: " . (string)$assignment -> get($asn -> START_VARIANCE);
print "\nFinish Variance: " . (string)$assignment -> get($asn -> FINISH_VARIANCE);
print "\n--------------------------------------------------------";
$i += 1;
}
Download Running Code
Download Dealing Variances (Aspose.Tasks) from any of the below mentioned social coding sites: