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
81f5c43c
Commit
81f5c43c
authored
Nov 09, 2021
by
Cesar Giulano Gonzalez Maqueda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'William_001' of
https://phoebe.roshka.com/gitlab/hshah/TalentoHumano
into giuli_001
parents
d7dffc3d
7c5d55bc
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
102 additions
and
36 deletions
+102
-36
curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java
+11
-11
curriculumsearch/src/main/java/com/roshka/modelo/TipoDocumento.java
+27
-0
curriculumsearch/src/main/java/com/roshka/modelo/TipoDocumentoConverter.java
+31
-0
curriculumsearch/src/main/resources/json/postulante.json
+14
-14
curriculumsearch/src/main/resources/static/main.js
+9
-2
curriculumsearch/src/main/webapp/jsp/postulante-form.jsp
+10
-9
No files found.
curriculumsearch/src/main/java/com/roshka/modelo/Postulante.java
View file @
81f5c43c
...
...
@@ -30,10 +30,10 @@ public class Postulante {
@Size
(
max
=
255
)
private
String
apellido
;
@Column
(
name
=
"
ci
"
)
@Column
(
name
=
"
nro_document
"
)
@NotBlank
(
message
=
"Este campo no puede estar vacio"
)
@Size
(
max
=
120
)
private
String
ci
;
private
String
nroDocument
;
@Column
(
name
=
"correo"
)
@NotBlank
(
message
=
"Este campo no puede estar vacio"
)
...
...
@@ -74,9 +74,9 @@ public class Postulante {
@NotNull
private
Nacionalidad
nacionalidad
;
@Column
(
name
=
"tipo_documento"
,
length
=
2
)
@Not
Blank
(
message
=
"este campo debe estar completo"
)
private
String
tipoDocumento
;
@Column
(
name
=
"tipo_documento"
,
length
=
3
)
@Not
Null
private
TipoDocumento
tipoDocumento
;
@Column
(
name
=
"disponibilidad"
,
length
=
2
)
...
...
@@ -131,12 +131,12 @@ public class Postulante {
this
.
apellido
=
apellido
;
}
public
String
get
Ci
()
{
return
ci
;
public
String
get
nroDocument
()
{
return
nroDocument
;
}
public
void
set
Ci
(
String
ci
)
{
this
.
ci
=
ci
;
public
void
set
nroDocument
(
String
nroDocument
)
{
this
.
nroDocument
=
nroDocument
;
}
public
String
getCorreo
()
{
...
...
@@ -215,13 +215,13 @@ public class Postulante {
public
void
setEstadoCivil
(
EstadoCivil
estadoCivil
)
{
this
.
estadoCivil
=
estadoCivil
;
}
public
void
setTipoDocumento
(
String
tipoDocumento
)
{
public
void
setTipoDocumento
(
TipoDocumento
tipoDocumento
)
{
this
.
tipoDocumento
=
tipoDocumento
;
}
public
EstadoCivil
getEstadoCivil
()
{
return
estadoCivil
;
}
public
String
getTipoDocumento
()
{
public
TipoDocumento
getTipoDocumento
()
{
return
tipoDocumento
;
}
public
Nacionalidad
getNacionalidad
()
{
...
...
curriculumsearch/src/main/java/com/roshka/modelo/TipoDocumento.java
0 → 100644
View file @
81f5c43c
package
com
.
roshka
.
modelo
;
import
com.fasterxml.jackson.annotation.JsonValue
;
public
enum
TipoDocumento
{
CI
(
"CI"
,
"Cedula de identidad"
),
DNI
(
"PAS"
,
"Pasaporte"
),
Otro
(
"Otro"
,
"Otro"
);
private
String
code
;
private
String
descripcion
;
private
TipoDocumento
(
String
code
,
String
descripcion
)
{
this
.
code
=
code
;
this
.
descripcion
=
descripcion
;
}
public
void
setDescripcion
(
String
descripcion
){
this
.
descripcion
=
descripcion
;
}
@JsonValue
public
String
getCode
()
{
return
code
;
}
public
String
getDescripcion
()
{
return
descripcion
;
}
}
curriculumsearch/src/main/java/com/roshka/modelo/TipoDocumentoConverter.java
0 → 100644
View file @
81f5c43c
package
com
.
roshka
.
modelo
;
import
java.util.Arrays
;
import
javax.persistence.AttributeConverter
;
import
javax.persistence.Converter
;
@Converter
(
autoApply
=
true
)
public
class
TipoDocumentoConverter
implements
AttributeConverter
<
TipoDocumento
,
String
>
{
@Override
public
String
convertToDatabaseColumn
(
TipoDocumento
modalidad
)
{
if
(
modalidad
==
null
)
{
return
null
;
}
return
modalidad
.
getCode
();
}
@Override
public
TipoDocumento
convertToEntityAttribute
(
String
code
)
{
if
(
code
==
null
)
{
return
null
;
}
return
Arrays
.
stream
(
TipoDocumento
.
values
())
.
filter
(
c
->
c
.
getCode
().
equals
(
code
))
.
findFirst
()
.
orElseThrow
(
IllegalArgumentException:
:
new
);
}
}
curriculumsearch/src/main/resources/json/postulante.json
View file @
81f5c43c
...
...
@@ -3,11 +3,11 @@
"resumen"
:
"In irure aliquip qui cillum veniam sint amet amet sint ex proident anim mollit."
,
"nacionalidad"
:
"Paraguayo"
,
"estadoCivil"
:
"Soltero"
,
"tipoDocumento"
:
"
ci
"
,
"tipoDocumento"
:
"
CI
"
,
"nombre"
:
"Taylor"
,
"apellido"
:
"Obrien"
,
"correo"
:
"gladysalexander@dadabase.com"
,
"
ci
"
:
5821432
,
"
nroDocument
"
:
5821432
,
"ciudadId"
:
238
,
"telefono"
:
"(950) 417-3681"
,
"fechaNacimiento"
:
"2021-08-16"
,
...
...
@@ -61,11 +61,11 @@
"resumen"
:
"Do nostrud aliqua adipisicing in sunt aute id do elit ut dolor ad aliquip."
,
"nacionalidad"
:
"Paraguayo"
,
"estadoCivil"
:
"Soltero"
,
"tipoDocumento"
:
"
ci
"
,
"tipoDocumento"
:
"
CI
"
,
"nombre"
:
"Hopkins"
,
"apellido"
:
"Parks"
,
"correo"
:
"grahamgriffith@zilidium.com"
,
"
ci
"
:
4213361
,
"
nroDocument
"
:
4213361
,
"ciudadId"
:
96
,
"telefono"
:
"(866) 560-2541"
,
"fechaNacimiento"
:
"2021-09-04"
,
...
...
@@ -107,11 +107,11 @@
"resumen"
:
"Occaecat non cupidatat amet reprehenderit consectetur ullamco et."
,
"nacionalidad"
:
"Paraguayo"
,
"estadoCivil"
:
"Soltero"
,
"tipoDocumento"
:
"
ci
"
,
"tipoDocumento"
:
"
CI
"
,
"nombre"
:
"Alejandra"
,
"apellido"
:
"Riggs"
,
"correo"
:
"ruthrobertson@homelux.com"
,
"
ci
"
:
4605787
,
"
nroDocument
"
:
4605787
,
"ciudadId"
:
30
,
"telefono"
:
"(876) 580-2411"
,
"fechaNacimiento"
:
"2021-01-28"
,
...
...
@@ -153,11 +153,11 @@
"resumen"
:
"Qui ullamco excepteur velit ad ullamco id id nisi irure dolore cupidatat mollit ullamco veniam."
,
"nacionalidad"
:
"Paraguayo"
,
"estadoCivil"
:
"Soltero"
,
"tipoDocumento"
:
"
ci
"
,
"tipoDocumento"
:
"
CI
"
,
"nombre"
:
"Angelina"
,
"apellido"
:
"Wallace"
,
"correo"
:
"christiwalls@capscreen.com"
,
"
ci
"
:
4591352
,
"
nroDocument
"
:
4591352
,
"ciudadId"
:
65
,
"telefono"
:
"(931) 499-3122"
,
"fechaNacimiento"
:
"2021-06-05"
,
...
...
@@ -199,11 +199,11 @@
"resumen"
:
"Deserunt tempor ut et eiusmod et labore Lorem."
,
"nacionalidad"
:
"Paraguayo"
,
"estadoCivil"
:
"Soltero"
,
"tipoDocumento"
:
"
ci
"
,
"tipoDocumento"
:
"
CI
"
,
"nombre"
:
"Rivas"
,
"apellido"
:
"Owens"
,
"correo"
:
"shirleyguzman@equitox.com"
,
"
ci
"
:
3969318
,
"
nroDocument
"
:
3969318
,
"ciudadId"
:
143
,
"telefono"
:
"(972) 524-2610"
,
"fechaNacimiento"
:
"2021-09-09"
,
...
...
@@ -245,11 +245,11 @@
"resumen"
:
"Aliqua est adipisicing do exercitation sit laborum aliquip aliqua adipisicing enim aute."
,
"nacionalidad"
:
"Paraguayo"
,
"estadoCivil"
:
"Soltero"
,
"tipoDocumento"
:
"ci
"
,
"tipoDocumento"
:
"CI
"
,
"nombre"
:
"Estelle"
,
"apellido"
:
"Gamble"
,
"correo"
:
"mclaughlinpate@enomen.com"
,
"
ci
"
:
2329745
,
"
nroDocument
"
:
2329745
,
"ciudadId"
:
248
,
"telefono"
:
"(933) 501-3525"
,
"fechaNacimiento"
:
"2021-03-24"
,
...
...
@@ -291,11 +291,11 @@
"resumen"
:
"Officia eiusmod ut reprehenderit tempor consequat elit amet ex voluptate aute anim do."
,
"nacionalidad"
:
"Paraguayo"
,
"estadoCivil"
:
"Soltero"
,
"tipoDocumento"
:
"
ci
"
,
"tipoDocumento"
:
"
CI
"
,
"nombre"
:
"Mariana"
,
"apellido"
:
"Ratliff"
,
"correo"
:
"loramiddleton@musanpoly.com"
,
"
ci
"
:
4519594
,
"
nroDocument
"
:
4519594
,
"ciudadId"
:
104
,
"telefono"
:
"(817) 492-2493"
,
"fechaNacimiento"
:
"2021-07-30"
,
...
...
curriculumsearch/src/main/resources/static/main.js
View file @
81f5c43c
...
...
@@ -26,7 +26,14 @@ const formValidator = function () {
},
false
)
})
}
function
carg
(
elemento
)
{
var
element
=
document
.
getElementById
(
'descripcion'
);
if
(
elemento
==
"otro"
){
element
.
style
.
display
=
'block'
;
}
else
{
element
.
style
.
display
=
'none'
;
}
}
function
agregarFieldExpierncia
(
event
){
//recoger del form
const
pairs
=
{};
...
...
@@ -79,7 +86,7 @@ function agregarFieldExpierncia(event){
content
+=
`
<li id="exp-
${
index
}
">
${
exp
.
institucion
}
<button type="button" onclick="eliminarExperiencia(event)"> <span class="glyphicon glyphicon-trash"></span>
Tras
</button>
<button type="button" onclick="eliminarExperiencia(event)"> <span class="glyphicon glyphicon-trash"></span>
Eliminar
</button>
</li>
`
...
...
curriculumsearch/src/main/webapp/jsp/postulante-form.jsp
View file @
81f5c43c
...
...
@@ -180,18 +180,19 @@
</c:forEach>
</select>
</div>
<div
class=
"inputs mb-3 col-md-6"
>
<label
for=
"tipoDocumento"
class=
"form-label"
>
Tipo de documento
</label>
<input
type=
"text"
name=
"tipoDocumento"
class=
"form-control "
id=
"tipoDocumento"
required
>
<div
class=
"valid-feedback"
>
Luce Bien!
</div>
<div
class=
"inputs mb-3 col-md-6"
>
<label
for=
"tipoDocumento"
class=
"form-label"
>
Tipo de documento
</label>
<select
name=
"tipoDocumento"
id=
"tipoDocumento"
class=
"bg-light"
required
onchange=
'carg(this.value);'
>
<option
value=
'CI'
selected
>
C.I
</option>
<option
value=
'PAS'
>
Pasport
</option>
<option
value=
'Otro'
>
Otro
</option>
</select>
</div>
<div
class=
"inputs mb-3 col-md-6"
>
<label
for=
"
ci"
class=
"form-label"
>
Cedula de identidad
</label>
<input
type=
"number"
name=
"
ci"
class=
"form-control "
id=
"ci
"
required
>
<label
for=
"
nroDocument"
class=
"form-label"
>
Numero de Documento
</label>
<input
type=
"number"
name=
"
nroDocument"
class=
"form-control "
id=
"nroDocument
"
required
>
<div
class=
"valid-feedback"
>
Luce Bien!
</div>
...
...
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