|
|
|
@ -30,8 +30,7 @@ const formatNumber = (angka) => {
|
|
|
|
|
return rupiah |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function getCodeLinkByType(type) |
|
|
|
|
{ |
|
|
|
|
function getCodeLinkByType(type) { |
|
|
|
|
type = parseInt(type); |
|
|
|
|
switch (type) { |
|
|
|
|
case 1: |
|
|
|
@ -204,8 +203,7 @@ function getSatuan(){
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function updateActivity(id) |
|
|
|
|
{ |
|
|
|
|
function updateActivity(id) { |
|
|
|
|
$.ajax({ |
|
|
|
|
url: `${base_url}task/get-update/${id}`, |
|
|
|
|
type: "GET", |
|
|
|
@ -235,8 +233,7 @@ function formatRupiah(n) {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* Fungsi format ribuan inputan*/ |
|
|
|
|
function formatRibuanInput(angka, prefix) |
|
|
|
|
{ |
|
|
|
|
function formatRibuanInput(angka, prefix) { |
|
|
|
|
var number_string = angka.replace(/[^,\d]/g, '').toString(), |
|
|
|
|
split = number_string.split(','), |
|
|
|
|
sisa = split[0].length % 3, |
|
|
|
@ -276,8 +273,7 @@ function roundToTwo(num) {
|
|
|
|
|
return +(Math.round(num + "e+2") + "e-2"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function initialProperty() |
|
|
|
|
{ |
|
|
|
|
function initialProperty() { |
|
|
|
|
$.ajax({ |
|
|
|
|
url: `${base_url}user-to-version-gantt/get-by-gantt/${ganttId}`, |
|
|
|
|
type: "GET", |
|
|
|
@ -334,8 +330,7 @@ function initialProperty()
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function initializationColumn() |
|
|
|
|
{ |
|
|
|
|
function initializationColumn() { |
|
|
|
|
$.ajax({ |
|
|
|
|
url: `${base_url}gantt-show-hide/get-by-gantt/${ganttId}`, |
|
|
|
|
type: "GET", |
|
|
|
@ -504,8 +499,7 @@ function linkLagEditor(){
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function addShowHideColumn() |
|
|
|
|
{ |
|
|
|
|
function addShowHideColumn() { |
|
|
|
|
let allColumn = []; |
|
|
|
|
allColumns.forEach(function (column) { |
|
|
|
|
allColumn.push(column.name); |
|
|
|
@ -513,8 +507,7 @@ function addShowHideColumn()
|
|
|
|
|
submitShowHideColumn(allColumn); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function submitShowHideColumn(allColumn) |
|
|
|
|
{ |
|
|
|
|
function submitShowHideColumn(allColumn) { |
|
|
|
|
let payload = { |
|
|
|
|
version_gantt_id: ganttId, |
|
|
|
|
columns: allColumn |
|
|
|
@ -535,8 +528,7 @@ function submitShowHideColumn(allColumn)
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function setUpForShowHideColumn(data) |
|
|
|
|
{ |
|
|
|
|
function setUpForShowHideColumn(data) { |
|
|
|
|
let columns = data || [] |
|
|
|
|
|
|
|
|
|
let configColumn = {} |
|
|
|
@ -550,8 +542,7 @@ function setUpForShowHideColumn(data)
|
|
|
|
|
gantt.render(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function updateShowHideColumn(data) |
|
|
|
|
{ |
|
|
|
|
function updateShowHideColumn(data) { |
|
|
|
|
let payload = { |
|
|
|
|
columns: data |
|
|
|
|
} |
|
|
|
|