|
|
|
@ -254,15 +254,16 @@ var allColumns = [
|
|
|
|
|
{ name: "kode_sortname", label: "Kode / Sortname",align: "center", min_width: 120, editor: editor.kode_sortname, resize: true }, |
|
|
|
|
{ name: "text", label: "Activity", tree: true, min_width: 150, editor: editor.text, resize: true }, |
|
|
|
|
{ name: "start_date", label: "Start Date", align: "center", min_width: 80, editor: editor.start_date, resize: true }, |
|
|
|
|
{ name: "end_date", label: "Finish Date", align: "center", min_width: 80, editor: editor.end_date, resize: true, template: function(task){ |
|
|
|
|
var gridDateToStr = gantt.date.date_to_str("%Y-%m-%d"); |
|
|
|
|
if (task.type == gantt.config.types.milestone) { |
|
|
|
|
return '' |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
return gridDateToStr(new Date(task.end_date.valueOf() - 1)); |
|
|
|
|
} |
|
|
|
|
}}, |
|
|
|
|
{ name: "end_date", label: "Finish Date", align: "center", min_width: 80, editor: editor.end_date, resize: true }, |
|
|
|
|
// { name: "end_date", label: "Finish Date", align: "center", min_width: 80, editor: editor.end_date, resize: true, template: function(task){
|
|
|
|
|
// var gridDateToStr = gantt.date.date_to_str("%Y-%m-%d");
|
|
|
|
|
// if (task.type == gantt.config.types.milestone) {
|
|
|
|
|
// return ''
|
|
|
|
|
// }
|
|
|
|
|
// else {
|
|
|
|
|
// return gridDateToStr(new Date(task.end_date.valueOf() - 1));
|
|
|
|
|
// }
|
|
|
|
|
// }},
|
|
|
|
|
{ name: "duration", label: "Duration", align: "center", min_width: 50, resize: true }, |
|
|
|
|
{ name: "rencana_biaya", label: "Cost Planning", align: "center", min_width: 100, resize: true, template: function (text) { |
|
|
|
|
if(!text.rencana_biaya){ |
|
|
|
@ -317,7 +318,7 @@ var allColumns = [
|
|
|
|
|
return `<div class="d-flex justify-content-center align-items-center" data-toggle="modal" data-target="#modal-material" style="min-width:100%;height:100%;">
|
|
|
|
|
${html} |
|
|
|
|
</div>` |
|
|
|
|
} }, |
|
|
|
|
// } },
|
|
|
|
|
{ name: "tools", label: "Tools", align: "center", min_width: 150, resize: true, template: function (text) { |
|
|
|
|
if(text.type=="project" || text.type=="milestone"){ |
|
|
|
|
return; |
|
|
|
|