예제 #1
0
        /// <summary>
        /// The implementation of the abstract function for this class. Used to convert old data to new data.
        /// </summary>
        public override void ExtractEmployees()
        {
            FullTimeEmployee employeeNew;

            foreach (CompanyAEmployee employee in CompanyAEmployees.Employees)
            {
                employeeNew            = new FullTimeEmployee();
                employeeNew.Name       = employee.Name;
                employeeNew.EmployeeID = "a" + employee.ID;
                employeeNew.Note       = employee.Notes;
                this.Employees.Add(employeeNew);
            }
        }
예제 #2
0
        /// <summary>
        /// The implementation of the abstract function for this class. Used to convert old data to new data.
        /// </summary>
        public override void ExtractEmployees()
        {
            FullTimeEmployee employeeNew;

            foreach (CompEmployee employee in CompanyBEmployees.emp)
            {
                if (employee == null)
                {
                    continue;
                }
                employeeNew = new FullTimeEmployee();
                // Convert data for new system requirements
                employeeNew.Name       = employee.FirstName + " " + employee.LastName;
                employeeNew.EmployeeID = "b000" + employee.BadgeID;
                employeeNew.Note       = "New employee";
                this.Employees.Add(employeeNew);
            }
        }