CourseWork_Bank/Bank/BankContracts/ViewModels/PaymentViewModel.cs

29 lines
982 B
C#
Raw Permalink Normal View History

2024-04-28 21:34:43 +04:00
using BankDataModels;
using BankDataModels.ProxyModels;
using System;
using System.Collections.Generic;
2024-04-28 21:34:43 +04:00
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.ViewModels
{
2024-04-28 21:34:43 +04:00
public class PaymentViewModel : IPaymentModel
{
2024-04-28 21:34:43 +04:00
public int Id { get; set; }
public int OperationByPurchaseModelId { get; set; }
[DisplayName("Стоимость")]
public double FullPrice { get; set; }
[DisplayName("Оплаченная стоимость")]
public double PaidPrice { get; set; }
public int OperationByPurchaseId { get; set; }
[DisplayName("Дата оплаты")]
public DateOnly Date { get; set; } = DateOnly.FromDateTime(DateTime.Now);
public OperationByPurchaseModel OperationByPurchase { get; set; }
// Машины для отчета за период
public OperationViewModel Operation { get; set; }
}
}