2024-06-17 19:27:42 +04:00
|
|
|
|
using SoftwareInstallationContracts.Attributes;
|
|
|
|
|
using SoftwareInstallationDataModels.Enums;
|
2024-04-07 17:40:43 +04:00
|
|
|
|
using SoftwareInstallationDataModels.Models;
|
2024-04-07 16:54:02 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace SoftwareInstallationContracts.ViewModels
|
|
|
|
|
{
|
2024-04-07 17:40:43 +04:00
|
|
|
|
public class OrderViewModel : IOrderModel
|
2024-04-07 16:54:02 +04:00
|
|
|
|
{
|
2024-06-17 19:27:42 +04:00
|
|
|
|
[Column(title: "Номер", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2024-04-07 16:54:02 +04:00
|
|
|
|
public int Id { get; set; }
|
2024-06-17 19:27:42 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int RepairId { get; set; }
|
|
|
|
|
[Column(title: "Ремонт", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
|
|
|
|
public string RepairName { get; set; } = string.Empty;
|
|
|
|
|
[Column(visible: false)]
|
2024-05-11 21:16:59 +04:00
|
|
|
|
public int ClientId { get; set; }
|
2024-06-17 19:27:42 +04:00
|
|
|
|
[Column(title: "ФИО клиента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-05-11 21:16:59 +04:00
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
2024-06-17 19:27:42 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int? ImplementerId { get; set; } = null;
|
|
|
|
|
[Column(title: "ФИО исполнителя", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string ImplementerFIO { get; set; } = string.Empty;
|
|
|
|
|
[Column(title: "Количество", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2024-04-07 16:54:02 +04:00
|
|
|
|
public int Count { get; set; }
|
2024-06-17 19:27:42 +04:00
|
|
|
|
[Column(title: "Сумма", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2024-04-07 16:54:02 +04:00
|
|
|
|
public double Sum { get; set; }
|
2024-06-17 19:27:42 +04:00
|
|
|
|
[Column(title: "Статус", gridViewAutoSize: GridViewAutoSize.AllCells, isUseAutoSize: true)]
|
2024-04-07 16:54:02 +04:00
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
2024-06-17 19:27:42 +04:00
|
|
|
|
[Column(title: "Дата создания", width: 100)]
|
2024-04-07 16:54:02 +04:00
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
2024-06-17 19:27:42 +04:00
|
|
|
|
[Column(title: "Дата выполнения", width: 100)]
|
2024-04-07 16:54:02 +04:00
|
|
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|