начало только
This commit is contained in:
parent
c4150d9536
commit
089d3869a2
@ -1,12 +1,23 @@
|
||||
using Publication.Entites.Enums;
|
||||
using System.ComponentModel;
|
||||
|
||||
public class Customers
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[DisplayName("ФИО заказчика")]
|
||||
public string FullName { get; set; }
|
||||
|
||||
[DisplayName("Возраст")]
|
||||
public int Age { get; set; }
|
||||
|
||||
[DisplayName("Тип заказчика")]
|
||||
public TypeCustomers TypeCustomer { get; set; }
|
||||
|
||||
[DisplayName("Телефон")]
|
||||
public string Phone { get; set; }
|
||||
|
||||
[DisplayName("Почта")]
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
public static Customers CreateEntity(int id, string fullName, int age, TypeCustomers typeCustomer, string phone, string email)
|
||||
|
@ -1,12 +1,18 @@
|
||||
using Publication.Entites.Enums;
|
||||
namespace Publication.Entites;
|
||||
using System.ComponentModel;
|
||||
|
||||
public class Materials
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[DisplayName("Дата")]
|
||||
public DateTime DateMaterials { get; set; }
|
||||
|
||||
[DisplayName("Количество")]
|
||||
public int Count { get; set; }
|
||||
|
||||
[DisplayName("Материал")]
|
||||
public TypeMaterials Material { get; set; }
|
||||
|
||||
public static Materials CreateEntity(int id, DateTime dateMaterials, int count, TypeMaterials typeMaterials)
|
||||
|
@ -1,4 +1,5 @@
|
||||
using DocumentFormat.OpenXml.Office2016.Drawing.ChartDrawing;
|
||||
using System.ComponentModel;
|
||||
using Unity;
|
||||
|
||||
namespace Publication.Entites;
|
||||
@ -16,6 +17,10 @@ public class PrintingHouses
|
||||
|
||||
public IEnumerable<PrintingHouseOrders> printingHouseOrder { get; set; } = [];
|
||||
|
||||
[DisplayName("Продукты")]
|
||||
public string Product => printingHouseOrder != null ?
|
||||
string.Join(", ", printingHouseOrder.Select(x => $"{x} {x.Count}")) : string.Empty;
|
||||
|
||||
public static PrintingHouses CreateEntity(int id, string title, string phone, string address,int materialsId, IEnumerable<PrintingHouseOrders> printingHouseOrders)
|
||||
{
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user