Cambiado tipo de datos Date a LocalDate para componente visit.
This commit is contained in:
@@ -2,6 +2,7 @@ package managedbean.visit;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDate;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -32,7 +33,7 @@ public class PatientVisitListMBean extends ManagedBeanBase implements Serializab
|
||||
|
||||
private Integer patientId;
|
||||
private LazyDataModel<VisitTO> lazyDataModelVisitList;
|
||||
private Date selectedDate;
|
||||
private LocalDate selectedDate;
|
||||
private String lastUIQuery;
|
||||
private List<PatientTO> patientList;
|
||||
|
||||
@@ -42,14 +43,14 @@ public class PatientVisitListMBean extends ManagedBeanBase implements Serializab
|
||||
@PostConstruct
|
||||
public void init() {
|
||||
this.lastUIQuery = "";
|
||||
|
||||
|
||||
// Si el usuario es un paciente listamos las visitas de ese paciente, si es admnistrador listamos todas.
|
||||
switch (SessionUtils.getUserType()) {
|
||||
case ADMINISTRATOR:
|
||||
this.patientId = null;
|
||||
this.patient = null;
|
||||
this.selectedDate = new Date();
|
||||
|
||||
this.selectedDate = LocalDate.now();
|
||||
|
||||
this.patientList = this.getRemoteManagerCommon().listPatientsPaged(0, Constants.MAX_ITEMS_AUTOCOMPLETE_SEARCH);
|
||||
break;
|
||||
case PATIENT:
|
||||
@@ -72,7 +73,7 @@ public class PatientVisitListMBean extends ManagedBeanBase implements Serializab
|
||||
patientId = patient.getId();
|
||||
else
|
||||
patientId = null;
|
||||
|
||||
|
||||
Long totalRowCount = getRemoteManagerVisit().getVisitsCount(patientId, selectedDate);
|
||||
this.setRowCount(totalRowCount.intValue());
|
||||
|
||||
@@ -111,11 +112,11 @@ public class PatientVisitListMBean extends ManagedBeanBase implements Serializab
|
||||
public void showData() {
|
||||
}
|
||||
|
||||
public Date getSelectedDate() {
|
||||
public LocalDate getSelectedDate() {
|
||||
return selectedDate;
|
||||
}
|
||||
|
||||
public void setSelectedDate(Date selectedDate) {
|
||||
public void setSelectedDate(LocalDate selectedDate) {
|
||||
this.selectedDate = selectedDate;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user