application/modules/hr/controllers/Hr.php
// function untuk update data master departement
function untuk update data master departement
function untuk update data master departement
public function dept_update()
	{
		$data = array(
				'departement' => $this->input->post('f_dept_id'),
				'dept_desc' => $this->input->post('f_dept_desc'),
				'effective_date' => $this->date_input($this->input->post('f_effective_date')), 
			);
		$this->mas_dept->update(array('departement' => $this->input->post('f_dept_id')), $data);
		echo json_encode(array("status" => TRUE));
	}
public function dept_update ( ) { $ data = array ( 'departement' => $ this -> input -> post ( 'f_dept_id' ) , 'dept_desc' => $ this -> input -> post ( 'f_dept_desc' ) , 'effective_date' => $ this -> date_input ( $ this -> input -> post ( 'f_effective_date' ) ) , ) ; $ this -> mas_dept -> update ( array ( 'departement' => $ this -> input -> post ( 'f_dept_id' ) ) , $ data ) ; echo json_encode ( array ( " status " => TRUE ) ) ; }
function untuk update data master departement
function untuk update data master departement
#$this->date_input fungsi konversi tanggal