| 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 : /wamp/www/simbada_2019/application/modules/inventaris_ruangan/controllers/ |
Upload File : |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Inventaris_ruangan extends Inventaris_Controller{
public function __construct()
{
parent::__construct();
$this->modul_name = 'inventaris_ruangan';
$this->modul_display = 'Kartu Inventaris Ruangan';
$this->view_daftar = 'inventarisruangan_view';
$this->view_form = 'inventarisruangan_form';
$this->report_daftar = 'Daftar KIR (Kartu Inventaris Ruangan)';
$this->report_form = 'Form KIR (Kartu Inventaris Ruangan)';
$this->load->model('inventarisruangan_model', 'data_model');
$this->message_aktivitas_dihapus = 'Data telah dihapus.';
$this->message_aktivitas_gagal_dihapus = 'Data tidak bisa dihapus.';
}
protected function validasi_form()
{
//
}
public function _cek_duplikasi()
{
//
}
public function rinci_barang($id=0)
{
$result = $this->data_model->get_rinci_barang($id);
$response = (object) NULL;
if ($result){
for($i=0; $i<count($result); $i++)
{
$response->rows[$i]['id'] = $result[$i]['ID_INVENTARIS'];
$response->rows[$i]['cell']=array(
$result[$i]['ID_INVENTARIS'],
$result[$i]['ID_MASTER_BARANG'],
$result[$i]['KODE_MASTER_BARANG'],
$result[$i]['NAMA_MASTER_BARANG'],
$result[$i]['NAMA_INVENTARIS'],
$result[$i]['JENIS_INVENTARIS'],
$result[$i]['NO_REGISTER'],
$result[$i]['TAHUN_PEROLEHAN'],
$result[$i]['STATUS'],
$result[$i]['NILAI_ASET']
);
}
}
$response->sql = $this->db->queries;
echo json_encode($response);
}
public function rinci_panitia($id=0)
{
$result = $this->data_model->get_rinci_panitia_by_id($id);
$response = (object) NULL;
if ($result){
for($i=0; $i<count($result); $i++)
{
$response->rows[$i]['id'] = $result[$i]['ID_PEJABAT'];
$response->rows[$i]['cell']=array(
$result[$i]['ID_PEJABAT'],
$result[$i]['JABATAN'],
$result[$i]['NAMA_PEJABAT'],
$result[$i]['NIP']
);
}
}
echo json_encode($response);
}
}