97 lines
2.5 KiB
C#
97 lines
2.5 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace WinForms
|
||
{
|
||
/// <summary>
|
||
/// Сущность "Человек"
|
||
/// </summary>
|
||
public class Employee
|
||
{
|
||
/// <summary>
|
||
/// Идентификатор
|
||
/// </summary>
|
||
public int Id { get; set; }
|
||
|
||
/// <summary>
|
||
/// Статус
|
||
/// </summary>
|
||
public string Status { get; set; }
|
||
|
||
/// <summary>
|
||
/// Имя
|
||
/// </summary>
|
||
public string Name { get; set; }
|
||
|
||
/// <summary>
|
||
/// Фамилия
|
||
/// </summary>
|
||
public string Surname { get; set; }
|
||
|
||
/// <summary>
|
||
/// Возраст
|
||
/// </summary>
|
||
public int Age { get; set; }
|
||
|
||
/// <summary>
|
||
/// Наличие детей
|
||
/// </summary>
|
||
public string Kids { get; set; }
|
||
|
||
/// <summary>
|
||
/// Наличие личного автомобиля
|
||
/// </summary>
|
||
public string Car { get; set; }
|
||
|
||
/// <summary>
|
||
/// Подразделение
|
||
/// </summary>
|
||
public string Department { get; set; }
|
||
|
||
/// <summary>
|
||
/// Должность
|
||
/// </summary>
|
||
public string Post { get; set; }
|
||
|
||
/// <summary>
|
||
/// Премия
|
||
/// </summary>
|
||
public double Prize { get; set; }
|
||
|
||
/// <summary>
|
||
/// Конструктор по умолчанию
|
||
/// </summary>
|
||
public Employee() { }
|
||
|
||
/// <summary>
|
||
/// Конструктор с параметрами
|
||
/// </summary>
|
||
/// <param name="id"></param>
|
||
/// <param name="status"></param>
|
||
/// <param name="name"></param>
|
||
/// <param name="surname"></param>
|
||
/// <param name="age"></param>
|
||
/// <param name="kids"></param>
|
||
/// <param name="car"></param>
|
||
/// <param name="department"></param>
|
||
/// <param name="post"></param>
|
||
/// <param name="prize"></param>
|
||
public Employee(int id, string status, string name, string surname, int age, string kids, string car, string department, string post, double prize)
|
||
{
|
||
Id = id;
|
||
Status = status;
|
||
Name = name;
|
||
Surname = surname;
|
||
Age = age;
|
||
Kids = kids;
|
||
Car = car;
|
||
Department = department;
|
||
Post = post;
|
||
Prize = prize;
|
||
}
|
||
}
|
||
}
|