Examples of Jugador


Examples of GestorJugadores.Jugador

                    " INNER JOIN Equipo equipillo" +
                    " ON equipillo.IdEquipo = jueg.IdEquipo"+
                    " where equipillo.Categoria ='" + e.getCategoria() +"')"+
                     ";";
          
            Jugador part;
            ArrayList<Jugador> APart = new ArrayList<Jugador>();
            boolean datos= false;

            try {
                ConexionBD.getInstancia().conectar();
                ResultSet tabla = ConexionBD.getInstancia().consultar(consulta2);
               
                while (tabla.next()) { // Si devuelve false es que la búsqueda es vacía,
                    datos = true;
                    part = new Jugador(tabla.getString("Nombre"), tabla.getString("Apellidos"),
                            tabla.getString("Sexo").charAt(0), tabla.getDate("Nacimiento"),
                            tabla.getString("Talla"), tabla.getString("Tutor"), tabla.getString("Correo"),
                            tabla.getString("NumCuenta"), tabla.getInt("Telefono"),
                            tabla.getString("Observaciones"),
                            tabla.getString("FormaPago").charAt(0),
                            null);
                    part.setIdJugador(tabla.getInt("IdJugador"));

                    APart.add( (part) );
                }
               
                if(!datos){
                   
                    ConexionBD.getInstancia().conectar();
                    tabla = ConexionBD.getInstancia().consultar(consulta1);

                    while (tabla.next()) { // Si devuelve false es que la búsqueda es vacía,
                        datos = true;
                        part = new Jugador(tabla.getString("Nombre"), tabla.getString("Apellidos"),
                                tabla.getString("Sexo").charAt(0), tabla.getDate("Nacimiento"),
                                tabla.getString("Talla"), tabla.getString("Tutor"), tabla.getString("Correo"),
                                tabla.getString("NumCuenta"), tabla.getInt("Telefono"),
                                tabla.getString("Observaciones"),
                                tabla.getString("FormaPago").charAt(0),
                                null);
                        part.setIdJugador(tabla.getInt("IdJugador"));
                        APart.add(part );
                    }
                }
    
                ConexionBD.getInstancia().desconectar();
View Full Code Here

Examples of GestorJugadores.Jugador

                ResultSet tabla = ConexionBD.getInstancia().consultar(consulta);
     
                while (tabla.next()) { // Si devuelve false es que la búsqueda es vacía,
                    datos = true;
                    //Creamos el objetos Jugador
                    Jugador aux = JugadorBD.getInstancia().getJugador(tabla.getInt("idJugador")) ;
                    part = new Juega(         tabla.getInt("IdJuega"),   
                                                  tabla.getInt("Dorsal"),
                                                  equip,
                                                   aux);  
                    APart.add(new Juega(part) );
View Full Code Here

Examples of GestorJugadores.Jugador

        
        public void add_Jugador_Equipo(int dorsal, int pos_jug){
            
            Equipo equi = equipos.get(equipoActivo);
          
            Jugador juga = jug_libres.get(pos_jug);

            Juega  jueg = new Juega(dorsal, equi, juga);
                  
            if(EquipoBD.getIntance().addJuega(jueg) != null){
                jug_asignados.add(jueg);
View Full Code Here

Examples of GestorJugadores.Jugador

     * @param Datos Vector de String
     * @return true si todo se hizo con éxito o false si hubo error bien sea
     * en la validación de datos, bien en el acceso a la Base de Datos.
     */
    public Boolean addJugador(String [] Datos){
        Jugador jug;
        //String [] Datos=InterfazJugador.getInstancia().cargarDatosFormulario();
       
        if ((jug=VerificarDatosCorrectosJugador(Datos))!=null){ // Datos correctos
            // Jugador válido, preparar la lista
            jugadores=new Jugador[1];
View Full Code Here

Examples of GestorJugadores.Jugador

     * @param Datos Vector de String
     * @return true si todo se hizo con éxito o false si hubo error bien sea
     * en la validación de datos, bien en el acceso a la Base de Datos.
     */
    public Boolean updateJugador(String [] Datos){
        Jugador jug;
        //String [] Datos=InterfazJugador.getInstancia().cargarDatosFormulario();
       
        if ((jug=VerificarDatosCorrectosJugador(Datos))!=null){ // Datos correctos
            // Se completa el nuevo Jugador jug con idJugador
            jug.setIdJugador(jugadores[jugadorActivo].getIdJugador());
            // Enviar a la BD
            if (JugadorBD.getInstancia().updateJugador(jug)){
                // Modificado con éxito
                jugadores[jugadorActivo]=jug;
                InterfazJugador.getInstancia().mostrarMensaje("Jugador modificado con éxito","OK", 1);
View Full Code Here

Examples of GestorJugadores.Jugador

       
        error = (nombre || apellidos || sexo || fecha || talla || tutor || correo || numcuenta || telefono || estadob || formapago);
        if (error){
            InterfazJugador.getInstancia().marcarErrores(nombre, apellidos, sexo, fecha, talla, tutor, correo, numcuenta, telefono, estadob, formapago);
        } else {
            return new Jugador(Datos[0], Datos[1], Datos[2].charAt(0), fechan, Datos[4], Datos[5], Datos[6], Datos[7], tel, Datos[10],Datos[11].charAt(0), estadoc );
        }
        return null;
    }
View Full Code Here

Examples of GestorJugadores.Jugador

                try {
                ConexionBD.getInstancia().conectar();
                ResultSet tabla = ConexionBD.getInstancia().consultar(consulta);
               
                Cuota cuot=null;
                Jugador jug=null;
                while (tabla.next()) { // Si devuelve false es que la búsqueda es vacía, 
                       
                         cuot = CuotaBD.getInstancia().getCuota(tabla.getInt("IdCuota")) ;
                         jug = JugadorBD.getInstancia().getJugador(idJug);
View Full Code Here

Examples of GestorJugadores.Jugador

            +" AND pag.Mes = '" +mes + "' "
            +" );";
               
                //System.out.println(consulta);
               
            Jugador part;  
            ArrayList<Jugador> APart = new ArrayList<Jugador>();
            try {
                ConexionBD.getInstancia().conectar();
                ResultSet tabla = ConexionBD.getInstancia().consultar(consulta);
               
                while (tabla.next()) { // Si devuelve false es que la búsqueda es vacía,
                    part = new Jugador(tabla.getString("Nombre"), tabla.getString("Apellidos"),
                            tabla.getString("Sexo").charAt(0), tabla.getDate("Nacimiento"),
                            tabla.getString("Talla"), tabla.getString("Tutor"), tabla.getString("Correo"),
                            tabla.getString("NumCuenta"), tabla.getInt("Telefono"),
                            tabla.getString("Observaciones"),
                            tabla.getString("FormaPago").charAt(0),
                            null);
                    part.setIdJugador(tabla.getInt("IdJugador"));

                    APart.add( (part) );
                }
               
    
View Full Code Here

Examples of GestorJugadores.Jugador

    +" where cuot.Temporada = '" +  temporada + "'"
    +" AND pag.Mes = '" +mes + "' "
    +" );";
           
            //hay que crear los objetos jugador
            Jugador part;  
            ArrayList<Jugador> APart = new ArrayList<Jugador>();
            try {
                ConexionBD.getInstancia().conectar();
                ResultSet tabla = ConexionBD.getInstancia().consultar(consulta);
               
                while (tabla.next()) { // Si devuelve false es que la búsqueda es vacía,
                    part = new Jugador(tabla.getString("Nombre"), tabla.getString("Apellidos"),
                            tabla.getString("Sexo").charAt(0), tabla.getDate("Nacimiento"),
                            tabla.getString("Talla"), tabla.getString("Tutor"), tabla.getString("Correo"),
                            tabla.getString("NumCuenta"), tabla.getInt("Telefono"),
                            tabla.getString("Observaciones"),
                            tabla.getString("FormaPago").charAt(0),
                            null);
                    part.setIdJugador(tabla.getInt("IdJugador"));

                    APart.add( (part) );
                }
               
    
View Full Code Here

Examples of cl.rivendel.modelo.Jugador

    btnNuevo.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent arg0) {
        if (!txfJugador.getText().isEmpty()) {

          Jugador jugador = new Jugador();

          jugador.setNombre(txfJugador.getText());

          addJugador(jugador);

        }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.