|
|
@ -14,6 +14,22 @@ function getUrlParameter(sParam) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const formatNumber = (angka) => { |
|
|
|
|
|
|
|
var number_string = angka.replace(/[^,\d]/g, '').toString(), |
|
|
|
|
|
|
|
split = number_string.split(','), |
|
|
|
|
|
|
|
sisa = split[0].length % 3, |
|
|
|
|
|
|
|
rupiah = split[0].substr(0, sisa), |
|
|
|
|
|
|
|
ribuan = split[0].substr(sisa).match(/\d{3}/gi); |
|
|
|
|
|
|
|
var separator = ""; |
|
|
|
|
|
|
|
if(ribuan){ |
|
|
|
|
|
|
|
separator = sisa ? '.' : ''; |
|
|
|
|
|
|
|
rupiah += separator + ribuan.join('.'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
rupiah = split[1] != undefined ? rupiah + ',' + split[1] : rupiah; |
|
|
|
|
|
|
|
return rupiah |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function getCodeLinkByType(type) |
|
|
|
function getCodeLinkByType(type) |
|
|
|
{ |
|
|
|
{ |
|
|
|
type = parseInt(type); |
|
|
|
type = parseInt(type); |
|
|
@ -284,6 +300,14 @@ function initialProperty() |
|
|
|
$("#autoSchedule").prop("checked", true); |
|
|
|
$("#autoSchedule").prop("checked", true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(data.committed_cost){ |
|
|
|
|
|
|
|
$("#committedCostBox").val(data.committed_cost); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(data.cost_to_complete){ |
|
|
|
|
|
|
|
$("#costToCompleteBox").val(data.cost_to_complete); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(data.zoom){ |
|
|
|
if(data.zoom){ |
|
|
|
gantt.ext.zoom.setLevel(data.zoom); |
|
|
|
gantt.ext.zoom.setLevel(data.zoom); |
|
|
|
$('input[value="'+data.zoom+'"]').prop("checked", true); |
|
|
|
$('input[value="'+data.zoom+'"]').prop("checked", true); |
|
|
|