PHPのタスクコストの管理
Contents
[
Hide
Show
]Aspose.Tasks -タスクコストの管理
Aspose.Tasks java for phpを使用してタスクコストを管理するには、ManagingTaskCostsモジュールを呼び出します。ここでは、サンプルコードを見ることができます。
PHPコード
1$ project = new Project();
2
3$ task = $ project-> getroottask() - > getChildren() - > add( "task");
4
5$ tsk = new tsk();
6
7$ bigdecimal = new bigdecimal();
8
9$ task-> set($ tsk-> cost、$ bigdecimal-> valueof(800));
10
11「タスクの残りコスト:」を印刷します。 (string)$ task-> get($ tsk-> resight_cost);
12
13「\ ntask固定費:」を印刷します。 (string)$ task-> get($ tsk-> sixed_cost);
14
15「\ ntaskコストの差異:」を印刷します。 (string)$ task-> get($ tsk-> cost_variance);
16
17「\ nprojectコスト:」を印刷します。 (string)$ project-> getroottask() - > get($ tsk-> cost);
18
19「\ nproject固定費:」を印刷します。 (string)$ project-> getroottask() - > get($ tsk-> sixed_cost);
20
21「\ nprojectの残りコスト:」を印刷します。 (string)$ project-> getroottask() - > get($ tsk-> resight_cost);
22
23「\ nproject分散コスト:」を印刷します。 (string)$ project-> getroottask() - > get($ tsk-> cost_variance);
実行中のコードをダウンロード
ダウンロード**タスクコストの管理(Aspose.Tasks)**以下のソーシャルコーディングサイトのいずれかから: