PIbd-24 Antonova A.A. LabWork_4 #4

Closed
Anitonchik wants to merge 11 commits from LabWork_4 into LabWork_3
2 changed files with 6 additions and 4 deletions
Showing only changes of commit 6bdc909eeb - Show all commits

View File

@ -30,16 +30,17 @@ public class Invoice
[DisplayName("Дата")]
public DateTime DateInvoice { get; set; }
[DisplayName("Продукты")]
public string Product => Products != null ?
string.Join(", ", Products.Select(x => $"{x.ProductName} {x.Count}")) : string.Empty;
[Browsable(false)]
public IEnumerable<InvoiceProduct> Products
{
get;
private set;
} = [];
[DisplayName("Продукты")]
public string Product => Products != null ?
string.Join(", ", Products.Select(x => $"{x.ProductName} {x.Count}")) : string.Empty;
public static Invoice CreateOperation(int id, int clientId, int availabilityOfPromotionalCode, int discountPercentage,
int sellingPrice, IEnumerable<InvoiceProduct> products)
{

View File

@ -12,6 +12,7 @@ public class ProductMovement
{
public int ID { get; private set; }
[Browsable(false)]
public int ProductID { get; private set; }
[DisplayName("Товар")]