parent
c852265649
commit
15f4c1f3b0
4 changed files with 20 additions and 7 deletions
|
@ -9,6 +9,9 @@ import javafx.scene.control.Tab;
|
||||||
import javafx.scene.control.TabPane;
|
import javafx.scene.control.TabPane;
|
||||||
import javafx.scene.layout.AnchorPane;
|
import javafx.scene.layout.AnchorPane;
|
||||||
import javafx.scene.layout.BorderPane;
|
import javafx.scene.layout.BorderPane;
|
||||||
|
import de.hitec.nhplus.treatment.Treatment;
|
||||||
|
import de.hitec.nhplus.medication.Medication;
|
||||||
|
import de.hitec.nhplus.patient.Patient;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
@ -84,7 +87,7 @@ public class MainWindowController {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads the patient page into its tab.
|
* Loads the {@link Patient} page into its tab.
|
||||||
*/
|
*/
|
||||||
private void loadPatientPage() {
|
private void loadPatientPage() {
|
||||||
try {
|
try {
|
||||||
|
@ -102,7 +105,7 @@ public class MainWindowController {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads the {@link } page into its tab.
|
* Loads the {@link Treatment } tab.
|
||||||
*/
|
*/
|
||||||
private void loadTreatmentPage() {
|
private void loadTreatmentPage() {
|
||||||
SelectionModel<Tab> selectionModel = treatmentTabPane.getSelectionModel();
|
SelectionModel<Tab> selectionModel = treatmentTabPane.getSelectionModel();
|
||||||
|
@ -115,6 +118,9 @@ public class MainWindowController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Loads the active {@link Treatment} page into its tab.
|
||||||
|
*/
|
||||||
private void loadActiveTreatmentPage() {
|
private void loadActiveTreatmentPage() {
|
||||||
try {
|
try {
|
||||||
BorderPane activeTreatmentPane = FXMLLoader.load(
|
BorderPane activeTreatmentPane = FXMLLoader.load(
|
||||||
|
@ -130,6 +136,9 @@ public class MainWindowController {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Loads the locked {@link Treatment} page into its tab.
|
||||||
|
*/
|
||||||
private void loadLockedTreatmentPage() {
|
private void loadLockedTreatmentPage() {
|
||||||
try {
|
try {
|
||||||
BorderPane treatmentsPane = FXMLLoader.load(
|
BorderPane treatmentsPane = FXMLLoader.load(
|
||||||
|
@ -146,7 +155,7 @@ public class MainWindowController {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads the nurse page into its tab.
|
* Loads the {@link Nurse} page into its tab.
|
||||||
*/
|
*/
|
||||||
private void loadNursePage() {
|
private void loadNursePage() {
|
||||||
SelectionModel<Tab> selectionModel = nurseTabPane.getSelectionModel();
|
SelectionModel<Tab> selectionModel = nurseTabPane.getSelectionModel();
|
||||||
|
@ -196,7 +205,7 @@ public class MainWindowController {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Loads the medication page into its tab.
|
* Loads the {@link Medication} page into its tab.
|
||||||
*/
|
*/
|
||||||
private void loadMedicationPage() {
|
private void loadMedicationPage() {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -22,6 +22,7 @@ import java.sql.SQLException;
|
||||||
*
|
*
|
||||||
* @author Dominik Säume
|
* @author Dominik Säume
|
||||||
* @author Ole Kück
|
* @author Ole Kück
|
||||||
|
* @author Armin Ribic
|
||||||
*/
|
*/
|
||||||
public class AllNurseController {
|
public class AllNurseController {
|
||||||
@FXML
|
@FXML
|
||||||
|
|
|
@ -28,6 +28,8 @@ import java.util.ArrayList;
|
||||||
*
|
*
|
||||||
* @author Bernd Heidemann
|
* @author Bernd Heidemann
|
||||||
* @author Dominik Säume
|
* @author Dominik Säume
|
||||||
|
* @author Armin Ribic
|
||||||
|
* @author Dorian Nemec
|
||||||
*/
|
*/
|
||||||
public class AllTreatmentController {
|
public class AllTreatmentController {
|
||||||
|
|
||||||
|
|
|
@ -42,12 +42,10 @@ public class LockedTreatmentController {
|
||||||
private TableColumn<Treatment, String> columnDeleteDate;
|
private TableColumn<Treatment, String> columnDeleteDate;
|
||||||
|
|
||||||
private final ObservableList<Treatment> treatments = FXCollections.observableArrayList();
|
private final ObservableList<Treatment> treatments = FXCollections.observableArrayList();
|
||||||
private NurseDao nurseDao;
|
|
||||||
private TreatmentDao treatmentDao;
|
private TreatmentDao treatmentDao;
|
||||||
private PatientDao patientDao;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method allows initializing a {@link LockedNurseController} object
|
* This method allows initializing a {@link LockedTreatmentController} object
|
||||||
* that is called after the binding of all the fields.
|
* that is called after the binding of all the fields.
|
||||||
*/
|
*/
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
|
@ -75,6 +73,9 @@ public class LockedTreatmentController {
|
||||||
handleDelete();
|
handleDelete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reads all locked {@link Treatment} data and shows it in the table.
|
||||||
|
*/
|
||||||
private void readAllAndShowInTableView() {
|
private void readAllAndShowInTableView() {
|
||||||
this.treatments.clear();
|
this.treatments.clear();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue