Managing Assignment Cost in Ruby
Contents
[
Hide
Show
]Aspose.Tasks - Managing Assignment Cost
To manage Assignment Cost using Aspose.Tasks Java for Ruby, simply invoke AssignmentCost module. Here you can see example code.
Ruby Code
1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
2resource_assignments = project.getResourceAssignments().toList()
3i = 0
4while i < resource_assignments.size()
5 assignment = resource_assignments.get(i)
6 puts "COST: " + assignment.get(Rjb::import('com.aspose.tasks.Asn').COST).to_string
7 puts "ACWP: " + assignment.get(Rjb::import('com.aspose.tasks.Asn').ACWP).to_string
8 puts "BCWP: " + assignment.get(Rjb::import('com.aspose.tasks.Asn').BCWP).to_string
9 puts "BCWS: " + assignment.get(Rjb::import('com.aspose.tasks.Asn').BCWS).to_string
10 puts "--------------------------------------------------------"
11 i += 1
12end
Download Running Code
Download Managing Assignment Cost (Aspose.Tasks) from any of the below mentioned social coding sites: