Administrative AdmUserNameAndPassword        = new Administrative("admstaff", 1234); //Default password and username for all AdmStaff

        public void Process()
        {
            signEmployees();        //creates objects of each respective class
            registerMeetingRooms(); //Creates object of the MéetingRooms

            int selection = -1;

            do
            {
                selection = MainLoginInput();
                switch (selection)
                {
                case 1:
                    employeeType = ETypeOfEmployee.Receptionist;
                    ReceptionistLogin();
                    break;

                case 2:
                    employeeType = ETypeOfEmployee.AdministrativeStaff;
                    AdministrativeStaffLogin();

                    break;

                case 3:
                    employeeType = ETypeOfEmployee.Lawyer;
                    LawyerLogin();
                    break;

                default:
                    Console.WriteLine("Invalid selection");
                    break;
                }
            } while (selection != 4);
        }
Example #2
0
 public Employee(int id, string firstName, string lastName, DateTime joinedOn, ETypeOfEmployee employeeType)
 {
     ID           = id;
     FirstName    = firstName;
     LastName     = lastName;
     JoinedOn     = joinedOn;
     EmployeeType = employeeType;
 }
Example #3
0
 public Administrative(int id, string firstName, string lastName, DateTime joinedOn, string role, ETypeOfEmployee employeeType)
     : base(id, firstName, lastName, joinedOn, employeeType)
 {
     Role = role;
 }
Example #4
0
 public Receptionist(int id, string firstName, string lastName, DateTime joinedOn, ETypeOfEmployee employeeType)
     : base(id, firstName, lastName, joinedOn, employeeType)
 {
 }
 public Lawyer(int id, string firstName, string lastName, DateTime joinedOn, DateTime dOB, int seniority, ETypeOfSpecialization specialization, ETypeOfEmployee employeeType, ETypeOfLawyer typeOfLawyer)
     : base(id, firstName, lastName, joinedOn, employeeType)
 {
     DOB            = dOB;
     Seniority      = seniority;
     Specialization = specialization;
     TypeOfLawyer   = typeOfLawyer;
 }