33 lines
993 B
C#
Raw Permalink Normal View History

2024-12-24 17:10:38 +04:00
using System;
using System.Collections.Generic;
2024-12-24 23:35:16 +04:00
using System.ComponentModel;
2024-12-24 17:10:38 +04:00
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectRepairWork.Entities;
public class MaterialProcurement
{
public int Id { get; private set; }
2024-12-24 23:35:16 +04:00
[Browsable(false)]
2024-12-24 17:10:38 +04:00
public int MaterialsId { get; private set; }
2024-12-25 16:47:08 +04:00
[DisplayName("Материалы")]
public string MaterailName { get; private set; } = string.Empty;
2024-12-24 23:35:16 +04:00
[DisplayName("Дата закупки")]
2024-12-24 17:10:38 +04:00
public DateTime ProcurmentDate { get; private set; }
2024-12-24 23:35:16 +04:00
[DisplayName("Сумма закупки")]
2024-12-24 17:10:38 +04:00
public int MaterialsPrice { get; private set; }
2024-12-24 23:35:16 +04:00
public static MaterialProcurement CreatOpertions(int id, DateTime procurmentDate, int materialsId, int materialsPrice)
2024-12-24 17:10:38 +04:00
{
return new MaterialProcurement
{
Id = id,
MaterialsId = materialsId,
2024-12-24 23:35:16 +04:00
ProcurmentDate = procurmentDate,
2024-12-24 17:10:38 +04:00
MaterialsPrice = materialsPrice,
};
}
}