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;
|
||||
@@ -27,7 +28,7 @@ public class VisitListMBean extends ManagedBeanBase implements Serializable {
|
||||
private int familyDoctorId;
|
||||
private String familyDoctorDisplayName;
|
||||
private LazyDataModel<VisitTO> lazyDataModelVisitList;
|
||||
private Date selectedDate;
|
||||
private LocalDate selectedDate;
|
||||
|
||||
public VisitListMBean() {
|
||||
}
|
||||
@@ -38,7 +39,7 @@ public class VisitListMBean extends ManagedBeanBase implements Serializable {
|
||||
this.familyDoctorId = Integer.valueOf(SessionUtils.getUserId());
|
||||
this.familyDoctorDisplayName = SessionUtils.getUserDisplayName();
|
||||
|
||||
this.selectedDate = new Date();
|
||||
this.selectedDate = LocalDate.now();
|
||||
|
||||
this.lazyDataModelVisitList = new LazyDataModel<VisitTO>() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@@ -70,11 +71,11 @@ public class VisitListMBean extends ManagedBeanBase implements Serializable {
|
||||
ctx.getExternalContext().redirect(String.format("UpdateVisit.xhtml?id=%d&fromPage=%s", visitId, ctx.getViewRoot().getViewId()));
|
||||
}
|
||||
|
||||
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