52 lines
1.7 KiB
C#
Raw Permalink Normal View History

2024-06-21 18:19:35 +04:00
using FurnitureAssemblyContracts.Attributes;
using FurnitureAssemblyDataModels.Enums;
2024-02-28 01:13:41 +04:00
using FurnitureAssemblyDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FurnitureAssemblyContracts.ViewModels
{
// Класс для отображения пользователю информации о заказах
public class OrderViewModel : IOrderModel
{
2024-06-21 18:19:35 +04:00
[Column(visible: false)]
2024-02-28 01:13:41 +04:00
public int Id { get; set; }
2024-06-21 18:19:35 +04:00
[Column(visible: false)]
2024-05-13 23:32:57 +04:00
public int ClientId { get; set; }
2024-06-21 18:19:35 +04:00
[Column(title: "ФИО клиента", width: 150)]
2024-05-13 23:32:57 +04:00
public string ClientFIO { get; set; } = string.Empty;
2024-06-21 18:19:35 +04:00
[Column(visible: false)]
2024-06-21 14:50:51 +04:00
public int? ImplementerId { get; set; }
2024-06-21 18:19:35 +04:00
[Column(title: "ФИО исполнителя", width: 150)]
2024-06-21 14:50:51 +04:00
public string ImplementerFIO { get; set; } = string.Empty;
2024-06-21 18:19:35 +04:00
[Column(visible: false)]
2024-02-28 01:13:41 +04:00
public int FurnitureId { get; set; }
2024-06-21 18:19:35 +04:00
[Column(title: "Изделие", width: 150)]
2024-02-28 01:13:41 +04:00
public string FurnitureName { get; set; } = string.Empty;
2024-06-21 18:19:35 +04:00
[Column(title: "Количество", width: 150)]
2024-02-28 01:13:41 +04:00
public int Count { get; set; }
2024-06-21 18:19:35 +04:00
[Column(title: "Сумма", width: 150)]
2024-02-28 01:13:41 +04:00
public double Sum { get; set; }
2024-06-21 18:19:35 +04:00
[Column(title: "Статус", width: 150)]
2024-02-28 01:13:41 +04:00
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
2024-06-21 18:19:35 +04:00
[Column(title: "Дата создания", width: 150)]
2024-02-28 01:13:41 +04:00
public DateTime DateCreate { get; set; } = DateTime.Now;
2024-06-21 18:19:35 +04:00
[Column(title: "Дата выполнения", width: 150)]
2024-02-28 01:13:41 +04:00
public DateTime? DateImplement { get; set; }
}
}