Commit eb3b4588 by willgonzz

merge con Joel y modificacion de cantidad de elementos por paginas en las listas

parents b549d351 f35018b6
......@@ -68,6 +68,13 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.22</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
......
......@@ -34,7 +34,7 @@ public class CargoController {
@RequestMapping("/cargos")
public String menuCargos(Model model,@RequestParam(required = false) String nombre,@RequestParam(defaultValue = "0")Integer nroPagina) {
final Integer CANTIDAD_POR_PAGINA = 1;
final Integer CANTIDAD_POR_PAGINA = 10;
Pageable page = PageRequest.of(nroPagina,CANTIDAD_POR_PAGINA,Sort.by("id"));
Page<Cargo> CargoPag=cargoRepo.findAllCargo(page);
List<Cargo> cargo = CargoPag.getContent();
......
......@@ -95,13 +95,6 @@ public class PostulanteController {
return "postulante-form";
}
/* @PostMapping("/uploadCVPostulante")
public String uploadFile(@RequestParam("file") MultipartFile file) {
dbFileRepository.save(storeFile(file));
DBFile dbFile = dbFileRepository.save(storeFile(file));
return "{\"id\": "+dbFile.getId()+"}";
} */
private DBFile createFile(MultipartFile file) {
// Normalize file name
String fileName = StringUtils.cleanPath(file.getOriginalFilename());
......
......@@ -91,7 +91,7 @@ public class PostulanteRRHHController {
@RequestParam(required = false)Long convId,
@RequestParam(defaultValue = "0")Integer nroPagina
) {
final Integer CANTIDAD_POR_PAGINA = 5;
final Integer CANTIDAD_POR_PAGINA = 10;
Pageable page = PageRequest.of(nroPagina,CANTIDAD_POR_PAGINA,Sort.by("id"));
model.addAttribute("tecnologias", tecRepo.findAll());
model.addAttribute("disponibilidades", Disponibilidad.values());
......
......@@ -45,7 +45,7 @@ public String addtecnologiaView(Model model,@PathVariable(required = false) Long
@RequestMapping("/tecnologias")
public String menuTecnologias(Model model,@RequestParam(required = false) String nombre,@RequestParam(defaultValue = "0")Integer nroPagina) {
final Integer CANTIDAD_POR_PAGINA = 5;
final Integer CANTIDAD_POR_PAGINA = 10;
Pageable page = PageRequest.of(nroPagina,CANTIDAD_POR_PAGINA,Sort.by("id"));
Page<Tecnologia> tecnologiaPag=tecRepo.findAllTecnologia(page);
List<Tecnologia> tecnologia = tecnologiaPag.getContent();
......
......@@ -13,7 +13,9 @@ import javax.validation.constraints.NotBlank;
import com.fasterxml.jackson.annotation.JsonManagedReference;
@Entity
import lombok.Data;
@Entity @Data
@Table(name = "cargo")
public class Cargo {
@Id
......@@ -28,19 +30,6 @@ public class Cargo {
@JsonManagedReference
private List<ConvocatoriaCargo> convocatorias;
public Long getId() {
return id;
}
public String getNombre() {
return nombre;
}
public void setId(Long id) {
this.id = id;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public List<ConvocatoriaCargo> getConvocatorias() {
return convocatorias;
}
......
......@@ -14,8 +14,10 @@ import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonBackReference;
import lombok.Data;
@Entity
@Entity @Data
@Table(name="ciudad")
public class Ciudad{
@Id
......@@ -40,7 +42,7 @@ public class Ciudad{
@JsonBackReference
private Departamento departamento;
/*
public Long getId() {
return this.id;
}
......@@ -56,7 +58,7 @@ public class Ciudad{
public void setNombre(String nombre) {
this.nombre = nombre;
}
*/
public Departamento getDepartamento() {
return this.departamento;
}
......
......@@ -19,8 +19,10 @@ import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import com.roshka.utils.Helper;
import lombok.Data;
@Entity
@Table(name = "convocatoria_cargo")
@Table(name = "convocatoria_cargo") @Data
@JsonIdentityInfo(generator = ObjectIdGenerators.UUIDGenerator.class, property="@UUID")
public class ConvocatoriaCargo {
@Id
......@@ -55,30 +57,14 @@ public class ConvocatoriaCargo {
@ManyToMany(mappedBy = "postulaciones")
private List<Postulante> postulantes;
public Long getId() {
return id;
}
public Cargo getCargo() {
return cargo;
}
public int getCupos() {
return cupos;
}
public Date getFechaFin() {
return fechaFin;
}
public Date getFechaInicio() {
return fechaInicio;
}
public void setId(Long id) {
this.id = id;
}
public void setCargo(Cargo cargo) {
this.cargo = cargo;
}
public void setCupos(int cupos) {
this.cupos = cupos;
}
public void setFechaFin(Date fechaFin) {
this.fechaFin = fechaFin;
}
......
......@@ -11,7 +11,9 @@ import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonManagedReference;
@Entity
import lombok.Data;
@Entity @Data
@Table(name="departamento")
public class Departamento {
@Id
......@@ -26,22 +28,6 @@ public class Departamento {
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getNombre() {
return this.nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public List<Ciudad> getCiudad() {
return this.ciudad;
}
......
......@@ -14,12 +14,14 @@ import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.roshka.utils.Helper;
import lombok.Data;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Past;
@Entity
@Entity @Data
@Table(name = "experiencia")
public class Experiencia {
@Id
......@@ -61,45 +63,17 @@ public class Experiencia {
@NotBlank
private String descripcion;
public String getDescripcion() {
return descripcion;
}
public void setDescripcion(String descripcion) {
this.descripcion = descripcion;
}
public Date getFechaDesde() {
return fechaDesde;
}
public String getMotivoSalida() {
return motivoSalida;
}
public TipoExperiencia getTipoExperiencia() {
return tipoExperiencia;
}
public void setMotivoSalida(String motivoSalida) {
this.motivoSalida = motivoSalida;
}
public void setTipoExperiencia(TipoExperiencia tipoExperiencia) {
this.tipoExperiencia = tipoExperiencia;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getInstitucion() {
return institucion;
}
public void setInstitucion(String institucion) {
this.institucion = institucion;
}
public void setFechaDesde(String fechaDesde) {
this.fechaDesde = Helper.convertirFecha(fechaDesde);
}
......@@ -112,24 +86,6 @@ public class Experiencia {
public void setFechaHasta(String fechaHasta) {
this.fechaHasta = Helper.convertirFecha(fechaHasta);
}
public String getNombreReferencia() {
return nombreReferencia;
}
public String getTelefonoReferencia() {
return telefonoReferencia;
}
public void setNombreReferencia(String nombreReferencia) {
this.nombreReferencia = nombreReferencia;
}
public void setTelefonoReferencia(String telefonoReferencia) {
this.telefonoReferencia = telefonoReferencia;
}
public String getCargo() {
return cargo;
}
public void setCargo(String cargo) {
this.cargo = cargo;
}
public void setPostulante(Postulante postulante) {
this.postulante = postulante;
}
......
......@@ -2,11 +2,13 @@ package com.roshka.modelo;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import lombok.Data;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import java.util.List;
@Entity
@Entity @Data
@Table(name = "institucion")
public class Institucion {
@Id
......@@ -26,30 +28,6 @@ public class Institucion {
@JsonManagedReference
private List<Estudio> estudioList;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getSubNombre() {
return subNombre;
}
public void setSubNombre(String subNombre) {
this.subNombre = subNombre;
}
public List<Estudio> getEstudioList() {
return estudioList;
}
......
......@@ -3,7 +3,7 @@ package com.roshka.modelo;
import com.fasterxml.jackson.annotation.JsonValue;
public enum Nacionalidad {
PY("Paraguayo"),EX("Extranjero");
PY("Paraguaya"),EX("Extranjera");
private String descripcion;
......
......@@ -9,6 +9,8 @@ import com.fasterxml.jackson.annotation.JsonManagedReference;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import com.roshka.utils.Helper;
import lombok.Data;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
......@@ -17,10 +19,11 @@ import java.util.List;
@Entity
@Table(name="postulante")
@JsonIdentityInfo(generator = ObjectIdGenerators.UUIDGenerator.class, property="@UUID")
@Data
public class Postulante {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name="id")
@Column(name="id")
private long id;
@Column(name="nombre")
......@@ -31,16 +34,19 @@ public class Postulante {
@Column(name = "apellido")
@NotBlank(message = "Este campo no puede estar vacio")
@Size(max = 255)
private String apellido;
@Column(name = "nro_document")
@NotBlank(message = "Este campo no puede estar vacio")
@Size(max = 120)
private String nroDocument;
@Column(name = "correo")
@NotBlank(message = "Este campo no puede estar vacio")
@Email(message = "Formato incorrecto de correo")
private String correo;
@ManyToOne(targetEntity = Ciudad.class,fetch = FetchType.EAGER)
......@@ -119,175 +125,13 @@ public class Postulante {
private DBFile cvFile;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public String getApellido() {
return apellido;
}
public void setApellido(String apellido) {
this.apellido = apellido;
}
public void setnroDocument(String nroDocument) {
this.nroDocument = nroDocument;
}
public String getCorreo() {
return correo;
}
public void setCorreo(String correo) {
this.correo = correo;
}
public String getTelefono() {
return telefono;
}
public void setTelefono(String telefono) {
this.telefono = telefono;
}
public Date getFechaNacimiento() {
return fechaNacimiento;
}
public void setFechaNacimiento(Date fechaNacimiento) {
this.fechaNacimiento = fechaNacimiento;
}
public void setFechaNacimiento(String fechaNacimiento) {
this.fechaNacimiento = Helper.convertirFecha(fechaNacimiento);
}
public String getResumen() {
return resumen;
}
public void setResumen(String resumen) {
this.resumen = resumen;
}
public Long getNivelIngles() {
return nivelIngles;
}
public void setNivelIngles(Long nivelIngles) {
this.nivelIngles = nivelIngles;
}
public Disponibilidad getDisponibilidad() {
return disponibilidad;
}
public Ciudad getCiudad() {
return this.ciudad;
}
public void setCiudad(Ciudad ciudad) {
this.ciudad = ciudad;
}
public Long getCiudadId() {
return this.ciudadId;
}
public void setCiudadId(Long ciudadId) {
this.ciudadId = ciudadId;
}
public void setEstadoCivil(EstadoCivil estadoCivil) {
this.estadoCivil = estadoCivil;
}
public void setTipoDocumento(TipoDocumento tipoDocumento) {
this.tipoDocumento = tipoDocumento;
}
public EstadoCivil getEstadoCivil() {
return estadoCivil;
}
public TipoDocumento getTipoDocumento() {
return tipoDocumento;
}
public Nacionalidad getNacionalidad() {
return nacionalidad;
}
public void setNacionalidad(Nacionalidad nacionalidad) {
this.nacionalidad = nacionalidad;
}
public void setDisponibilidad(Disponibilidad disponibilidad) {
this.disponibilidad = disponibilidad;
}
public List<PostulanteTecnologia> getTecnologias() {
return tecnologias;
}
public void setTecnologias(List<PostulanteTecnologia> tecnologias) {
this.tecnologias = tecnologias;
}
public List<Estudio> getEstudios() {
return estudios;
}
public List<Experiencia> getExperiencias() {
return experiencias;
}
public void setEstudios(List<Estudio> estudios) {
this.estudios = estudios;
}
public void setExperiencias(List<Experiencia> experiencias) {
this.experiencias = experiencias;
}
public List<ConvocatoriaCargo> getPostulaciones() {
return postulaciones;
}
public void setPostulaciones(List<ConvocatoriaCargo> postulaciones) {
this.postulaciones = postulaciones;
}
public void setReferencias(List<ReferenciaPersonal> referencias) {
this.referencias = referencias;
}
public List<ReferenciaPersonal> getReferencias() {
return referencias;
}
public EstadoPostulante getEstadoPostulante() {
return this.estadoPostulante;
}
public void setEstadoPostulante(EstadoPostulante estadoPostulante) {
this.estadoPostulante = estadoPostulante;
}
public String getComentarioRRHH(){
return comentarioRRHH;
}
public void setComentarioRRHH(String comentarioRRHH){
this.comentarioRRHH=comentarioRRHH;
}
public DBFile getCvFile() {
return cvFile;
}
public String getNroDocument() {
return nroDocument;
}
public void setCvFile(DBFile cvFile) {
this.cvFile = cvFile;
}
}
......@@ -15,7 +15,9 @@ import javax.validation.constraints.Min;
import com.fasterxml.jackson.annotation.JsonBackReference;
@Entity
import lombok.Data;
@Entity @Data
@Table(name="postulante_tecnologia",
uniqueConstraints=@UniqueConstraint(columnNames={"postulante_id", "tecnologia_id"}))
......@@ -39,18 +41,6 @@ public class PostulanteTecnologia {
@JsonBackReference(value = "postulantetecnologia-postulante")
private Postulante postulante;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public Long getNivel() {
return nivel;
}
public void setNivel(Long nivel) {
this.nivel = nivel;
}
public Tecnologia getTecnologia() {
return tecnologia;
}
......
......@@ -2,7 +2,9 @@ package com.roshka.modelo;
import javax.persistence.*;
@Entity
import lombok.Data;
@Entity @Data
@Table(name = "recursos_humanos_user")
public class RRHHUser {
@Id
......@@ -24,51 +26,5 @@ public class RRHHUser {
@Column(name = "reset_password_token")
private String resetPasswordToken;
public String getResetPasswordToken() {
return resetPasswordToken;
}
public void setResetPasswordToken(String resetPasswordToken) {
this.resetPasswordToken = resetPasswordToken;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
}
......@@ -5,7 +5,9 @@ import javax.validation.constraints.NotBlank;
import com.fasterxml.jackson.annotation.JsonBackReference;
@Entity
import lombok.Data;
@Entity @Data
@Table(name = "referencia_personal")
public class ReferenciaPersonal {
@Id
......@@ -29,42 +31,9 @@ public class ReferenciaPersonal {
@JsonBackReference
private Postulante postulante;
public Long getId() {
return id;
}
public String getNombre() {
return nombre;
}
public String getRelacion() {
return relacion;
}
public String getTelefono() {
return telefono;
}
public Postulante getPostulante() {
return postulante;
}
public void setId(Long id) {
this.id = id;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
public void setRelacion(String relacion) {
this.relacion = relacion;
}
public void setTelefono(String telefono) {
this.telefono = telefono;
}
public void setPostulante(Postulante postulante) {
this.postulante = postulante;
}
......
......@@ -8,8 +8,10 @@ import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import lombok.Data;
@Entity
@Entity @Data
@Table(name="tecnologia")
public class Tecnologia {
@GeneratedValue(strategy = GenerationType.IDENTITY)
......@@ -21,21 +23,4 @@ public class Tecnologia {
@NotBlank(message = "Este campo no puede estar vacio")
private String nombre;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getNombre() {
return nombre;
}
public void setNombre(String nombre) {
this.nombre = nombre;
}
}
[
{
"resumen": "In irure aliquip qui cillum veniam sint amet amet sint ex proident anim mollit.",
"nacionalidad": "Paraguayo",
"nacionalidad": "Paraguaya",
"postulaciones": [{ "id": 1 }],
"estadoCivil": "Soltero",
"tipoDocumento": "CI",
......@@ -60,7 +60,7 @@
},
{
"resumen": "Do nostrud aliqua adipisicing in sunt aute id do elit ut dolor ad aliquip.",
"nacionalidad": "Paraguayo",
"nacionalidad": "Paraguaya",
"postulaciones": [{ "id": 1 }],
"estadoCivil": "Soltero",
"tipoDocumento": "CI",
......@@ -107,7 +107,7 @@
},
{
"resumen": "Occaecat non cupidatat amet reprehenderit consectetur ullamco et.",
"nacionalidad": "Paraguayo",
"nacionalidad": "Paraguaya",
"postulaciones": [{ "id": 1 }],
"estadoCivil": "Soltero",
"tipoDocumento": "CI",
......@@ -154,7 +154,7 @@
},
{
"resumen": "Qui ullamco excepteur velit ad ullamco id id nisi irure dolore cupidatat mollit ullamco veniam.",
"nacionalidad": "Paraguayo",
"nacionalidad": "Paraguaya",
"postulaciones": [{ "id": 1 }],
"estadoCivil": "Soltero",
"tipoDocumento": "CI",
......@@ -201,7 +201,7 @@
},
{
"resumen": "Deserunt tempor ut et eiusmod et labore Lorem.",
"nacionalidad": "Paraguayo",
"nacionalidad": "Paraguaya",
"postulaciones": [{ "id": 1 }],
"estadoCivil": "Soltero",
"tipoDocumento": "CI",
......@@ -248,7 +248,7 @@
},
{
"resumen": "Aliqua est adipisicing do exercitation sit laborum aliquip aliqua adipisicing enim aute.",
"nacionalidad": "Paraguayo",
"nacionalidad": "Paraguaya",
"postulaciones": [{ "id": 1 }],
"estadoCivil": "Soltero",
"tipoDocumento": "CI",
......@@ -295,7 +295,7 @@
},
{
"resumen": "Officia eiusmod ut reprehenderit tempor consequat elit amet ex voluptate aute anim do.",
"nacionalidad": "Paraguayo",
"nacionalidad": "Paraguaya",
"postulaciones": [{ "id": 1 }],
"estadoCivil": "Soltero",
"tipoDocumento": "CI",
......
//Convertir DOB to Age
window.onload= init;
function init(){
contarEdad();
//fechaFormat();
}
function contarEdad() {
let today = new Date();
let dob = document.getElementById("dob").value;
let current_datetime = new Date(dob);
let month = current_datetime.getMonth();
let day = current_datetime.getDate();
let formatted_date = current_datetime.getDate() + "/" + (current_datetime.getMonth() + 1) + "/" + current_datetime.getFullYear();
//console.log(formatted_date); ver Fecha del form en formato dd/mm/yyy
let date2=new Date(dob);
let pattern = /^\d{1,2}\/\d{1,2}\/\d{4}$/; //Regex to validate date format (dd/mm/yyyy)
let age = today.getFullYear() - current_datetime.getFullYear();
if (pattern.test(formatted_date)) {
if (today.getMonth() < month || (today.getMonth() == month && today.getDate() < day))
{
age--;
}
// console.log(age); ver edad
let anio = document.getElementById("edad").innerHTML=age+" años";
} else {
alert("Invalid date format. Please Input in (dd/mm/yyyy) format!");
}
/*
function fechaFormat(){
//EXPERIENCIA
let fechaInicioExp = document.getElementById("fechaInicioExp2").value;
let fie =new Date(fechaInicioExp);
// let formatted_fie = fie.getDate() + "/" + (fie.getMonth() + 1) + "/" + fie.getFullYear();
let fechaFinExp = document.getElementById("fechaFinExp2").value;
let ffe =new Date(fechaFinExp);
// let formatted_ffe = ffe.getDate() + "/" + (ffe.getMonth() + 1) + "/" + ffe.getFullYear();
// Validacion de ceros Fecha inicio
if(((fie.getMonth() + 1) < 10) && (fie.getDate() < 10) ){
let formatted_fie = "0"+ fie.getDate() + "/0" + (fie.getMonth() + 1) + "/" + fie.getFullYear();
let mostrar1 = document.getElementById("fiemostrar").innerHTML = formatted_fie;
console.log(mostrar1);
}else{
if((fie.getMonth() + 1) < 10){
let formatted_fie = fie.getDate() + "/0" + (fie.getMonth() + 1) + "/" + fie.getFullYear();
mostrar1 = document.getElementById("fiemostrar").innerHTML = formatted_fie;
console.log(mostrar1);
}else{
if(fie.getDate() < 10){
let formatted_fie ="0"+ fie.getDate() + "/" + (fie.getMonth() + 1) + "/" + fie.getFullYear();
mostrar1 = document.getElementById("fiemostrar").innerHTML = formatted_fie;
console.log(mostrar1);
}else{
let formatted_fie = fie.getDate() + "/" + (fie.getMonth() + 1) + "/" + fie.getFullYear();
mostrar1 = document.getElementById("fiemostrar2").innerHTML = formatted_fie;
console.log(mostrar1);
}
}
}
// Validacion de ceros Fecha fin
if(((ffe.getMonth() + 1) < 10) && (ffe.getDate() < 10) ){
let formatted_ffe = "0"+ ffe.getDate() + "/0" + (ffe.getMonth() + 1) + "/" + ffe.getFullYear();
let mostrar2 = document.getElementById("ffemostrar").innerHTML = formatted_ffe;
console.log(mostrar2);
}else{
if((ffe.getMonth() + 1) < 10){
let formatted_ffe = ffe.getDate() + "/0" + (ffe.getMonth() + 1) + "/" + ffe.getFullYear();
mostrar2 = document.getElementById("ffemostrar").innerHTML = formatted_ffe;
console.log(mostrar2);
}else{
if(ffe.getDate() < 10){
let formatted_ffe ="0"+ ffe.getDate() + "/" + (ffe.getMonth() + 1) + "/" + ffe.getFullYear();
mostrar2 = document.getElementById("ffemostrar").innerHTML = formatted_ffe;
console.log(mostrar2);
}else{
let formatted_ffe = ffe.getDate() + "/" + (ffe.getMonth() + 1) + "/" + ffe.getFullYear();
mostrar2 = document.getElementById("ffemostrar").innerHTML = formatted_ffe;
console.log(mostrar2);
}
}
}
//ESTUDIOS//////////
let fechaInicioEst = document.getElementById("fechaInicioEst").value;
let fies =new Date(fechaInicioEst);
let formatted_fies = fies.getDate() + "/" + (fies.getMonth() + 1) + "/" + fies.getFullYear();
let fechaFinEst = document.getElementById("fechaFinEst").value;
let ffes =new Date(fechaFinEst);
let formatted_ffes = ffes.getDate() + "/" + (ffes.getMonth() + 1) + "/" + ffes.getFullYear();
// Validacion de ceros Fecha fin
if(((ffes.getMonth() + 1) < 10) && (ffes.getDate() < 10) ){
let formatted_ffes = "0"+ ffes.getDate() + "/0" + (ffes.getMonth() + 1) + "/" + ffes.getFullYear();
let mostrar3 = document.getElementById("ffesmostrar").innerHTML = formatted_ffes;
}else{
if((ffes.getMonth() + 1) < 10){
let formatted_ffes = ffes.getDate() + "/0" + (ffes.getMonth() + 1) + "/" + ffes.getFullYear();
mostrar3 = document.getElementById("ffesmostrar").innerHTML = formatted_ffes;
}else{
if(ffes.getDate() < 10){
let formatted_ffes ="0"+ ffes.getDate() + "/" + (ffes.getMonth() + 1) + "/" + ffes.getFullYear();
mostrar3 = document.getElementById("ffesmostrar").innerHTML = formatted_ffes;
}else{
let formatted_ffes = ffes.getDate() + "/" + (ffes.getMonth() + 1) + "/" + ffes.getFullYear();
mostrar3 = document.getElementById("ffesmostrar").innerHTML = formatted_ffes;
}
}
}
// Validacion de ceros Fecha inicio
if(((fies.getMonth() + 1) < 10) && (fies.getDate() < 10) ){
let formatted_fies = "0"+ fies.getDate() + "/0" + (fies.getMonth() + 1) + "/" + fies.getFullYear();
let mostrar4 = document.getElementById("fiesmostrar").innerHTML = formatted_fies;
}else{
if((fies.getMonth() + 1) < 10){
let formatted_fies = fies.getDate() + "/0" + (fies.getMonth() + 1) + "/" + fies.getFullYear();
mostrar4 = document.getElementById("fiesmostrar").innerHTML = formatted_fies;
}else{
if(fies.getDate() < 10){
let formatted_fies ="0"+ fies.getDate() + "/" + (fies.getMonth() + 1) + "/" + fies.getFullYear();
mostrar4 = document.getElementById("fiesmostrar").innerHTML = formatted_fies;
}else{
let formatted_fies = fies.getDate() + "/" + (fies.getMonth() + 1) + "/" + fies.getFullYear();
mostrar4 = document.getElementById("fiesmostrar").innerHTML = formatted_fies;
}
}
}
}*/
}
\ No newline at end of file
......@@ -2,6 +2,8 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib uri="http://kwonnam.pe.kr/jsp/template-inheritance" prefix="layout"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<layout:extends name="layouts/base.jsp">
<layout:put block="contents" type="REPLACE">
<h2 style="text-align: center;">
......@@ -58,11 +60,10 @@
<hr>
<div class="row">
<div class="col-sm-3">
<h6 class="mb-0">Fecha de nacimiento</h6>
</div>
<div class="col-sm-9 text-secondary">
${postulante.fechaNacimiento}
<h6 class="mb-0">Edad</h6>
</div>
<div id="edad" class="col-sm-9 text-secondary"></div>
<input style="display: none;" id="dob" value="${postulante.fechaNacimiento}">
</div>
<hr>
<div class="row">
......@@ -194,11 +195,16 @@
</li>
<li class="list-group-item d-flex justify-content-between align-items-center flex-wrap">
<h6 class="mb-0">Fecha Inicio</h6>
<span class="text-secondary">${detalle_experiencia.getFechaDesde()}</span>
<span class="text-secondary"><fmt:formatDate value="${detalle_experiencia.getFechaDesde()}" pattern="dd-MM-yyyy" /></span>
<!-- <input style="display:none;" id="fechaInicioExp" value="${detalle_experiencia.getFechaDesde()}">
<span style="display: none;" class="text-secondary" id="fechaInicioExp2">${detalle_experiencia.getFechaDesde()}</span>-->
</li>
<li class="list-group-item d-flex justify-content-between align-items-center flex-wrap">
<h6 class="mb-0">Fecha Fin</h6>
<span class="text-secondary">${detalle_experiencia.getFechaHasta()}</span>
<span class="text-secondary"><fmt:formatDate value="${detalle_experiencia.getFechaHasta()}" pattern="dd-MM-yyyy" /></span>
<!-- <input style="display:none;" id="fechaFinExp" value="${detalle_experiencia.getFechaHasta()}">
<span style="display: none;" class="text-secondary" id="fechaFinExp2">${detalle_experiencia.getFechaHasta()}</span>-->
</li>
<li class="list-group-item d-flex justify-content-between align-items-center flex-wrap">
<h6 class="mb-0">Referencia</h6>
......@@ -256,11 +262,16 @@
</li>
<li class="list-group-item d-flex justify-content-between align-items-center flex-wrap">
<h6 class="mb-0">Fecha Inicio</h6>
<span class="text-secondary">${detalle_estudios.getFechaDesde()}</span>
<span class="text-secondary"><fmt:formatDate value="${detalle_estudios.getFechaDesde()}" pattern="dd-MM-yyyy" /></span>
<!-- <input style="display:none;" id="fechaInicioEst" value="${detalle_estudios.getFechaDesde()}">-->
</li>
<li class="list-group-item d-flex justify-content-between align-items-center flex-wrap">
<h6 class="mb-0">Fecha Fin</h6>
<span class="text-secondary">${detalle_estudios.getFechaHasta()}</span>
<span class="text-secondary"><fmt:formatDate value="${detalle_estudios.getFechaHasta()}" pattern="dd-MM-yyyy" /></span>
<!-- <input style="display:none;" id="fechaFinEst" value="${detalle_estudios.getFechaHasta()}">-->
</li>
<li class="list-group-item d-flex justify-content-between align-items-center flex-wrap">
<h6 class="mb-0">Tipo de Estudio</h6>
......@@ -364,6 +375,8 @@
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="../valEdad.js"></script>
</layout:put>
......
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
</head>
<body>
<div>
${postulante.id}<br>
${postulante.nombre}<br>
${postulante.apellido}<br>
${postulante.ci}<br>
${postulante.correo}<br>
${postulante.ciudadId}<br>
${postulante.telefono}<br>
${postulante.fechaNacimiento}<br>
${postulante.resumen}<br>
${postulante.nivelIngles}<br>
${postulante.curriculum}<br>
${postulante.estadoCivil}<br>
${postulante.nacionalidad}<br>
${postulante.tipoDocumento}<br>
${postulante.disponibilidad}<br><br><br>
${postulante.getCiudad().getNombre()}<br>
<c:forEach items="${postulante.tecnologias}" var="detalle_tecnologia" >
${detalle_tecnologia.getTecnologia().getNombre()}
</c:forEach>
</div>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment