#4-Registro-de-Información-Personal #16
@ -300,7 +300,8 @@ public class EmployeeView extends BeanValidationForm<Employee> implements HasUrl
|
|||||||
return List.of(
|
return List.of(
|
||||||
mt, fs, firstName, lastName, status, birthday, birthCity, maritalStatus,
|
mt, fs, firstName, lastName, status, birthday, birthCity, maritalStatus,
|
||||||
residenceAddress, phoneNumber, personalEmail, position, team, ss, emergencyCName,
|
residenceAddress, phoneNumber, personalEmail, position, team, ss, emergencyCName,
|
||||||
emergencyCAddress, emergencyCPhone, emergencyCEmail, si, upload, profileImagePreview, saveButton, editButton
|
emergencyCAddress, emergencyCPhone, emergencyCEmail, si, upload, profileImagePreview,
|
||||||
|
saveButton, editButton
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -45,11 +45,6 @@ public class EmployeesListView extends Main {
|
|||||||
addEditButtonColumn("View", this::navigateToEmployeeView);
|
addEditButtonColumn("View", this::navigateToEmployeeView);
|
||||||
addEditButtonColumn("Edit", this::navigateToEditView);
|
addEditButtonColumn("Edit", this::navigateToEditView);
|
||||||
setupPagingGrid();
|
setupPagingGrid();
|
||||||
|
|
||||||
table.addItemDoubleClickListener(event -> {
|
|
||||||
Employee employee = event.getItem();
|
|
||||||
navigateToEditView(employee);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateEmployeeStatus(final Employee employee, final boolean isActive) {
|
private void updateEmployeeStatus(final Employee employee, final boolean isActive) {
|
||||||
|
Loading…
Reference in New Issue
Block a user