function delete()
 {
     $this->filter_access('Branch', 'roled_delete', 'branches/index');
     $work = new Work();
     $work->_delete($this->work_id);
     redirect('staffs/' . $this->staff_id . '/work_histories/index');
 }