2023-05-15 21:17:32 +03:00

42 lines
1.6 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.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using AutomobilePlantDataModels.Enums;
using AutomobilePlantContracts.Attributes;
namespace AutomobilePlantContracts.ViewModel
{
public class OrderViewModel : IOrderModel
{
[Column(visible: false)]
public int Id { get; set; }
[Column(title: "Клиент", width: 150)]
public string ClientName { get; set; } = string.Empty;
[Column(visible: false)]
public int ClientId { get; set; }
[Column(visible: false)]
public int? ImplementerId { get; set; }
[Column(title: "Исполнитель", width: 150)]
public string? ImplementerName { get; set; } = string.Empty;
[Column(visible: false)]
public int CarId { get; set; }
[Column(title: "Машина", width: 150)]
public string CarName { get; set; } = string.Empty;
[Column(title: "Кол-во", width: 150)]
public int Count { get; set; }
[Column(title: "Сумма", width: 150)]
public double Sum { get; set; }
[Column(title: "Статус", width: 150)]
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
[Column(title: "Дата создания", width: 150)]
public DateTime DateCreate { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
[Column(title: "Дата выполнения", width: 150)]
public DateTime? DateImplement { get; set; }
}
}