2024-11-11 13:38:53 +04:00
|
|
|
|
using ProjectTourAgency.Enities.Enums;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2024-12-06 12:17:31 +03:00
|
|
|
|
using System.ComponentModel;
|
2024-11-11 13:38:53 +04:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ProjectTourAgency.Enities;
|
|
|
|
|
|
|
|
|
|
public class Employee
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; private set; }
|
2024-12-06 12:17:31 +03:00
|
|
|
|
|
|
|
|
|
[DisplayName("Полное имя")]
|
2024-11-11 13:38:53 +04:00
|
|
|
|
public string FullName { get; private set; } = string.Empty;
|
|
|
|
|
|
2024-12-06 12:17:31 +03:00
|
|
|
|
public string EmployeeName => $"{EmployeeJob} {FullName}";
|
|
|
|
|
|
|
|
|
|
[DisplayName("Должность")]
|
2024-11-11 13:38:53 +04:00
|
|
|
|
public EmpoyeeJob EmployeeJob { get; private set; }
|
|
|
|
|
|
2024-12-06 12:17:31 +03:00
|
|
|
|
|
2024-11-11 13:38:53 +04:00
|
|
|
|
public static Employee CreateEntity(int id, string fullName,
|
|
|
|
|
EmpoyeeJob job)
|
|
|
|
|
{
|
|
|
|
|
return new Employee
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
|
|
|
|
FullName = fullName,
|
|
|
|
|
EmployeeJob = job
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|