|
|
@ -2,6 +2,7 @@ const ganttId = getUrlParameter("gantt_id"); |
|
|
|
const readOnly = getUrlParameter("ro"); |
|
|
|
const readOnly = getUrlParameter("ro"); |
|
|
|
const proyekId = getUrlParameter("proyek_id"); |
|
|
|
const proyekId = getUrlParameter("proyek_id"); |
|
|
|
let base_url = getUrlParameter("base_url"); |
|
|
|
let base_url = getUrlParameter("base_url"); |
|
|
|
|
|
|
|
const base_url_image = "https://adw-api.ospro.id/assets/image/"; |
|
|
|
const adwIntegrationUrl = "https://adw-api.ospro.id/api"; |
|
|
|
const adwIntegrationUrl = "https://adw-api.ospro.id/api"; |
|
|
|
|
|
|
|
|
|
|
|
let userToVersionGanttId = 0 |
|
|
|
let userToVersionGanttId = 0 |
|
|
@ -350,6 +351,7 @@ var allColumns = [ |
|
|
|
{ name: "bobot_planning", label: "Bobot Activity (%)", align: "center", editor: editor.bobot_planning, resize: true, min_width: 115, template: function (text) { |
|
|
|
{ name: "bobot_planning", label: "Bobot Activity (%)", align: "center", editor: editor.bobot_planning, resize: true, min_width: 115, template: function (text) { |
|
|
|
if(text.bobot_planning > 100){ |
|
|
|
if(text.bobot_planning > 100){ |
|
|
|
gantt.alert("Bobot tidak boleh lebih dari 100%!"); |
|
|
|
gantt.alert("Bobot tidak boleh lebih dari 100%!"); |
|
|
|
|
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if(!text.bobot_planning){ |
|
|
|
if(!text.bobot_planning){ |
|
|
|
return |
|
|
|
return |
|
|
@ -367,6 +369,7 @@ var allColumns = [ |
|
|
|
progress = progress*100 |
|
|
|
progress = progress*100 |
|
|
|
if(progress > 100){ |
|
|
|
if(progress > 100){ |
|
|
|
gantt.alert("Bobot tidak boleh lebih dari 100%!"); |
|
|
|
gantt.alert("Bobot tidak boleh lebih dari 100%!"); |
|
|
|
|
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
let bobot = text.bobot_planning |
|
|
|
let bobot = text.bobot_planning |
|
|
|
let actual = (progress*bobot) / 100 |
|
|
|
let actual = (progress*bobot) / 100 |
|
|
|