public function busquedaProyectos(ProyectosDTO $dto, PDO $cnn)
 {
     try {
         $sentencia = $cnn->prepare("Select * from proyectos where idProyecto like '%" . $dto->getIdProyecto() . "%' and nombreProyecto like '%" . $dto->getNombreProyecto() . "%'\n                                and fechaInicio like '%" . $dto->getFechaInicio() . "%' and fechaFin like '%" . $dto->getFechaFin() . "%' and estadoProyecto like '%" . $dto->getEstado() . "%' and ejecutado like '%" . $dto->getEjecucion() . "%' ");
         $sentencia->execute();
         return $sentencia->fetchAll();
     } catch (Exception $ex) {
         $mensaje = $ex->getMessage();
         return $mensaje;
     }
     $cnn = NULL;
 }
 public function crearProyecto(ProyectosDTO $proyectoDTO, PDO $cnn)
 {
     $mensaje = "";
     try {
         $sentencia = $cnn->prepare("INSERT INTO proyectos VALUES(?,?,?,?,?,0,?)");
         $sentencia->bindParam(1, $proyectoDTO->getIdProyecto());
         $sentencia->bindParam(2, $proyectoDTO->getNombreProyecto());
         $sentencia->bindParam(3, $proyectoDTO->getFechaInicio());
         $sentencia->bindParam(4, $proyectoDTO->getFechaFin());
         $sentencia->bindParam(5, $proyectoDTO->getEstado());
         $sentencia->bindParam(6, $proyectoDTO->getObservaciones());
         $sentencia->execute();
         $mensaje = "Proyecto Creado con Éxito";
         return $mensaje;
     } catch (Exception $ex) {
         return $ex->getMessage();
     }
     $cnn = NULL;
 }