Logik des AllTreatmentController angepasst
This commit is contained in:
parent
0ac8f3eb1b
commit
bf86f9fc84
1 changed files with 7 additions and 0 deletions
|
@ -322,6 +322,13 @@ public class AllTreatmentController {
|
||||||
}catch (SQLException exception){
|
}catch (SQLException exception){
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
}
|
}
|
||||||
|
if (selectedItem.calculateDeleteDate().isBefore(LocalDate.now())){
|
||||||
|
try {
|
||||||
|
dao.delete(selectedItem.getId());
|
||||||
|
} catch (SQLException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
readAllAndShowInTableView();
|
readAllAndShowInTableView();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue