44 lines
1.9 KiB
C#
Raw Permalink Normal View History

2023-04-23 17:37:47 +04:00
using ComputerShopContracts.Attributes;
using ComputerShopDataModels.Enums;
2023-01-29 18:03:10 +04:00
using ComputerShopDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ComputerShopContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
2023-04-23 17:37:47 +04:00
[Column(visible: false)]
2023-02-12 15:03:53 +04:00
public int ComputerId { get; set; }
2023-04-23 17:37:47 +04:00
[Column("Номер", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2023-01-29 18:03:10 +04:00
public int Id { get; set; }
2023-04-23 17:37:47 +04:00
[Column("Компьютер", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2023-01-29 18:03:10 +04:00
public string ComputerName { get; set; } = string.Empty;
2023-04-23 17:37:47 +04:00
[Column(visible: false)]
2023-04-07 13:54:25 +04:00
public int ClientId { get; set; }
2023-04-23 17:37:47 +04:00
[Column("ФИО клиента", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2023-04-07 13:54:25 +04:00
public string ClientFIO { get; set; } = string.Empty;
2023-04-23 17:37:47 +04:00
[Column(visible: false)]
2023-04-19 15:46:04 +04:00
public int? ImplementerId { get; set; }
2023-04-23 17:37:47 +04:00
[Column("ФИО исполнителя", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2023-04-19 15:46:04 +04:00
public string ImplementerFIO { get; set; } = string.Empty;
2023-04-07 13:54:25 +04:00
2023-04-23 17:37:47 +04:00
[Column("Количество", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2023-01-29 18:03:10 +04:00
public int Count { get; set; }
2023-04-23 17:37:47 +04:00
[Column("Сумма", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2023-01-29 18:03:10 +04:00
public double Sum { get; set; }
2023-04-23 17:37:47 +04:00
[Column("Статус", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
2023-01-29 18:03:10 +04:00
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
2023-04-23 17:37:47 +04:00
[Column("Дата создания", width: 100)]
2023-01-29 18:03:10 +04:00
public DateTime DateCreate { get; set; } = DateTime.Now;
2023-04-23 17:37:47 +04:00
[Column("Дата выполнения", width: 100)]
2023-01-29 18:03:10 +04:00
public DateTime? DateImplement { get; set; }
}
}