Sha256: 049f92b1ba9200179c4d728b1bcc684a3b2a5ce6a756bb7ce4f85c8a443930f8

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

module Asposetasksjava
  module ManagingTaskCosts
    def initialize()
        data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
                
        # Instantiate project object
        project = Rjb::import('com.aspose.tasks.Project').new

        task = project.getRootTask().getChildren().add("Task")

        tsk = Rjb::import('com.aspose.tasks.Tsk')

    	task.set(tsk.COST, Rjb::import('java.math.BigDecimal').valueOf(800))

    	puts "Task Remaining Cost: " + task.get(tsk.REMAINING_COST).to_string
    	puts "Task Fixed Cost: " + task.get(tsk.FIXED_COST).to_string
    	puts "Task Cost Variance: " + task.get(tsk.COST_VARIANCE).to_string
    	puts "Project Cost: " + project.getRootTask().get(tsk.COST).to_string
    	puts "Project Fixed Cost: " + project.getRootTask().get(tsk.FIXED_COST).to_string
    	puts "Project Remaining Cost: " + project.getRootTask().get(tsk.REMAINING_COST).to_string
    	puts "Project Variance Cost: " + project.getRootTask().get(tsk.COST_VARIANCE).to_string
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asposetasksjava-0.0.1 lib/asposetasksjava/Tasks/managingtaskcosts.rb