Arrêter ou reprendre une affectation en php

Aspose.Tasks - Arrêtez ou reprenez une affectation

Aspose.Tasks Pour arrêter ou reprendre une affectation en utilisant Aspose.Tasks Java pour php, invoquez simplement le module stopAnSeasuMSignment **. Ici, vous pouvez voir un exemple de code.

 1$ project = nouveau projet ('test_tasks.mp');
 2
 3$ ressource_assignments = $ project-> getResourCeasSignments () -> Tolist ();
 4
 5$ i = 0;
 6
 7$ asn = new asn ();
 8
 9tandis que ($ i <sizeof ($ ressource_assignments))
10
11{
12
13    $assignment = $resource_assignments -> get($i);
14
15    if ((string)$assignment -> get($asn -> STOP) == "1/1/2000")
16
17    {
18
19        print "NA";
20
21    }
22
23    else
24
25    {
26
27        print (string)$assignment -> get($asn -> STOP);
28
29    }
30
31
32
33    if ((string)$assignment -> get($asn -> RESUME) == "1/1/2000")
34
35    {
36
37        print "NA";
38
39    }
40
41    else
42
43    {
44
45        print (string)$assignment -> get($asn -> RESUME);
46
47    }
48
49    $i += 1;
50
51}

Télécharger le code en cours d’exécution

Télécharger Arrêtez ou reprendre une affectation (Aspose.Tasks) à partir de l’un des sites de codage social mentionnés ci-dessous:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.