ISEbd_21_Kuklew_M.I._Softwa.../SoftwareInstallationContracts/ViewModels/OrderViewModel.cs

37 lines
1.3 KiB
C#
Raw Normal View History

2024-04-07 16:54:02 +04:00
using SoftwareInstallationDataModels.Enums;
2024-04-07 17:40:43 +04:00
using SoftwareInstallationDataModels.Models;
2024-04-07 16:54:02 +04:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SoftwareInstallationContracts.ViewModels
{
2024-04-07 17:40:43 +04:00
public class OrderViewModel : IOrderModel
2024-04-07 16:54:02 +04:00
{
[DisplayName("Номер")]
public int Id { get; set; }
2024-05-11 21:16:59 +04:00
public int ClientId { get; set; }
2024-05-11 21:30:00 +04:00
public int? ImplementerId { get; set; } = null;
[DisplayName("Клиент")]
2024-05-11 21:16:59 +04:00
public string ClientFIO { get; set; } = string.Empty;
2024-04-07 17:40:43 +04:00
public int SoftwareId { get; set; }
2024-04-07 16:54:02 +04:00
[DisplayName("Изделие")]
2024-04-07 17:40:43 +04:00
public string SoftwareName { get; set; } = string.Empty;
2024-05-11 21:30:00 +04:00
[DisplayName("Исполнитель")]
public string ImplementerFIO { get; set; } = string.Empty;
[DisplayName("Количество")]
2024-04-07 16:54:02 +04:00
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; }
}
}