29 lines
856 B
C#
29 lines
856 B
C#
|
|
using ProductionInCehOTP.Entities.Enums;
|
|
|
|
namespace ProductionInCehOTP.Entities;
|
|
|
|
public class Material
|
|
{
|
|
public int Id { get; private set; }
|
|
public NameOfMaterials Name { get; private set; }
|
|
public int ArrivalMaterialID { get; private set; }
|
|
public IEnumerable<MaterialForProduct> MaterialForProducts { get; private set; }
|
|
public static Material TransferMaterial(int id, NameOfMaterials name, int arrivalMaterialsID, IEnumerable<MaterialForProduct> materialForProducts )
|
|
{
|
|
return new Material
|
|
{
|
|
Id = id,
|
|
Name = name,
|
|
ArrivalMaterialID = arrivalMaterialsID,
|
|
MaterialForProducts = materialForProducts
|
|
};
|
|
}
|
|
|
|
internal static Material TransferMaterial(int v1, string empty, int v2, object value)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
|