2023-10-09 12:20:00 +05:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Data.User
|
2023-06-21 11:44:04 +05:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2023-10-09 12:20:00 +05:00
|
|
|
|
/// Контакт
|
2023-06-21 11:44:04 +05:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
2023-10-09 12:20:00 +05:00
|
|
|
|
public class ContactDto : IId
|
2023-06-21 11:44:04 +05:00
|
|
|
|
{
|
2023-10-09 12:20:00 +05:00
|
|
|
|
/// <inheritdoc/>
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
2023-10-12 16:33:30 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// ключ типа компании
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required]
|
|
|
|
|
public int IdCompanyType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ключ скважины
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required]
|
|
|
|
|
public int IdWell { get; set; }
|
|
|
|
|
|
2023-10-09 12:20:00 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// ФИО
|
|
|
|
|
/// </summary>
|
2023-10-12 16:33:30 +05:00
|
|
|
|
[Required]
|
2023-10-09 12:20:00 +05:00
|
|
|
|
[StringLength(260, MinimumLength = 0, ErrorMessage = "Допустимая длина ФИО от 1 до 260 символов")]
|
|
|
|
|
public string FIO { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Email
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Required]
|
|
|
|
|
[StringLength(260, MinimumLength = 3, ErrorMessage = "Допустимая длина email от 3 до 260 символов")]
|
|
|
|
|
public string Email { get; set; } = null!;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Phone
|
|
|
|
|
/// </summary>
|
2023-10-12 16:33:30 +05:00
|
|
|
|
[Required]
|
2023-10-09 12:20:00 +05:00
|
|
|
|
[StringLength(50, MinimumLength = 1, ErrorMessage = "Допустимая длина телефона от 1 до 50 символов")]
|
2023-10-12 16:33:30 +05:00
|
|
|
|
public string Phone { get; set; } = null!;
|
2023-10-09 12:20:00 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Должность
|
|
|
|
|
/// </summary>
|
2023-10-12 16:33:30 +05:00
|
|
|
|
[Required]
|
2023-10-09 12:20:00 +05:00
|
|
|
|
[StringLength(100, MinimumLength = 1, ErrorMessage = "Допустимая длина должности от 1 до 100 символов")]
|
2023-10-12 16:33:30 +05:00
|
|
|
|
public string Position { get; set; } = null;
|
2023-10-09 12:20:00 +05:00
|
|
|
|
|
2023-06-21 11:44:04 +05:00
|
|
|
|
/// <summary>
|
2023-10-12 16:33:30 +05:00
|
|
|
|
/// Компания
|
2023-06-21 11:44:04 +05:00
|
|
|
|
/// </summary>
|
2023-10-09 12:20:00 +05:00
|
|
|
|
[Required]
|
2023-10-12 16:33:30 +05:00
|
|
|
|
[StringLength(260, MinimumLength = 3, ErrorMessage = "Допустимая длина должности от 3 до 260 символов")]
|
|
|
|
|
public string Company { get; set; } = null!;
|
2023-10-09 12:20:00 +05:00
|
|
|
|
|
2023-06-21 11:44:04 +05:00
|
|
|
|
}
|
|
|
|
|
}
|