Abrufen Sie die Budget- und Kostenwerte einer Aufgabe in Ruby ab

Contents
[ Hide Show ]

** asspos

Um die Budget- und Kostenwerte einer Aufgabe mithilfe von Aspose.Tasks java für Ruby abzurufen, rufen Sie einfach GetBudgetworkand und COSTVALUE Modul auf. Hier sehen Sie Beispielcode.

Rubincode

 1project = rjb :: import ('com.aspsient.tasks.project'). new ('test_tasks.mpp')
 2
 3project_summary = project.getroottask ()
 4
 5tsk = rjb :: import ('com.aspsient.tasks.tsk'))
 6
 7rsc = rjb :: import ('com.aspsient.tasks.rsc')
 8
 9Puts "Project Budget Work =" + project_summary.get (tsk.budget_work) .to_string
10
11Puts "Projektbudget Cost =" + project_summary.get (tsk.budget_cost) .to_string
12
13Ressource = Project.getResources (). GetByUid (1)
14
15platziert "Ressourcenbudgetwork =" + ressource.get (rsc.budget_work) .to_string
16
17Ressource = project.getResources (). getbyuid (2)
18
19platziert "RessourcenbudgetCost =" + ressource.get (rsc.budget_cost) .to_string

Download Running Code

Download Abrufen Sie die Budget- und Kostenwerte einer Aufgabe (Aspose.Tasks) von einer der folgenden erwähnten Social -Coding -Websites:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.