| Server IP : 127.0.0.1 / Your IP : 192.168.99.1 Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9 System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64 User : Administrator ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/wamp/www/sipapbd_xxxx/application/modules/dpa_skpd/controllers/ |
Upload File : |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Dpa_skpd extends Rka_Controller {
public function __construct()
{
parent::__construct();
$this->modul_name = 'dpa_skpd';
$this->modul_display = 'DPA SKPD';
$this->view_form = 'dpa_skpd_form';
$this->view_daftar = 'dpa_skpd_view';
$this->report_daftar = 'DAFTAR DPA_SKPD';
$this->report_form = 'FORM DPA_SKPD';
$this->load->model('dpa_skpd_model', 'data_model');
$this->message_dihapus = 'DPA SKPD telah dihapus.';
$this->message_gagal_dihapus = 'DPA SKPD tidak bisa dihapus.';
}
function validasi()
{
$this->form_validation->set_rules('kaskpd', 'Kepala SKPD', 'trim|integer');
}
function rincian($id_skpd = 0)
{
$result = $this->data_model->get_rincian($id_skpd);
$response = (object) NULL;
if ($result){
for($i=0; $i<count($result); $i++)
{
$response->rows[$i]['id'] = $result[$i]['ID_REKENING'];
$response->rows[$i]['cell'][] = $result[$i]['KODE_REKENING'];
$response->rows[$i]['cell'][] = $result[$i]['NAMA_REKENING'];
$response->rows[$i]['cell'][] = $result[$i]['PAGU'];
$response->rows[$i]['cell'][] = $result[$i]['LVL'];
}
}
$response->sql = $this->db->queries;
echo json_encode($response);
}
function get_nominal($id_skpd = 0)
{
$response = (object) NULL;
$result = $this->data_model->get_nominal($id_skpd);
$response->belanja = $result['RKA1'] - ($result['RKA21'] + $result['RKA221']);
$response->biaya = $result['RKA31'] - $result['RKA32'];
echo json_encode($response);
}
}