#7 Visible UI for locked treatments
Some checks failed
Quality Check / Linting Check (push) Failing after 12s
Quality Check / Javadoc Check (push) Successful in 21s

This commit is contained in:
Dorian Nemec 2024-05-17 08:40:51 +02:00
parent 89e4be5172
commit d69c738641
3 changed files with 2 additions and 11 deletions

View file

@ -32,12 +32,6 @@ public class LockedTreatmentController {
public TableView<Treatment> tableView;
@FXML
public TableColumn<Treatment, Long> columnId;
@FXML
public TableColumn<Treatment, String> columnFirstName;
@FXML
public TableColumn<Treatment, String> columnSurName;
@FXML
public TableColumn<Treatment, String> columnDeleteDate;
private final ObservableList<Treatment> treatments = FXCollections.observableArrayList();
private NurseDao nurseDao;
@ -52,9 +46,6 @@ public class LockedTreatmentController {
this.readAllAndShowInTableView();
this.columnId.setCellValueFactory(new PropertyValueFactory<>("id"));
this.columnFirstName.setCellValueFactory(new PropertyValueFactory<>("firstName"));
this.columnSurName.setCellValueFactory(new PropertyValueFactory<>("surName"));
this.columnDeleteDate.setCellValueFactory(cellData -> new SimpleStringProperty("coming soon"));
this.tableView.setItems(this.treatments);
}

View file

@ -67,7 +67,7 @@ public class Treatment {
LocalTime end,
String description,
String remarks,
boolean isLocked
Boolean isLocked
) {
this.id = new SimpleIntegerProperty(id);
this.patient = new SimpleObjectProperty<>(patient);