Beispiel #1
0
        protected void lbtn_DeleteSpliter_Command(object sender, CommandEventArgs e)
        {
            if (!DataEval.IsEmptyQuery(e.CommandArgument.ToString()))
            {
                ProductVariantMgr myProductVariantMgr = new ProductVariantMgr();

                if (myProductVariantMgr.Chk_Variant_Spliter_usage(e.CommandArgument.ToString()))
                {
                    Nexus.Core.Tools.AlertMessage.Show_Alert(this.Page, "<h4>Selected spliter already have properties <br /> Please delete them before apply this action.</h4>", "Action failed!", 450, 150);
                }
                else
                {
                    myProductVariantMgr.Remove_Product_Variant_Spliter(e.CommandArgument.ToString());

                    Control_Init();
                }
            }
        }