Browse Source

hak akses PKD

main^2
pecintaseni 5 months ago committed by =
parent
commit
f67b9915dc
  1. BIN
      app/Controllers/Kewilayahan.zip
  2. 13
      app/Controllers/Kewilayahan/IdentAktifitasHasil/IdentifikasiLapangan.php
  3. 8
      app/Controllers/Kewilayahan/IdentAktifitasHasil/PerubahanPerilaku/Pembayaran.php
  4. 5
      app/Controllers/Kewilayahan/IdentAktifitasHasil/PerubahanPerilaku/Pendaftaran.php
  5. 17
      app/Controllers/Kewilayahan/IdentAktifitasHasil/PerubahanPerilaku/Perubahan.php
  6. 9
      app/Controllers/Kewilayahan/PoiGoogleMatoa/PoiGoogleMatoa.php
  7. 14
      app/Controllers/Kewilayahan/Ref.php
  8. 9
      app/Controllers/Kewilayahan/Sebaran/Identifikasi.php
  9. 9
      app/Controllers/Kewilayahan/Sebaran/JenisStatus.php
  10. 9
      app/Controllers/Kewilayahan/Sebaran/KLU.php
  11. 9
      app/Controllers/Kewilayahan/Sebaran/PayComp.php
  12. 9
      app/Controllers/Kewilayahan/Sebaran/Pembayaran.php
  13. 9
      app/Controllers/Kewilayahan/Sebaran/Pengampu.php
  14. 9
      app/Controllers/Kewilayahan/Sebaran/SPTTAhunan.php
  15. 9
      app/Controllers/Kewilayahan/Sebaran/Sof.php
  16. 9
      app/Controllers/Kewilayahan/Sebaran/ZonaPengawasan.php
  17. 28496
      app/Views/kewilayahan/dist/kpdl.css
  18. 9993
      app/Views/kewilayahan/dist/kpdl.js
  19. 28114
      app/Views/kewilayahan/dist/monitoring.css
  20. 7499
      app/Views/kewilayahan/dist/monitoring.js
  21. 57217
      app/Views/kewilayahan/dist/peta.css
  22. 8185
      app/Views/kewilayahan/dist/peta.js
  23. 28496
      public/kpdl/dist/kpdl.css
  24. 9993
      public/kpdl/dist/kpdl.js
  25. 28114
      public/kpdl/dist/monitoring.css
  26. 7499
      public/kpdl/dist/monitoring.js
  27. 9
      public/kpdl/dist/peta.css
  28. 101
      public/kpdl/dist/peta.js

BIN
app/Controllers/Kewilayahan.zip

Binary file not shown.

13
app/Controllers/Kewilayahan/IdentAktifitasHasil/IdentifikasiLapangan.php

@ -5,7 +5,6 @@ use App\Libraries\AldLibrary;
use App\Libraries\KpdlLibrary; use App\Libraries\KpdlLibrary;
class IdentifikasiLapangan extends \App\Controllers\Kewilayahan\Kytp class IdentifikasiLapangan extends \App\Controllers\Kewilayahan\Kytp
{ {
protected function dataKpdl($request, $bulan) protected function dataKpdl($request, $bulan)
@ -98,7 +97,7 @@ class IdentifikasiLapangan extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -117,7 +116,7 @@ class IdentifikasiLapangan extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))
@ -215,7 +214,7 @@ class IdentifikasiLapangan extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -234,7 +233,7 @@ class IdentifikasiLapangan extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))
@ -382,7 +381,7 @@ class IdentifikasiLapangan extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -401,7 +400,7 @@ class IdentifikasiLapangan extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))

8
app/Controllers/Kewilayahan/IdentAktifitasHasil/PerubahanPerilaku/Pembayaran.php

@ -4,7 +4,6 @@ namespace App\Controllers\Kewilayahan\IdentAktifitasHasil\PerubahanPerilaku;
use App\Libraries\AldLibrary; use App\Libraries\AldLibrary;
class Pembayaran extends \App\Controllers\Kewilayahan\Kytp class Pembayaran extends \App\Controllers\Kewilayahan\Kytp
{ {
public function detail() public function detail()
@ -59,7 +58,8 @@ class Pembayaran extends \App\Controllers\Kewilayahan\Kytp
A.KPPADM_MFWP, A.NAMA_AR_MFWP, A.FLAG_WPS_WPK, A.STATUS_WP_MFWP, A.JNS_WP_MFWP, A.STATUS_SPT_TAHUNAN_TERAKHIR, A.KPPADM_MFWP, A.NAMA_AR_MFWP, A.FLAG_WPS_WPK, A.STATUS_WP_MFWP, A.JNS_WP_MFWP, A.STATUS_SPT_TAHUNAN_TERAKHIR,
A.TGL_DAFTAR,JUMLAH_PEMBAYARAN_THN_TERAKHIR') A.TGL_DAFTAR,JUMLAH_PEMBAYARAN_THN_TERAKHIR')
->join('KPDL_MV_PEMBAYARAN_PERTAMA C', 'A.NPWP = C.NPWP AND A.CREATION_DATE <= C.TGL_BYR', 'inner') ->join('KPDL_MV_PEMBAYARAN_PERTAMA C', 'A.NPWP = C.NPWP AND A.CREATION_DATE <= C.TGL_BYR', 'inner')
->where('A.NPWP IS NOT NULL'); ->where('A.NPWP IS NOT NULL')
->where('A.JUMLAH_PEMBAYARAN_THN_TERAKHIR >', 0);
if ($opsiWilZona == 'wilayah') { if ($opsiWilZona == 'wilayah') {
$data->whereIn('ADM4_PCODE', $adm4_pcode); $data->whereIn('ADM4_PCODE', $adm4_pcode);
@ -106,7 +106,7 @@ class Pembayaran extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -125,7 +125,7 @@ class Pembayaran extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))

5
app/Controllers/Kewilayahan/IdentAktifitasHasil/PerubahanPerilaku/Pendaftaran.php

@ -4,7 +4,6 @@ namespace App\Controllers\Kewilayahan\IdentAktifitasHasil\PerubahanPerilaku;
use App\Libraries\AldLibrary; use App\Libraries\AldLibrary;
class Pendaftaran extends \App\Controllers\Kewilayahan\Kytp class Pendaftaran extends \App\Controllers\Kewilayahan\Kytp
{ {
public function detail() public function detail()
@ -105,7 +104,7 @@ class Pendaftaran extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -124,7 +123,7 @@ class Pendaftaran extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))

17
app/Controllers/Kewilayahan/IdentAktifitasHasil/PerubahanPerilaku/Perubahan.php

@ -5,7 +5,6 @@ use App\Libraries\AldLibrary;
use App\Libraries\KpdlLibrary; use App\Libraries\KpdlLibrary;
class Perubahan extends \App\Controllers\Kewilayahan\Kytp class Perubahan extends \App\Controllers\Kewilayahan\Kytp
{ {
protected function dataPerilakuPembayaran($request) protected function dataPerilakuPembayaran($request)
{ {
@ -90,7 +89,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -109,7 +108,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))
@ -221,7 +220,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -240,7 +239,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))
@ -353,7 +352,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -372,7 +371,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))
@ -483,7 +482,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -502,7 +501,7 @@ class Perubahan extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))

9
app/Controllers/Kewilayahan/PoiGoogleMatoa/PoiGoogleMatoa.php

@ -5,7 +5,6 @@ use App\Libraries\AldLibrary;
use App\Libraries\KpdlLibrary; use App\Libraries\KpdlLibrary;
class PoiGoogleMatoa extends \App\Controllers\Kewilayahan\Kytp class PoiGoogleMatoa extends \App\Controllers\Kewilayahan\Kytp
{ {
protected function get_poi_agg($request) protected function get_poi_agg($request)
{ {
@ -63,14 +62,14 @@ class PoiGoogleMatoa extends \App\Controllers\Kewilayahan\Kytp
->where('B.NIP_AR', session('nip')) ->where('B.NIP_AR', session('nip'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$sqlGenerate->orGroupStart() $sqlGenerate->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
->where('B.KD_KPP', session('kppadm')) ->where('B.KD_KPP', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$sqlGenerate->orGroupStart() $sqlGenerate->orGroupStart()
->where('B.KD_KPP', session('kppadm')) ->where('B.KD_KPP', session('kppadm'))
@ -152,14 +151,14 @@ class PoiGoogleMatoa extends \App\Controllers\Kewilayahan\Kytp
->where('B.NIP_AR', session('nip')) ->where('B.NIP_AR', session('nip'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$sqlGenerate->orGroupStart() $sqlGenerate->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
->where('B.KD_KPP', session('kppadm')) ->where('B.KD_KPP', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$sqlGenerate->orGroupStart() $sqlGenerate->orGroupStart()
->where('B.KD_KPP', session('kppadm')) ->where('B.KD_KPP', session('kppadm'))

14
app/Controllers/Kewilayahan/Ref.php

@ -204,20 +204,21 @@ class Ref extends Controller
if (session('kppadm') != session('kwladm')) { //kpp if (session('kppadm') != session('kwladm')) { //kpp
$data->where('KD_KPP', session('kppadm')); $data->where('KD_KPP', session('kppadm'));
//hanya kasi dan AR seksi was || kepala kantor //hanya kasi dan AR seksi was || kepala kantor || kasi PKD
if (!((in_array($currentPegawai->KD_JAB_STRUKTURAL, ['602', '401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') if (!(
(in_array($currentPegawai->KD_JAB_STRUKTURAL, ['602', '401']) && (substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan' || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data'))
|| (substr($currentPegawai->KD_JAB_STRUKTURAL, 0, 1) == '3'))) { || (substr($currentPegawai->KD_JAB_STRUKTURAL, 0, 1) == '3'))) {
return $this->respond([], 200); return $this->respond([], 200);
} }
//kasi / AR //kasi / AR
if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['602', '401'])) { if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['602', '401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') {
$data->where('KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI); $data->where('KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI);
} }
} }
if (session('kppadm') == session('kwladm')) { //kanwil if (session('kppadm') == session('kwladm') ) { //kanwil
$data->where("KD_KPP in (select KD_KPP from REF_KPP where KD_KANWIL ='" . session('kwladm') . "')"); $data->where("KD_KPP in (select KD_KPP from REF_KPP where KD_KANWIL ='" . session('kwladm') . "')");
} }
} }
@ -257,8 +258,9 @@ class Ref extends Controller
if (session('kppadm') != session('kwladm')) { //kpp if (session('kppadm') != session('kwladm')) { //kpp
$data->where('KD_KPP', session('kppadm')); $data->where('KD_KPP', session('kppadm'));
//hanya kasi dan AR seksi was || kepala kantor //hanya kasi dan AR seksi was || kepala kantor || kasi PKD
if (!((in_array($currentPegawai->KD_JAB_STRUKTURAL, ['602', '401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') if (!(
(in_array($currentPegawai->KD_JAB_STRUKTURAL, ['602', '401']) && (substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan' || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data'))
|| (substr($currentPegawai->KD_JAB_STRUKTURAL, 0, 1) == '3'))) { || (substr($currentPegawai->KD_JAB_STRUKTURAL, 0, 1) == '3'))) {
return $this->respond([], 200); return $this->respond([], 200);
} }

9
app/Controllers/Kewilayahan/Sebaran/Identifikasi.php

@ -4,7 +4,6 @@ namespace App\Controllers\Kewilayahan\Sebaran;
use App\Libraries\AldLibrary; use App\Libraries\AldLibrary;
class Identifikasi extends \App\Controllers\Kewilayahan\Kytp class Identifikasi extends \App\Controllers\Kewilayahan\Kytp
{ {
protected function data($request) protected function data($request)
{ {
@ -89,7 +88,7 @@ class Identifikasi extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -108,7 +107,7 @@ class Identifikasi extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))
@ -257,7 +256,7 @@ class Identifikasi extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -276,7 +275,7 @@ class Identifikasi extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))

9
app/Controllers/Kewilayahan/Sebaran/JenisStatus.php

@ -4,7 +4,6 @@ namespace App\Controllers\Kewilayahan\Sebaran;
use App\Libraries\AldLibrary; use App\Libraries\AldLibrary;
class JenisStatus extends \App\Controllers\Kewilayahan\Kytp class JenisStatus extends \App\Controllers\Kewilayahan\Kytp
{ {
protected function data($request, $jenisOrStatus) protected function data($request, $jenisOrStatus)
{ {
@ -103,7 +102,7 @@ class JenisStatus extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -122,7 +121,7 @@ class JenisStatus extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))
@ -267,7 +266,7 @@ class JenisStatus extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -286,7 +285,7 @@ class JenisStatus extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))

9
app/Controllers/Kewilayahan/Sebaran/KLU.php

@ -4,7 +4,6 @@ namespace App\Controllers\Kewilayahan\Sebaran;
use App\Libraries\AldLibrary; use App\Libraries\AldLibrary;
class KLU extends \App\Controllers\Kewilayahan\Kytp class KLU extends \App\Controllers\Kewilayahan\Kytp
{ {
protected function data($request, $jenischart) protected function data($request, $jenischart)
{ {
@ -97,7 +96,7 @@ class KLU extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -116,7 +115,7 @@ class KLU extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))
@ -279,7 +278,7 @@ class KLU extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -298,7 +297,7 @@ class KLU extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))

9
app/Controllers/Kewilayahan/Sebaran/PayComp.php

@ -5,7 +5,6 @@ use App\Libraries\AldLibrary;
use CodeIgniter\Database\RawSql; use CodeIgniter\Database\RawSql;
class PayComp extends \App\Controllers\Kewilayahan\Kytp class PayComp extends \App\Controllers\Kewilayahan\Kytp
{ {
protected function dataC($request, $tahun, $bulan) protected function dataC($request, $tahun, $bulan)
{ {
@ -85,7 +84,7 @@ class PayComp extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -104,7 +103,7 @@ class PayComp extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))
@ -255,7 +254,7 @@ class PayComp extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -274,7 +273,7 @@ class PayComp extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))

9
app/Controllers/Kewilayahan/Sebaran/Pembayaran.php

@ -5,7 +5,6 @@ use App\Libraries\AldLibrary;
use CodeIgniter\Database\RawSql; use CodeIgniter\Database\RawSql;
class Pembayaran extends \App\Controllers\Kewilayahan\Kytp class Pembayaran extends \App\Controllers\Kewilayahan\Kytp
{ {
protected function dataC($request, $tahun, $bulan) protected function dataC($request, $tahun, $bulan)
{ {
@ -90,7 +89,7 @@ class Pembayaran extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -109,7 +108,7 @@ class Pembayaran extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))
@ -277,7 +276,7 @@ class Pembayaran extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -296,7 +295,7 @@ class Pembayaran extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))

9
app/Controllers/Kewilayahan/Sebaran/Pengampu.php

@ -4,7 +4,6 @@ namespace App\Controllers\Kewilayahan\Sebaran;
use App\Libraries\AldLibrary; use App\Libraries\AldLibrary;
class Pengampu extends \App\Controllers\Kewilayahan\Kytp class Pengampu extends \App\Controllers\Kewilayahan\Kytp
{ {
protected function data($request, $jenis) protected function data($request, $jenis)
{ {
@ -103,7 +102,7 @@ class Pengampu extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -122,7 +121,7 @@ class Pengampu extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))
@ -264,7 +263,7 @@ class Pengampu extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -283,7 +282,7 @@ class Pengampu extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))

9
app/Controllers/Kewilayahan/Sebaran/SPTTAhunan.php

@ -4,7 +4,6 @@ namespace App\Controllers\Kewilayahan\Sebaran;
use App\Libraries\AldLibrary; use App\Libraries\AldLibrary;
class SPTTAhunan extends \App\Controllers\Kewilayahan\Kytp class SPTTAhunan extends \App\Controllers\Kewilayahan\Kytp
{ {
protected function data($request, $tahun) protected function data($request, $tahun)
{ {
@ -89,7 +88,7 @@ class SPTTAhunan extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -108,7 +107,7 @@ class SPTTAhunan extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))
@ -252,7 +251,7 @@ class SPTTAhunan extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -271,7 +270,7 @@ class SPTTAhunan extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))

9
app/Controllers/Kewilayahan/Sebaran/Sof.php

@ -5,7 +5,6 @@ use App\Libraries\AldLibrary;
use CodeIgniter\Database\RawSql; use CodeIgniter\Database\RawSql;
class Sof extends \App\Controllers\Kewilayahan\Kytp class Sof extends \App\Controllers\Kewilayahan\Kytp
{ {
protected function dataC($request, $tahun, $bulan) protected function dataC($request, $tahun, $bulan)
{ {
@ -83,7 +82,7 @@ class Sof extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -102,7 +101,7 @@ class Sof extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))
@ -269,7 +268,7 @@ class Sof extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -288,7 +287,7 @@ class Sof extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))

9
app/Controllers/Kewilayahan/Sebaran/ZonaPengawasan.php

@ -4,7 +4,6 @@ namespace App\Controllers\Kewilayahan\Sebaran;
use App\Libraries\AldLibrary; use App\Libraries\AldLibrary;
class ZonaPengawasan extends \App\Controllers\Kewilayahan\Kytp class ZonaPengawasan extends \App\Controllers\Kewilayahan\Kytp
{ {
protected function data($request) protected function data($request)
{ {
@ -104,7 +103,7 @@ class ZonaPengawasan extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -123,7 +122,7 @@ class ZonaPengawasan extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$npwp->orGroupStart() $npwp->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))
@ -266,7 +265,7 @@ class ZonaPengawasan extends \App\Controllers\Kewilayahan\Kytp
->where('A.NIP_AR_PENGAMPU', session('nip')) ->where('A.NIP_AR_PENGAMPU', session('nip'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401'])) { //kasi } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['401']) && substr($currentPegawai->NAMA_UNIT_ES4, 0, 16) == 'Seksi Pengawasan') { //kasi was
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI) ->where('B.KD_UNIT_OR', $currentPegawai->KD_UNIT_ORGANISASI)
@ -285,7 +284,7 @@ class ZonaPengawasan extends \App\Controllers\Kewilayahan\Kytp
->where('C.KPPADM', session('kppadm')) ->where('C.KPPADM', session('kppadm'))
->where('A.KPPADM_PENGAMPU', session('kppadm')) ->where('A.KPPADM_PENGAMPU', session('kppadm'))
->groupEnd(); ->groupEnd();
} else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304'])) { //Kepala Kantor } else if (in_array($currentPegawai->KD_JAB_STRUKTURAL, ['304']) || $currentPegawai->NAMA_UNIT_ES4 == 'Seksi Penjaminan Kualitas Data') { //Kepala Kantor
//zona //zona
$data->orGroupStart() $data->orGroupStart()
->where('A.KPPADM_ZONA', session('kppadm')) ->where('A.KPPADM_ZONA', session('kppadm'))

28496
app/Views/kewilayahan/dist/kpdl.css vendored

File diff suppressed because one or more lines are too long

9993
app/Views/kewilayahan/dist/kpdl.js vendored

File diff suppressed because one or more lines are too long

28114
app/Views/kewilayahan/dist/monitoring.css vendored

File diff suppressed because one or more lines are too long

7499
app/Views/kewilayahan/dist/monitoring.js vendored

File diff suppressed because one or more lines are too long

57217
app/Views/kewilayahan/dist/peta.css vendored

File diff suppressed because one or more lines are too long

8185
app/Views/kewilayahan/dist/peta.js vendored

File diff suppressed because one or more lines are too long

28496
public/kpdl/dist/kpdl.css vendored

File diff suppressed because one or more lines are too long

9993
public/kpdl/dist/kpdl.js vendored

File diff suppressed because one or more lines are too long

28114
public/kpdl/dist/monitoring.css vendored

File diff suppressed because one or more lines are too long

7499
public/kpdl/dist/monitoring.js vendored

File diff suppressed because one or more lines are too long

9
public/kpdl/dist/peta.css vendored

File diff suppressed because one or more lines are too long

101
public/kpdl/dist/peta.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save