42 lines
1.6 KiB
C#
Raw Normal View History

using AutomobilePlantDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using AutomobilePlantDataModels.Enums;
2023-05-15 21:17:32 +03:00
using AutomobilePlantContracts.Attributes;
namespace AutomobilePlantContracts.ViewModel
{
public class OrderViewModel : IOrderModel
{
2023-05-15 21:17:32 +03:00
[Column(visible: false)]
public int Id { get; set; }
2023-05-15 21:17:32 +03:00
[Column(title: "Клиент", width: 150)]
public string ClientName { get; set; } = string.Empty;
2023-05-15 21:17:32 +03:00
[Column(visible: false)]
public int ClientId { get; set; }
2023-05-15 21:17:32 +03:00
[Column(visible: false)]
public int? ImplementerId { get; set; }
2023-05-15 21:17:32 +03:00
[Column(title: "Исполнитель", width: 150)]
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)]
public int Count { get; set; }
2023-05-15 21:17:32 +03:00
[Column(title: "Сумма", width: 150)]
public double Sum { get; set; }
2023-05-15 21:17:32 +03:00
[Column(title: "Статус", width: 150)]
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)]
public DateTime? DateImplement { get; set; }
}
}