Browse Source

encryption decryption

main^2
pecintaseni 7 months ago committed by =
parent
commit
25686019df
  1. 62
      app/Controllers/Kewilayahan/Kytp.php
  2. 240
      app/Controllers/Kewilayahan/Ref.php
  3. 30
      app/Controllers/Kewilayahan/Sebaran/Identifikasi.php
  4. 29
      app/Controllers/Kewilayahan/Sebaran/IdentifikasiLapangan.php
  5. 30
      app/Controllers/Kewilayahan/Sebaran/JenisStatus.php
  6. 30
      app/Controllers/Kewilayahan/Sebaran/KLU.php
  7. 29
      app/Controllers/Kewilayahan/Sebaran/PayComp.php
  8. 29
      app/Controllers/Kewilayahan/Sebaran/Pembayaran.php
  9. 30
      app/Controllers/Kewilayahan/Sebaran/Pengampu.php
  10. 29
      app/Controllers/Kewilayahan/Sebaran/SPTTAhunan.php
  11. 28
      app/Controllers/Kewilayahan/Sebaran/Sof.php
  12. 73
      app/Libraries/AldLibrary.php
  13. 2
      app/Views/kewilayahan/dist/kpdl.js
  14. 4
      app/Views/kewilayahan/kytp/TabPenugasan.js
  15. 4
      app/Views/kewilayahan/kytp/componentDepan/NipPengampu.js
  16. 4
      app/Views/kewilayahan/kytp/componentDepan/NipPerekam.js
  17. 15
      app/Views/kewilayahan/kytp/componentProgresifitas/ChartKPDL.js
  18. 67
      app/Views/kewilayahan/kytp/kpdl.js
  19. 46
      app/Views/kewilayahan/kytp/kpdl.php
  20. 1
      writable/session/ci_session0v3vsl1tbg37l2pdj44do0dpdsms4bg6
  21. 1
      writable/session/ci_session1rcio9mb932v642lt0o89gf19tudct06
  22. 1
      writable/session/ci_session2960rr6kvdr0j8d7aummtkra8gm30849
  23. 1
      writable/session/ci_session2kn972t4a7bu98kbj1phbo1s331s4dga
  24. 1
      writable/session/ci_session2q99212j5elae8boc41lictikjpcnemi
  25. 1
      writable/session/ci_session5eku4mv4q12snhq950cjjfhs2m5q25tg
  26. 1
      writable/session/ci_session5fe9gm9422vgd2dfe6q7dpo9bprjkeuf
  27. 1
      writable/session/ci_session8mhsvfum15l1bh1gnt8n09s9clii1p1c
  28. 1
      writable/session/ci_session9ft14g9ei79f241unpojl9sfug9525dh
  29. 1
      writable/session/ci_session9k6v9dfabkdsouidseemr6sopiru2587
  30. 1
      writable/session/ci_sessioncu7hk730p6d2mk5khk79mfjtcqbj7phb
  31. 1
      writable/session/ci_sessiond9030jnamkbdf7avf1rnm62ssb94l6oh
  32. 1
      writable/session/ci_sessiongdevqaq6q5lqumhn3no3qa43lbjs1lmv
  33. 1
      writable/session/ci_sessionnq2b4g02i46bog7l1t4fa41cue6mem9e
  34. 1
      writable/session/ci_sessionqac0j619mh522fkaad7bc9dpacc6daop
  35. 1
      writable/session/ci_sessionqde00sntqjenl636kmcjkdug31qkuuge
  36. 1
      writable/session/ci_sessionvbgjpkgvbficmibetffjbgebj4l99k4b

62
app/Controllers/Kewilayahan/Kytp.php

@ -10,6 +10,7 @@ use App\Controllers\Kewilayahan\Sebaran\Pembayaran;
use App\Controllers\Kewilayahan\Sebaran\Pengampu;
use App\Controllers\Kewilayahan\Sebaran\Sof;
use App\Controllers\Kewilayahan\Sebaran\SPTTAhunan;
use App\Libraries\AldLibrary;
use CodeIgniter\API\ResponseTrait;
use CodeIgniter\Controller;
@ -33,7 +34,12 @@ class Kytp extends Controller
public function graph_matoa()
{
$opsiWilZona = $this->request->getPost('opsiWilZona') ?? null;
// $opsiWilZona = $this->request->getPost('opsiWilZona') ?? null;
$Ald = new AldLibrary();
$username = session('nip');
$opsiWilZona = $Ald->decryptMe($this->request->getPost('opsiWilZona'), $username) ?? null;
if (!in_array($opsiWilZona, ['wilayah', 'zona', ''])) {
$dataReturn['poi_agg'] = [];
$dataReturn['kpdl_agg'] = [];
@ -139,9 +145,11 @@ class Kytp extends Controller
public function identifikasiLapangan()
{
$Ald = new AldLibrary();
$username = session('nip');
$sebaran = new IdentifikasiLapangan;
$bulan = $this->request->getPost('bulan') ?? 'semua';
$bulan = $Ald->decryptMe($this->request->getPost('bulan'), $username) ?? 'semua';
$dataReturn['kpdl'] = $sebaran->dataKpdl($this->request, $bulan);
$dataReturn['categories'] = ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Agu", "Sep", "Okt", "Nov", "Des"];
@ -173,17 +181,39 @@ class Kytp extends Controller
public function getBulan()
{
$bulan = ['semua', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
return $this->respond($bulan, 200);
$Ald = new AldLibrary();
$username = session('nip');
$bulan = ['semua', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
$bulanEnc = [];
foreach ($bulan as $key => $value) {
$bulanEnc[] = [
'label' => $value,
'value' => $Ald->encryptMe($value, $username),
];
}
return $this->respond($bulanEnc, 200);
}
private function get_poi_agg()
{
ini_set('max_input_vars', 3000);
$opsiWilZona = $this->request->getPost('opsiWilZona') ?? null;
$adm4_pcode = $this->request->getPost('adm4_pcode') ?? [];
$id_poly_zona = $this->request->getPost('id_poly_zona') ?? [];
$Ald = new AldLibrary();
$username = session('nip');
$opsiWilZona = $Ald->decryptMe($this->request->getPost('opsiWilZona'), $username) ?? null;
$adm4_pcode = [];
foreach ($this->request->getPost('adm4_pcode') ?? [] as $key => $value) {
array_push($adm4_pcode, $Ald->decryptKpdl($value, $username));
}
$id_poly_zona = [];
foreach ($this->request->getPost('id_poly_zona') ?? [] as $key => $value) {
array_push($id_poly_zona, $Ald->decryptKpdl($value, $username));
}
$db = \Config\Database::connect();
$sqlGenerate = $db->table("KPDL_MV_JML_POI_AGG")
@ -211,9 +241,21 @@ class Kytp extends Controller
private function get_kpdl_agg()
{
$opsiWilZona = $this->request->getPost('opsiWilZona');
$adm4_pcode = $this->request->getPost('adm4_pcode') ?? [];
$id_poly_zona = $this->request->getPost('id_poly_zona') ?? [];
$Ald = new AldLibrary();
$username = session('nip');
$opsiWilZona = $Ald->decryptMe($this->request->getPost('opsiWilZona'), $username) ?? null;
$adm4_pcode = [];
foreach ($this->request->getPost('adm4_pcode') ?? [] as $key => $value) {
array_push($adm4_pcode, $Ald->decryptKpdl($value, $username));
}
$id_poly_zona = [];
foreach ($this->request->getPost('id_poly_zona') ?? [] as $key => $value) {
array_push($id_poly_zona, $Ald->decryptKpdl($value, $username));
}
$db = \Config\Database::connect();
$sqlGenerate = $db->table("KPDL_MV_JML_KPDL_AGG")

240
app/Controllers/Kewilayahan/Ref.php

@ -1,62 +1,135 @@
<?php
namespace App\Controllers\Kewilayahan;
use App\Libraries\AldLibrary;
use CodeIgniter\API\ResponseTrait;
use CodeIgniter\Controller;
class Ref extends Controller
{
use ResponseTrait;
public function propinsi()
{
$username = session('nip');
if (!$username) {
return $this->respond(null, 401);
}
$db = \Config\Database::connect();
$data = $db->table('KPDL_V_BATAS_DESA')->where('ADM1_PCODE IS NOT NULL')->select('ADM1_PCODE as value, ADM1_EN as label')->distinct()->orderBy('ADM1_EN')->get()->getResult();
$data = $db->table('KPDL_V_BATAS_DESA')->where('ADM1_PCODE IS NOT NULL')
->select('ADM1_PCODE as value, ADM1_EN as label')
->distinct()->orderBy('ADM1_EN')->get()->getResult();
$Ald = new AldLibrary;
$username = session('nip');
foreach ($data as $key => $val) {
$val->value = $val->value;
$val->value = $Ald->encryptMe($val->value, $username);
}
return json_encode($data);
return $this->respond($data, 200);
}
public function kota()
{
$Ald = new AldLibrary;
$username = session('nip');
if (!$username) {
return $this->respond(null, 401);
}
if (!$this->validate([
'prop' => 'required|max_length[10]',
])) {
return $this->respond($this->validator->getErrors(), 422);
}
$prop = $Ald->decryptMe($this->request->getGet('prop'), $username);
if (!ctype_alnum($prop)) {
return $this->respond(null, 400);
}
$db = \Config\Database::connect();
$data = $db->table('KPDL_V_BATAS_DESA')
->select('ADM2_PCODE as value, ADM2_EN as label')
->distinct()
->where('ADM2_PCODE IS NOT NULL')
->where('ADM1_PCODE', $this->request->getGet('prop'))
->where('ADM1_PCODE', $prop)
->orderBy('ADM2_EN')->get()->getResult();
return json_encode($data);
foreach ($data as $key => $val) {
$val->value = $Ald->encryptMe($val->value, $username);
}
return $this->respond($data, 200);
}
public function kecamatan()
{
$Ald = new AldLibrary;
$username = session('nip');
if (!$username) {
return $this->respond(null, 401);
}
if (!$this->validate([
'kota' => 'required|max_length[10]',
])) {
return $this->respond($this->validator->getErrors(), 422);
}
$kota = $Ald->decryptMe($this->request->getGet('kota'), $username);
$db = \Config\Database::connect();
$data = $db->table('KPDL_V_BATAS_DESA')
->select('ADM3_PCODE as value, ADM3_EN as label')
->distinct()
->where('ADM3_PCODE IS NOT NULL')
->where('ADM2_PCODE', $this->request->getGet('kota'))
->where('ADM2_PCODE', $kota)
->orderBy('ADM3_EN')->get()->getResult();
return json_encode($data);
foreach ($data as $key => $val) {
$val->value = $Ald->encryptMe($val->value, $username);
}
return $this->respond($data, 200);
}
public function kelurahan()
{
$Ald = new AldLibrary;
$username = session('nip');
if (!$username) {
return $this->respond(null, 401);
}
if (!$this->validate([
'kec' => 'required',
])) {
return $this->respond($this->validator->getErrors(), 422);
}
$kec = [];
foreach ($this->request->getPost('kec') as $key => $value) {
$kec[] = $Ald->decryptMe($value, $username);
}
$db = \Config\Database::connect();
$data = $db->table('KPDL_V_BATAS_DESA')
->select('ADM4_PCODE as value, ADM4_EN as label')
->distinct()
->where('ADM4_PCODE IS NOT NULL')
->whereIn('ADM3_PCODE', $this->request->getGet('kec'))
->whereIn('ADM3_PCODE', $kec)
->orderBy('ADM4_EN')->get()->getResult();
return json_encode($data);
foreach ($data as $key => $val) {
$val->value = $Ald->encryptKpdl($val->value, $username);
}
return $this->respond($data, 200);
}
public function zpkanwil()
{
$Ald = new AldLibrary;
$username = session('nip');
$db = \Config\Database::connect();
$data = $db->table('KPDL_ZP_NAS_DIFF')
@ -65,7 +138,7 @@ class Ref extends Controller
->orderBy('NM_KANWIL')->get()->getResult();
foreach ($data as $key => $val) {
$val->value = $val->value;
$val->value = $Ald->encryptMe($val->value, $username);
}
return json_encode($data);
@ -73,54 +146,99 @@ class Ref extends Controller
public function zpkpp()
{
$Ald = new AldLibrary;
$username = session('nip');
$kanwil = $Ald->decryptMe($this->request->getPost('kanwil'), $username);
$db = \Config\Database::connect();
$data = $db->table('KPDL_ZP_NAS_DIFF')
->select('KD_KPP as value, NM_KPP as label')
->distinct()
->where('KD_KANWIL', $this->request->getGet('kanwil'))
->where('KD_KANWIL', $kanwil)
->orderBy('NM_KPP')->get()->getResult();
foreach ($data as $key => $val) {
$val->value = $Ald->encryptMe($val->value, $username);
}
return json_encode($data);
}
public function zpseksi()
{
$Ald = new AldLibrary;
$username = session('nip');
$kpp = $Ald->decryptMe($this->request->getPost('kpp'), $username);
$db = \Config\Database::connect();
$data = $db->table('KPDL_ZP_NAS_DIFF')
->select('KD_UNIT_OR as value, SEKSI as label')
->distinct()
->whereIn('KD_KPP', $this->request->getGet('kpp'))
->where('KD_KPP', $kpp)
->orderBy('SEKSI')->get()->getResult();
foreach ($data as $key => $val) {
$val->value = $Ald->encryptKpdl($val->value, $username);
}
return json_encode($data);
}
public function zpar()
{
$db = \Config\Database::connect();
$kpp = $this->request->getGet('kpp');
$seksi = $this->request->getGet('seksi');
$Ald = new AldLibrary;
$username = session('nip');
$kpp = $Ald->decryptMe($this->request->getPost('kpp'), $username);
$seksi = [];
foreach ($this->request->getPost('seksi') ?? [] as $key => $value) {
$seksi[] = $Ald->decryptKpdl($value, $username);
}
$db = \Config\Database::connect();
$data = $db->table('KPDL_ZP_NAS_DIFF')
->select('NIP_AR as value, NM_AR as label')
->distinct()
->whereIn('KD_KPP', $kpp)
->where('KD_KPP', $kpp)
->whereIn('KD_UNIT_OR', $seksi)
->orderBy('NM_AR')->get()->getResult();
->orderBy('NM_AR');
$data = $data->get()->getResult();
foreach ($data as $key => $val) {
$val->value = $Ald->encryptMe($val->value, $username);
}
return json_encode($data);
}
public function zpzp()
{
$db = \Config\Database::connect();
$kpp = $this->request->getPost('kpp');
$seksi = $this->request->getPost('seksi');
$ar = $this->request->getPost('ar');
$data = $db->table('KPDL_ZP_NAS_DIFF')
$Ald = new AldLibrary;
$username = session('nip');
$kpp = $Ald->decryptMe($this->request->getPost('kpp'), $username);
$seksi = [];
foreach ($this->request->getPost('seksi') as $key => $value) {
$seksi[] = $Ald->decryptKpdl($value, $username);
}
$ar = [];
foreach ($this->request->getPost('ar') as $key => $value) {
$ar[] = $Ald->decryptMe($value, $username);
}
$db = \Config\Database::connect();
$data = $db->table('KPDL_ZP_NAS_DIFF')
->select("OGC_FID as value, NO_URUT || '-' || ATTRIBUTE1 as label")
->distinct()
->where('KD_KPP', $kpp)
->whereIn('KD_UNIT_OR', $seksi)
->whereIn('NIP_AR', $ar)
->orderBy('LABEL')->get()->getResult();
foreach ($data as $key => $value) {
$value->value = $Ald->encryptMe($value->value, $username);
$value->label = $value->LABEL;
unset($value->LABEL);
@ -130,15 +248,16 @@ class Ref extends Controller
public function kanwilPratama()
{
$db = \Config\Database::connect();
$data = $db->table('DIM_KANTOR')
$Ald = new AldLibrary;
$username = session('nip');
$db = \Config\Database::connect();
$data = $db->table('DIM_KANTOR')
->select('KD_KANWIL as value, NM_KANTOR as label')
->where('ID_JNS_KANTOR', 23)
->orderBy('NM_KANTOR')->get()->getResult();
foreach ($data as $key => $val) {
$val->value = $val->value;
$val->value = $Ald->encryptMe($val->value, $username);
}
return json_encode($data);
@ -146,16 +265,20 @@ class Ref extends Controller
public function kppPratama()
{
$kanwil = $this->request->getGet('kanwil');
$db = \Config\Database::connect();
$data = $db->table('DIM_KANTOR')
$Ald = new AldLibrary;
$username = session('nip');
$kanwil = $Ald->decryptMe($this->request->getGet('kanwil'), $username);
$db = \Config\Database::connect();
$data = $db->table('DIM_KANTOR')
->select('KD_KPP as value, NM_KANTOR as label')
->where('KD_KANWIL', $kanwil)
->where('ID_JNS_KANTOR', 24)
->orderBy('NM_KANTOR')->get()->getResult();
foreach ($data as $key => $val) {
$val->value = $val->value;
$val->value = $Ald->encryptMe($val->value, $username);
}
return json_encode($data);
@ -163,6 +286,8 @@ class Ref extends Controller
public function kanwil()
{
$Ald = new AldLibrary;
$username = session('nip');
$db = \Config\Database::connect();
$data = $db->table('DIM_KANTOR')
@ -171,7 +296,7 @@ class Ref extends Controller
->orderBy('NM_KANTOR')->get()->getResult();
foreach ($data as $key => $val) {
$val->value = $val->value;
$val->value = $Ald->encryptMe($val->value, $username);
}
return json_encode($data);
@ -179,16 +304,20 @@ class Ref extends Controller
public function kpp()
{
$kanwil = $this->request->getGet('kanwil');
$db = \Config\Database::connect();
$data = $db->table('DIM_KANTOR')
$Ald = new AldLibrary;
$username = session('nip');
$kanwil = $Ald->decryptMe($this->request->getGet('kanwil'), $username);
$db = \Config\Database::connect();
$data = $db->table('DIM_KANTOR')
->select('KD_KPP as value, NM_KANTOR as label')
->where('KD_KANWIL', $kanwil)
->whereIn('ID_JNS_KANTOR', [22, 24])
->orderBy('NM_KANTOR')->get()->getResult();
foreach ($data as $key => $val) {
$val->value = $val->value;
$val->value = $Ald->encryptMe($val->value, $username);
}
return json_encode($data);
@ -196,7 +325,10 @@ class Ref extends Controller
public function seksi()
{
$kpp = $this->request->getGet('kpp');
$Ald = new AldLibrary;
$username = session('nip');
$kpp = $Ald->decryptMe($this->request->getGet('kpp'), $username);
$db = \Config\Database::connect();
$data = $db->table('PEGAWAI')->distinct()
->select('KD_UNIT_ORGANISASI as value, NAMA_UNIT_ES4 as label')
@ -205,7 +337,7 @@ class Ref extends Controller
->orderBy('NAMA_UNIT_ES4')->get()->getResult();
foreach ($data as $key => $val) {
$val->value = $val->value;
$val->value = $Ald->encryptKpdl($val->value, $username);
}
return json_encode($data);
@ -213,10 +345,19 @@ class Ref extends Controller
public function ar()
{
$kpp = $this->request->getPost('kpp');
$kd_unit_organisasi = $this->request->getPost('seksi');
$db = \Config\Database::connect();
$data = $db->table('PEGAWAI')->distinct()
$Ald = new AldLibrary;
$username = session('nip');
$kpp = $Ald->decryptMe($this->request->getPost('kpp'), $username);
$kd_unit_organisasi = [];
foreach ($this->request->getPost('seksi') as $key => $value) {
$kd_unit_organisasi[] = $Ald->decryptKpdl($value, $username);
}
// print_r($kpp);
// exit;
$db = \Config\Database::connect();
$data = $db->table('PEGAWAI')->distinct()
->select('NIP9 as value, NAMA as label')
->where('KPPADM', $kpp)
@ -225,12 +366,25 @@ class Ref extends Controller
->orderBy('NAMA')->get()->getResult();
foreach ($data as $key => $val) {
$val->value = $val->value;
$val->value = $Ald->encryptMe($val->value, $username);
}
return json_encode($data);
}
public function change_case($arr)
public function opsi()
{
$Ald = new AldLibrary();
$data = [
'wilayah' => ['key' => $Ald->encryptMe('wilayah', session('nip'))],
'zona' => ['key' => $Ald->encryptMe('zona', session('nip'))],
'perekam' => ['key' => $Ald->encryptMe('perekam', session('nip'))],
'pengampu' => ['key' => $Ald->encryptMe('pengampu', session('nip'))],
];
return $this->respond($data, 200);
}
protected function change_case($arr)
{
return array_change_key_case($arr, CASE_LOWER);
}

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

@ -1,16 +1,36 @@
<?php
namespace App\Controllers\Kewilayahan\Sebaran;
use App\Libraries\AldLibrary;
class Identifikasi extends \App\Controllers\Kewilayahan\Kytp
{
protected function data($request)
{
$opsiWilZona = $request->getPost('opsiWilZona');
$adm4_pcode = $request->getPost('adm4_pcode') ?? [];
$id_poly_zona = $request->getPost('id_poly_zona') ?? [];
$nip_ar_perekam = $request->getPost('nip_ar_perekam') ?? [];
$nip_ar_pengampu = $request->getPost('nip_ar_pengampu') ?? [];
$Ald = new AldLibrary;
$username = session('nip');
$opsiWilZona = $Ald->decryptMe($request->getPost('opsiWilZona'), $username);
$adm4_pcode = [];
foreach ($request->getPost('adm4_pcode') ?? [] as $key => $value) {
$adm4_pcode[] = $Ald->decryptKpdl($value, $username);
}
$id_poly_zona = [];
foreach ($request->getPost('id_poly_zona') ?? [] as $key => $value) {
$id_poly_zona[] = $Ald->decryptMe($value, $username);
}
$nip_ar_perekam = [];
foreach ($request->getPost('nip_ar_perekam') ?? [] as $key => $value) {
$nip_ar_perekam[] = $Ald->decryptMe($value, $username);
}
$nip_ar_pengampu = [];
foreach ($request->getPost('nip_ar_pengampu') ?? [] as $key => $value) {
$nip_ar_pengampu[] = $Ald->decryptMe($value, $username);
}
$db = \Config\Database::connect();

29
app/Controllers/Kewilayahan/Sebaran/IdentifikasiLapangan.php

@ -1,6 +1,7 @@
<?php
namespace App\Controllers\Kewilayahan\Sebaran;
use App\Libraries\AldLibrary;
use App\Libraries\KpdlLibrary;
class IdentifikasiLapangan extends \App\Controllers\Kewilayahan\Kytp
@ -9,11 +10,29 @@ class IdentifikasiLapangan extends \App\Controllers\Kewilayahan\Kytp
protected function dataKpdl($request, $bulan)
{
$opsiWilZona = $request->getPost('opsiWilZona');
$adm4_pcode = $request->getPost('adm4_pcode') ?? [];
$id_poly_zona = $request->getPost('id_poly_zona') ?? [];
$nip_ar_perekam = $request->getPost('nip_ar_perekam') ?? [];
$nip_ar_pengampu = $request->getPost('nip_ar_pengampu') ?? [];
$Ald = new AldLibrary;
$username = session('nip');
$opsiWilZona = $Ald->decryptMe($request->getPost('opsiWilZona'), $username);
$adm4_pcode = [];
foreach ($request->getPost('adm4_pcode') ?? [] as $key => $value) {
$adm4_pcode[] = $Ald->decryptKpdl($value, $username);
}
$id_poly_zona = [];
foreach ($request->getPost('id_poly_zona') ?? [] as $key => $value) {
$id_poly_zona[] = $Ald->decryptMe($value, $username);
}
$nip_ar_perekam = [];
foreach ($request->getPost('nip_ar_perekam') ?? [] as $key => $value) {
$nip_ar_perekam[] = $Ald->decryptMe($value, $username);
}
$nip_ar_pengampu = [];
foreach ($request->getPost('nip_ar_pengampu') ?? [] as $key => $value) {
$nip_ar_pengampu[] = $Ald->decryptMe($value, $username);
}
$db = \Config\Database::connect();
$KpdlLibrary = new KpdlLibrary;

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

@ -1,16 +1,36 @@
<?php
namespace App\Controllers\Kewilayahan\Sebaran;
use App\Libraries\AldLibrary;
class JenisStatus extends \App\Controllers\Kewilayahan\Kytp
{
protected function data($request, $jenisOrStatus)
{
$opsiWilZona = $request->getPost('opsiWilZona');
$adm4_pcode = $request->getPost('adm4_pcode') ?? [];
$id_poly_zona = $request->getPost('id_poly_zona') ?? [];
$nip_ar_perekam = $request->getPost('nip_ar_perekam') ?? [];
$nip_ar_pengampu = $request->getPost('nip_ar_pengampu') ?? [];
$Ald = new AldLibrary;
$username = session('nip');
$opsiWilZona = $Ald->decryptMe($request->getPost('opsiWilZona'), $username);
$adm4_pcode = [];
foreach ($request->getPost('adm4_pcode') ?? [] as $key => $value) {
$adm4_pcode[] = $Ald->decryptKpdl($value, $username);
}
$id_poly_zona = [];
foreach ($request->getPost('id_poly_zona') ?? [] as $key => $value) {
$id_poly_zona[] = $Ald->decryptMe($value, $username);
}
$nip_ar_perekam = [];
foreach ($request->getPost('nip_ar_perekam') ?? [] as $key => $value) {
$nip_ar_perekam[] = $Ald->decryptMe($value, $username);
}
$nip_ar_pengampu = [];
foreach ($request->getPost('nip_ar_pengampu') ?? [] as $key => $value) {
$nip_ar_pengampu[] = $Ald->decryptMe($value, $username);
}
$db = \Config\Database::connect();

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

@ -1,16 +1,36 @@
<?php
namespace App\Controllers\Kewilayahan\Sebaran;
use App\Libraries\AldLibrary;
class KLU extends \App\Controllers\Kewilayahan\Kytp
{
protected function data($request, $jenischart)
{
$opsiWilZona = $request->getPost('opsiWilZona');
$adm4_pcode = $request->getPost('adm4_pcode') ?? [];
$id_poly_zona = $request->getPost('id_poly_zona') ?? [];
$nip_ar_perekam = $request->getPost('nip_ar_perekam') ?? [];
$nip_ar_pengampu = $request->getPost('nip_ar_pengampu') ?? [];
$Ald = new AldLibrary;
$username = session('nip');
$opsiWilZona = $Ald->decryptMe($request->getPost('opsiWilZona'), $username);
$adm4_pcode = [];
foreach ($request->getPost('adm4_pcode') ?? [] as $key => $value) {
$adm4_pcode[] = $Ald->decryptKpdl($value, $username);
}
$id_poly_zona = [];
foreach ($request->getPost('id_poly_zona') ?? [] as $key => $value) {
$id_poly_zona[] = $Ald->decryptMe($value, $username);
}
$nip_ar_perekam = [];
foreach ($request->getPost('nip_ar_perekam') ?? [] as $key => $value) {
$nip_ar_perekam[] = $Ald->decryptMe($value, $username);
}
$nip_ar_pengampu = [];
foreach ($request->getPost('nip_ar_pengampu') ?? [] as $key => $value) {
$nip_ar_pengampu[] = $Ald->decryptMe($value, $username);
}
$db = \Config\Database::connect();
$npwp = $db->table('KPDL_MV_LOKASI_SUBJEK A')->select('NPWP, KD_GOLPOK, NM_GOLPOK, JUMLAH_PEMBAYARAN_THN_TERAKHIR')->distinct()

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

@ -1,6 +1,7 @@
<?php
namespace App\Controllers\Kewilayahan\Sebaran;
use App\Libraries\AldLibrary;
use CodeIgniter\Database\RawSql;
class PayComp extends \App\Controllers\Kewilayahan\Kytp
@ -8,11 +9,29 @@ class PayComp extends \App\Controllers\Kewilayahan\Kytp
{
protected function dataC($request, $tahun, $bulan)
{
$opsiWilZona = $request->getPost('opsiWilZona');
$adm4_pcode = $request->getPost('adm4_pcode') ?? [];
$id_poly_zona = $request->getPost('id_poly_zona') ?? [];
$nip_ar_perekam = $request->getPost('nip_ar_perekam') ?? [];
$nip_ar_pengampu = $request->getPost('nip_ar_pengampu') ?? [];
$Ald = new AldLibrary;
$username = session('nip');
$opsiWilZona = $Ald->decryptMe($request->getPost('opsiWilZona'), $username);
$adm4_pcode = [];
foreach ($request->getPost('adm4_pcode') ?? [] as $key => $value) {
$adm4_pcode[] = $Ald->decryptKpdl($value, $username);
}
$id_poly_zona = [];
foreach ($request->getPost('id_poly_zona') ?? [] as $key => $value) {
$id_poly_zona[] = $Ald->decryptMe($value, $username);
}
$nip_ar_perekam = [];
foreach ($request->getPost('nip_ar_perekam') ?? [] as $key => $value) {
$nip_ar_perekam[] = $Ald->decryptMe($value, $username);
}
$nip_ar_pengampu = [];
foreach ($request->getPost('nip_ar_pengampu') ?? [] as $key => $value) {
$nip_ar_pengampu[] = $Ald->decryptMe($value, $username);
}
$db = \Config\Database::connect();
//npwp

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

@ -1,6 +1,7 @@
<?php
namespace App\Controllers\Kewilayahan\Sebaran;
use App\Libraries\AldLibrary;
use CodeIgniter\Database\RawSql;
class Pembayaran extends \App\Controllers\Kewilayahan\Kytp
@ -8,11 +9,29 @@ class Pembayaran extends \App\Controllers\Kewilayahan\Kytp
{
protected function dataC($request, $tahun, $bulan)
{
$opsiWilZona = $request->getPost('opsiWilZona');
$adm4_pcode = $request->getPost('adm4_pcode') ?? [];
$id_poly_zona = $request->getPost('id_poly_zona') ?? [];
$nip_ar_perekam = $request->getPost('nip_ar_perekam') ?? [];
$nip_ar_pengampu = $request->getPost('nip_ar_pengampu') ?? [];
$Ald = new AldLibrary;
$username = session('nip');
$opsiWilZona = $Ald->decryptMe($request->getPost('opsiWilZona'), $username);
$adm4_pcode = [];
foreach ($request->getPost('adm4_pcode') ?? [] as $key => $value) {
$adm4_pcode[] = $Ald->decryptKpdl($value, $username);
}
$id_poly_zona = [];
foreach ($request->getPost('id_poly_zona') ?? [] as $key => $value) {
$id_poly_zona[] = $Ald->decryptMe($value, $username);
}
$nip_ar_perekam = [];
foreach ($request->getPost('nip_ar_perekam') ?? [] as $key => $value) {
$nip_ar_perekam[] = $Ald->decryptMe($value, $username);
}
$nip_ar_pengampu = [];
foreach ($request->getPost('nip_ar_pengampu') ?? [] as $key => $value) {
$nip_ar_pengampu[] = $Ald->decryptMe($value, $username);
}
$db = \Config\Database::connect();
//npwp

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

@ -1,17 +1,37 @@
<?php
namespace App\Controllers\Kewilayahan\Sebaran;
use App\Libraries\AldLibrary;
class Pengampu extends \App\Controllers\Kewilayahan\Kytp
{
protected function data($request, $jenis)
{
ini_set('max_input_vars', 3000);
$opsiWilZona = $request->getPost('opsiWilZona');
$adm4_pcode = $request->getPost('adm4_pcode') ?? [];
$id_poly_zona = $request->getPost('id_poly_zona') ?? [];
$nip_ar_perekam = $request->getPost('nip_ar_perekam') ?? [];
$nip_ar_pengampu = $request->getPost('nip_ar_pengampu') ?? [];
$Ald = new AldLibrary;
$username = session('nip');
$opsiWilZona = $Ald->decryptMe($request->getPost('opsiWilZona'), $username);
$adm4_pcode = [];
foreach ($request->getPost('adm4_pcode') ?? [] as $key => $value) {
$adm4_pcode[] = $Ald->decryptKpdl($value, $username);
}
$id_poly_zona = [];
foreach ($request->getPost('id_poly_zona') ?? [] as $key => $value) {
$id_poly_zona[] = $Ald->decryptMe($value, $username);
}
$nip_ar_perekam = [];
foreach ($request->getPost('nip_ar_perekam') ?? [] as $key => $value) {
$nip_ar_perekam[] = $Ald->decryptMe($value, $username);
}
$nip_ar_pengampu = [];
foreach ($request->getPost('nip_ar_pengampu') ?? [] as $key => $value) {
$nip_ar_pengampu[] = $Ald->decryptMe($value, $username);
}
$db = \Config\Database::connect();

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

@ -1,17 +1,36 @@
<?php
namespace App\Controllers\Kewilayahan\Sebaran;
use App\Libraries\AldLibrary;
class SPTTAhunan extends \App\Controllers\Kewilayahan\Kytp
{
protected function data($request, $tahun)
{
$opsiWilZona = $request->getPost('opsiWilZona');
$adm4_pcode = $request->getPost('adm4_pcode') ?? [];
$id_poly_zona = $request->getPost('id_poly_zona') ?? [];
$nip_ar_perekam = $request->getPost('nip_ar_perekam') ?? [];
$nip_ar_pengampu = $request->getPost('nip_ar_pengampu') ?? [];
$Ald = new AldLibrary;
$username = session('nip');
$opsiWilZona = $Ald->decryptMe($request->getPost('opsiWilZona'), $username);
$adm4_pcode = [];
foreach ($request->getPost('adm4_pcode') ?? [] as $key => $value) {
$adm4_pcode[] = $Ald->decryptKpdl($value, $username);
}
$id_poly_zona = [];
foreach ($request->getPost('id_poly_zona') ?? [] as $key => $value) {
$id_poly_zona[] = $Ald->decryptMe($value, $username);
}
$nip_ar_perekam = [];
foreach ($request->getPost('nip_ar_perekam') ?? [] as $key => $value) {
$nip_ar_perekam[] = $Ald->decryptMe($value, $username);
}
$nip_ar_pengampu = [];
foreach ($request->getPost('nip_ar_pengampu') ?? [] as $key => $value) {
$nip_ar_pengampu[] = $Ald->decryptMe($value, $username);
}
$db = \Config\Database::connect();
$npwp = $db->table('KPDL_MV_LOKASI_SUBJEK A')->select('NPWP, B.KETERANGAN')->distinct()
->join('KPDL_REF_STATUS_SPT B', "A.STATUS_SPT_TAHUNAN_TERAKHIR = B.ID_STATUS_SPT", "left")

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

@ -1,6 +1,7 @@
<?php
namespace App\Controllers\Kewilayahan\Sebaran;
use App\Libraries\AldLibrary;
use CodeIgniter\Database\RawSql;
class Sof extends \App\Controllers\Kewilayahan\Kytp
@ -8,12 +9,29 @@ class Sof extends \App\Controllers\Kewilayahan\Kytp
{
protected function dataC($request, $tahun, $bulan)
{
$opsiWilZona = $request->getPost('opsiWilZona');
$adm4_pcode = $request->getPost('adm4_pcode') ?? [];
$id_poly_zona = $request->getPost('id_poly_zona') ?? [];
$nip_ar_perekam = $request->getPost('nip_ar_perekam') ?? [];
$nip_ar_pengampu = $request->getPost('nip_ar_pengampu') ?? [];
$Ald = new AldLibrary;
$username = session('nip');
$opsiWilZona = $Ald->decryptMe($request->getPost('opsiWilZona'), $username);
$adm4_pcode = [];
foreach ($request->getPost('adm4_pcode') ?? [] as $key => $value) {
$adm4_pcode[] = $Ald->decryptKpdl($value, $username);
}
$id_poly_zona = [];
foreach ($request->getPost('id_poly_zona') ?? [] as $key => $value) {
$id_poly_zona[] = $Ald->decryptMe($value, $username);
}
$nip_ar_perekam = [];
foreach ($request->getPost('nip_ar_perekam') ?? [] as $key => $value) {
$nip_ar_perekam[] = $Ald->decryptMe($value, $username);
}
$nip_ar_pengampu = [];
foreach ($request->getPost('nip_ar_pengampu') ?? [] as $key => $value) {
$nip_ar_pengampu[] = $Ald->decryptMe($value, $username);
}
$db = \Config\Database::connect();
//npwp
$npwp = $db->table('KPDL_MV_LOKASI_SUBJEK')->select('NPWP')->distinct()->where('NPWP IS NOT NULL');

73
app/Libraries/AldLibrary.php

@ -2,19 +2,18 @@
namespace App\Libraries;
use Exception;
class AldLibrary
{
//private $fixedKey = session('nip');
public function generateKey($username) {
$time = time();
public function generateKey($username)
{
$time = time();
$time_mod = $time % 8; // Modulus time with 8
$fixed_phrase = "fixed_phrase"; // Frase tetap yang elu isi sendiri cuk!
$fixed_phrase = "fixed_phrase"; // Frase tetap yang elu isi sendiri cuk!
$key_variations = [
"peopleDoCrazyThing", "JumpAround!", "ZarakiKenpachi", "UpOverAndGo!!!", "HeyThere..NiceToMeetY0u", "ToBeOrNotToBe!", "AreYouOkay?..", "paip123!OYEE"
"peopleDoCrazyThing", "JumpAround!", "ZarakiKenpachi", "UpOverAndGo!!!", "HeyThere..NiceToMeetY0u", "ToBeOrNotToBe!", "AreYouOkay?..", "paip123!OYEE", "wdusgembeLL", "GundulPAcull", "AstagfiruLLah!",
];
$mod_key = $key_variations[$time_mod]; // Kata kunci berdasarkan hasil mod dari time()
@ -34,53 +33,83 @@ class AldLibrary
return $final_key;
}
public function encryptMe($str, $username) {
public function encryptMe($str, $username)
{
$hasil = '';
$kunci = $this->generateKey($username);
for ($i = 0; $i < strlen($str); $i++) {
$karakter = substr($str, $i, 1);
$karakter = substr($str, $i, 1);
$kuncikarakter = substr($kunci, ($i % strlen($kunci)), 1);
$karakter = chr(ord($karakter) + ord($kuncikarakter));
$karakter = chr(ord($karakter) + ord($kuncikarakter));
$hasil .= $karakter;
}
return urlencode(base64_encode($hasil));
}
public function decryptMe($str, $username) {
$str = base64_decode(urldecode($str));
public function decryptMe($str, $username)
{
$str = base64_decode(urldecode($str));
$hasil = '';
$kunci = $this->generateKey($username);
for ($i = 0; $i < strlen($str); $i++) {
$karakter = substr($str, $i, 1);
$karakter = substr($str, $i, 1);
$kuncikarakter = substr($kunci, ($i % strlen($kunci)), 1);
$karakter = chr(ord($karakter) - ord($kuncikarakter));
$karakter = chr(ord($karakter) - ord($kuncikarakter));
$hasil .= $karakter;
}
return $hasil;
}
public function encryptMeMawas($str) {
public function encryptKpdl($str, $genKey)
{
$hasil = '';
$kunci = $genKey;
for ($i = 0; $i < strlen($str); $i++) {
$karakter = substr($str, $i, 1);
$kuncikarakter = substr($kunci, ($i % strlen($kunci)), 1);
$karakter = chr(ord($karakter) + ord($kuncikarakter));
$hasil .= $karakter;
}
return urlencode(base64_encode($hasil));
}
public function decryptKpdl($str, $genKey)
{
$str = base64_decode(urldecode($str));
$hasil = '';
$kunci = $genKey;
for ($i = 0; $i < strlen($str); $i++) {
$karakter = substr($str, $i, 1);
$kuncikarakter = substr($kunci, ($i % strlen($kunci)), 1);
$karakter = chr(ord($karakter) - ord($kuncikarakter));
$hasil .= $karakter;
}
return $hasil;
}
public function encryptMeMawas($str)
{
$hasil = '';
$salt = "generateFromDMPToMawasSince26082024";
$salt = "generateFromDMPToMawasSince26082024";
$kunci = $this->generateKey($salt);
for ($i = 0; $i < strlen($str); $i++) {
$karakter = substr($str, $i, 1);
$karakter = substr($str, $i, 1);
$kuncikarakter = substr($kunci, ($i % strlen($kunci)), 1);
$karakter = chr(ord($karakter) + ord($kuncikarakter));
$karakter = chr(ord($karakter) + ord($kuncikarakter));
$hasil .= $karakter;
}
return urlencode(base64_encode($hasil));
}
public function decryptMeMawas($str) {
$str = base64_decode(urldecode($str));
public function decryptMeMawas($str)
{
$str = base64_decode(urldecode($str));
$hasil = '';
$salt = "generateFromDMPToMawasSince26082024";
$salt = "generateFromDMPToMawasSince26082024";
$kunci = $this->generateKey($salt);
for ($i = 0; $i < strlen($str); $i++) {
$karakter = substr($str, $i, 1);
$karakter = substr($str, $i, 1);
$kuncikarakter = substr($kunci, ($i % strlen($kunci)), 1);
$karakter = chr(ord($karakter) - ord($kuncikarakter));
$karakter = chr(ord($karakter) - ord($kuncikarakter));
$hasil .= $karakter;
}
return $hasil;

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

File diff suppressed because one or more lines are too long

4
app/Views/kewilayahan/kytp/TabPenugasan.js

@ -24,7 +24,7 @@ const TabPenugasan = ({ dataSend }) => {
</div>
</div>
</StepperPanel>
<StepperPanel header="Aktifitas pasca identifikasi">
{/* <StepperPanel header="Aktifitas pasca identifikasi">
<div className="flex flex-column h-12rem">
<div className="border-2 border-dashed surface-border border-round surface-ground flex-auto flex justify-content-center align-items-center font-medium">
OTW
@ -37,7 +37,7 @@ const TabPenugasan = ({ dataSend }) => {
OTW
</div>
</div>
</StepperPanel>
</StepperPanel> */}
</Stepper>
</div>
</CardBody>

4
app/Views/kewilayahan/kytp/componentDepan/NipPengampu.js

@ -6,7 +6,7 @@ import { Button as ButtonP } from "primereact/button"
import { isObjEmpty } from "../util"
import $ from "jquery"
import collect from "collect.js"
const NipPengampu = ({ dataSend, setDataSend, activeTab, toast, setHiddenGraphMatoa }) => {
const NipPengampu = ({ dataSend, setDataSend, activeTab, toast, setHiddenGraphMatoa, dataOpsi }) => {
const [kanwil, setKanwil] = useState({})
const [kpp, setKpp] = useState({})
const [seksi, setSeksi] = useState([])
@ -90,7 +90,7 @@ const NipPengampu = ({ dataSend, setDataSend, activeTab, toast, setHiddenGraphMa
const buttonProsesOnClick = () => {
const nip_ar_pengampu = collect(arSelected).pluck("value").all()
if (nip_ar_pengampu.length) {
setDataSend({ opsiWilZona: activeTab, nip_ar_pengampu })
setDataSend({ opsiWilZona: dataOpsi.pengampu.key, nip_ar_pengampu })
setHiddenGraphMatoa(true)
} else {
toast.current.show({ severity: "info", summary: "Info", detail: "AR Pengampu harus dipilih" })

4
app/Views/kewilayahan/kytp/componentDepan/NipPerekam.js

@ -7,7 +7,7 @@ import { isObjEmpty } from "../util"
import $ from "jquery"
import collect from "collect.js"
const NipPerekam = ({ dataSend, setDataSend, activeTab, toast, setHiddenGraphMatoa }) => {
const NipPerekam = ({ dataSend, setDataSend, activeTab, toast, setHiddenGraphMatoa, dataOpsi }) => {
const base_url = "<?=base_url()?>"
const [kanwil, setKanwil] = useState({})
@ -95,7 +95,7 @@ const NipPerekam = ({ dataSend, setDataSend, activeTab, toast, setHiddenGraphMat
const buttonProsesOnClick = () => {
const nip_ar_perekam = collect(arSelected).pluck("value").all()
if (nip_ar_perekam.length) {
setDataSend({ opsiWilZona: activeTab, nip_ar_perekam })
setDataSend({ opsiWilZona: dataOpsi.perekam.key, nip_ar_perekam })
setHiddenGraphMatoa(true)
} else {
toast.current.show({ severity: "info", summary: "Info", detail: "AR Perekam harus dipilih" })

15
app/Views/kewilayahan/kytp/componentProgresifitas/ChartKPDL.js

@ -20,7 +20,8 @@ const ChartKpdl = ({ dataSend }) => {
categories: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
})
const [selectedBulan, setSelectedBulan] = useState("semua")
const [selectedBulan, setSelectedBulan] = useState("")
const [selectedBulanText, setSelectedBulanText] = useState("semua")
const [bulan, setBulan] = useState([])
useEffect(() => {
@ -45,6 +46,7 @@ const ChartKpdl = ({ dataSend }) => {
type: "GET",
success: (data) => {
setBulan(data)
setSelectedBulan(data[0].value)
}
})
}, [])
@ -148,9 +150,11 @@ const ChartKpdl = ({ dataSend }) => {
}
const refBulanOnClick = (e) => {
// console.log(e)
const kodeBulan = e.target.dataset.value
console.log(kodeBulan)
const labelBulan = e.target.dataset.label
setSelectedBulan(kodeBulan)
setSelectedBulanText(labelBulan)
}
return (
<>
@ -163,9 +167,10 @@ const ChartKpdl = ({ dataSend }) => {
return (
<Badge
id={idx}
data-value={val}
data-value={val.value}
data-label={val.label}
severity="warning"
value={val}
value={val.label}
className="ref_bulan_a cursor-pointer mr-10"
onClick={(e) => refBulanOnClick(e)}
></Badge>
@ -174,7 +179,7 @@ const ChartKpdl = ({ dataSend }) => {
</div>
<div>
<span>Bulan terpilih : </span>
<span>{selectedBulan}</span>
<span>{selectedBulanText}</span>
</div>
</div>
</Col>

67
app/Views/kewilayahan/kytp/kpdl.js

@ -2,7 +2,7 @@ import React, { useEffect, useRef, useState } from "react"
import ReactDOM from "react-dom"
import { Button, Card, CardBody, CardHeader, CardText, CardTitle, Col, Label, Nav, NavItem, NavLink, Row, TabContent, TabPane } from "reactstrap"
import Select from "react-select"
import $ from "jquery"
import jquery, { data, getJSON } from "jquery"
import collect from "collect.js"
import { format_angka, isObjEmpty } from "./util"
import { MultiSelect } from "react-multi-select-component"
@ -23,7 +23,10 @@ const Root = () => {
const base_url = "<?=base_url()?>"
const refChart1 = useRef(null)
const toast = useRef(null)
const [dataOpsi, setDataOpsi] = useState({})
const [active, setActive] = useState("wilayah")
const [hiddenGraphMatoa, setHiddenGraphMatoa] = useState(false)
const toggle = (tab) => {
@ -57,8 +60,9 @@ const Root = () => {
const [nipArPengampu, setNipArPengampu] = useState([])
useEffect(() => {}, [])
useEffect(() => {
$.ajax({
jquery.ajax({
url: base_url + "kewilayahan/ref/propinsi",
method: "GET",
dataType: "json",
@ -67,7 +71,7 @@ const Root = () => {
}
})
$.ajax({
jquery.ajax({
url: base_url + "kewilayahan/ref/zpkanwil",
method: "GET",
dataType: "json",
@ -76,6 +80,10 @@ const Root = () => {
}
})
jquery.getJSON(base_url + "kewilayahan/ref/opsi").then((response) => {
setDataOpsi(response)
})
let judul = document.getElementById("judul")
judul.innerHTML = "<h3><b><strong>E-Geospatial Thematic Tax</strong></b></h3>"
}, [])
@ -89,7 +97,7 @@ const Root = () => {
setKelSelected([])
if (propSelected && !isObjEmpty(propSelected)) {
const prop = propSelected.value
$.ajax({
jquery.ajax({
url: base_url + "kewilayahan/ref/kota",
method: "GET",
dataType: "json",
@ -108,7 +116,7 @@ const Root = () => {
setKelSelected([])
if (kotaSelected && !isObjEmpty(kotaSelected)) {
const kota = kotaSelected.value
$.ajax({
jquery.ajax({
url: base_url + "kewilayahan/ref/kecamatan",
method: "GET",
dataType: "json",
@ -125,9 +133,9 @@ const Root = () => {
setKelSelected([])
if (kecSelected.length && !isObjEmpty(kecSelected)) {
const kec = collect(kecSelected).pluck("value").all()
$.ajax({
jquery.ajax({
url: base_url + "kewilayahan/ref/kelurahan",
method: "GET",
method: "POST",
dataType: "json",
data: { kec },
success: (data) => {
@ -148,9 +156,9 @@ const Root = () => {
setZpSelected([])
if (kanwilSelected && !isObjEmpty(kanwilSelected)) {
const kanwil = kanwilSelected.value
$.ajax({
jquery.ajax({
url: base_url + "kewilayahan/ref/zpkpp",
method: "GET",
method: "POST",
dataType: "json",
data: { kanwil },
success: (data) => {
@ -168,11 +176,10 @@ const Root = () => {
setArSelected([])
setZpSelected([])
if (kppSelected && !isObjEmpty(kppSelected)) {
// const kpp = collect(kppSelected).pluck("value").all()
const kpp = [kppSelected.value]
$.ajax({
const kpp = kppSelected.value
jquery.ajax({
url: base_url + "kewilayahan/ref/zpseksi",
method: "GET",
method: "POST",
dataType: "json",
data: { kpp },
success: (data) => {
@ -188,12 +195,12 @@ const Root = () => {
setArSelected([])
setZpSelected([])
if (seksiSelected && !isObjEmpty(seksiSelected)) {
const kpp = [kppSelected.value]
const kpp = kppSelected.value
const seksi = collect(seksiSelected).pluck("value").all()
$.ajax({
jquery.ajax({
url: base_url + "kewilayahan/ref/zpar",
method: "GET",
method: "POST",
dataType: "json",
data: { kpp, seksi },
success: (data) => {
@ -210,7 +217,7 @@ const Root = () => {
const kpp = kppSelected.value
const seksi = collect(seksiSelected).pluck("value").all()
const ar = collect(arSelected).pluck("value").all()
$.ajax({
jquery.ajax({
url: base_url + "kewilayahan/ref/zpzp",
method: "POST",
dataType: "json",
@ -227,11 +234,11 @@ const Root = () => {
const adm4_pcode = collect(kelSelected).pluck("value").all()
const id_poly_zona = collect(zpSelected).pluck("value").all()
const nip_ar_pengampu = collect().pluck("value").all()
console.log(dataOpsi)
switch (opsiWilZona) {
case "wilayah":
if (adm4_pcode.length) {
setDataSend({ opsiWilZona: "wilayah", adm4_pcode, id_poly_zona: [] })
setDataSend({ opsiWilZona: dataOpsi.wilayah.key, adm4_pcode, id_poly_zona: [] })
setHiddenGraphMatoa(false)
} else {
toast.current.show({ severity: "info", summary: "Info", detail: "Kelurahan harus dipilih" })
@ -239,7 +246,7 @@ const Root = () => {
break
case "zona":
if (id_poly_zona.length) {
setDataSend({ opsiWilZona: "zona", adm4_pcode: [], id_poly_zona })
setDataSend({ opsiWilZona: dataOpsi.zona.key, adm4_pcode: [], id_poly_zona })
setHiddenGraphMatoa(false)
} else {
toast.current.show({ severity: "info", summary: "Info", detail: "Zona harus dipilih" })
@ -264,7 +271,7 @@ const Root = () => {
yDecimals: 2 // If you want to add 2 decimals
}
})
$.ajax({
jquery.ajax({
url: base_url + "kewilayahan/kytp/graph_matoa",
dataType: "json",
type: "POST",
@ -647,10 +654,24 @@ const Root = () => {
</Row>
</TabPane>
<TabPane tabId="perekam">
<NipPerekam dataSend={dataSend} setDataSend={setDataSend} activeTab={active} toast={toast} setHiddenGraphMatoa={setHiddenGraphMatoa} />
<NipPerekam
dataSend={dataSend}
setDataSend={setDataSend}
activeTab={active}
toast={toast}
setHiddenGraphMatoa={setHiddenGraphMatoa}
dataOpsi={dataOpsi}
/>
</TabPane>
<TabPane tabId="pengampu">
<NipPengampu dataSend={dataSend} setDataSend={setDataSend} activeTab={active} toast={toast} setHiddenGraphMatoa={setHiddenGraphMatoa} />
<NipPengampu
dataSend={dataSend}
setDataSend={setDataSend}
activeTab={active}
toast={toast}
setHiddenGraphMatoa={setHiddenGraphMatoa}
dataOpsi={dataOpsi}
/>
</TabPane>
</TabContent>
</CardBody>

46
app/Views/kewilayahan/kytp/kpdl.php

@ -4,60 +4,18 @@
visibility: hidden;
}
</style>
<div class="main-content">
<div class="container-fluid">
<div id="app"></div>
<!-- <div class=" row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="row ">
<div class="col col-sm-3">
<div class="form-group">
<Label class="form-input">Propinsi</Label>
<select id="select_prop" name="select_prop" data-placeholder="Select ">
</select>
</div>
</div>
<div class="col col-sm-3">
<div class="form-group">
<Label class="form-input">Kota/Kab</Label>
<select id="select_kota" name="select_kota" data-placeholder="Select ">
</select>
</div>
</div>
<div class="col col-sm-3">
<div class="form-group">
<Label class="form-input">Kecamatan</Label>
<select id="select_kecamatan" name="select_kecamatan" data-placeholder="Select "
multiple="multiple" data-multi-select>
</select>
</div>
</div>
<div class="col col-sm-3">
<div class="form-group">
<Label class="form-input">Kelurahan/Desa</Label>
<select id="select_kelurahan" name="select_kelurahan" data-placeholder="Select "
multiple="multiple" data-multi-select>
</select>
</div>
</div>
</div>
<a href="#" id="btn_proses" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
</div> -->
</div>
</div>
<?php $isDevelopment = ENVIRONMENT === 'development';?>
<script type="text/javascript">
<?php echo view('kewilayahan/dist/kpdl.js') ?>
</script>

1
writable/session/ci_session0v3vsl1tbg37l2pdj44do0dpdsms4bg6

@ -1 +0,0 @@
__ci_last_regenerate|i:1724648983;nip|s:9:"810201978";nipp|s:18:"199401292013101001";nama|s:23:"ALFIN RIZKY RACHMAWANTO";kppadm|s:3:"000";jabatan|s:9:"Pelaksana";kantor|s:39:"Direktorat Ekstensifikasi dan Penilaian";seksi|s:28:"SubDirektorat Ekstensifikasi";tpkantor|s:5:"KPDJP";kwladm|s:3:"991";isLogin|b:1;_ci_previous_url|s:39:"https://localhost/engineN/rapor/wplapor";

1
writable/session/ci_session1rcio9mb932v642lt0o89gf19tudct06

@ -1 +0,0 @@
__ci_last_regenerate|i:1724648983;nip|s:9:"810201978";nipp|s:18:"199401292013101001";nama|s:23:"ALFIN RIZKY RACHMAWANTO";kppadm|s:3:"000";jabatan|s:9:"Pelaksana";kantor|s:39:"Direktorat Ekstensifikasi dan Penilaian";seksi|s:28:"SubDirektorat Ekstensifikasi";tpkantor|s:5:"KPDJP";kwladm|s:3:"991";isLogin|b:1;_ci_previous_url|s:39:"https://localhost/engineN/rapor/wpbayar";

1
writable/session/ci_session2960rr6kvdr0j8d7aummtkra8gm30849

@ -1 +0,0 @@
__ci_last_regenerate|i:1724659823;nip|s:9:"060110956";nipp|s:18:"198406132006021003";nama|s:24:"RIANTIARNO ALDI SASONGKO";kppadm|s:3:"000";jabatan|s:24:"Pranata Komputer Pertama";kantor|s:45:"Direktorat Teknologi Informasi dan Komunikasi";seksi|N;tpkantor|s:5:"KPDJP";kwladm|s:3:"997";isLogin|b:1;_ci_previous_url|s:50:"https://103.148.201.34:51212/engineN/rapor/wpbayar";

1
writable/session/ci_session2kn972t4a7bu98kbj1phbo1s331s4dga

@ -1 +0,0 @@
__ci_last_regenerate|i:1724741499;nip|s:9:"060088192";nipp|s:18:"197601261995111001";nama|s:12:"RUDI MARSONO";kppadm|s:3:"515";jabatan|s:22:"Account Representative";kantor|s:17:"KPP Pratama Demak";seksi|s:11:"KPP Pratama";tpkantor|s:3:"KPP";kwladm|s:3:"170";isLogin|b:1;_ci_previous_url|s:38:"https://localhost/engineN/home/gmapkjs";

1
writable/session/ci_session2q99212j5elae8boc41lictikjpcnemi

@ -1 +0,0 @@
__ci_last_regenerate|i:1724900745;nip|s:9:"810201978";nipp|s:18:"199401292013101001";nama|s:23:"ALFIN RIZKY RACHMAWANTO";kppadm|s:3:"000";jabatan|s:9:"Pelaksana";kantor|s:39:"Direktorat Ekstensifikasi dan Penilaian";seksi|s:28:"SubDirektorat Ekstensifikasi";tpkantor|s:5:"KPDJP";kwladm|s:3:"991";isLogin|b:1;_ci_previous_url|s:87:"https://dfoso.id:51212/engineN/Seksiar/detSOF/030/117/04/060106662/2024/5?page_detsof=2";

1
writable/session/ci_session5eku4mv4q12snhq950cjjfhs2m5q25tg

@ -1 +0,0 @@
__ci_last_regenerate|i:1724652880;nip|s:9:"810201978";nipp|s:18:"199401292013101001";nama|s:23:"ALFIN RIZKY RACHMAWANTO";kppadm|s:3:"000";jabatan|s:9:"Pelaksana";kantor|s:39:"Direktorat Ekstensifikasi dan Penilaian";seksi|s:28:"SubDirektorat Ekstensifikasi";tpkantor|s:5:"KPDJP";kwladm|s:3:"991";isLogin|b:1;_ci_previous_url|s:50:"https://103.148.201.34:51212/engineN/rapor/wplapor";

1
writable/session/ci_session5fe9gm9422vgd2dfe6q7dpo9bprjkeuf

@ -1 +0,0 @@
__ci_last_regenerate|i:1725183970;nip|s:9:"060112817";nipp|s:18:"198602112006021005";nama|s:16:"MUHAMMAD ZAMRONI";kppadm|s:3:"100";jabatan|s:9:"Pelaksana";kantor|s:28:"Kanwil DJP Jakarta Selatan I";seksi|s:56:"Bidang Pemeriksaan, Penagihan, Intelijen, dan Penyidikan";tpkantor|s:6:"Kanwil";kwladm|s:3:"100";isLogin|b:1;_ci_previous_url|s:42:"https://localhost/engineN/kewilayahan/kytp";

1
writable/session/ci_session8mhsvfum15l1bh1gnt8n09s9clii1p1c

@ -1 +0,0 @@
__ci_last_regenerate|i:1724900147;nip|s:9:"810201978";nipp|s:18:"199401292013101001";nama|s:23:"ALFIN RIZKY RACHMAWANTO";kppadm|s:3:"000";jabatan|s:9:"Pelaksana";kantor|s:39:"Direktorat Ekstensifikasi dan Penilaian";seksi|s:28:"SubDirektorat Ekstensifikasi";tpkantor|s:5:"KPDJP";kwladm|s:3:"991";isLogin|b:1;_ci_previous_url|s:90:"https://dfoso.id:51212/engineN/Seksiar/detkat/030/117/04/060106662/2024/08/G?page_detkat=2";

1
writable/session/ci_session9ft14g9ei79f241unpojl9sfug9525dh

@ -1 +0,0 @@
__ci_last_regenerate|i:1724651722;nip|s:9:"810201978";nipp|s:18:"199401292013101001";nama|s:23:"ALFIN RIZKY RACHMAWANTO";kppadm|s:3:"000";jabatan|s:9:"Pelaksana";kantor|s:39:"Direktorat Ekstensifikasi dan Penilaian";seksi|s:28:"SubDirektorat Ekstensifikasi";tpkantor|s:5:"KPDJP";kwladm|s:3:"991";isLogin|b:1;_ci_previous_url|s:50:"https://103.148.201.34:51212/engineN/rapor/wpbayar";

1
writable/session/ci_session9k6v9dfabkdsouidseemr6sopiru2587

@ -1 +0,0 @@
__ci_last_regenerate|i:1724741499;nip|s:9:"060088192";nipp|s:18:"197601261995111001";nama|s:12:"RUDI MARSONO";kppadm|s:3:"515";jabatan|s:22:"Account Representative";kantor|s:17:"KPP Pratama Demak";seksi|s:11:"KPP Pratama";tpkantor|s:3:"KPP";kwladm|s:3:"170";isLogin|b:1;_ci_previous_url|s:38:"https://localhost/engineN/home/gmapkjs";

1
writable/session/ci_sessioncu7hk730p6d2mk5khk79mfjtcqbj7phb

@ -1 +0,0 @@
__ci_last_regenerate|i:1724659823;nip|s:9:"060110956";nipp|s:18:"198406132006021003";nama|s:24:"RIANTIARNO ALDI SASONGKO";kppadm|s:3:"000";jabatan|s:24:"Pranata Komputer Pertama";kantor|s:45:"Direktorat Teknologi Informasi dan Komunikasi";seksi|N;tpkantor|s:5:"KPDJP";kwladm|s:3:"997";isLogin|b:1;_ci_previous_url|s:82:"https://103.148.201.34:51212/engineN/Seksiar/detkat/330/412/02/060111296/2024/08/C";

1
writable/session/ci_sessiond9030jnamkbdf7avf1rnm62ssb94l6oh

@ -1 +0,0 @@
__ci_last_regenerate|i:1724905576;nip|s:9:"810201978";nipp|s:18:"199401292013101001";nama|s:23:"ALFIN RIZKY RACHMAWANTO";kppadm|s:3:"000";jabatan|s:9:"Pelaksana";kantor|s:39:"Direktorat Ekstensifikasi dan Penilaian";seksi|s:28:"SubDirektorat Ekstensifikasi";tpkantor|s:5:"KPDJP";kwladm|s:3:"991";isLogin|b:1;_ci_previous_url|s:77:"https://dfoso.id:51212/engineN/seksiar/detpaycomp/030/117/04/060106662/2024/7";

1
writable/session/ci_sessiongdevqaq6q5lqumhn3no3qa43lbjs1lmv

@ -1 +0,0 @@
__ci_last_regenerate|i:1724902851;nip|s:9:"810201978";nipp|s:18:"199401292013101001";nama|s:23:"ALFIN RIZKY RACHMAWANTO";kppadm|s:3:"000";jabatan|s:9:"Pelaksana";kantor|s:39:"Direktorat Ekstensifikasi dan Penilaian";seksi|s:28:"SubDirektorat Ekstensifikasi";tpkantor|s:5:"KPDJP";kwladm|s:3:"991";isLogin|b:1;_ci_previous_url|s:90:"https://dfoso.id:51212/engineN/Seksiar/detkat/030/117/04/060106662/2023/07/Z?page_detkat=3";

1
writable/session/ci_sessionnq2b4g02i46bog7l1t4fa41cue6mem9e

@ -1 +0,0 @@
__ci_last_regenerate|i:1724906820;nip|s:9:"810201978";nipp|s:18:"199401292013101001";nama|s:23:"ALFIN RIZKY RACHMAWANTO";kppadm|s:3:"000";jabatan|s:9:"Pelaksana";kantor|s:39:"Direktorat Ekstensifikasi dan Penilaian";seksi|s:28:"SubDirektorat Ekstensifikasi";tpkantor|s:5:"KPDJP";kwladm|s:3:"991";isLogin|b:1;_ci_previous_url|s:76:"https://dfoso.id:51212/engineN/Seksiar/detbyrlpr/030/117/04/060106662/2024/2";

1
writable/session/ci_sessionqac0j619mh522fkaad7bc9dpacc6daop

@ -1 +0,0 @@
__ci_last_regenerate|i:1724652880;nip|s:9:"810201978";nipp|s:18:"199401292013101001";nama|s:23:"ALFIN RIZKY RACHMAWANTO";kppadm|s:3:"000";jabatan|s:9:"Pelaksana";kantor|s:39:"Direktorat Ekstensifikasi dan Penilaian";seksi|s:28:"SubDirektorat Ekstensifikasi";tpkantor|s:5:"KPDJP";kwladm|s:3:"991";isLogin|b:1;_ci_previous_url|s:50:"https://103.148.201.34:51212/engineN/rapor/wpbayar";

1
writable/session/ci_sessionqde00sntqjenl636kmcjkdug31qkuuge

@ -1 +0,0 @@
__ci_last_regenerate|i:1724658444;nip|s:9:"060106375";nipp|s:18:"198302102003121004";nama|s:12:"WAWAN SUANDI";kppadm|s:3:"170";jabatan|s:9:"Pelaksana";kantor|s:24:"Kanwil DJP Jawa Tengah I";seksi|s:45:"Bidang Data dan Pengawasan Potensi Perpajakan";tpkantor|s:6:"Kanwil";kwladm|s:3:"170";isLogin|b:1;_ci_previous_url|s:44:"https://dfoso.id:51212/engineN/rapor/wpbayar";

1
writable/session/ci_sessionvbgjpkgvbficmibetffjbgebj4l99k4b

@ -1 +0,0 @@
__ci_last_regenerate|i:1724906820;nip|s:9:"810201978";nipp|s:18:"199401292013101001";nama|s:23:"ALFIN RIZKY RACHMAWANTO";kppadm|s:3:"000";jabatan|s:9:"Pelaksana";kantor|s:39:"Direktorat Ekstensifikasi dan Penilaian";seksi|s:28:"SubDirektorat Ekstensifikasi";tpkantor|s:5:"KPDJP";kwladm|s:3:"991";isLogin|b:1;_ci_previous_url|s:91:"https://dfoso.id:51212/engineN/seksiar/detpaycomp/030/117/04/060106662/2024/2?page_detkat=2";
Loading…
Cancel
Save