54 lines
1.5 KiB
C#
54 lines
1.5 KiB
C#
using DressAtelierContracts.Attributes;
|
|
using DressAtelierDataModels.Enums;
|
|
using DressAtelierDataModels.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DressAtelierContracts.ViewModels
|
|
{
|
|
public class OrderViewModel : IOrderModel
|
|
{
|
|
[Column(title: "ID", width: 50)]
|
|
public int ID { get; set; }
|
|
|
|
[Column(visible: false)]
|
|
public int DressID { get; set; }
|
|
|
|
[Column(visible: false)]
|
|
public int ClientID { get; set; }
|
|
|
|
[Column(title:"Client's name", width: 150)]
|
|
public string ClientFullName { get; set; } = string.Empty;
|
|
|
|
[Column(visible: false)]
|
|
public int? EmployeeID { get; set; }
|
|
|
|
[Column(title:"Employee's name", width: 150)]
|
|
public string? EmployeeFullName { get; set; } = string.Empty;
|
|
|
|
[Column(title: "DressName", width: 150)]
|
|
public string DressName { get; set; } = string.Empty;
|
|
|
|
[Column(title: "Quantity", width: 100)]
|
|
public int Count { get; set; }
|
|
|
|
[Column(title: "Overall price", width: 50)]
|
|
public double Sum { get; set; }
|
|
|
|
[Column(title: "Status", width: 150)]
|
|
public OrderStatus Status { get; set; } = OrderStatus.Unknown;
|
|
|
|
[Column(title: "Date of creation", width: 150)]
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
|
|
|
[Column(title: "Date of implementation", width: 150)]
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
|
}
|
|
}
|