/// <summary> /// Function to delete the pricelist for the product /// </summary> public void DeleteFunction() { try { PriceListSP spPriceList = new PriceListSP(); if (spPriceList.PriceListCheckReferenceAndDelete(decPriceLevelId) <= 0) { Messages.ReferenceExistsMessage(); } else { Messages.DeletedMessage(); Clear(); } } catch (Exception ex) { formMDI.infoError.ErrorString = "PLP8" + ex.Message + ex.Message; } }
/// <summary> /// Function to delete the pricelist for the product /// </summary> public void DeleteFunction() { try { PriceListSP spPriceList = new PriceListSP(); if (spPriceList.PriceListCheckReferenceAndDelete(decPricingLevelId) <= 0) { Messages.ReferenceExistsMessage(); } else { spPriceList.PriceListDelete(decpriceListId); Messages.DeletedMessage(); Clear(); } } catch (Exception ex) { MessageBox.Show("PLP7:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }