|
|
@ -212,6 +212,7 @@ function updateActivity(id) { |
|
|
|
gantt.getTask(id).assign_hr = data.assign_hr; |
|
|
|
gantt.getTask(id).assign_hr = data.assign_hr; |
|
|
|
gantt.getTask(id).assign_material = data.assign_material; |
|
|
|
gantt.getTask(id).assign_material = data.assign_material; |
|
|
|
gantt.getTask(id).assign_tools = data.assign_tools; |
|
|
|
gantt.getTask(id).assign_tools = data.assign_tools; |
|
|
|
|
|
|
|
gantt.getTask(id).assign_expense = data.assign_expense; |
|
|
|
gantt.getTask(id).bobot_planning = data.bobot_planning; |
|
|
|
gantt.getTask(id).bobot_planning = data.bobot_planning; |
|
|
|
gantt.getTask(id).rencana_biaya = data.rencana_biaya; |
|
|
|
gantt.getTask(id).rencana_biaya = data.rencana_biaya; |
|
|
|
gantt.getTask(id).biaya_actual = data.biaya_actual; |
|
|
|
gantt.getTask(id).biaya_actual = data.biaya_actual; |
|
|
@ -339,7 +340,7 @@ function initializationColumn() { |
|
|
|
if (data.status == "not yet have") { |
|
|
|
if (data.status == "not yet have") { |
|
|
|
addShowHideColumn(); |
|
|
|
addShowHideColumn(); |
|
|
|
} else if (data.status == "not have access") { |
|
|
|
} else if (data.status == "not have access") { |
|
|
|
|
|
|
|
gantt.config.columns = createColumnsConfig(columnShows); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
setUpForShowHideColumn(data); |
|
|
|
setUpForShowHideColumn(data); |
|
|
|
} |
|
|
|
} |
|
|
@ -513,7 +514,7 @@ function submitShowHideColumn(allColumn) { |
|
|
|
version_gantt_id: ganttId, |
|
|
|
version_gantt_id: ganttId, |
|
|
|
columns: allColumn |
|
|
|
columns: allColumn |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
gantt.config.columns = createColumnsConfig(allColumn); |
|
|
|
$.ajax({ |
|
|
|
$.ajax({ |
|
|
|
data: JSON.stringify(payload), |
|
|
|
data: JSON.stringify(payload), |
|
|
|
url: `${base_url}gantt-show-hide/add`, |
|
|
|
url: `${base_url}gantt-show-hide/add`, |
|
|
@ -676,6 +677,7 @@ function batchUpdate(){ |
|
|
|
}).then(function (response) { |
|
|
|
}).then(function (response) { |
|
|
|
$("body").removeClass("loading"); |
|
|
|
$("body").removeClass("loading"); |
|
|
|
localStorage.setItem('batchEntity', ''); |
|
|
|
localStorage.setItem('batchEntity', ''); |
|
|
|
|
|
|
|
refresData(); |
|
|
|
}).catch(function (error) { |
|
|
|
}).catch(function (error) { |
|
|
|
$("body").removeClass("loading") |
|
|
|
$("body").removeClass("loading") |
|
|
|
|
|
|
|
|
|
|
|