2024-05-25 15:04:18 +04:00
|
|
|
|
using ElectronicsShopDataModels.Enums;
|
|
|
|
|
using ElectronicsShopDataModels.Models;
|
2024-05-22 23:00:35 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ElectronicsShopContracts.ViewModels
|
|
|
|
|
{
|
2024-05-26 18:12:25 +04:00
|
|
|
|
public class PaymeantViewModel : IPaymentModel {
|
2024-05-22 23:00:35 +04:00
|
|
|
|
public int ID { get; set; }
|
|
|
|
|
|
|
|
|
|
public int OrderID { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Cумма оплаты продукта")]
|
|
|
|
|
public double SumPayment { get; set; }
|
2024-05-25 15:04:18 +04:00
|
|
|
|
|
|
|
|
|
[DisplayName("Статус оплаты")]
|
2024-05-25 17:47:14 +04:00
|
|
|
|
public PaymeantOption PayOption { get; set; } = PaymeantOption.Неоплачено;
|
2024-06-01 05:23:37 +04:00
|
|
|
|
|
|
|
|
|
[DisplayName("Клиент")]
|
|
|
|
|
public int ClientID { get; set; }
|
2024-06-02 18:37:47 +04:00
|
|
|
|
|
|
|
|
|
public DateTime DatePaymeant { get; set; }
|
2024-07-24 13:02:15 +04:00
|
|
|
|
|
|
|
|
|
[DisplayName("Список оплаченных товаров")]
|
|
|
|
|
public Dictionary<int, (IProductModel, int)> PayProductList { get; set; } = new();
|
|
|
|
|
}
|
2024-05-22 23:00:35 +04:00
|
|
|
|
}
|