You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.0 KiB
63 lines
1.0 KiB
<?php |
|
|
|
namespace App\Controllers\Bendahara; |
|
use App\Controllers\BaseController; |
|
use App\Models\Bendahara\MGeneral; |
|
|
|
class General extends BaseController { |
|
|
|
public function index() { |
|
|
|
} |
|
|
|
public function get_ref_kpp() { |
|
if (session('isLogin')) { |
|
$general = new MGeneral(); |
|
|
|
$kanwil = $this->request->getGet('kanwil'); |
|
|
|
$param = array( |
|
'kanwil' => $kanwil |
|
); |
|
|
|
$data_kpp = $general->get_ref_kpp($param); |
|
|
|
echo json_encode($data_kpp); |
|
} |
|
} |
|
|
|
public function get_ref_ar() { |
|
if (session('isLogin')) { |
|
$general = new MGeneral(); |
|
|
|
$kpp = $this->request->getGet('kpp'); |
|
$seksi = $this->request->getGet('seksi'); |
|
|
|
$param = array( |
|
'kpp' => $kpp, |
|
'seksi' => $seksi |
|
); |
|
|
|
$data_kpp = $general->get_ref_ar($param); |
|
|
|
echo json_encode($data_kpp); |
|
} |
|
} |
|
|
|
public function get_ref_kabkot() { |
|
if (session('isLogin')) { |
|
$general = new MGeneral(); |
|
|
|
$kpp = $this->request->getGet('kpp'); |
|
|
|
$param = array( |
|
'kpp' => $kpp |
|
); |
|
|
|
$data_kpp = $general->get_ref_kabkot($param); |
|
|
|
echo json_encode($data_kpp); |
|
} |
|
} |
|
|
|
}
|
|
|