Muestra el nombre del médico logeado par el cual se está consultando la
agenda del día.
This commit is contained in:
@@ -23,6 +23,7 @@ public class VisitListMBean extends ManagedBeanBase implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private int familyDoctorId;
|
||||
private String familyDoctorDisplayName;
|
||||
private LazyDataModel<VisitTO> lazyDataModelVisitList;
|
||||
private Date selectedDate;
|
||||
|
||||
@@ -33,6 +34,8 @@ public class VisitListMBean extends ManagedBeanBase implements Serializable {
|
||||
public void init() {
|
||||
// El usuario actual es un medico de familia, recuperamos su Id de la sessión actual
|
||||
this.familyDoctorId = Integer.valueOf(SessionUtils.getUserId());
|
||||
this.familyDoctorDisplayName = SessionUtils.getUserDisplayName();
|
||||
|
||||
this.selectedDate = new Date();
|
||||
|
||||
this.lazyDataModelVisitList = new LazyDataModel<VisitTO>() {
|
||||
@@ -66,4 +69,8 @@ public class VisitListMBean extends ManagedBeanBase implements Serializable {
|
||||
public void setSelectedDate(Date selectedDate) {
|
||||
this.selectedDate = selectedDate;
|
||||
}
|
||||
|
||||
public String getFamilyDoctorDisplayName() {
|
||||
return familyDoctorDisplayName;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user