Cambiadas todas las listas deplegables fijas, a listas con búsqueda AJAX
integrada (Estilo typeahead). Permite búsquedas en tiempo real. * Se muestra información organizada por columnas de datos. * Identificadores basados en Ids autogenerados. * Nuevos métodos en EJB común para poder realizar búsquedas de datos con filtro y paginadas (para los comboBox). * Varias correcciones de interfaz de usuario. * Nueva clase de utilidades.
This commit is contained in:
@@ -26,13 +26,13 @@ public class FamilyDoctorTO implements Serializable {
|
||||
}
|
||||
|
||||
public FamilyDoctorTO(Integer id, String nif, String name, String surname, String password, String email, PrimaryHealthCareCenterTO phc) {
|
||||
this.setId(id);
|
||||
this.setNif(nif);
|
||||
this.setName(name);
|
||||
this.setSurname(surname);
|
||||
this.setPassword(password);
|
||||
this.setEmail(email);
|
||||
this.setPrimaryHealthCareCenter(phc);
|
||||
this.id = id;
|
||||
this.nif = nif;
|
||||
this.name = name;
|
||||
this.surname = surname;
|
||||
this.password = password;
|
||||
this.email =email;
|
||||
this.primaryHealthCareCenter = phc;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
@@ -83,7 +83,7 @@ public class FamilyDoctorTO implements Serializable {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getDisplayDescription() {
|
||||
public String getDisplayName() {
|
||||
return String.format("[%d] %s %s", this.id, this.name, this.surname);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ import javax.xml.bind.annotation.XmlRootElement;
|
||||
public class MedicalSpecialtyTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer id;
|
||||
private String name;
|
||||
private String description;
|
||||
|
||||
@@ -21,11 +21,20 @@ public class MedicalSpecialtyTO implements Serializable {
|
||||
super();
|
||||
}
|
||||
|
||||
public MedicalSpecialtyTO(String name, String description) {
|
||||
public MedicalSpecialtyTO(Integer id, String name, String description) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -42,7 +51,7 @@ public class MedicalSpecialtyTO implements Serializable {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDisplayDescription() {
|
||||
public String getDisplayName() {
|
||||
return String.format("[%s] %s", this.name, this.description);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,13 +31,13 @@ public class PatientTO implements Serializable {
|
||||
}
|
||||
|
||||
public PatientTO(Integer id, String nif, String name, String surname, String password, String email, FamilyDoctorTO familyDoc) {
|
||||
this.setId(id);
|
||||
this.setNif(nif);
|
||||
this.setName(name);
|
||||
this.setSurname(surname);
|
||||
this.setPassword(password);
|
||||
this.setEmail(email);
|
||||
this.setFamilyDoctor(familyDoc);
|
||||
this.id = id;
|
||||
this.nif = nif;
|
||||
this.name = name;
|
||||
this.surname = surname;
|
||||
this.password = password;
|
||||
this.email =email;
|
||||
this.familyDoctor = familyDoc;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
|
||||
@@ -13,20 +13,28 @@ import javax.xml.bind.annotation.XmlRootElement;
|
||||
public class PrimaryHealthCareCenterTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Integer id;
|
||||
private String name;
|
||||
private String location;
|
||||
|
||||
|
||||
public PrimaryHealthCareCenterTO() {
|
||||
super();
|
||||
}
|
||||
|
||||
public PrimaryHealthCareCenterTO(String name, String location) {
|
||||
public PrimaryHealthCareCenterTO(Integer Id, String name, String location) {
|
||||
this.id = Id;
|
||||
this.name = name;
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
@@ -39,16 +47,16 @@ public class PrimaryHealthCareCenterTO implements Serializable {
|
||||
return location;
|
||||
}
|
||||
|
||||
public void setLocation(String description) {
|
||||
this.location = description;
|
||||
public void setLocation(String value) {
|
||||
this.location = value;
|
||||
}
|
||||
|
||||
public String getDisplayDescription() {
|
||||
|
||||
public String getDisplayName() {
|
||||
return String.format("[%s] %s", this.name, this.location);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("%s[name=%s]", getClass().getSimpleName(), this.getName());
|
||||
return String.format("%s[name=%s]", getClass().getSimpleName(), this.getName());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,13 +26,13 @@ public class SpecialistDoctorTO implements Serializable {
|
||||
}
|
||||
|
||||
public SpecialistDoctorTO(Integer id, String nif, String name, String surname, String password, String email, MedicalSpecialtyTO medicalSpec) {
|
||||
this.setId(id);
|
||||
this.setNif(nif);
|
||||
this.setName(name);
|
||||
this.setSurname(surname);
|
||||
this.setPassword(password);
|
||||
this.setEmail(email);
|
||||
this.setMedicalSpecialty(medicalSpec);
|
||||
this.id = id;
|
||||
this.nif = nif;
|
||||
this.name = name;
|
||||
this.surname = surname;
|
||||
this.password = password;
|
||||
this.email =email;
|
||||
this.medicalSpecialty = medicalSpec;
|
||||
}
|
||||
|
||||
public String getEmail() {
|
||||
|
||||
Reference in New Issue
Block a user