Update
This commit is contained in:
@@ -12,7 +12,7 @@ use App\Models\Sps_pendapatan;
|
||||
class JadwalSalurdanaController extends Controller
|
||||
{
|
||||
public function __construct(){
|
||||
$this->siteTitle = "Jadwal Salur Dana";
|
||||
$this->siteTitle = "DBH Jadwal Salur Dana";
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
@@ -31,7 +31,8 @@ class JadwalSalurdanaController extends Controller
|
||||
$ta = $post["ta"];
|
||||
|
||||
$dataFilter=0;
|
||||
$data = Sps_pendapatan::where("SKPD_ID",980)
|
||||
$data = Sps_pendapatan::selectRaw("kode_rekening,nama_rekening,spsbulan1,spsbulan2,spsbulan3,spsbulan4,spsbulan5,spsbulan6,spsbulan7,spsbulan8,spsbulan9,spsbulan10,spsbulan11,spsbulan12,SUBSTR(KODE_REKENING,1,12) AS kodegrup,SUBSTR(KODE_REKENING,1,9) AS groupall")
|
||||
->where("SKPD_ID",980)
|
||||
->where("TAHUN",$ta)
|
||||
->whereRaw("SUBSTR(KODE_REKENING,1,3)='4.2'");
|
||||
if (!empty($src)){
|
||||
|
||||
@@ -15,7 +15,7 @@ use App\Imports\RealisasiBelanjaImport;
|
||||
class RealisasiBelanjaController extends Controller
|
||||
{
|
||||
public function __construct(){
|
||||
$this->siteTitle = "Realisasi Belanja";
|
||||
$this->siteTitle = "DBH Realisasi Belanja";
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ use App\Models\Sps_pendapatan;
|
||||
class RealisasiPendapatanController extends Controller
|
||||
{
|
||||
public function __construct(){
|
||||
$this->siteTitle = "Realisasi Pendapatan";
|
||||
$this->siteTitle = "DBH Realisasi Pendapatan";
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.9 KiB |
Vendored
+3
-4
@@ -159,7 +159,7 @@ hr{
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
#tblRealisasi td,#tempUploadRealisasi td{
|
||||
#tblRealisasi td,#tempUploadRealisasi td,#dtTableJadwalPendapatan td{
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@@ -286,7 +286,6 @@ hr{
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#tblRealisasi td:hover{
|
||||
cursor: pointer;
|
||||
color: navy;
|
||||
table.dataTable tr.dtrg-group.dtrg-level-1 td{
|
||||
font-size: 1em !important;
|
||||
}
|
||||
@@ -7,11 +7,11 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('styles')
|
||||
<!-- DataTables -->
|
||||
<link rel="stylesheet" href="/AdminLTE-3.2.0/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
|
||||
<link rel="stylesheet" href="/AdminLTE-3.2.0/plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
|
||||
<link rel="stylesheet" href="/AdminLTE-3.2.0/plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
|
||||
<link rel="stylesheet" href="/AdminLTE-3.2.0/plugins/datatables-fixedcolumns/css/fixedColumns.bootstrap4.min.css">
|
||||
<link rel="stylesheet" href="/AdminLTE-3.2.0/plugins/datatables-rowgroup/css/rowGroup.bootstrap4.min.css">
|
||||
@endsection
|
||||
|
||||
@section('card_header')
|
||||
@@ -47,7 +47,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<table id="dtTableSKPP" class="table table-striped jambo_table tblClickRow" style="width:150%">
|
||||
<table id="dtTableJadwalPendapatan" class="table table-striped jambo_table tblClickRow" style="width:150%">
|
||||
<thead>
|
||||
<tr class="headings">
|
||||
<th>No</th>
|
||||
@@ -85,6 +85,8 @@
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-fixedcolumns/js/dataTables.fixedColumns.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-fixedcolumns/js/fixedColumns.bootstrap4.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-rowgroup/js/dataTables.rowGroup.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-rowgroup/js/rowGroup.bootstrap4.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
var srcDate1 = null, srcDate2 = null;
|
||||
@@ -100,7 +102,7 @@
|
||||
dtTable.draw();
|
||||
});
|
||||
|
||||
var dtTable = $('#dtTableSKPP').DataTable( {
|
||||
var dtTable = $('#dtTableJadwalPendapatan').DataTable( {
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"ordering": false,
|
||||
@@ -119,10 +121,10 @@
|
||||
"columnDefs": [
|
||||
//{ className: "td-nowrap", "targets": [ 1 ] }
|
||||
],
|
||||
"dom": "<\"top\" <\"row\"<\"col-md-6\"><\"col-md-6 text-right\">>>rt<\"bottom\" <\"row\"<\"col-md-6\"i><\"col-md-6\"p>> ><\"clear\">",
|
||||
"dom": "<\"top\" <\"row\"<\"col-md-6\"l><\"col-md-6 text-right\">>>rt<\"bottom\" <\"row\"<\"col-md-6\"i><\"col-md-6\"p>> ><\"clear\">",
|
||||
"lengthMenu": [
|
||||
[ 10, 25, 50 ],
|
||||
[ "10", "25", "50" ]
|
||||
[ 50, 75, 100 ],
|
||||
[ "50", "75", "100" ]
|
||||
],
|
||||
"paging": true, // Table pagination
|
||||
"columns": [
|
||||
@@ -152,7 +154,7 @@
|
||||
|
||||
let total = 0;
|
||||
$("td:eq(0)", nRow).html(index);
|
||||
$("td:eq(1)", nRow).html(aData["kode_rekening"]+" "+aData["nama_rekening"]);
|
||||
$("td:eq(1)", nRow).html(aData["kode_rekening"]+" | "+aData["nama_rekening"]);
|
||||
$.each(sps, function(i,x){
|
||||
$("td:eq("+(i+2)+")", nRow).html(separateNumberIndo(sps[i]));
|
||||
total+=parseFloat(sps[i]);
|
||||
@@ -162,7 +164,7 @@
|
||||
return nRow;
|
||||
},
|
||||
"language": {
|
||||
"lengthMenu": "Display _MENU_ records per page",
|
||||
"lengthMenu": "Tampilkan _MENU_ Data per Halaman",
|
||||
"zeroRecords": "Data tidak ditemukan!",
|
||||
"info": "Halaman _PAGE_ dari _PAGES_ Halaman",
|
||||
"infoEmpty": "Data tidak tersedia",
|
||||
@@ -177,6 +179,50 @@
|
||||
fixedColumns: {
|
||||
left: 2,
|
||||
},
|
||||
rowGroup: {
|
||||
endRender: function ( rows, group, index ) {
|
||||
let sum = [];
|
||||
let total = 0;
|
||||
for(let x=0;x<12;x++){
|
||||
xx = x+1;
|
||||
sum[x] = rows.data().pluck("spsbulan"+xx).reduce( function (a, b) {
|
||||
return a + b * 1;
|
||||
}, 0);
|
||||
total += sum[x];
|
||||
}
|
||||
let textmuted = index == 1 ? "text-muted":"";
|
||||
let labelGroup = index == 1 ?"JUMLAH | " + group : "TOTAL";
|
||||
return $("<tr/>")
|
||||
.append( "<td colspan=2 class=\'text-left " + textmuted +"\'><strong>"+labelGroup+"</strong></td>")
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[0]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[1]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[2]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[3]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[4]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[5]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[6]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[7]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[8]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[9]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[10]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(sum[11]) +"</strong></td>" )
|
||||
.append( "<td class=\'text-right " + textmuted +"\'><strong>"+ separateNumberIndo(total) +"</strong></td>" );
|
||||
},
|
||||
startRender: function ( rows, group, index ) {
|
||||
// let group1 = rows.data().pluck("GROUP1");
|
||||
// let group2 = rows.data().pluck("GROUP2");
|
||||
|
||||
// let groupNumber = index == 0 ? group1[0] : group2[0];
|
||||
// if (index == 0){
|
||||
// return $("<tr/>")
|
||||
// .append("<td colspan=5><a href=\'/akun/index/detail/?acc="+groupNumber.split(".").join("_")+"\'>" + groupNumber + ". " + group + "</a></td>")
|
||||
// }else{
|
||||
// return $("<tr/>")
|
||||
// .append("<td colspan=5> <a href=\'/akun/index/detail/?acc="+groupNumber.split(".").join("_")+"\'><strong>" + groupNumber + ". " + group + "</strong></a></td>")
|
||||
// }
|
||||
},
|
||||
dataSrc: ["groupall", "kodegrup"]
|
||||
},
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
<div class="card">
|
||||
<div class="card-body login-card-body">
|
||||
<p class="login-box-msg p-0">
|
||||
<i class="far fa-user fa-4x"></i>
|
||||
<img src="/bg-login.png"></i>
|
||||
</p>
|
||||
<h2 class="text-center">E-SAMASA</h2>
|
||||
<h2 class="text-center" style="color:#001f3f;">E-SAMASA</h2>
|
||||
@if(session('errors'))
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
Something it's wrong:
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<aside class="main-sidebar sidebar-dark-primary elevation-4 sidebar-dark-navy">
|
||||
<a href="javascript:void(0)" class="brand-link">
|
||||
<i class="fas fa-window-maximize fa-2x brand-image"></i>
|
||||
<span class="brand-text font-weight" style="font-size:1.5em; line-height:1; letter-spacing:3px;">E-SAMASA</span>
|
||||
<span class="brand-text font-weight" style="font-size:1.3em; line-height:1; letter-spacing:3px;">E-SAMASA</span>
|
||||
</a>
|
||||
|
||||
<div class="sidebar">
|
||||
@@ -16,7 +16,7 @@
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link">
|
||||
<i class="nav-icon fas fa-th-large"></i>
|
||||
<p>DBH / DAK <i class="right fas fa-angle-left"></i></p>
|
||||
<p>Dana Bagi Hasil<i class="right fas fa-angle-left"></i></p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item">
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
"columnDefs": [
|
||||
//{ className: "td-nowrap", "targets": [ 1 ] }
|
||||
],
|
||||
"dom": "<\"top\" <\"row\"<\"col-md-6\"><\"col-md-6 text-right\">>>rt<\"bottom\" <\"row\"<\"col-md-6\"i><\"col-md-6\"p>> ><\"clear\">",
|
||||
"dom": "<\"top\" <\"row\"<\"col-md-6\"l><\"col-md-6 text-right\">>>rt<\"bottom\" <\"row\"<\"col-md-6\"i><\"col-md-6\"p>> ><\"clear\">",
|
||||
"lengthMenu": [
|
||||
[ 10, 25, 50 ],
|
||||
[ "10", "25", "50" ]
|
||||
|
||||
Reference in New Issue
Block a user