This commit is contained in:
Pusdatin BPKD Jkt
2022-09-01 14:15:26 +07:00
parent a1cb5e7b36
commit 6925e57274
18 changed files with 67 additions and 90 deletions
+7
View File
@@ -3,6 +3,7 @@
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Session;
class HomeController extends Controller
{
@@ -12,6 +13,12 @@ class HomeController extends Controller
return view('home');
}
public function ta($ta)
{
Session::put('Tahun_Anggaran', $ta);
return redirect()->route('home');
}
public function uploadThis(Request $request)
{
$this->validate($request, [
@@ -63,6 +63,11 @@ class JadwalSalurdanaController extends Controller
{
$judul = strtoupper($typeDana);
$this->setTitle("Jadwal Salur Dana $judul");
$data = DB::select(DB::raw("SELECT x.kode_skpd, x.nama_skpd, x.kode_rsk, x.nama_rsk, x.jumlah_anggaran, y.*
FROM SAMASA.BELANJA_REALISASI x
LEFT JOIN SAMASA.VW_AKB_REALISASI y
ON x.KODE_RSK = y.IDRSK AND x.TAHUN_ANGGARAN = y.TAHUN_ANGGARAN
WHERE x.TAHUN_ANGGARAN = ".getTa()." ORDER BY x.kode_skpd,x.kode_rsk "));
return view("jadwal_salurdana.index_".$typeDana);
}
@@ -125,12 +125,12 @@ class RealisasiPendapatanController extends Controller
$ta = $post["ta"];
$dataFilter=0;
$data = PendapatanRealisasi::orderBy("created_at","ASC");
$data = PendapatanRealisasi::where("tahun",$ta)->orderBy("created_at","ASC");
if (!empty($sps)){
$data->where("id_sps",$sps);
}
$dataFilter = $data->count();
$dataTotal = PendapatanRealisasi::count();
$dataTotal = PendapatanRealisasi::where("tahun",$ta)->count();
return response()->json([
"recordsTotal" => $dataTotal,
+5
View File
@@ -128,4 +128,9 @@ function getAlphabetCell($idx)
}else{
return $alphabet[$idx];
}
}
function getTA()
{
return Session::get('Tahun_Anggaran');
}