public function actionGeneratePdf()
 {
     $session = new CHttpSession();
     $session->open();
     if (isset($session['ReporteGeneral_model_search'])) {
         $model = $session['ReporteGeneral_model_search'];
         $model = ReporteGeneral::model()->findAll($model->search()->criteria);
     } else {
         $model = ReporteGeneral::model()->findAll();
     }
     $this->toExcel($model, array('id', 'fecha_ingreso', 'celular', 'compania', 'monto', 'fecha_atencion', 'nombre_operador', 'nombre_cliente', 'nombre', 'ciudad_local', 'estado', 'tiempo_respuesta', 'nombre_operador', 'nombre_cliente', 'nombre_empleado', '', ''), date('Y-m-d-H-i-s'), array(), 'PDF');
 }
Example #2
0
 public function actionVerListasOperador()
 {
     $model_reporte = new ReporteGeneral("search");
     $model_reporte->unsetAttributes();
     if (isset($_GET['ReporteGeneral'])) {
         $model_reporte->setAttributes($_GET['ReporteGeneral']);
     }
     $this->render('verAtencionesOperador', array('dataProvider' => $model_reporte));
 }