application/modules/hr/controllers/Hr.php
// function untuk update data master Grade Status
function untuk update data master Grade Status
function untuk update data master Grade Status
public function gs_update()
	{
		$data = array(
				'empcode' => $this->input->post('f_empcode_4_update'),
				'updatedate' => $this->input->post('f_update_date'),
				'updateby' => $this->input->post('f_update_by'),
				'start_date' => $this->date_input($this->input->post('f_start_date')),
				'id_country' => $this->input->post('f_id_country'),
				'employeetype' => $this->input->post('f_emp_status'),
				'grade' => $this->input->post('f_grade'),
				'basic_sallary' => $this->input->post('f_basic'),
				'allowance' => $this->input->post('f_allow'),
				'payment_method' => $this->input->post('f_payment_method'),
				'upah' => $this->input->post('f_upah'),
				'jamsostek' => $this->input->post('f_jamsostek'),
				'lifeinsurance' => $this->input->post('f_bpjs'),
				'overtime' => $this->input->post('f_ottj'),
				'id_region' => $this->input->post('f_id_region'),
				'kehadiran_pagi' => $this->input->post('pagi'),
				'kehadiran_malam' => $this->input->post('malam'),
				'uang_makan' => $this->input->post('f_uang_makan'),
				'id_position' => $this->input->post('f_emp_position'),
				'wh' => $this->input->post('f_wh'),
				'spesifikasi' => $this->input->post('f_spesifikasi'),
			);
		$this->gs->update(array('empcode' => $this->input->post('f_empcode_4_update')), $data);
		echo json_encode(array("status" => TRUE));
	}
public function gs_update ( ) { $ data = array ( 'empcode' => $ this -> input -> post ( 'f_empcode_4_update' ) , 'updatedate' => $ this -> input -> post ( 'f_update_date' ) , 'updateby' => $ this -> input -> post ( 'f_update_by' ) , 'start_date' => $ this -> date_input ( $ this -> input -> post ( 'f_start_date' ) ) , 'id_country' => $ this -> input -> post ( 'f_id_country' ) , 'employeetype' => $ this -> input -> post ( 'f_emp_status' ) , 'grade' => $ this -> input -> post ( 'f_grade' ) , 'basic_sallary' => $ this -> input -> post ( 'f_basic' ) , 'allowance' => $ this -> input -> post ( 'f_allow' ) , 'payment_method' => $ this -> input -> post ( 'f_payment_method' ) , 'upah' => $ this -> input -> post ( 'f_upah' ) , 'jamsostek' => $ this -> input -> post ( 'f_jamsostek' ) , 'lifeinsurance' => $ this -> input -> post ( 'f_bpjs' ) , 'overtime' => $ this -> input -> post ( 'f_ottj' ) , 'id_region' => $ this -> input -> post ( 'f_id_region' ) , 'kehadiran_pagi' => $ this -> input -> post ( 'pagi' ) , 'kehadiran_malam' => $ this -> input -> post ( 'malam' ) , 'uang_makan' => $ this -> input -> post ( 'f_uang_makan' ) , 'id_position' => $ this -> input -> post ( 'f_emp_position' ) , 'wh' => $ this -> input -> post ( 'f_wh' ) , 'spesifikasi' => $ this -> input -> post ( 'f_spesifikasi' ) , ) ; $ this -> gs -> update ( array ( 'empcode' => $ this -> input -> post ( 'f_empcode_4_update' ) ) , $ data ) ; echo json_encode ( array ( " status " => TRUE ) ) ; }
function untuk update data master Grade Status
function untuk update data master Grade Status
//'empcode' => $this->input->post('f_empcode'), /*'inputdate' => $this->date_input($this->input->post('f_input_date')),
				'inputby' => $this->input->post('f_input_by'),*/ // next features /*'limit_ot' => $this->input->post('f_emp_status'),
				'category' => $this->input->post('f_npwp'),*/