27 lines
948 B
C#
Raw Normal View History

2024-05-17 23:22:03 +04:00
using BarDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
2024-05-17 23:32:45 +04:00
using BarContracts.Attributes;
2024-05-17 23:22:03 +04:00
namespace BarContracts.ViewModels
{
public class MessageInfoViewModel : IMessageInfoModel
{
2024-05-17 23:32:45 +04:00
[Column(visible: false)]
public int Id { get; set; }
[Column(visible: false)]
2024-05-17 23:22:03 +04:00
public string MessageId { get; set; } = string.Empty;
2024-05-17 23:32:45 +04:00
[Column(visible: false)]
2024-05-17 23:22:03 +04:00
public int? ClientId { get; set; }
2024-05-17 23:32:45 +04:00
[Column(title: "Имя отправителя", width: 150)]
2024-05-17 23:22:03 +04:00
public string SenderName { get; set; } = string.Empty;
2024-05-17 23:32:45 +04:00
[Column(title: "Дата доставки", width: 120)]
2024-05-17 23:22:03 +04:00
public DateTime DateDelivery { get; set; }
2024-05-17 23:32:45 +04:00
[Column(title: "Тема письма", width: 120)]
2024-05-17 23:22:03 +04:00
public string Subject { get; set; } = string.Empty;
2024-05-17 23:32:45 +04:00
[Column(title: "Внутренности письма", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2024-05-17 23:22:03 +04:00
public string Body { get; set; } = string.Empty;
}
}