Пример #1
0
        protected void btn_Update_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                ProductMgr myProductMgr = new ProductMgr();

                e2Data[] UpdateData =
                {
                    new e2Data("ProductID",         _productid),
                    new e2Data("Product_Title",     tbx_Product_Title.Text),
                    new e2Data("Title_Type",        rbtn_Product_Title_Type.SelectedValue),
                    new e2Data("Product_SKU",       tbx_Product_SKU.Text),
                    new e2Data("ManufacturerID",    droplist_Product_ManufacturerID.SelectedValue),
                    new e2Data("Manufacturer_SKU",  tbx_Product_Manufacturer_SKU.Text),
                    new e2Data("CurrencyID",        droplist_Product_CurrencyID.SelectedValue),
                    new e2Data("RRP_Price",         RadNumericTextBox_Product_RRP.Text),
                    new e2Data("IsActive",          chkbox_Product_IsActive.Checked.ToString()),
                    new e2Data("LastUpdate_Date",   DateTime.Now.ToString()),
                    new e2Data("LastUpdate_UserID", Security.Users.UserStatus.Current_UserID(this.Page))
                };
                myProductMgr.Edit_Product(UpdateData);

                // Product Specification
                ProductVariantMgr myProductVariantMgr = new ProductVariantMgr();
                myProductVariantMgr.Edit_Product_Properties(PlaceHolder_Product_Spec, _product_variantid, ProductID);

                Panel_Updated.Visible = true;
            }
        }