Exemplo n.º 1
0
        protected void btn_Create_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                string Product_VariantID = Nexus.Core.Tools.IDGenerator.Get_New_GUID_PlainText();

                ProductVariantMgr myProductVariantMgr = new ProductVariantMgr();

                e2Data[] UpdateData =
                {
                    new e2Data("Product_VariantID", Product_VariantID),
                    new e2Data("Variant_Name",      tbx_Variant_Name.Text),
                    new e2Data("Variant_Type",      droplist_Variant_Type.SelectedValue),
                    new e2Data("Table_Name",        tbx_Table_Name.Text)
                };

                myProductVariantMgr.Add_Product_Variant(UpdateData);

                Control_FillData();
                Control_Init();
            }
        }