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
0
Merge Requests
0
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
Amparo Oliver
th-app-java
Commits
4af333a4
Commit
4af333a4
authored
Nov 22, 2021
by
Cesar Giulano Gonzalez Maqueda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generacion de PDF por JS-html2pdf(no se puede seleccionar texto)
parent
f24f57f8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java
+16
-1
curriculumsearch/src/main/webapp/jsp/detallepostulante.jsp
+0
-0
curriculumsearch/src/main/webapp/jsp/detallepostulante2.jsp
+0
-0
curriculumsearch/src/main/webapp/jsp/postulantes.jsp
+3
-2
No files found.
curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java
View file @
4af333a4
...
@@ -98,7 +98,11 @@ public class PostulanteRRHHController {
...
@@ -98,7 +98,11 @@ public class PostulanteRRHHController {
model
.
addAttribute
(
"institucionesEducativas"
,
institucionRepository
.
findAll
());
model
.
addAttribute
(
"institucionesEducativas"
,
institucionRepository
.
findAll
());
model
.
addAttribute
(
"estadoP"
,
EstadoPostulante
.
values
());
model
.
addAttribute
(
"estadoP"
,
EstadoPostulante
.
values
());
model
.
addAttribute
(
"convocatoriaC"
,
cargoRepo
.
findAll
());
model
.
addAttribute
(
"convocatoriaC"
,
cargoRepo
.
findAll
());
Page
<
Postulante
>
postulantesPag
=
post
.
postulantesMultiFiltro
(
nombre
==
null
||
nombre
.
trim
().
isEmpty
()
?
new
TypedParameterValue
(
StringType
.
INSTANCE
,
null
)
:
new
TypedParameterValue
(
StringType
.
INSTANCE
,
"%"
+
nombre
+
"%"
),
dispo
,
lvlEng
,
lvlTec
,
tecId
,
instId
,
cargoId
,
page
,
estado
,
convId
);
Page
<
Postulante
>
postulantesPag
=
post
.
postulantesMultiFiltro
(
nombre
==
null
||
nombre
.
trim
().
isEmpty
()
?
new
TypedParameterValue
(
StringType
.
INSTANCE
,
null
)
:
new
TypedParameterValue
(
StringType
.
INSTANCE
,
"%"
+
nombre
+
"%"
),
dispo
,
lvlEng
,
lvlTec
,
tecId
,
instId
,
cargoId
,
page
,
estado
,
convId
);
List
<
Postulante
>
postulantes
=
postulantesPag
.
getContent
();
List
<
Postulante
>
postulantes
=
postulantesPag
.
getContent
();
List
<
PostulanteListaDTO
>
postulantesDTO
=
new
ArrayList
<>();
List
<
PostulanteListaDTO
>
postulantesDTO
=
new
ArrayList
<>();
...
@@ -129,6 +133,17 @@ public class PostulanteRRHHController {
...
@@ -129,6 +133,17 @@ public class PostulanteRRHHController {
return
"detallepostulante"
;
return
"detallepostulante"
;
}
}
// @GetMapping({"/pdfPostulante/{postulanteId}"})
// public String getPostulantePdf(Model model, @PathVariable("postulanteId") Long postulanteId) {
// Postulante p = post.findById(postulanteId).orElse(null);
// model.addAttribute("postulante",p);
// model.addAttribute("cvId", fileRepo.getIdByPostulante(p));
// model.addAttribute("estadoP", EstadoPostulante.values());
// return "detallepostulante2";
//
// }
@PostMapping
({
"/postulantes/{postulanteId}"
})
@PostMapping
({
"/postulantes/{postulanteId}"
})
public
String
setPostulanteEstado
(
@ModelAttribute
Postulante
postulante
,
BindingResult
result
,
@PathVariable
(
"postulanteId"
)
Long
postulanteId
)
{
public
String
setPostulanteEstado
(
@ModelAttribute
Postulante
postulante
,
BindingResult
result
,
@PathVariable
(
"postulanteId"
)
Long
postulanteId
)
{
//post.setPostulanteEstadoAndComentario(postulante.getEstadoPostulante(),postulante.getComentarioRRHH(), postulante.getId());
//post.setPostulanteEstadoAndComentario(postulante.getEstadoPostulante(),postulante.getComentarioRRHH(), postulante.getId());
...
...
curriculumsearch/src/main/webapp/jsp/detallepostulante.jsp
View file @
4af333a4
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/webapp/jsp/detallepostulante2.jsp
View file @
4af333a4
This diff is collapsed.
Click to expand it.
curriculumsearch/src/main/webapp/jsp/postulantes.jsp
View file @
4af333a4
...
@@ -234,12 +234,13 @@
...
@@ -234,12 +234,13 @@
function buscarPagina(nro){
function buscarPagina(nro){
nro--
nro--
const aBuscar = 'nroPagina='+nro
const aBuscar = 'nroPagina='+nro
if(!location.search) location.search =
"?"+
aBuscar
if(!location.search) location.search = aBuscar
const inicial = location.search.search(aBuscar);
const inicial = location.search.search(aBuscar);
if(inicial==-1){//si no se encuentra y hay otros queries
if(inicial==-1){//si no se encuentra y hay otros queries
location.search
= "&"+aBuscar
location.search
+= "&"+aBuscar;
}
}
location.search.replace('nroPagina=',aBuscar)
location.search.replace('nroPagina=',aBuscar)
console.log(location.search)
}
}
const tecId = document.querySelector("#tecId");
const tecId = document.querySelector("#tecId");
const lvlTec = document.querySelector("#lvlTec");
const lvlTec = document.querySelector("#lvlTec");
...
...
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