Ejemplo n.º 1
0
 //Overload for employee's that dont need an id
 public Employee(string firstName, string lastName, DateTime birthDate, DateTime dateEmployment, Gender gender, string password, EmployeeType employeeType)
 {
     FirstName      = firstName;
     LastName       = lastName;
     BirthDate      = birthDate;
     DateEmployment = dateEmployment;
     Gender         = gender;
     Password       = password;
     EmployeeType   = employeeType;
 }
Ejemplo n.º 2
0
        //Function to show a correct dutch string
        public static string ToDutchString(this EmployeeType employeeType)
        {
            switch (employeeType)
            {
            case EmployeeType.Owner:
                return("Eigenaar");

            case EmployeeType.Waiter:
                return("Bediening");

            case EmployeeType.Bartender:
                return("Barpersoneel");

            case EmployeeType.Chef:
                return("Keukenpersoneel");

            default:
                return("Onbekend");
            }
        }
Ejemplo n.º 3
0
 public Employee(int ID, Name name, EmployeeType type, List <QualificationType> qualifications) : base(ID)
 {
     Name           = name;
     Type           = type;
     Qualifications = qualifications ?? new List <QualificationType>();
 }
Ejemplo n.º 4
0
 public Employee(Name name, EmployeeType employeeType, List <QualificationType> qualifications) : base()
 {
     Name           = name;
     Type           = employeeType;
     Qualifications = qualifications ?? new List <QualificationType>();
 }