|
|
@ -3,7 +3,7 @@ const readOnly = getUrlParameter("ro"); |
|
|
|
const proyekId = getUrlParameter("proyek_id"); |
|
|
|
const proyekId = getUrlParameter("proyek_id"); |
|
|
|
const timestamp = getUrlParameter("timestamp"); |
|
|
|
const timestamp = getUrlParameter("timestamp"); |
|
|
|
let base_url = getUrlParameter("base_url"); |
|
|
|
let base_url = getUrlParameter("base_url"); |
|
|
|
const base_url_image = "https://adw-api.ospro.id/assets/image/"; |
|
|
|
const base_url_image = "https://project-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 |
|
|
@ -295,22 +295,26 @@ var allColumns = [ |
|
|
|
return moment(text.planned_end).format("DD-MM-YYYY"); |
|
|
|
return moment(text.planned_end).format("DD-MM-YYYY"); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ name: "start_date", label: "Early Start", align: "center", min_width: 80, editor: editor.start_date, resize: true, template: function (text) { |
|
|
|
{ |
|
|
|
|
|
|
|
name: "start_date", label: "Early Start", align: "center", min_width: 80, editor: editor.start_date, resize: true, template: function (text) { |
|
|
|
return moment(text.start_date).format("DD-MM-YYYY"); |
|
|
|
return moment(text.start_date).format("DD-MM-YYYY"); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ name: "end_date", label: "Early Finish", align: "center", min_width: 80, editor: editor.end_date, resize: true, template: function (text) { |
|
|
|
{ |
|
|
|
|
|
|
|
name: "end_date", label: "Early Finish", align: "center", min_width: 80, editor: editor.end_date, resize: true, template: function (text) { |
|
|
|
return moment(text.end_date).format("DD-MM-YYYY"); |
|
|
|
return moment(text.end_date).format("DD-MM-YYYY"); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ name: "actual_start", label: "Actual Start", align: "center", min_width: 80, resize: true, template: function (text) { |
|
|
|
{ |
|
|
|
|
|
|
|
name: "actual_start", label: "Actual Start", align: "center", min_width: 80, resize: true, template: function (text) { |
|
|
|
if (!text.actual_start) { |
|
|
|
if (!text.actual_start) { |
|
|
|
return ''; |
|
|
|
return ''; |
|
|
|
} |
|
|
|
} |
|
|
|
return moment(text.actual_start).format("DD-MM-YYYY"); |
|
|
|
return moment(text.actual_start).format("DD-MM-YYYY"); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ name: "actual_end", label: "Actual Finish", align: "center", min_width: 80, resize: true, template: function (text) { |
|
|
|
{ |
|
|
|
|
|
|
|
name: "actual_end", label: "Actual Finish", align: "center", min_width: 80, resize: true, template: function (text) { |
|
|
|
if (!text.actual_end) { |
|
|
|
if (!text.actual_end) { |
|
|
|
return ''; |
|
|
|
return ''; |
|
|
|
} |
|
|
|
} |
|
|
@ -364,7 +368,8 @@ var allColumns = [ |
|
|
|
return roundToTwo(progress); |
|
|
|
return roundToTwo(progress); |
|
|
|
}, resize: true |
|
|
|
}, resize: true |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ name: "planned_duration", label: "Baseline Duration (Day)", align: "center", min_width: 50, resize: true, editor: editor.duration, template: function (text) { |
|
|
|
{ |
|
|
|
|
|
|
|
name: "planned_duration", label: "Baseline Duration (Day)", align: "center", min_width: 50, resize: true, editor: editor.duration, template: function (text) { |
|
|
|
let start; |
|
|
|
let start; |
|
|
|
let end; |
|
|
|
let end; |
|
|
|
text.planned_start ? start = text.planned_start : start = text.start_date; |
|
|
|
text.planned_start ? start = text.planned_start : start = text.start_date; |
|
|
@ -375,7 +380,8 @@ var allColumns = [ |
|
|
|
end_date: new Date(end) |
|
|
|
end_date: new Date(end) |
|
|
|
}) |
|
|
|
}) |
|
|
|
return plannedDuration; |
|
|
|
return plannedDuration; |
|
|
|
}}, |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
{ name: "duration", label: "Duration (Day)", align: "center", min_width: 50, resize: true, editor: editor.duration }, |
|
|
|
{ name: "duration", label: "Duration (Day)", align: "center", min_width: 50, resize: true, editor: editor.duration }, |
|
|
|
{ |
|
|
|
{ |
|
|
|
name: "rencana_biaya", label: "Cost Planning", align: "right", min_width: 100, resize: true, template: function (text) { |
|
|
|
name: "rencana_biaya", label: "Cost Planning", align: "right", min_width: 100, resize: true, template: function (text) { |
|
|
|