|
@@ -158,9 +158,9 @@ namespace Sessioa.Pages
|
|
|
ProductArticleNumber = TB_Articule.Text,
|
|
|
ProductName = TB_Title.Text,
|
|
|
ProductDescription = TB_Description.Text,
|
|
|
- ProductCategory = CategoryProd.SelectedIndex,
|
|
|
- ProductManufacturer = ManufacturedProd.SelectedIndex,
|
|
|
- ProductProvider = ProviderProd.SelectedIndex,
|
|
|
+ ProductCategory = CategoryProd.SelectedIndex + 1,
|
|
|
+ ProductManufacturer = ManufacturedProd.SelectedIndex + 1,
|
|
|
+ ProductProvider = ProviderProd.SelectedIndex + 1,
|
|
|
ProductCost = Convert.ToInt32(TB_Price.Text),
|
|
|
ProductQuantityInStock = Convert.ToInt32(TB_Count.Text)
|
|
|
};
|
|
@@ -208,8 +208,6 @@ namespace Sessioa.Pages
|
|
|
{
|
|
|
edit.ProductDiscountAmount = Convert.ToByte(TB_Discount.Text);
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
BaseClass.C_Base.SaveChanges();
|
|
|
MessageBoxResult mbr = MessageBox.Show("Продукт изменен", "Уведомление", MessageBoxButton.OK, MessageBoxImage.Information);
|
|
|
if (mbr == MessageBoxResult.OK)
|