|
|
|
@ -218,7 +218,7 @@ class Ref extends Controller
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
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') . "')"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -363,7 +363,12 @@ class Ref extends Controller
|
|
|
|
|
$data = $db->table('DIM_KANTOR') |
|
|
|
|
->select('KD_KANWIL as value, NM_KANTOR as label') |
|
|
|
|
->whereIn('ID_JNS_KANTOR', [21, 23]) |
|
|
|
|
->orderBy('NM_KANTOR')->get()->getResult(); |
|
|
|
|
->orderBy('NM_KANTOR'); |
|
|
|
|
|
|
|
|
|
if (session('kppadm') !== '000') { |
|
|
|
|
$data->where('KD_KANWIL', session('kwladm')); |
|
|
|
|
} |
|
|
|
|
$data = $data->get()->getResult(); |
|
|
|
|
|
|
|
|
|
foreach ($data as $key => $val) { |
|
|
|
|
$val->value = $Ald->encryptMe($val->value, $username); |
|
|
|
|