29 lines
858 B
C#
Raw Normal View History

2024-11-23 23:26:39 +03:00

using ProductionInCehOTP.Entities.Enums;
namespace ProductionInCehOTP.Entities;
2024-11-12 19:18:35 +03:00
public class Material
{
public int Id { get; private set; }
2024-11-23 23:26:39 +03:00
public NameOfMaterials Name { get; private set; }
2024-11-12 19:18:35 +03:00
public int ArrivalMaterialsID { get; private set; }
2024-11-23 23:26:39 +03:00
public IEnumerable<MaterialForProduct> MaterialForProducts { get; private set; }
public static Material TransferMaterial(int id, NameOfMaterials name, int arrivalMaterialsID, IEnumerable<MaterialForProduct> materialForProducts )
2024-11-12 19:18:35 +03:00
{
return new Material
{
Id = id,
Name = name,
ArrivalMaterialsID = arrivalMaterialsID,
2024-11-23 23:26:39 +03:00
MaterialForProducts = materialForProducts
2024-11-12 19:18:35 +03:00
};
}
2024-11-23 23:26:39 +03:00
internal static Material TransferMaterial(int v1, string empty, int v2, object value)
{
throw new NotImplementedException();
}
2024-11-12 19:18:35 +03:00
}