function setEventosTarifas()
 {
     // print_r($_POST);
     $eventos = new eventosModel();
     $cLibreria = new cLibreria();
     $id_evento = $_POST['id_evento'];
     $tarifa = $_POST['tarifa'];
     $tarifa_tipo_afiliacion = $_POST['tarifa_tipo_afiliacion'];
     $tarifa_tipo_estatus = $_POST['tarifa_tipo_participante'];
     $fecha_vencimiento = $cLibreria->getFechaYMD($_POST['fecha_vencimiento']);
     // $resultFechas=$eventos->getFechasTarifa($_POST['id_evento'],$fecha_vencimiento)
     $resultFechas = $eventos->getFechasTarifa($id_evento, $fecha_vencimiento, $tarifa_tipo_afiliacion, $tarifa_tipo_estatus);
     if (count($resultFechas) == 0) {
         $result = $eventos->setEventosTarifas($id_evento, $tarifa_tipo_afiliacion, $tarifa_tipo_estatus, $tarifa, $fecha_vencimiento);
         if ($result) {
             $respuesta = array('estatus' => 200, 'msg' => "DATOS GUARDADOS CORRECTAMENTE.");
         } else {
             $respuesta = array('estatus' => 500, 'msg' => 'ERROR AL GUARDAR DATOS.');
         }
     } else {
         $respuesta = array('estatus' => 500, 'msg' => 'ERROR AL GUARDAR DATOS <b>HAY FECHAS POSTERIORES</b>.');
     }
     echo json_encode($respuesta);
 }