PHPで割り当てを停止または再開します

Aspose.Tasks -割り当てを停止または再開

Aspose.Tasks java for phpを使用して割り当てを停止または再開するには、stopandresumeassignmentモジュールを呼び出します。ここでは、サンプルコードを見ることができます。

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

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

ダウンロード**下記のソーシャルコーディングサイトのいずれかから課題(Aspose.Tasks)**を停止または再開します。

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.