20.01.2013 Views

View - Tesis Electrónicas Universidad de Chile

View - Tesis Electrónicas Universidad de Chile

View - Tesis Electrónicas Universidad de Chile

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

System.out.println("Paso 2386");<br />

String a= "INSERT INTO `asignacion` VALUES ('"+<br />

this.Codireq +"', '"+ this.Codicl +"','"+ this.Codires1 +"','"+ this.Codires2 +"','"+<br />

this.Codires3 +"')";<br />

System.out.println("Paso 2387");<br />

String b= "INSERT INTO `requerimiento` VALUES ('"+<br />

this.Codireq +"','"+ this.NombreR +"','"+ this.Descripcion +"', '"+ this.Tipo1 +"', '"+<br />

this.Tipo2 +"', '"+ this.Tiemporesp +"','"+ this.Estado +"')";<br />

System.out.println("Paso 2388");<br />

statement.executeUpdate(a);<br />

System.out.println("Paso 2389");<br />

statement.executeUpdate(b);<br />

System.out.println("Requerimiento registrado en Base <strong>de</strong> Datos");<br />

statement.close();<br />

}<br />

}<br />

catch (Exception e) {<br />

e.printStackTrace();<br />

}<br />

private boolean ValidaRut() {<br />

// Se asume que es correcto para efectos <strong>de</strong>l prototipo.<br />

}<br />

boolean respuesta = true;<br />

return respuesta;<br />

public boolean ValidaUsuario(Connection conexion) {<br />

System.out.println("paso 10");<br />

String codcli = this.Codigo;<br />

String codbd = null;<br />

String Contracli = this.Contrasena;<br />

String Contrabd = null;<br />

//<br />

if (this.ValidaRut()) {<br />

//BUSCAMOS EN BASE DE DATOS LA INFO DEL CLIENTE.<br />

201

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!