2024-05-13 02:01:32 +04:00
|
|
|
|
using AircraftPlantContracts.Attributes;
|
|
|
|
|
using AircraftPlantDataModels.Models;
|
2024-05-04 22:30:27 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AircraftPlantContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Модель для передачи данных пользователю
|
|
|
|
|
/// для отображения для писем
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class MessageInfoViewModel : IMessageInfoModel
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификатор
|
|
|
|
|
/// </summary>
|
2024-05-13 02:01:32 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-05-04 22:30:27 +04:00
|
|
|
|
public string MessageId { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификатор клиента
|
|
|
|
|
/// </summary>
|
2024-05-13 02:01:32 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-05-04 22:30:27 +04:00
|
|
|
|
public int? ClientId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Адрес электронной почты отправителя
|
|
|
|
|
/// </summary>
|
2024-05-13 02:01:32 +04:00
|
|
|
|
[Column(title: "Отправитель", width: 150)]
|
2024-05-04 22:30:27 +04:00
|
|
|
|
public string SenderName { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Дата получения письма
|
|
|
|
|
/// </summary>
|
2024-05-13 02:01:32 +04:00
|
|
|
|
[Column(title: "Дата письма", width: 150)]
|
2024-05-04 22:30:27 +04:00
|
|
|
|
public DateTime DateDelivery { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Заголовок письма
|
|
|
|
|
/// </summary>
|
2024-05-13 02:01:32 +04:00
|
|
|
|
[Column(title: "Заголовок", width: 150)]
|
2024-05-04 22:30:27 +04:00
|
|
|
|
public string Subject { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Тело письма
|
|
|
|
|
/// </summary>
|
2024-05-13 02:01:32 +04:00
|
|
|
|
[Column(title: "Текст", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-05-04 22:30:27 +04:00
|
|
|
|
public string Body { get; set; } = string.Empty;
|
2024-05-13 02:01:32 +04:00
|
|
|
|
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int Id { get; set; }
|
2024-05-04 22:30:27 +04:00
|
|
|
|
}
|
|
|
|
|
}
|