/// <summary> /// Function to delete particular details based on the parameter /// </summary> /// <param name="StandardRateId"></param> public void StandardRateDelete(decimal StandardRateId) { try { spStandaredRate.StandardRateDelete(StandardRateId); } catch (Exception ex) { MessageBox.Show("AL6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
/// <summary> /// Delete function /// </summary> public void DeleteFunction() { try { StandardRateSP spStandardRate = new StandardRateSP(); spStandardRate.StandardRateDelete(decStandardRate); Messages.DeletedMessage(); decimal decProductId = Convert.ToDecimal(dgvStandardRate.CurrentRow.Cells["dgvtxtProductId"].Value); GridFill(decProductId); Clear(); } catch (Exception ex) { MessageBox.Show("SRP8:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }