PIbd-21_Kouvshinoff_T._A._A.../AutomobilePlant/AutomobilePlantContracts/ViewModels/OrderViewModel.cs

37 lines
1.3 KiB
C#
Raw Normal View History

2024-02-11 16:43:19 +04:00
using AutomobilePlantDataModels.Enums;
using AutomobilePlantDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AutomobilePlantContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
2024-02-12 14:42:27 +04:00
[DisplayName("Number")]
2024-02-11 16:43:19 +04:00
public int Id { get; set; }
public int CarId { get; set; }
2024-02-12 14:42:27 +04:00
[DisplayName("Car's name")]
2024-02-11 16:43:19 +04:00
public string CarName { get; set; } = string.Empty;
2024-04-05 23:37:18 +04:00
public int ClientId { get; set; }
[DisplayName("Client's FIO")]
public string ClientFIO { get; set; } = string.Empty;
public int? ImplementerId { get; set; }
[DisplayName("Implementer's FIO")]
public string ImplementerFIO { get; set; } = string.Empty;
2024-02-12 14:42:27 +04:00
[DisplayName("Count")]
2024-02-11 16:43:19 +04:00
public int Count { get; set; }
2024-02-12 14:42:27 +04:00
[DisplayName("Sum")]
2024-02-11 16:43:19 +04:00
public double Sum { get; set; }
2024-02-12 14:42:27 +04:00
[DisplayName("Status")]
2024-02-11 16:43:19 +04:00
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
2024-02-12 14:42:27 +04:00
[DisplayName("Date of creation")]
2024-02-11 16:43:19 +04:00
public DateTime DateCreate { get; set; } = DateTime.Now;
2024-02-12 14:42:27 +04:00
[DisplayName("Date of completion")]
2024-02-11 16:43:19 +04:00
public DateTime? DateImplement { get; set; }
}
}