Rubyのリソースコスト

Aspose.Tasks -リソースコスト

ruby のJavaを使用してリソースコストを取得するには、 resourcecost **モジュールを呼び出します。ここでは、サンプルコードを見ることができます。

 1project = rjb :: import( 'com.Aspose.Tasks.project')new( 'project.mpp')
 2
 3リソース= project.getResources()tolist()
 4
 5rsc = rjb :: import( 'com.Aspose.Tasks.rsc')
 6
 7i = 0
 8
 9while i <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
29終わり

実行中のコードをダウンロード

ダウンロード**リソースコスト(Aspose.Tasks)**以下のソーシャルコーディングサイトのいずれかから:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.