public function addidelAction()
 {
     $this->getResponse()->setHeader('Content-Type', 'application/json');
     $this->_helper->viewRenderer->setNoRender(true);
     $this->_helper->layout()->disableLayout();
     $id = $this->_getParam('id');
     try {
         Application_Model_M_DepartmentsAdditional::delById($id);
         $out['errno'] = "0";
     } catch (Zend_Db_Exception $e) {
         $out['errno'] = "1";
     }
     Yy_Utils::jsonOut($out);
 }
 public function delete()
 {
     $where = 'id=' . $this->getId();
     return Application_Model_M_DepartmentsAdditional::delete($where);
 }
Beispiel #3
0
 public static function RDelByDepartmentID($did)
 {
     Application_Model_M_Departments::delById($did);
     Application_Model_M_DepartmentsAdditional::delByDid($did);
     Application_Model_M_DepartmentsHospitalMap::delByDid($did);
     Application_Model_M_DepartmentsTravelMap::delByDid($did);
 }
 public function addiimageAction()
 {
     $this->getResponse()->setHeader('Content-Type', 'image/png');
     $this->_helper->layout->disableLayout();
     $this->_helper->viewRenderer->setNoRender(true);
     $id = $this->_getParam('id');
     $img = Application_Model_M_DepartmentsAdditional::getImage($id);
     echo $img;
 }