diff --git a/Controllers/ProfilRwController.cs b/Controllers/ProfilRwController.cs
index dba682e..31c5ea3 100644
--- a/Controllers/ProfilRwController.cs
+++ b/Controllers/ProfilRwController.cs
@@ -228,5 +228,80 @@ namespace BpsRwApp.Controllers
return Json(response);
}
+
+ [HttpGet]
+ public IActionResult TablePengadaanWadah()
+ {
+ var data = new[]
+ {
+ new {
+ rt = "001",
+ jumlah_kepala_keluarga = "11",
+ total_wadah_unit = "07",
+ status = "
Aktif
",
+ },
+ new {
+ rt = "002",
+ jumlah_kepala_keluarga = "09",
+ total_wadah_unit = "01",
+ status = "Aktif
",
+ },
+ new {
+ rt = "003",
+ jumlah_kepala_keluarga = "21",
+ total_wadah_unit = "04",
+ status = "Aktif
",
+ },
+ new {
+ rt = "004",
+ jumlah_kepala_keluarga = "17",
+ total_wadah_unit = "02",
+ status = "Aktif
",
+ },
+ new {
+ rt = "005",
+ jumlah_kepala_keluarga = "18",
+ total_wadah_unit = "08",
+ status = "Aktif
",
+ },
+ new {
+ rt = "006",
+ jumlah_kepala_keluarga = "14",
+ total_wadah_unit = "05",
+ status = "Aktif
",
+ },
+ new {
+ rt = "007",
+ jumlah_kepala_keluarga = "02",
+ total_wadah_unit = "06",
+ status = "Aktif
",
+ },
+ new {
+ rt = "008",
+ jumlah_kepala_keluarga = "22",
+ total_wadah_unit = "06",
+ status = "Aktif
",
+ },
+ new {
+ rt = "009",
+ jumlah_kepala_keluarga = "01",
+ total_wadah_unit = "03",
+ status = "Aktif
",
+ },
+ new {
+ rt = "010",
+ jumlah_kepala_keluarga = "28",
+ total_wadah_unit = "04",
+ status = "Aktif
",
+ },
+ };
+
+ var response = new
+ {
+ data = data
+ };
+
+ return Json(response);
+ }
}
}
diff --git a/Views/ProfilRw/Index.cshtml b/Views/ProfilRw/Index.cshtml
index 4a88b63..8753610 100644
--- a/Views/ProfilRw/Index.cshtml
+++ b/Views/ProfilRw/Index.cshtml
@@ -41,7 +41,9 @@
-
+
+ @await Html.PartialAsync("_TabIndexPengadaanWadah")
+
@@ -165,6 +167,19 @@
});
});
+ // Datatable Pengadaan Wadah
+ var tablePengadaanWadah= new DataTable('#tablePengadaanWadah', {
+ ajax: '@Url.Action("TablePengadaanWadah", "ProfilRw")',
+ autoWidth: false,
+ columns: [
+ { data: null, render: (d, t, r, m) => m.row + 1, orderable: false, searchable: false },
+ { data: 'rt' },
+ { data: 'jumlah_kepala_keluarga' },
+ { data: 'total_wadah_unit' },
+ { data: 'status' },
+ ]
+ });
+
});
}
\ No newline at end of file
diff --git a/Views/ProfilRw/_TabIndexPengadaanWadah.cshtml b/Views/ProfilRw/_TabIndexPengadaanWadah.cshtml
new file mode 100644
index 0000000..6d6d851
--- /dev/null
+++ b/Views/ProfilRw/_TabIndexPengadaanWadah.cshtml
@@ -0,0 +1,14 @@
+
+
+
+
+ | No |
+ RT |
+ Jumlah Kepala Keluarga |
+ Total Wadah (Unit) |
+ Status Keterangan Tidak Mampu |
+
+
+
+
+
\ No newline at end of file