|
|
|
@ -255,15 +255,6 @@ var allColumns = [
|
|
|
|
|
{ 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 }, |
|
|
|
|
// { 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){ |
|
|
|
@ -280,7 +271,7 @@ var allColumns = [
|
|
|
|
|
return "Rp. "+ formatRupiah(biaya_actual) |
|
|
|
|
} }, |
|
|
|
|
{ name: "assign_hr", label: "Assign To", align: "center", min_width: 150, resize: true, template: function (text) { |
|
|
|
|
if(text.type=="project" || text.type=="milestone"){ |
|
|
|
|
if(text.type=="project" || text.type=="milestone" || text.type=="header"){ |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let html = ``; |
|
|
|
@ -302,7 +293,7 @@ var allColumns = [
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ name: "material", label: "Material", align: "center", min_width: 150, resize: true, template: function (text) { |
|
|
|
|
if(text.type=="project" || text.type=="milestone"){ |
|
|
|
|
if(text.type=="project" || text.type=="milestone" || text.type=="header"){ |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let html = ``; |
|
|
|
@ -320,7 +311,7 @@ var allColumns = [
|
|
|
|
|
</div>` |
|
|
|
|
} }, |
|
|
|
|
{ name: "tools", label: "Tools", align: "center", min_width: 150, resize: true, template: function (text) { |
|
|
|
|
if(text.type=="project" || text.type=="milestone"){ |
|
|
|
|
if(text.type=="project" || text.type=="milestone" || text.type=="header"){ |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let html = ``; |
|
|
|
@ -359,7 +350,7 @@ var allColumns = [
|
|
|
|
|
}, resize: true }, |
|
|
|
|
{ name: "jumlah_pekerjaan", label: "Volume Plan", align: "center", min_width: 100, resize: true, editor:editor.job_count }, |
|
|
|
|
{ name: "jobs_done", label: "Volume Actual", align: "center", min_width: 100, resize: true, template: function (text) { |
|
|
|
|
if(text.type=="project" || text.type=="milestone"){ |
|
|
|
|
if(text.type=="project" || text.type=="milestone" || text.type=="header"){ |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let html = text.jobs_done ? text.jobs_done : 0; |
|
|
|
|