-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdminMenuWindowController.java
More file actions
50 lines (43 loc) · 1.06 KB
/
AdminMenuWindowController.java
File metadata and controls
50 lines (43 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package healthcareLook;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
public class AdminMenuWindowController implements Initializable{
@FXML
Button receptionist;
@FXML
Button nurse;
@FXML
Button removeEmployee;
@FXML
Button addEmployee;
@FXML
Button doctor;
@FXML
Button signout;
String staffID;
@Override
public void initialize(URL location, ResourceBundle resources) {
staffID = AdminMenuWindow.getID();
receptionist.setOnAction(a->{
ReceptionistMainMenuWindow.startReceptionstMenu();
});
nurse.setOnAction(b->{
NurseMenuWindow.startNurseWindow(staffID);
});
doctor.setOnAction(c->{
DoctorMenuWindow.startDoctorWindow(staffID);
});
addEmployee.setOnAction(d->{
HealthStaffCreate.startCreateWindow(staffID);
});
removeEmployee.setOnAction(f->{
StaffDeleteWindow.startDeletionWindow(staffID);
});
signout.setOnAction(e->{
AdminMenuWindow.stageClose();
});
}
}