public static void receptionistAppointment(Receptionist user) //menu for receptionists to manage appointments { do { Console.WriteLine(Environment.NewLine + "Appointment Management Menu" + Environment.NewLine + "----------------------"); Console.WriteLine("Type A to | Add an Appointment" + Environment.NewLine + "Type V to | View all Appointments" + Environment.NewLine + "Type C to | Book a Phone Consultation" + Environment.NewLine + "Type P to | View all Phone Consultations" + Environment.NewLine + "Type B to | Return to the Previous Menu"); string menuChoice = Console.ReadLine().ToUpper(); Practice currentPractice = Practice.currentPractice(user); switch (menuChoice) { case "A": Appointment.newAppointment(currentPractice); //method to create new appointment break; case "V": Appointment.displayAppointments(); //method to display all appointments break; case "C": Consultation.newConsultation(user); //method to create a new Phone Consultation Appointment based on Patient-requested tickets break; case "P": Consultation.receptionistView(currentPractice); //method to display all phone consultation appointments break; case "B": receptionistMenu(loginBackup); //load previous menu break; } } while (!constantMenu); }
public static void receptionistMenu(List <string> loginDetails) //initial menu for receptionists afer login { do { loginBackup = loginDetails; Receptionist currentLogin = Receptionist.loginInformation(loginDetails); Console.WriteLine(Environment.NewLine + "Receptionist Menu" + Environment.NewLine + "-----------------"); Console.WriteLine("Type T to | Manage Treatments" + Environment.NewLine + "Type P to | Manage Patients" + Environment.NewLine + "Type A to | Manage Appointments" + Environment.NewLine + "Type X to | Exit the Software"); string menuChoice = Console.ReadLine().ToUpper(); switch (menuChoice) { case "T": receptionistTreatments(); //runs menu to manage treatments break; case "P": receptionistPatients(); //loads menu to manage patients break; case "A": receptionistAppointment(currentLogin); //loads menu to manage appointments break; case "X": Environment.Exit(1); //closes the application break; } } while (!constantMenu); }
protected static bool manageReceptionists() //method to manage receptionists { if (Receptionist.addReceptionist()) { return(true); } //calls method to manage receptionists from the Receptionist class return(false); }
public Practice(string practiceID, string location, int roomCount, Dictionary <string, Dentist> roomDentist, Dictionary <string, Nurse> roomNurse, Receptionist receptionist) { //object for practices this.practiceID = practiceID; this.location = location; this.roomCount = roomCount; this.roomDentist = roomDentist; this.roomNurse = roomNurse; this.receptionist = receptionist; }
public static string checkStaff(List <string> userInput) //method to check if inputted login information matches an exisitng login and role { string loginRole = ""; bool loginBool = false; loginBool = Dentist.checkDentist(userInput); if (loginBool == true) { loginRole = "Dentist"; return(loginRole); } loginBool = Nurse.checkNurse(userInput); if (loginBool == true) { loginRole = "Nurse"; return(loginRole); } loginBool = Receptionist.checkReceptionist(userInput); if (loginBool == true) { loginRole = "Receptionist"; return(loginRole); } loginBool = Administrator.checkAdmin(userInput); if (loginBool == true) { loginRole = "Admin"; return(loginRole); } loginRole = "Error"; return(loginRole); }