protected void btn_CreateProperty_Click(object sender, EventArgs e) { if (Page.IsValid) { string Variant_SpliterID = Request["Variant_SpliterID"]; if (!DataEval.IsEmptyQuery(Variant_SpliterID)) { ProductVariantMgr myProductVariantMgr = new ProductVariantMgr(); Variant_Spliter myVariant_Spliter = myProductVariantMgr.Get_Product_Variant_Spliter(Variant_SpliterID); string Variant_PropertyID = Nexus.Core.Tools.IDGenerator.Get_New_GUID(); e2Data[] UpdateData = { new e2Data("Variant_PropertyID", Variant_PropertyID), new e2Data("Product_VariantID", myVariant_Spliter.Product_VariantID), new e2Data("Variant_SpliterID", myVariant_Spliter.Variant_SpliterID), new e2Data("Property_Name", tbx_Property_Name.Text), new e2Data("Input_Option", droplist_InputOption.SelectedValue), new e2Data("Default_Value", tbx_Default_Value.Text), new e2Data("Tooltips", tbx_Tooltips.Text), new e2Data("IsRequired", chkbox_IsRequired.Checked.ToString()), new e2Data("IsFilter", chkbox_IsFilter.Checked.ToString()), new e2Data("IsSort", chkbox_IsSort.Checked.ToString()), new e2Data("SortOrder", (myProductVariantMgr.Count_Variant_Property(myVariant_Spliter.Variant_SpliterID) + 1).ToString()), new e2Data("Field_Name", tbx_Field_Name.Text) }; myProductVariantMgr.Add_Product_Variant_Property(UpdateData); Input_Option myInput_Option = (Input_Option)StringEnum.Parse(typeof(Input_Option), droplist_InputOption.SelectedValue, true); switch (myInput_Option) { case Input_Option.TextBox: break; case Input_Option.NumberBox: break; case Input_Option.DropdownList: Create_Property_Options(Variant_PropertyID); break; case Input_Option.RadioButtonList: Create_Property_Options(Variant_PropertyID); break; case Input_Option.DatePicker: break; case Input_Option.CheckBox: break; case Input_Option.CheckBoxList: Create_Property_Options(Variant_PropertyID); break; case Input_Option.ImageURL: break; } btn_Cancel_Click(sender, e); } } }