PIBD-21_Lobashov_I_D_Travel.../TravelCompany/TravelCompanyContracts/ViewModels/OrderViewModel.cs

40 lines
1.4 KiB
C#
Raw Normal View History

2024-04-18 16:34:54 +04:00
using TravelCompanyDataModels;
using TravelCompanyDataModels.Enums;
using TravelCompanyDataModels.Models;
2024-02-07 19:42:14 +04:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2024-04-18 16:34:54 +04:00
using TravelCompanyDataModels.Enums;
using TravelCompanyDataModels.Models;
2024-02-07 19:42:14 +04:00
namespace TravelCompanyContracts.ViewModels
{
2024-04-18 16:34:54 +04:00
public class OrderViewModel : IOrderModel
2024-02-07 19:42:14 +04:00
{
[DisplayName("Номер")]
public int Id { get; set; }
public int TravelId { get; set; }
2024-04-18 16:34:54 +04:00
public int ClientId { get; set; }
2024-05-02 14:54:56 +04:00
public int? ImplementerId { get; set; } = null;
2024-04-18 16:34:54 +04:00
[DisplayName("Клиент")]
public string ClientFIO { get; set; } = string.Empty;
2024-04-18 21:08:02 +04:00
[DisplayName("Путёвка")]
2024-02-07 19:42:14 +04:00
public string TravelName { get; set; } = string.Empty;
2024-05-02 14:54:56 +04:00
[DisplayName("Исполнитель")]
public string ImplementerFIO { get; set; } = string.Empty;
2024-02-07 19:42:14 +04:00
[DisplayName("Количество")]
public int Count { get; set; }
[DisplayName("Сумма")]
public double Sum { get; set; }
[DisplayName("Статус")]
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
[DisplayName("Дата создания")]
public DateTime DateCreate { get; set; } = DateTime.Now;
[DisplayName("Дата выполнения")]
public DateTime? DateImplement { get; set; }
}
}