#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.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
/**
* Controller for all locked treatments.
@ -113,13 +115,12 @@ public class LockedTreatmentController {
if (today.isEqual(deleteDate) || today.isAfter(deleteDate)) {
try {
treatmentDao.delete(selecteditem.getId());
System.out.println("Wird gelöscht");
} catch (SQLException exception) {
exception.printStackTrace();
}
}
readAllAndShowInTableView();
}
readAllAndShowInTableView();
}

View file

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