/**
  * @Author: ANH DUNG Oct 31, 2014
  * @Todo: Aircon Services
  * @Param: $id is transaction_id
  */
 public function actionIndex($id)
 {
     try {
         $model = new ProAirconService();
         $model->unsetAttributes();
         // clear any default values
         if (isset($_GET['ProAirconService'])) {
             $model->attributes = $_GET['ProAirconService'];
         }
         $model->transaction_id = $id;
         $this->render('index', array('model' => $model, 'actions' => $this->listActionsCanAccess));
     } catch (Exception $e) {
         Yii::log("Exception " . print_r($e, true), 'error');
         throw new CHttpException("Exception " . print_r($e, true));
     }
 }
Esempio n. 2
0
 public function actionAirconServices($transaction_id)
 {
     $this->pageTitle = "Aircon Services - " . Yii::app()->params['title'];
     $this->layout = "application.views.layouts.layout_callslog";
     try {
         $model = new ProAirconService();
         $model->unsetAttributes();
         // clear any default values
         if (isset($_GET['ProAirconService'])) {
             $model->attributes = $_GET['ProAirconService'];
         }
         $model->transaction_id = $transaction_id;
         $this->render('airconservices/list', array('model' => $model, 'actions' => $this->listActionsCanAccess));
     } catch (Exception $e) {
         Yii::log("Exception " . print_r($e, true), 'error');
         throw new CHttpException("Exception " . print_r($e, true));
     }
 }