Ressourcenkosten in Ruby
Contents
[
Hide
Show
]Aspose.Tasks - Ressourcenkosten
Um Ressourcenkosten mit Aspose.Tasks Java für Ruby zu erhalten, rufen Sie einfach Ressourcencost Modul auf. Hier sehen Sie Beispielcode.
1project = rjb :: import ('com.aspsient.tasks.project'). new ('project.mpp')
2
3Ressourcen = project.getResources (). Tolist ()
4
5rsc = rjb :: import ('com.aspsient.tasks.rsc')
6
7I = 0
8
9während ich <Resources.Size ()
10
11 resource = resources.get(i)
12
13 if resource.get(rsc.NAME) != nil
14
15 puts "Cost: " + resource.get(rsc.COST).to_string
16
17 puts "ACWP: " + resource.get(rsc.ACWP).to_string
18
19 puts "BCWS: " + resource.get(rsc.BCWS).to_string
20
21 puts "BCWP: " + resource.get(rsc.BCWP).to_string
22
23 puts "---------------------------------------------"
24
25 end
26
27 i += 1
28
29Ende
Download Running Code
Download Ressourcenkosten (Aspose.Tasks) von einer der folgenden erwähnten Social -Coding -Websites: