2023-02-12 16:08:29 +03:00
|
|
|
|
using AutomobilePlantDataModels.Models;
|
2023-02-12 12:21:10 +03:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.ComponentModel;
|
2023-02-12 16:08:29 +03:00
|
|
|
|
using AutomobilePlantDataModels.Enums;
|
2023-05-15 21:17:32 +03:00
|
|
|
|
using AutomobilePlantContracts.Attributes;
|
2023-02-12 12:21:10 +03:00
|
|
|
|
|
2023-02-12 16:08:29 +03:00
|
|
|
|
namespace AutomobilePlantContracts.ViewModel
|
2023-02-12 12:21:10 +03:00
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel : IOrderModel
|
|
|
|
|
{
|
2023-05-15 21:17:32 +03:00
|
|
|
|
[Column(visible: false)]
|
2023-02-12 12:21:10 +03:00
|
|
|
|
public int Id { get; set; }
|
2023-05-15 21:17:32 +03:00
|
|
|
|
[Column(title: "Клиент", width: 150)]
|
2023-04-19 19:38:34 +03:00
|
|
|
|
public string ClientName { get; set; } = string.Empty;
|
2023-05-15 21:17:32 +03:00
|
|
|
|
[Column(visible: false)]
|
2023-04-19 19:38:34 +03:00
|
|
|
|
public int ClientId { get; set; }
|
2023-05-15 21:17:32 +03:00
|
|
|
|
[Column(visible: false)]
|
2023-04-19 19:38:34 +03:00
|
|
|
|
public int? ImplementerId { get; set; }
|
2023-05-15 21:17:32 +03:00
|
|
|
|
[Column(title: "Исполнитель", width: 150)]
|
2023-04-19 19:38:34 +03:00
|
|
|
|
public string? ImplementerName { get; set; } = string.Empty;
|
2023-05-15 21:17:32 +03:00
|
|
|
|
[Column(visible: false)]
|
2023-04-19 15:41:28 +03:00
|
|
|
|
public int CarId { get; set; }
|
2023-05-15 21:17:32 +03:00
|
|
|
|
[Column(title: "Машина", width: 150)]
|
2023-04-19 15:41:28 +03:00
|
|
|
|
public string CarName { get; set; } = string.Empty;
|
2023-05-15 21:17:32 +03:00
|
|
|
|
[Column(title: "Кол-во", width: 150)]
|
2023-02-12 12:21:10 +03:00
|
|
|
|
public int Count { get; set; }
|
2023-05-15 21:17:32 +03:00
|
|
|
|
[Column(title: "Сумма", width: 150)]
|
2023-02-12 12:21:10 +03:00
|
|
|
|
public double Sum { get; set; }
|
2023-05-15 21:17:32 +03:00
|
|
|
|
[Column(title: "Статус", width: 150)]
|
2023-02-12 12:21:10 +03:00
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
2023-05-15 21:17:32 +03:00
|
|
|
|
[Column(title: "Дата создания", width: 150)]
|
2023-04-19 17:59:45 +03:00
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
|
2023-05-15 21:17:32 +03:00
|
|
|
|
[Column(title: "Дата выполнения", width: 150)]
|
2023-02-12 12:21:10 +03:00
|
|
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|