예제 #1
0
 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);
 }
예제 #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);
 }
예제 #4
0
 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;
 }