|
|
|
@ -47,6 +47,10 @@ class ActivityController extends Controller
|
|
|
|
|
$dataHeader->progress = $dataHeader->persentase_progress / 100; |
|
|
|
|
$dataHeader->planned_start = isset($dataHeader->planned_start) ? date_format(date_create($dataHeader->planned_start), "Y-m-d H:i:s") : NULL; |
|
|
|
|
$dataHeader->planned_end = isset($dataHeader->planned_end) ? date_format(date_create($dataHeader->planned_end), "Y-m-d H:i:s") : NULL; |
|
|
|
|
|
|
|
|
|
$dataHeader->actual_start = isset($dataHeader->actual_start) ? date_format(date_create($dataHeader->actual_start), "Y-m-d") : NULL; |
|
|
|
|
$dataHeader->actual_end = isset($dataHeader->actual_end) ? date_format(date_create($dataHeader->actual_end), "Y-m-d") : NULL; |
|
|
|
|
|
|
|
|
|
$dataHeader->type = "header"; |
|
|
|
|
$dataHeader->text = $dataHeader->name; |
|
|
|
|
$finalData[] = $dataHeader; |
|
|
|
@ -72,6 +76,10 @@ class ActivityController extends Controller
|
|
|
|
|
$objRow->end_date = date_format($endDate, "Y-m-d H:i:s"); |
|
|
|
|
$objRow->planned_start = isset($objRow->planned_start) ? date_format(date_create($objRow->planned_start), "Y-m-d H:i:s") : NULL; |
|
|
|
|
$objRow->planned_end = isset($objRow->planned_end) ? date_format(date_create($objRow->planned_end), "Y-m-d H:i:s") : NULL; |
|
|
|
|
|
|
|
|
|
$objRow->actual_start = isset($objRow->actual_start) ? date_format(date_create($objRow->actual_start), "Y-m-d") : NULL; |
|
|
|
|
$objRow->actual_end = isset($objRow->actual_end) ? date_format(date_create($objRow->actual_end), "Y-m-d") : NULL; |
|
|
|
|
|
|
|
|
|
$objRow->progress = $objRow->persentase_progress / 100; |
|
|
|
|
$objRow->type = $type; |
|
|
|
|
$finalData[] = $objRow; |
|
|
|
@ -115,6 +123,10 @@ class ActivityController extends Controller
|
|
|
|
|
$objRow->end_date = date_format($endDate, "Y-m-d H:i:s"); |
|
|
|
|
$objRow->planned_start = isset($objRow->planned_start) ? date_format(date_create($objRow->planned_start), "Y-m-d H:i:s") : NULL; |
|
|
|
|
$objRow->planned_end = isset($objRow->planned_end) ? date_format(date_create($objRow->planned_end), "Y-m-d H:i:s") : NULL; |
|
|
|
|
|
|
|
|
|
$objRow->actual_start = isset($objRow->actual_start) ? date_format(date_create($objRow->actual_start), "Y-m-d") : NULL; |
|
|
|
|
$objRow->actual_end = isset($objRow->actual_end) ? date_format(date_create($objRow->actual_end), "Y-m-d") : NULL; |
|
|
|
|
|
|
|
|
|
$dataChildren = $this->getChildren($gantt_id, $objRow->id); |
|
|
|
|
if ($objRow->type_activity == "milestone") { |
|
|
|
|
$objRow->type = $objRow->type_activity; |
|
|
|
|