private Boolean tieneViajeProgramado(int idRuta)
{
SqlCommand command = new SqlCommand();
command.Connection = Program.conexion();
command.CommandType = System.Data.CommandType.Text;
command.CommandText = "SELECT ABSTRACCIONX4.TieneViajeProgramado(@IdRuta)";
command.CommandTimeout = 0;
command.Parameters.AddWithValue("@IdRuta", idRuta);
return (Boolean)command.ExecuteScalar();
}