#7 fixxed smt
All checks were successful
Quality Check / Linting Check (push) Successful in 16s
Quality Check / Javadoc Check (push) Successful in 40s
Quality Check / Linting Check (pull_request) Successful in 20s
Quality Check / Javadoc Check (pull_request) Successful in 27s

This commit is contained in:
arminribic 2024-05-17 13:44:38 +02:00
parent cecc5edb62
commit 775916e584
3 changed files with 4 additions and 5 deletions

Binary file not shown.

View file

@ -16,6 +16,8 @@ import javafx.scene.control.cell.PropertyValueFactory;
import java.sql.SQLException; import java.sql.SQLException;
import java.time.LocalDate; import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
/** /**
* Controller for all locked treatments. * Controller for all locked treatments.
@ -113,13 +115,12 @@ public class LockedTreatmentController {
if (today.isEqual(deleteDate) || today.isAfter(deleteDate)) { if (today.isEqual(deleteDate) || today.isAfter(deleteDate)) {
try { try {
treatmentDao.delete(selecteditem.getId()); treatmentDao.delete(selecteditem.getId());
System.out.println("Wird gelöscht");
} catch (SQLException exception) { } catch (SQLException exception) {
exception.printStackTrace(); exception.printStackTrace();
} }
} }
readAllAndShowInTableView();
} }
readAllAndShowInTableView();
} }

View file

@ -32,7 +32,7 @@ public class Treatment {
private final SimpleStringProperty description; private final SimpleStringProperty description;
private final SimpleStringProperty remarks; private final SimpleStringProperty remarks;
private final SimpleBooleanProperty locked; private final SimpleBooleanProperty locked;
private int sperrfrist; private final int sperrfrist = 10;
/** /**
* This constructor allows instantiating a {@link Treatment} object, * This constructor allows instantiating a {@link Treatment} object,
@ -58,8 +58,6 @@ public class Treatment {
this.description = new SimpleStringProperty(description); this.description = new SimpleStringProperty(description);
this.remarks = new SimpleStringProperty(remarks); this.remarks = new SimpleStringProperty(remarks);
this.locked = new SimpleBooleanProperty(false); this.locked = new SimpleBooleanProperty(false);
sperrfrist = 10;
} }
/** /**