#7 fixxed smt
This commit is contained in:
parent
cecc5edb62
commit
775916e584
3 changed files with 4 additions and 5 deletions
Binary file not shown.
|
@ -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,14 +115,13 @@ 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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue