Esempio n. 1
0
 public function editmultipriorajaxAction()
 {
     try {
         $request = $this->getRequest();
         if ($this->getRequest()->isPost()) {
             $mapper = new Gyuser_Model_PriorOperationsDataMapper();
             $Obj = new Gyuser_Model_PriorOperations();
             $Obj->setClient_id($request->client_id);
             $Obj->setMulti_prior_json($request->multi_prior_json);
             $this->_helper->layout->disableLayout();
             $this->_helper->viewRenderer->setNoRender();
             $result = $mapper->EditMultiPriorByClientId($Obj);
             $result = json_encode($result);
             if ($result) {
                 echo $result;
             } else {
                 echo "f";
             }
         }
     } catch (Exception $e) {
         echo $e;
     }
 }