Stoppen Sie eine Zuordnung in PHP oder setzen Sie sie fort

asspots.tasks - Stoppen oder wieder aufnehmen eine Aufgabe

Um eine Zuordnung mit Aspose.Tasks java für Php zu stoppen oder fortzusetzen, rufen Sie einfach stopandresumassignment modul auf. Hier sehen Sie Beispielcode.

 1$ project = new Project ('test_tasks.mpp');
 2
 3$ ressourcen_assisignments = $ project-> getResourceAsssignments ()-> tolist ();
 4
 5$ i = 0;
 6
 7$ asn = new Asn ();
 8
 9while ($ i <sizeof ($ ressourcen_assisignments))
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}

Download Running Code

Download Stop oder Nehmen Sie eine 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.