PIbd-23_Vrazhkin_S_A_Furnit.../FurnitureAssembly/FurnitureAssemblyContracts/ViewModels/OrderViewModel.cs

40 lines
1.9 KiB
C#
Raw Permalink Normal View History

2024-05-14 11:56:24 +04:00
using FurnitureAssemblyContracts.Attributes;
using FurnitureAssemblyDataModels.Enums;
2024-02-06 12:44:43 +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-05-14 11:56:24 +04:00
[Column(title: "Номер", width: 50)]
2024-02-06 12:44:43 +04:00
public int Id { get; set; }
2024-05-14 11:56:24 +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-02-06 12:44:43 +04:00
public int FurnitureId { get; set; }
2024-05-14 11:56:24 +04:00
[Column(title: "Изделие", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string FurnitureName { get; set; } = string.Empty;
[Column(title: "Количество", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2024-02-06 12:44:43 +04:00
public int Count { get; set; }
2024-05-14 11:56:24 +04:00
[Column(title: "Сумма", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2024-02-06 12:44:43 +04:00
public double Sum { get; set; }
2024-05-14 11:56:24 +04:00
[Column(title: "Статус", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2024-02-06 12:44:43 +04:00
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
2024-05-14 11:56:24 +04:00
[Column(title: "Дата создания", width: 100)]
2024-02-06 12:44:43 +04:00
public DateTime DateCreate { get; set; } = DateTime.Now;
2024-05-14 11:56:24 +04:00
[Column(title: "Дата выполнения", width: 100)]
2024-02-06 12:44:43 +04:00
public DateTime? DateImplement { get; set; }
2024-05-14 11:56:24 +04:00
[Column(visible: false)]
2024-04-29 18:59:10 +04:00
public int? ImplementerId { get; set; }
2024-05-14 11:56:24 +04:00
[Column(title: "Исполнитель", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2024-04-29 18:59:10 +04:00
public string? ImplementerFIO { get; set; } = string.Empty;
2024-02-06 12:44:43 +04:00
}
}