2024-03-20 19:37:08 +04:00
|
|
|
|
using FurnitureAssemblyDataModels.Enums;
|
|
|
|
|
using FurnitureAssemblyDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2024-06-17 18:47:33 +04:00
|
|
|
|
using FurnitureAssemblyContracts.Attributes;
|
2024-03-20 19:37:08 +04:00
|
|
|
|
|
|
|
|
|
namespace FurnitureAssemblyContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel : IOrderModel
|
|
|
|
|
{
|
2024-06-17 18:47:33 +04:00
|
|
|
|
[Column(title: "Номер", width: 50)]
|
2024-03-20 19:37:08 +04:00
|
|
|
|
public int Id { get; set; }
|
2024-06-17 18:47:33 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int ClientId { get; set; }
|
|
|
|
|
[Column(title: "Клиент", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
|
|
|
|
[Column(visible: false)]
|
2024-03-20 19:37:08 +04:00
|
|
|
|
public int FurnitureId { get; set; }
|
2024-06-17 18:47:33 +04:00
|
|
|
|
[Column(title: "Изделие", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-03-20 19:37:08 +04:00
|
|
|
|
public string FurnitureName { get; set; } = string.Empty;
|
2024-06-17 18:47:33 +04:00
|
|
|
|
[Column(title: "Количество", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-03-20 19:37:08 +04:00
|
|
|
|
public int Count { get; set; }
|
2024-06-17 18:47:33 +04:00
|
|
|
|
[Column(title: "Сумма", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-03-20 19:37:08 +04:00
|
|
|
|
public double Sum { get; set; }
|
2024-06-17 18:47:33 +04:00
|
|
|
|
[Column(title: "Статус", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-03-20 19:37:08 +04:00
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
2024-06-17 18:47:33 +04:00
|
|
|
|
[Column(title: "Дата создания", width: 100)]
|
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
|
|
|
[Column(title: "Дата выполнения", width: 100)]
|
2024-03-20 19:37:08 +04:00
|
|
|
|
public DateTime? DateImplement { get; set; }
|
2024-06-17 18:47:33 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-05-05 23:58:51 +04:00
|
|
|
|
public int? ImplementerId { get; set; }
|
2024-06-17 18:47:33 +04:00
|
|
|
|
[Column(title: "Исполнитель", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-05-05 23:58:51 +04:00
|
|
|
|
public string? ImplementerFIO { get; set; } = string.Empty;
|
2024-03-20 19:37:08 +04:00
|
|
|
|
}
|
|
|
|
|
}
|