Ressourcenkosten in PHP

Aspose.Tasks - Ressourcenkosten

Um die Ressourcenkosten mit Aspose.Tasks Java für PHP zu erhalten, rufen Sie einfach ResourceCost Modul auf. Hier sehen Sie Beispielcode.

 1$ project = new Project ('test_tasks.mpp');
 2
 3$ ressourcen = $ project-> getResources ()-> tolist ();
 4
 5$ rsc = new RSC ();
 6
 7$ i = 0;
 8
 9während ($ i <sizeof ($ ressourcen))
10
11{
12
13    $resource = $resources -> get($i);
14
15    if ($resource -> get($rsc -> NAME) != null) {
16
17        print "Cost: " . (string)$resource -> get($rsc -> COST);
18
19        print "\nACWP: " . (string)$resource -> get($rsc -> ACWP);
20
21        print "\nBCWS: " . (string)$resource -> get($rsc -> BCWS);
22
23        print "\nBCWP: " . (string)$resource -> get($rsc -> BCWP);
24
25        print "\n---------------------------------------------";
26
27    }
28
29    $i += 1;
30
31}

Download Running Code

Download Ressourcenkosten (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.