Compare commits
No commits in common. "6e5857490992cf8d1b1416e35d3a82f0f8f94035" and "970f167bc33d97fe01796b3cfc3bf256ab410fc0" have entirely different histories.
6e58574909
...
970f167bc3
2 changed files with 1 additions and 6 deletions
|
@ -113,11 +113,6 @@ public class LockedNurseController {
|
|||
@FXML
|
||||
public void handleMouseClick() {
|
||||
Nurse nurse = tableView.getSelectionModel().getSelectedItem();
|
||||
if(nurse == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
boolean canBeDeleted = nurse.calculateDeleteDate().isBefore(LocalDate.now());
|
||||
buttonDelete.setDisable(!canBeDeleted);
|
||||
}
|
||||
|
|
|
@ -10,5 +10,5 @@ CREATE TABLE treatment
|
|||
remark TEXT NOT NULL,
|
||||
isLocked BOOLEAN NOT NULL DEFAULT false,
|
||||
FOREIGN KEY (patientId) REFERENCES patient (id) ON DELETE CASCADE,
|
||||
FOREIGN KEY (nurseId) REFERENCES nurse (id) ON DELETE CASCADE
|
||||
FOREIGN KEY (nurseId) REFERENCES nurse (id) ON DELETE SET NULL
|
||||
)
|
Loading…
Reference in a new issue