28 lines
767 B
C#
Raw Normal View History

2024-11-12 19:18:35 +03:00
using ProductionInCehOTP.Entities.Enums;
2024-12-11 14:26:44 +03:00
using System.ComponentModel;
2024-11-12 19:18:35 +03:00
namespace ProductionInCehOTP.Entities;
public class ArrivalMaterials
{
2024-11-13 12:32:01 +03:00
public int Id { get; private set; }
2024-12-11 14:26:44 +03:00
[DisplayName("Дата")]
2024-11-13 12:32:01 +03:00
public DateTime Date { get; private set; }
2024-12-11 14:26:44 +03:00
[DisplayName("Перечь поставленных материалов")]
2024-11-13 12:32:01 +03:00
public NameOfMaterials Name { get; private set; }
2024-12-11 14:26:44 +03:00
[DisplayName("Количество")]
2024-11-13 12:32:01 +03:00
public int Count { get; private set; }
2024-11-12 19:18:35 +03:00
2024-12-10 00:09:57 +03:00
public static ArrivalMaterials CreateArrivalMaterials(int id, DateTime Date, NameOfMaterials name, int count)
2024-11-12 19:18:35 +03:00
{
return new ArrivalMaterials
{
Id = id,
2024-12-10 00:09:57 +03:00
Date = Date,
2024-11-12 19:18:35 +03:00
Name = name,
2024-11-13 12:32:01 +03:00
Count = count
2024-11-12 19:18:35 +03:00
};
}
}