слияние юху
This commit is contained in:
commit
5f9d203803
@ -19,7 +19,7 @@ public class Invoice
|
|||||||
|
|
||||||
public int SellingPrice { get; set; }
|
public int SellingPrice { get; set; }
|
||||||
|
|
||||||
DateTime DateInvoice { get; set; }
|
public DateTime Date { get; set; }
|
||||||
|
|
||||||
public IEnumerable<InvoiceProduct> Products
|
public IEnumerable<InvoiceProduct> Products
|
||||||
{
|
{
|
||||||
@ -37,7 +37,7 @@ public class Invoice
|
|||||||
AvailabilityOfPromotionalCode = availabilityOfPromotionalCode,
|
AvailabilityOfPromotionalCode = availabilityOfPromotionalCode,
|
||||||
DiscountPercentage = discountPercentage,
|
DiscountPercentage = discountPercentage,
|
||||||
SellingPrice = sellingPrice,
|
SellingPrice = sellingPrice,
|
||||||
DateInvoice = DateTime.Now,
|
Date = DateTime.Now,
|
||||||
Products = products
|
Products = products
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -50,8 +50,7 @@ namespace ProjectCompanyFurniture.Forms
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(textBoxName.Text)
|
if (string.IsNullOrWhiteSpace(textBoxName.Text) || string.IsNullOrEmpty(textBoxCategory.Text)
|
||||||
|| string.IsNullOrEmpty(textBoxCategory.Text)
|
|
||||||
|| comboBoxManufacturer.SelectedIndex < 0)
|
|| comboBoxManufacturer.SelectedIndex < 0)
|
||||||
{
|
{
|
||||||
throw new Exception("Имеются незаполненные поля");
|
throw new Exception("Имеются незаполненные поля");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user