Inheritance: IEmployee
コード例 #1
0
        /// <summary>
        /// Creates production employee
        /// </summary>
        /// <param name="name"></param>
        /// <param name="phoneNo"></param>
        /// <param name="address"></param>
        /// <param name="hourlyWage"></param>
        /// <param name="shift">shift Enum Day / Evening / Nigh</param>
        /// <param name="department">Department enum</param>
        /// <param name="marity">Marital status enum</param>
        /// <returns></returns>
        public static BlueCollar CreateEmployee(string name,
            string phoneNo, string address, double hourlyWage, string personalID,
            EmployeeStatuses.Shift shift, EmployeeStatuses.Department department,
            EmployeeStatuses.MaritalStatus marity)
        {
            BlueCollar employee = new BlueCollar(name, phoneNo, address, hourlyWage, personalID, shift, department, marity);

            return employee;
        }
コード例 #2
0
 /// <summary>
 /// saves blue collar Employee to DB...
 /// </summary>
 /// <param name="employee"></param>
 public static void SaveToDB(BlueCollar employee)
 {
     throw new NotImplementedException();
 }