|
|
@ -2,6 +2,8 @@ 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 role_name = getUrlParameter("role_name"); |
|
|
|
|
|
|
|
const company_id = getUrlParameter("company_id"); |
|
|
|
const adwIntegrationUrl = "https://adw-api.ospro.id/api"; |
|
|
|
const adwIntegrationUrl = "https://adw-api.ospro.id/api"; |
|
|
|
|
|
|
|
|
|
|
|
let userToVersionGanttId = 0 |
|
|
|
let userToVersionGanttId = 0 |
|
|
@ -221,7 +223,23 @@ function createColumnsConfig(selectedColumns){ |
|
|
|
|
|
|
|
|
|
|
|
var allColumns = [ |
|
|
|
var allColumns = [ |
|
|
|
// { name: "kode_sortname", label: "Kode / Sortname",align: "center", min_width: 120, resize: true },
|
|
|
|
// { name: "kode_sortname", label: "Kode / Sortname",align: "center", min_width: 120, resize: true },
|
|
|
|
{ name: "text", label: "Activity", tree: true, min_width: 150, resize: true }, |
|
|
|
{ |
|
|
|
|
|
|
|
name: "text", |
|
|
|
|
|
|
|
label: "Activity", |
|
|
|
|
|
|
|
tree: true, |
|
|
|
|
|
|
|
min_width: 150, |
|
|
|
|
|
|
|
resize: true, |
|
|
|
|
|
|
|
template: function (text) { |
|
|
|
|
|
|
|
function truncateText(text, maxLength) { |
|
|
|
|
|
|
|
if (text.length > maxLength) { |
|
|
|
|
|
|
|
return text.substring(0, maxLength) + '...'; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return text; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
const truncatedText = truncateText(text.text, 30); |
|
|
|
|
|
|
|
return `<span title="${text.text}">${truncatedText}</span>`; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
// { name: "start_date", label: "Start Date", align: "center", min_width: 80, resize: true },
|
|
|
|
// { name: "start_date", label: "Start Date", align: "center", min_width: 80, resize: true },
|
|
|
|
// { name: "end_date", label: "Finish Date", align: "center", min_width: 80, resize: true },
|
|
|
|
// { name: "end_date", label: "Finish Date", align: "center", min_width: 80, resize: true },
|
|
|
|
// { name: "duration", label: "Duration", align: "center", min_width: 50, resize: true },
|
|
|
|
// { name: "duration", label: "Duration", align: "center", min_width: 50, resize: true },
|
|
|
|