Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
th-app-java
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oscar Enrique Gonzalez Escurra
th-app-java
Commits
d7dffc3d
Commit
d7dffc3d
authored
3 years ago
by
Cesar Giulano Gonzalez Maqueda
Browse files
Options
Browse Files
Download
Plain Diff
Merge con joaquin
parents
84b0c84e
202af5f6
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
138 additions
and
5 deletions
+138
-5
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
+9
-2
curriculumsearch/src/main/java/com/roshka/controller/TecnologiaController.java
+1
-1
curriculumsearch/src/main/java/com/roshka/modelo/Departamento.java
+1
-0
curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteRepository.java
+4
-1
curriculumsearch/src/main/webapp/jsp/detallepostulante.jsp
+76
-0
curriculumsearch/src/main/webapp/jsp/index.jsp
+1
-1
curriculumsearch/src/main/webapp/jsp/listapostulantes.jsp
+45
-0
curriculumsearch/src/main/webapp/jsp/postulantes.jsp
+1
-0
No files found.
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
View file @
d7dffc3d
...
...
@@ -5,6 +5,7 @@ import java.util.ArrayList;
import
java.util.List
;
import
java.util.Locale
;
import
javax.validation.ConstraintViolationException
;
import
com.roshka.DTO.PostulanteListaDTO
;
...
...
@@ -164,5 +165,11 @@ public class PostulanteController {
}
@GetMapping
({
"/postulante/{postulanteId}"
})
public
String
getPostulanteDetalle
(
Model
model
,
@PathVariable
(
"postulanteId"
)
Long
postulanteId
)
{
Postulante
p
=
post
.
findById
(
postulanteId
).
orElse
(
null
);
model
.
addAttribute
(
"postulante"
,
p
);
return
"detallepostulante"
;
}
}
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/java/com/roshka/controller/TecnologiaController.java
View file @
d7dffc3d
...
...
@@ -50,7 +50,7 @@ public String addtecnologiaView(Model model,@PathVariable(required = false) Long
if
(
id
!=
null
)
tecnologia
.
setId
(
id
);
tecRepo
.
save
(
tecnologia
);
System
.
out
.
println
(
tecnologia
.
getNombre
());
return
"redirect:/"
;
return
"redirect:/
tecnologias
"
;
}
...
...
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/java/com/roshka/modelo/Departamento.java
View file @
d7dffc3d
...
...
@@ -16,6 +16,7 @@ import com.fasterxml.jackson.annotation.JsonManagedReference;
public
class
Departamento
{
@Id
private
Long
id
;
@Column
(
name
=
"nombre"
)
private
String
nombre
;
...
...
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/java/com/roshka/repositorio/PostulanteRepository.java
View file @
d7dffc3d
...
...
@@ -12,7 +12,7 @@ import com.roshka.modelo.Postulante;
public
interface
PostulanteRepository
extends
JpaRepository
<
Postulante
,
Long
>
{
@Query
(
"select p from Postulante p join p.estudios e on e.institucion LIKE %?1%"
)
@Query
(
"select p from Postulante p join p.estudios e on e.institucion
.nombre
LIKE %?1%"
)
public
List
<
Postulante
>
findByInstitucionEstudio
(
String
institucion
);
@Query
(
"select p from Postulante p "
+
...
...
@@ -33,11 +33,13 @@ public interface PostulanteRepository extends JpaRepository<Postulante,Long> {
"having sum(fecha_hasta-fecha_desde)>?1 * INTERVAL '1' month"
,
nativeQuery
=
true
)
public
List
<
Postulante
>
personasConExperienciaMayor
(
long
meses
);
@Query
(
"select pos from Postulante pos join PostulanteTecnologia pt on pt.postulante.id=pos.id "
+
"join Tecnologia tec on pt.tecnologia.id=tec.id "
+
"where tec.nombre=?1 and pt.nivel=?2"
)
public
List
<
Postulante
>
findByPostulanteTecnologiaM
(
String
tecno
,
long
idt
);
@Query
(
value
=
"select DISTINCT p "
+
"from Postulante p join p.experiencias x "
+
"join p.estudios e "
+
...
...
@@ -49,4 +51,5 @@ public interface PostulanteRepository extends JpaRepository<Postulante,Long> {
"and (pt.tecnologia.id = ?5 or ?5 is null) "
+
" and (e.institucion.id = ?6 or ?6 is null ) "
)
public
List
<
Postulante
>
postulantesMultiFiltro
(
TypedParameterValue
nombre
,
Disponibilidad
disponibilidad
,
Long
nivelInges
,
Long
nivel
,
Long
tecnoId
,
Long
instId
);
}
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/webapp/jsp/detallepostulante.jsp
0 → 100644
View file @
d7dffc3d
<
%@
page
contentType=
"text/html;charset=UTF-8"
language=
"java"
%
>
<
%@
taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%
>
<
%@
taglib
prefix=
"form"
uri=
"http://www.springframework.org/tags/form"
%
>
<html>
<head>
</head>
<body>
<h2
style=
"text-align: center;"
>
DETALLE POSTULANTE
</h2>
<div
style=
"padding: 10px;margin: 3px;border: 1px solid black;"
>
<br><label>
INFORMACION GENERAL
</label><br>
<label>
Id: ${postulante.id}
</label><br>
<label>
Nombre: ${postulante.nombre}
</label><br>
<label>
Apellido ${postulante.apellido}
</label><br>
<label>
Tipo de documento: ${postulante.tipoDocumento}
</label><br>
<label>
Cedula: ${postulante.ci}
</label><br>
<label>
Correo: ${postulante.correo}
</label><br>
<label>
Departamento: ${postulante.getCiudad().getDepartamento().getNombre()}
</label><br>
<label>
Ciudad: ${postulante.getCiudad().getNombre()}
</label><br>
<label>
Telefono: ${postulante.telefono}
</label><br><label>
<label>
Fecha de nacimiento: ${postulante.fechaNacimiento}
</label><br>
<label>
Resumen: ${postulante.resumen}
</label><br>
<label>
Nivel de ingles: ${postulante.nivelIngles}
</label><br>
<label>
Curriculum: ${postulante.curriculum}
</label><br>
<label>
Estado civil: ${postulante.estadoCivil}
</label><br>
<label>
Nacionalidad: ${postulante.nacionalidad}
</label><br>
<label>
Disponibilidad: ${postulante.disponibilidad}
</label><br>
<br><label>
TECNOLOGIAS
</label><br>
<c:forEach
items=
"${postulante.tecnologias}"
var=
"detalle_tecnologia"
>
<label>
Tecnologias: ${detalle_tecnologia.getTecnologia().getNombre()} -
</label>
<label>
Nivel de Tecnologia: ${detalle_tecnologia.getNivel()}
</label><br>
</c:forEach>
<br><label>
EXPERIENCIAS
</label><br>
<c:forEach
items=
"${postulante.experiencias}"
var=
"detalle_experiencia"
>
<label>
Institucion: ${detalle_experiencia.getInstitucion()}
</label><br>
<label>
Fecha Inicio: ${detalle_experiencia.getFechaDesde()}
</label><br>
<label>
Fecha Fin: ${detalle_experiencia.getFechaHasta()}
</label><br>
<label>
Referencia: ${detalle_experiencia.getNombreReferencia()}
</label><br>
<label>
Telefono de la referencia: ${detalle_experiencia.getTelefonoReferencia()}
</label><br>
<label>
Cargo: ${detalle_experiencia.getCargo()}
</label><br>
<label>
Motivo de salida: ${detalle_experiencia.getMotivoSalida()}
</label><br>
</c:forEach>
<br><label>
ESTUDIOS
</label><br>
<c:forEach
items=
"${postulante.estudios}"
var=
"detalle_estudios"
>
<label>
Institucion: ${detalle_estudios.getInstitucion().getNombre()}
</label><br>
<label>
SubNombre: ${detalle_estudios.getInstitucion().getSubNombre()}
</label><br>
<label>
Tipo de estudio: ${detalle_estudios.getTipoDeEstudio()}
</label><br>
<label>
Tema de estudio: ${detalle_estudios.getTemaDeEstudio()}
</label><br>
<label>
Fecha Inicio: ${detalle_estudios.getFechaDesde()}
</label><br>
<label>
Fecha Fin: ${detalle_estudios.getFechaHasta()}
</label><br>
<label>
Estado: ${detalle_estudios.getEstado()}
</label><br>
</c:forEach>
<br><label>
REFERENCIA PERSONAL
</label><br>
<c:forEach
items=
"${postulante.referencias}"
var=
"detalle_referencias"
>
<label>
Nombre: ${detalle_referencias.getNombre()}
</label>
<label>
Relacion: ${detalle_referencias.getRelacion()}
</label><br>
<label>
Telefono: ${detalle_referencias.getTelefono()}
</label><br>
</c:forEach>
</div>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/webapp/jsp/index.jsp
View file @
d7dffc3d
...
...
@@ -18,7 +18,7 @@
<jsp:include
page=
"alerts.jsp"
/>
<a
href=
"postulante"
>
Form postulante
</a>
<a
href=
"postulantes"
>
Lista de postulantes
</a>
<a
href=
"
#
"
>
Tecnologias
</a>
<a
href=
"
/tecnologias
"
>
Tecnologias
</a>
<a
href=
"convocatorias"
>
Lista de convocatorias
</a>
<a
href=
"cargos"
>
Lista de cargos
</a>
</div>
...
...
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/webapp/jsp/listapostulantes.jsp
0 → 100644
View file @
d7dffc3d
<
%@
page
contentType=
"text/html;charset=UTF-8"
language=
"java"
%
>
<
%@
taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%
>
<
%@
taglib
prefix=
"form"
uri=
"http://www.springframework.org/tags/form"
%
>
<html>
<head>
</head>
<body>
<div>
${postulante.id}
<br>
${postulante.nombre}
<br>
${postulante.apellido}
<br>
${postulante.ci}
<br>
${postulante.correo}
<br>
${postulante.ciudadId}
<br>
${postulante.telefono}
<br>
${postulante.fechaNacimiento}
<br>
${postulante.resumen}
<br>
${postulante.nivelIngles}
<br>
${postulante.curriculum}
<br>
${postulante.estadoCivil}
<br>
${postulante.nacionalidad}
<br>
${postulante.tipoDocumento}
<br>
${postulante.disponibilidad}
<br><br><br>
${postulante.getCiudad().getNombre()}
<br>
<c:forEach
items=
"${postulante.tecnologias}"
var=
"detalle_tecnologia"
>
${detalle_tecnologia.getTecnologia().getNombre()}
</c:forEach>
</div>
</body>
</html>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/webapp/jsp/postulantes.jsp
View file @
d7dffc3d
...
...
@@ -88,6 +88,7 @@
${detalle_tecnologia.getTecnologia().getNombre()}${not staTec.last ? "," : ""}
</c:forEach>
</td>
<td><a
href=
"/postulante/${postulante.id}"
>
Ver
</a></td>
</tr>
</c:forEach>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment