И всё по новой

This commit is contained in:
Игорь Гордеев 2024-05-19 15:26:28 +04:00
parent cba5b48efb
commit 32e827e3e8
2 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,5 @@
using ElectronicsShopDataModels.Enums;
using ElectronicsShopDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
@ -10,8 +11,12 @@ namespace ElectronicsShopContracts.SearchModels
public class OrderSearchModel
{
public int? ID { get; set; }
//public int? OplataID { get; set; }
public int? UserID { get; set; }
public OrderStatus OrderStatus { get; set; }
public PaymeantOption PaymeantOption { get; set; }
public DateTime? DateFrom { get; set; }
public DateTime? DateTo { get; set;}
public Dictionary<int, (IProductModel, int)>? ProductList { get; set; }
}
}

View File

@ -14,12 +14,16 @@ namespace ElectronicsShopContracts.ViewModels
public int ID { get; set; }
[DisplayName("Клиент ID")]
public int UserID { get; set; }
[DisplayName("Исполнитель ID")]
public int ImplementerID { get; set; }
[DisplayName("Оплата ID")]
public int PaymentID { get; set; }
[DisplayName("Сумма")]
public double Sum { get; set; }
[DisplayName("Статус")]
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
public OrderStatus OrderStatus { get; set; } = OrderStatus.Неизвестен;
[DisplayName("Стутус оплаты")]
public PaymeantOption PaymeantOption { get; set; } = PaymeantOption.Неизвестно;
@ -29,7 +33,8 @@ namespace ElectronicsShopContracts.ViewModels
[DisplayName("Дата выполнения")]
public DateTime? DateImplement { get; set; }
[DisplayName("Корзина")]
public Dictionary<int, (IProductModel, int)> ProductList { get; set; } = new();
}
}