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-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; }
|
2024-12-23 16:41:52 +04:00
|
|
|
|
public int NumberOfPairsReceived { get; private set; }
|
|
|
|
|
public int ProductId { get; private set; }
|
2024-11-14 23:56:25 +04:00
|
|
|
|
|
2024-12-23 16:41:52 +04:00
|
|
|
|
public static Receipt CreateOperation(int id,ProductType productType, DateTime date,int numberOfPairsReceived, int productId)
|
2024-11-14 23:56:25 +04:00
|
|
|
|
{
|
|
|
|
|
return new Receipt
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
2024-11-29 15:40:02 +04:00
|
|
|
|
ProductType = productType,
|
2024-12-21 21:15:47 +04:00
|
|
|
|
DateOfReceipt = date,
|
2024-11-14 23:56:25 +04:00
|
|
|
|
NumberOfPairsReceived = numberOfPairsReceived,
|
2024-12-23 16:41:52 +04:00
|
|
|
|
ProductId = productId
|
2024-11-14 23:56:25 +04:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-23 11:57:21 +04:00
|
|
|
|
/*public static Receipt CreateOperation(TempMedicines_Visiting tempMedicines_Visiting, IEnumerable<Medicines_Visiting> medicines)
|
|
|
|
|
{
|
|
|
|
|
return new Receipt
|
|
|
|
|
{
|
|
|
|
|
Id = tempMedicines_Visiting.Id,
|
|
|
|
|
ProductType = tempMedicines_Visiting.DoctorId,
|
|
|
|
|
DateOfReceipt = tempMedicines_Visiting.PatientId,
|
|
|
|
|
NumberOfPairsReceived = tempMedicines_Visiting.DiagnosisName,
|
|
|
|
|
};
|
|
|
|
|
}*/
|
|
|
|
|
|
2024-11-14 23:56:25 +04:00
|
|
|
|
}
|