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
52226989
Commit
52226989
authored
Nov 23, 2021
by
Joel Florentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
json convocatoria y cargo se agrego mas muestras
parent
91d8e43b
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
46 additions
and
36 deletions
+46
-36
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
+0
-0
curriculumsearch/src/main/java/com/roshka/modelo/ConvocatoriaCargo.java
+3
-24
curriculumsearch/src/main/java/com/roshka/utils/Helper.java
+1
-0
curriculumsearch/src/main/resources/json/cargo.json
+13
-0
curriculumsearch/src/main/resources/json/convocatoria.json
+21
-4
curriculumsearch/src/main/resources/json/postulante.json
+6
-6
curriculumsearch/src/main/resources/static/Convo.js
+2
-2
No files found.
curriculumsearch/src/main/java/com/roshka/controller/PostulanteController.java
View file @
52226989
curriculumsearch/src/main/java/com/roshka/modelo/ConvocatoriaCargo.java
View file @
52226989
...
@@ -12,7 +12,6 @@ import javax.persistence.JoinColumn;
...
@@ -12,7 +12,6 @@ import javax.persistence.JoinColumn;
import
javax.persistence.ManyToMany
;
import
javax.persistence.ManyToMany
;
import
javax.persistence.ManyToOne
;
import
javax.persistence.ManyToOne
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
javax.persistence.Transient
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
com.fasterxml.jackson.annotation.JsonBackReference
;
import
com.fasterxml.jackson.annotation.JsonIdentityInfo
;
import
com.fasterxml.jackson.annotation.JsonIdentityInfo
;
...
@@ -46,15 +45,6 @@ public class ConvocatoriaCargo {
...
@@ -46,15 +45,6 @@ public class ConvocatoriaCargo {
@Column
(
name
=
"fecha_fin"
)
@Column
(
name
=
"fecha_fin"
)
private
Date
fechaFin
;
private
Date
fechaFin
;
//para deserializar desde el form como string
@Transient
private
String
fechaFinS
;
//para deserializar desde el form como string
@Transient
private
String
fechaInicioS
;
@ManyToMany
(
mappedBy
=
"postulaciones"
)
@ManyToMany
(
mappedBy
=
"postulaciones"
)
private
List
<
Postulante
>
postulantes
;
private
List
<
Postulante
>
postulantes
;
...
@@ -90,20 +80,7 @@ public class ConvocatoriaCargo {
...
@@ -90,20 +80,7 @@ public class ConvocatoriaCargo {
public
void
setCargoId
(
Long
cargoId
)
{
public
void
setCargoId
(
Long
cargoId
)
{
this
.
cargoId
=
cargoId
;
this
.
cargoId
=
cargoId
;
}
}
public
String
getFechaFinS
()
{
return
fechaFinS
;
}
public
String
getFechaInicioS
()
{
return
fechaInicioS
;
}
public
void
setFechaFinS
(
String
fechaFinS
)
{
this
.
fechaFinS
=
fechaFinS
;
setFechaFin
(
fechaFinS
);
}
public
void
setFechaInicioS
(
String
fechaInicioS
)
{
this
.
fechaInicioS
=
fechaInicioS
;
setFechaInicio
(
fechaInicioS
);
}
public
Long
getId
()
{
public
Long
getId
()
{
return
this
.
id
;
return
this
.
id
;
...
@@ -129,4 +106,6 @@ public class ConvocatoriaCargo {
...
@@ -129,4 +106,6 @@ public class ConvocatoriaCargo {
this
.
estado
=
estado
;
this
.
estado
=
estado
;
}
}
}
}
curriculumsearch/src/main/java/com/roshka/utils/Helper.java
View file @
52226989
...
@@ -47,6 +47,7 @@ public class Helper {
...
@@ -47,6 +47,7 @@ public class Helper {
}
}
public
static
LocalDate
convertToLocalDateViaSqlDate
(
Date
dateToConvert
)
{
public
static
LocalDate
convertToLocalDateViaSqlDate
(
Date
dateToConvert
)
{
if
(
dateToConvert
==
null
)
return
null
;
return
new
java
.
sql
.
Date
(
dateToConvert
.
getTime
()).
toLocalDate
();
return
new
java
.
sql
.
Date
(
dateToConvert
.
getTime
()).
toLocalDate
();
}
}
...
...
curriculumsearch/src/main/resources/json/cargo.json
View file @
52226989
...
@@ -6,5 +6,17 @@
...
@@ -6,5 +6,17 @@
{
{
"id"
:
2
,
"id"
:
2
,
"nombre"
:
"dev php"
"nombre"
:
"dev php"
},
{
"id"
:
3
,
"nombre"
:
"dev python"
},
{
"id"
:
4
,
"nombre"
:
"dev c"
},
{
"id"
:
5
,
"nombre"
:
"dev android"
}
}
]
]
\ No newline at end of file
curriculumsearch/src/main/resources/json/convocatoria.json
View file @
52226989
...
@@ -3,14 +3,30 @@
...
@@ -3,14 +3,30 @@
"id"
:
1
,
"id"
:
1
,
"cargoId"
:
1
,
"cargoId"
:
1
,
"estado"
:
0
,
"estado"
:
0
,
"fechaInicio"
:
"2021-11-01"
,
"fechaInicio"
:
"2021-11-01"
"fechaFin"
:
"2021-11-30"
},
},
{
{
"id"
:
2
,
"id"
:
2
,
"cargoId"
:
2
,
"cargoId"
:
2
,
"estado"
:
0
,
"estado"
:
0
,
"fechaInicio"
:
"2021-11-01"
,
"fechaInicio"
:
"2021-11-01"
"fechaFin"
:
"2021-11-30"
},
{
"id"
:
3
,
"cargoId"
:
3
,
"estado"
:
0
,
"fechaInicio"
:
"2021-11-01"
},
{
"id"
:
4
,
"cargoId"
:
4
,
"estado"
:
0
,
"fechaInicio"
:
"2021-11-01"
},
{
"id"
:
5
,
"cargoId"
:
5
,
"estado"
:
0
,
"fechaInicio"
:
"2021-11-01"
}
}
]
]
\ No newline at end of file
curriculumsearch/src/main/resources/json/postulante.json
View file @
52226989
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
{
{
"direccion"
:
"Do nostrud aliqua adipisicing in sunt aute id do elit ut dolor ad aliquip."
,
"direccion"
:
"Do nostrud aliqua adipisicing in sunt aute id do elit ut dolor ad aliquip."
,
"nacionalidad"
:
"Paraguaya"
,
"nacionalidad"
:
"Paraguaya"
,
"postulaciones"
:
[{
"id"
:
1
}],
"postulaciones"
:
[{
"id"
:
2
}],
"estadoCivil"
:
"Soltero"
,
"estadoCivil"
:
"Soltero"
,
"tipoDocumento"
:
"CI"
,
"tipoDocumento"
:
"CI"
,
"nombre"
:
"Hopkins"
,
"nombre"
:
"Hopkins"
,
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
{
{
"direccion"
:
"Occaecat non cupidatat amet reprehenderit consectetur ullamco et."
,
"direccion"
:
"Occaecat non cupidatat amet reprehenderit consectetur ullamco et."
,
"nacionalidad"
:
"Paraguaya"
,
"nacionalidad"
:
"Paraguaya"
,
"postulaciones"
:
[{
"id"
:
1
}],
"postulaciones"
:
[{
"id"
:
3
}],
"estadoCivil"
:
"Soltero"
,
"estadoCivil"
:
"Soltero"
,
"tipoDocumento"
:
"CI"
,
"tipoDocumento"
:
"CI"
,
"nombre"
:
"Alejandra"
,
"nombre"
:
"Alejandra"
,
...
@@ -155,7 +155,7 @@
...
@@ -155,7 +155,7 @@
{
{
"direccion"
:
"Qui ullamco excepteur velit ad ullamco id id nisi irure dolore cupidatat mollit ullamco veniam."
,
"direccion"
:
"Qui ullamco excepteur velit ad ullamco id id nisi irure dolore cupidatat mollit ullamco veniam."
,
"nacionalidad"
:
"Paraguaya"
,
"nacionalidad"
:
"Paraguaya"
,
"postulaciones"
:
[{
"id"
:
1
}],
"postulaciones"
:
[{
"id"
:
4
}],
"estadoCivil"
:
"Soltero"
,
"estadoCivil"
:
"Soltero"
,
"tipoDocumento"
:
"CI"
,
"tipoDocumento"
:
"CI"
,
"nombre"
:
"Angelina"
,
"nombre"
:
"Angelina"
,
...
@@ -202,7 +202,7 @@
...
@@ -202,7 +202,7 @@
{
{
"direccion"
:
"Deserunt tempor ut et eiusmod et labore Lorem."
,
"direccion"
:
"Deserunt tempor ut et eiusmod et labore Lorem."
,
"nacionalidad"
:
"Paraguaya"
,
"nacionalidad"
:
"Paraguaya"
,
"postulaciones"
:
[{
"id"
:
1
}],
"postulaciones"
:
[{
"id"
:
5
}],
"estadoCivil"
:
"Soltero"
,
"estadoCivil"
:
"Soltero"
,
"tipoDocumento"
:
"CI"
,
"tipoDocumento"
:
"CI"
,
"nombre"
:
"Rivas"
,
"nombre"
:
"Rivas"
,
...
@@ -249,7 +249,7 @@
...
@@ -249,7 +249,7 @@
{
{
"direccion"
:
"Aliqua est adipisicing do exercitation sit laborum aliquip aliqua adipisicing enim aute."
,
"direccion"
:
"Aliqua est adipisicing do exercitation sit laborum aliquip aliqua adipisicing enim aute."
,
"nacionalidad"
:
"Paraguaya"
,
"nacionalidad"
:
"Paraguaya"
,
"postulaciones"
:
[{
"id"
:
1
}],
"postulaciones"
:
[{
"id"
:
3
}],
"estadoCivil"
:
"Soltero"
,
"estadoCivil"
:
"Soltero"
,
"tipoDocumento"
:
"CI"
,
"tipoDocumento"
:
"CI"
,
"nombre"
:
"Estelle"
,
"nombre"
:
"Estelle"
,
...
@@ -296,7 +296,7 @@
...
@@ -296,7 +296,7 @@
{
{
"direccion"
:
"Officia eiusmod ut reprehenderit tempor consequat elit amet ex voluptate aute anim do."
,
"direccion"
:
"Officia eiusmod ut reprehenderit tempor consequat elit amet ex voluptate aute anim do."
,
"nacionalidad"
:
"Paraguaya"
,
"nacionalidad"
:
"Paraguaya"
,
"postulaciones"
:
[{
"id"
:
1
}],
"postulaciones"
:
[{
"id"
:
4
}],
"estadoCivil"
:
"Soltero"
,
"estadoCivil"
:
"Soltero"
,
"tipoDocumento"
:
"CI"
,
"tipoDocumento"
:
"CI"
,
"nombre"
:
"Mariana"
,
"nombre"
:
"Mariana"
,
...
...
curriculumsearch/src/main/resources/static/Convo.js
View file @
52226989
...
@@ -12,9 +12,9 @@ function listarConvocatorias(id){
...
@@ -12,9 +12,9 @@ function listarConvocatorias(id){
const
opt
=
document
.
createElement
(
"option"
);
const
opt
=
document
.
createElement
(
"option"
);
opt
.
value
=
conv
.
id
;
opt
.
value
=
conv
.
id
;
if
(
conv
.
fechaFin
!=
null
){
if
(
conv
.
fechaFin
!=
null
){
opt
.
innerHTML
=
"Desde :"
+
new
Date
(
conv
.
fechaInicio
)
+
"-"
+
" Hasta :"
+
new
Date
(
conv
.
fechaFin
);
opt
.
innerHTML
=
"Desde :"
+
new
Date
(
conv
.
fechaInicio
)
.
toISOString
().
slice
(
0
,
10
)
+
"-"
+
" Hasta :"
+
new
Date
(
conv
.
fechaFin
).
toISOString
().
slice
(
0
,
10
);
}
else
{
}
else
{
opt
.
innerHTML
=
"Desde :"
+
new
Date
(
conv
.
fechaInicio
)
opt
.
innerHTML
=
"Desde :"
+
new
Date
(
conv
.
fechaInicio
)
.
toISOString
().
slice
(
0
,
10
)
}
}
opt
.
setAttribute
(
"data-CargoId"
,
conv
.
cargoId
);
opt
.
setAttribute
(
"data-CargoId"
,
conv
.
cargoId
);
frag
.
appendChild
(
opt
)
frag
.
appendChild
(
opt
)
...
...
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