2024-02-13 23:15:11 +04:00
|
|
|
|
using PlumbingRepairDataModels.Enums;
|
2024-02-27 22:51:12 +04:00
|
|
|
|
using PlumbingRepairDataModels.Models;
|
2024-02-13 23:15:11 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace PlumbingRepairContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel : IOrderModel
|
|
|
|
|
{
|
|
|
|
|
[DisplayName("Номер")]
|
|
|
|
|
public int Id { get; set; }
|
2024-02-14 11:14:37 +04:00
|
|
|
|
public int WorkId { get; set; }
|
2024-02-28 10:45:27 +04:00
|
|
|
|
[DisplayName("Работа")]
|
2024-02-14 11:14:37 +04:00
|
|
|
|
public string WorkName { get; set; } = string.Empty;
|
2024-04-19 17:03:08 +04:00
|
|
|
|
[DisplayName("Клиент")]
|
|
|
|
|
public int ClientId { get; set; }
|
|
|
|
|
[DisplayName("ФИО клиента")]
|
|
|
|
|
public string ClientFIO { get; set; } = string.Empty;
|
2024-05-03 19:13:59 +04:00
|
|
|
|
public int? ImplementerId { get; set; }
|
|
|
|
|
[DisplayName("Исполнитель")]
|
|
|
|
|
public string ImplementerFIO { get; set; } = string.Empty;
|
2024-02-13 23:15:11 +04:00
|
|
|
|
[DisplayName("Количество")]
|
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
[DisplayName("Сумма")]
|
|
|
|
|
public double Sum { get; set; }
|
|
|
|
|
[DisplayName("Статус")]
|
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
|
|
|
|
[DisplayName("Дата создания")]
|
2024-04-09 13:35:33 +04:00
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
|
2024-02-13 23:15:11 +04:00
|
|
|
|
[DisplayName("Дата выполнения")]
|
|
|
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|