예제 #1
0
        static void Main(string[] args)
        {
            Costumer costumer = new Costumer("Minka", "Georgieva", 40, 3000);

            DepartmentEmployee department    = new DepartmentEmployee(Department.Accounting);
            DepartmentEmployee departmentTwo = new DepartmentEmployee(Department.Marketing);

            DateTime date = new DateTime();

            date = DateTime.Now;

            List <Project> projects = new List <Project>()
            {
                new Project("Anatomiq", date, "This is details,blaa", State.open),
                new Project("Biologiq", date, "Detailsssss", State.closed)
            };

            List <Employee> employees = new List <Employee>()
            {
                new Employee("Petar", "Petrov", 22, 200, department),
                new Employee("Georgi", "Georgiev", 17, 400, departmentTwo)
            };

            List <Sale> saleEmployeeList = new List <Sale>()
            {
                new Sale("Mikrovylnova", date, 1200),
                new Sale("Klimatik", date, 4000)
            };

            Employee      employeOne   = new Employee("Georgi", "Georgiev", 50, 5000, department);
            SalesEmployee saleEmploye  = new SalesEmployee(saleEmployeeList);
            Manager       managerOne   = new Manager("Ivan", "Geshev", 2, 20, department, employees);
            Developer     developerOne = new Developer(projects);

            Console.WriteLine(developerOne);
            Console.WriteLine(managerOne);
            Console.WriteLine(costumer);
            Console.WriteLine(saleEmploye);
            Console.WriteLine(employeOne);
        }
예제 #2
0
 public Employee(string firstName, string lastName, int id, decimal salary, DepartmentEmployee department) :
     base(firstName, lastName, id)
 {
     this.Salary     = salary;
     this.Department = department;
 }
예제 #3
0
파일: Manager.cs 프로젝트: zontak/OOP
 public Manager(string firstName, string lastName, int id, decimal salary, DepartmentEmployee department, List <Employee> employees) :
     base(firstName, lastName, id, salary, department)
 {
     this.Employees = employees;
 }