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
909d4b96
Commit
909d4b96
authored
Nov 22, 2021
by
Cesar Giulano Gonzalez Maqueda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
1efb67b8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
3 deletions
+25
-3
curriculumsearch/pom.xml
+20
-0
curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java
+3
-1
curriculumsearch/src/main/webapp/jsp/detallepostulante.jsp
+1
-1
curriculumsearch/src/main/webapp/jsp/postulantes.jsp
+1
-1
No files found.
curriculumsearch/pom.xml
View file @
909d4b96
...
@@ -92,6 +92,26 @@
...
@@ -92,6 +92,26 @@
<scope>
compile
</scope>
<scope>
compile
</scope>
</dependency>
</dependency>
<dependency>
<groupId>
com.itextpdf
</groupId>
<artifactId>
kernel
</artifactId>
<version>
7.1.12
</version>
</dependency>
<dependency>
<groupId>
com.itextpdf
</groupId>
<artifactId>
html2pdf
</artifactId>
<version>
3.0.1
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-thymeleaf -->
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-thymeleaf</artifactId>-->
<!-- <version>2.6.0</version>-->
<!-- </dependency>-->
</dependencies>
</dependencies>
<build>
<build>
...
...
curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java
View file @
909d4b96
...
@@ -41,6 +41,8 @@ import org.springframework.http.HttpHeaders;
...
@@ -41,6 +41,8 @@ import org.springframework.http.HttpHeaders;
import
org.springframework.http.MediaType
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
@Controller
@Controller
...
@@ -91,7 +93,7 @@ public class PostulanteRRHHController {
...
@@ -91,7 +93,7 @@ public class PostulanteRRHHController {
@RequestParam
(
required
=
false
)
Long
convId
,
@RequestParam
(
required
=
false
)
Long
convId
,
@RequestParam
(
defaultValue
=
"0"
)
Integer
nroPagina
@RequestParam
(
defaultValue
=
"0"
)
Integer
nroPagina
)
{
)
{
final
Integer
CANTIDAD_POR_PAGINA
=
10
;
final
Integer
CANTIDAD_POR_PAGINA
=
5
;
Pageable
page
=
PageRequest
.
of
(
nroPagina
,
CANTIDAD_POR_PAGINA
,
Sort
.
by
(
"id"
));
Pageable
page
=
PageRequest
.
of
(
nroPagina
,
CANTIDAD_POR_PAGINA
,
Sort
.
by
(
"id"
));
model
.
addAttribute
(
"tecnologias"
,
tecRepo
.
findAll
());
model
.
addAttribute
(
"tecnologias"
,
tecRepo
.
findAll
());
model
.
addAttribute
(
"disponibilidades"
,
Disponibilidad
.
values
());
model
.
addAttribute
(
"disponibilidades"
,
Disponibilidad
.
values
());
...
...
curriculumsearch/src/main/webapp/jsp/detallepostulante.jsp
View file @
909d4b96
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<h2 class="mb-3" style="text-align: center;">
<h2 class="mb-3" style="text-align: center;">
Detalle Postulante ${postulante.nombre} ${postulante.apellido}
Detalle Postulante ${postulante.nombre} ${postulante.apellido}
</h2>
</h2>
<div class="row gy-3">
<div class="row gy-3
container
">
<div class="col-md-6">
<div class="col-md-6">
<div class="card mb-3">
<div class="card mb-3">
<div class="card-body">
<div class="card-body">
...
...
curriculumsearch/src/main/webapp/jsp/postulantes.jsp
View file @
909d4b96
...
@@ -244,7 +244,7 @@
...
@@ -244,7 +244,7 @@
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)
console.log(location.search)
...
...
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