2024-11-29 15:40:02 +04:00
|
|
|
|
using ShoeStore.Entities.Enums;
|
|
|
|
|
using System;
|
2024-11-14 23:56:25 +04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ShoeStore.Entities;
|
|
|
|
|
|
|
|
|
|
public class Receipt
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; private set; }
|
2024-11-29 15:40:02 +04:00
|
|
|
|
//public int ProductId { get; private set; }
|
|
|
|
|
//public int StorageProductId { get; private set; }
|
|
|
|
|
//public int ReceiptNumber {get; private set; }
|
2024-12-13 11:09:20 +04:00
|
|
|
|
public ProductType ProductType { get; private set; }
|
2024-11-14 23:56:25 +04:00
|
|
|
|
public DateTime DateOfReceipt { get; private set; }
|
|
|
|
|
public int NumberOfPairsReceived { get; private set; }
|
2024-11-29 15:40:02 +04:00
|
|
|
|
//public int StorageSize { get; private set; }
|
2024-11-14 23:56:25 +04:00
|
|
|
|
|
2024-12-13 11:09:20 +04:00
|
|
|
|
public static Receipt CreateOperation(int id, ProductType productType, int numberOfPairsReceived)
|
2024-11-14 23:56:25 +04:00
|
|
|
|
{
|
|
|
|
|
return new Receipt
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
2024-11-29 15:40:02 +04:00
|
|
|
|
ProductType = productType,
|
|
|
|
|
//StorageProductId = storageProductId,
|
|
|
|
|
//ReceiptNumber = receiptNumber,
|
2024-11-14 23:56:25 +04:00
|
|
|
|
DateOfReceipt = DateTime.Now,
|
|
|
|
|
NumberOfPairsReceived = numberOfPairsReceived,
|
2024-11-29 15:40:02 +04:00
|
|
|
|
//StorageSize = storageSize
|
2024-11-14 23:56:25 +04:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|