PIbd-21_Kouvshinoff_T._A._A.../AutomobilePlant/AutomobilePlantContracts/ViewModels/OrderViewModel.cs
2024-02-12 14:42:27 +04:00

31 lines
998 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
{
[DisplayName("Number")]
public int Id { get; set; }
public int CarId { get; set; }
[DisplayName("Car's name")]
public string CarName { get; set; } = string.Empty;
[DisplayName("Count")]
public int Count { get; set; }
[DisplayName("Sum")]
public double Sum { get; set; }
[DisplayName("Status")]
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
[DisplayName("Date of creation")]
public DateTime DateCreate { get; set; } = DateTime.Now;
[DisplayName("Date of completion")]
public DateTime? DateImplement { get; set; }
}
}