/**
  * Lista todos los reportes con Historial de Pagos.
  */
 public function actionHistPago()
 {
     $model = new Pago('search');
     $modelDV = new DocumentoForm();
     $resultado = array();
     // Código para redireccionar a ver los *.pdf
     if (isset($_POST['DocumentoForm'])) {
         $modelDV->attributes = $_POST['DocumentoForm'];
         // 1.- Validar rango Fechas
         $fechaIng = Conductor::model()->findByPk($modelDV->nomConductor)->con_fec_ing;
         if (!($b = MensualidadPago::getValidarIntervaloFecha($modelDV->fechaInicio, $modelDV->fechaFin, $fechaIng))) {
             throw new CHttpException(404, 'Rango Fechas No Válido.');
         }
         if ($modelDV->documento == "M") {
             $resultado = Pago::getInformacionMesesPagados($modelDV);
         }
         /*
         elseif ($modelDV->documento == "P")
             $resultado = Pago::getInformacionPublicidadPagada($modelDV);
         elseif ($modelDV->documento == "R")
             $resultado = Pago::getInformacionMesesPagados($modelDV);
         */
         $this->actionViewPagoPdf($resultado, $modelDV);
     }
     $this->render('hist_pago', array('model' => $model, 'modelDV' => $modelDV));
 }