コード例 #1
0
 public function autosearchexaminationmaterialAction()
 {
     $examinationmaterial = $_POST["queryString"];
     $examinationmaterialModel = new ExaminationmaterialModel();
     $examinationmaterialData = $examinationmaterialModel->fetchAll($examinationmaterialModel->getAllExaminationMaterial($examinationmaterial));
     echo "<ul id='sugs'>";
     foreach ($examinationmaterialData as $row) {
         echo '<li onClick="fill(\'' . $row->idexamination . '\',\'' . $row->cdexamination . '\', \'' . $row->nmexamination . ' / ' . $row->nmmaterial . '\');"><a href="javascript:void(0);">' . $row->nmexamination . ' / ' . $row->nmmaterial . '</a></li>';
     }
     echo "</ul>";
 }
コード例 #2
0
 public function examinationprepmaterialAction()
 {
     $examinationModel = new ExaminationmaterialModel();
     $cdmaterial = $this->_request->getParam("cdmaterial");
     $dataMaterial = $examinationModel->fetchRow($examinationModel->getMaterial($cdmaterial));
     $dsprep = $dataMaterial["dsprep"];
     $this->view->examinationprepmaterial = $dsprep;
 }
コード例 #3
0
 public function saveinterfacingcheckAction()
 {
     $cdexaminationmaterial = $this->_request->getParam('cdexaminationmaterial');
     $checkval = $this->_request->getParam('checkval');
     $examinationmaterialModel = new ExaminationmaterialModel();
     $array = array();
     $array['cdexaminationmaterial'] = $cdexaminationmaterial;
     if ($checkval == 'true') {
         $array['fginterfacing'] = '1';
     } else {
         $array['fginterfacing'] = '2';
     }
     $examinationmaterialModel->getAdapter()->beginTransaction();
     try {
         $examinationmaterialModel->update($array, "cdexaminationmaterial = {$cdexaminationmaterial}");
         $examinationmaterialModel->getAdapter()->commit();
     } catch (Exception $e) {
         $examinationmaterialModel->getAdapter()->rollback();
     }
 }