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
19ea8a2d
Commit
19ea8a2d
authored
Nov 22, 2021
by
Joel Florentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fecha de contratacion postulante
parent
90a127a1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
9 deletions
+16
-9
curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java
+5
-1
curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java
+10
-7
curriculumsearch/src/main/webapp/jsp/postulante-form.jsp
+1
-1
No files found.
curriculumsearch/src/main/java/com/roshka/controller/PostulanteRRHHController.java
View file @
19ea8a2d
...
...
@@ -2,7 +2,7 @@ package com.roshka.controller;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
...
...
@@ -134,6 +134,10 @@ public class PostulanteRRHHController {
//post.setPostulanteEstadoAndComentario(postulante.getEstadoPostulante(),postulante.getComentarioRRHH(), postulante.getId());
Postulante
postulanteVd
=
post
.
getById
(
postulanteId
);
postulanteVd
.
setEstadoPostulante
(
postulante
.
getEstadoPostulante
());
//si se le contrata, actualizar la fecha actual
if
(
postulanteVd
.
getEstadoPostulante
()
==
EstadoPostulante
.
CONTRATADO
){
postulanteVd
.
setFechaContratado
(
new
Date
());
}
postulanteVd
.
setComentarioRRHH
(
postulante
.
getComentarioRRHH
());
post
.
setPostulanteEstadoAndComentario
(
postulante
.
getEstadoPostulante
(),
postulante
.
getComentarioRRHH
(),
postulanteId
);
//post.save(postulanteVd);
...
...
curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java
View file @
19ea8a2d
...
...
@@ -124,11 +124,14 @@ public class Postulante {
@JsonIgnore
private
DBFile
cvFile
;
@Column
(
name
=
"
created_at
"
)
private
Date
createdAt
;
@Column
(
name
=
"
fecha_creacion
"
)
private
Date
fechaCreacion
;
@Column
(
name
=
"updated_at"
)
private
Date
updatedAt
;
@Column
(
name
=
"fecha_actualizacion"
)
private
Date
fechaActualizacion
;
@Column
(
name
=
"fecha_contratado"
)
private
Date
fechaContratado
;
public
void
setFechaNacimiento
(
String
fechaNacimiento
)
{
this
.
fechaNacimiento
=
Helper
.
convertirFecha
(
fechaNacimiento
);
...
...
@@ -136,14 +139,14 @@ public class Postulante {
@PrePersist
public
void
precargarFechas
(){
this
.
createdAt
=
new
Date
();
this
.
updatedAt
=
this
.
createdAt
;
this
.
fechaCreacion
=
new
Date
();
this
.
fechaActualizacion
=
this
.
fechaCreacion
;
this
.
estadoPostulante
=
EstadoPostulante
.
NUEVO
;
this
.
comentarioRRHH
=
null
;
}
@PreUpdate
public
void
actualizarFecha
(){
this
.
updatedAt
=
new
Date
();
this
.
fechaActualizacion
=
new
Date
();
}
...
...
curriculumsearch/src/main/webapp/jsp/postulante-form.jsp
View file @
19ea8a2d
...
...
@@ -152,7 +152,7 @@
<div
class=
"row w-100 gy-2 mx-auto"
>
<div
class=
"col-12 px-0"
>
<h4
class=
"text-start"
>
Cargos
<i
class=
"bi bi-plus-square"
data-bs-toggle=
"modal"
data-bs-target=
"#cargoForm"
></i>
</h4>
<h4
class=
"text-start"
>
Cargos
</h4>
</div>
<div
class=
"col-12"
>
<div
class=
"mt-3 gap-2 row"
id=
"cargos"
>
...
...
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