public function viewGetChucVuCongDoanName($id)
 {
     if ($id) {
         $chucvucongdoanModel = new Front_Model_ChucVuCongDoan();
         $chucvu = $chucvucongdoanModel->fetchRow('cvcdoan_id=' . $id . ' and cvcdoan_status=1');
         if ($chucvu) {
             return $chucvu->cvcdoan_name;
         }
         return '';
     }
     return '';
 }
 public function deleteAction()
 {
     $layoutPath = APPLICATION_PATH . '/templates/' . TEMPLATE_USED;
     $option = array('layout' => 'hethong/layout', 'layoutPath' => $layoutPath);
     Zend_Layout::startMvc($option);
     $translate = Zend_Registry::get('Zend_Translate');
     $this->view->title = 'Quản lý chức vụ công đoàn - ' . $translate->_('TEXT_DEFAULT_TITLE');
     $this->view->headTitle($this->view->title);
     $id = $this->_getParam('id', 0);
     $chucvuModel = new Front_Model_ChucVuCongDoan();
     $error_message = array();
     $cvcdoan_info = $chucvuModel->fetchRow('cvcdoan_id=' . $id);
     if (!$cvcdoan_info) {
         $error_message[] = 'Không tìm thấy thông tin.';
     }
     if ($this->_request->isPost()) {
         $del = $this->getRequest()->getPost('del');
         if ($del == 'Yes') {
             $id = $this->getRequest()->getPost('id');
             $chucvuModel->delete('cvcdoan_id=' . $id);
         }
         $this->_redirect('hethong/chucvucongdoan/index/page/' . $this->_page);
     }
     $this->view->cvcdoan_info = $cvcdoan_info;
     $this->view->error_message = $error_message;
 }