28 lines
767 B
C#
28 lines
767 B
C#
using ProductionInCehOTP.Entities.Enums;
|
|
using System.ComponentModel;
|
|
|
|
namespace ProductionInCehOTP.Entities;
|
|
|
|
public class ArrivalMaterials
|
|
{
|
|
public int Id { get; private set; }
|
|
[DisplayName("Дата")]
|
|
public DateTime Date { get; private set; }
|
|
[DisplayName("Перечь поставленных материалов")]
|
|
public NameOfMaterials Name { get; private set; }
|
|
|
|
[DisplayName("Количество")]
|
|
public int Count { get; private set; }
|
|
|
|
public static ArrivalMaterials CreateArrivalMaterials(int id, DateTime Date, NameOfMaterials name, int count)
|
|
{
|
|
return new ArrivalMaterials
|
|
{
|
|
Id = id,
|
|
Date = Date,
|
|
Name = name,
|
|
Count = count
|
|
};
|
|
}
|
|
}
|