#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.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,14 +115,13 @@ 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();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue