コード例 #1
0
        protected void btn_CreateSpliter_Click(object sender, EventArgs e)
        {
            string Product_VariantID = Request["Product_VariantID"];

            if (Page.IsValid && !DataEval.IsEmptyQuery(Product_VariantID))
            {
                string Variant_SpliterID = Nexus.Core.Tools.IDGenerator.Get_New_GUID_PlainText();

                ProductVariantMgr myProductVariantMgr = new ProductVariantMgr();

                // Product Variant
                e2Data[] UpdateData =
                {
                    new e2Data("Variant_SpliterID", Variant_SpliterID),
                    new e2Data("Product_VariantID", Product_VariantID),
                    new e2Data("Spliter_Name",      tbx_Spliter_Name.Text),
                    new e2Data("SortOrder",         (myProductVariantMgr.Count_Variant_Spliter(Product_VariantID) + 1).ToString())
                };

                myProductVariantMgr.Add_Product_Variant_Spliter(UpdateData);

                Control_Init();
            }
        }