2024-06-22 22:32:20 +04:00
|
|
|
|
using AutomobilePlantContracts.Attributes;
|
|
|
|
|
using AutomobilePlantDataModels.Enums;
|
2024-04-17 10:13:26 +04:00
|
|
|
|
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
|
|
|
|
|
{
|
2024-06-22 22:32:20 +04:00
|
|
|
|
[Column("Номер", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int CarId { get; set; }
|
|
|
|
|
[Column("Машина", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
|
|
|
|
public string CarName { get; set; } = string.Empty;
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int ClientId { get; set; }
|
|
|
|
|
[Column("ФИО клиента", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int? ImplementerId { get; set; }
|
|
|
|
|
[Column("ФИО исполнителя", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
|
|
|
|
public string ImplementerFIO { get; set; } = string.Empty;
|
2024-06-22 22:23:42 +04:00
|
|
|
|
|
2024-06-22 22:32:20 +04:00
|
|
|
|
[Column("Количество", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
[Column("Сумма", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
|
|
|
|
public double Sum { get; set; }
|
|
|
|
|
[Column("Статус", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
|
|
|
|
[Column("Дата создания", width: 100)]
|
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
|
|
|
[Column("Дата выполнения", width: 100)]
|
|
|
|
|
public DateTime? DateImplement { get; set; }
|
2024-04-17 10:13:26 +04:00
|
|
|
|
}
|
|
|
|
|
}
|