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

37 lines
1.3 KiB
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;
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;
[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; }
}
}