public void MonthlySalaryDeleteAll(decimal decMonthlySalaryId) { try { SPMonthlySalary.MonthlySalaryDeleteAll(decMonthlySalaryId); } catch (Exception ex) { MessageBox.Show("MS3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public ActionResult DeleteMonthlySalarySettings(string month) { try { MonthlySalaryDetailsSP spMonthlySalaryDetails = new MonthlySalaryDetailsSP(); MonthlySalarySP spMonthlySalary = new MonthlySalarySP(); spMonthlySalary.MonthlySalaryDeleteAll(spMonthlySalary.MonthlySalarySettingsMonthlySalaryIdSearchUsingSalaryMonth(Convert.ToDateTime(month))); } catch (Exception ex) { return(Json(new { success = "false", ex = "MSS5" + ex.Message })); } return(Json(new { success = "true", ex = "no" })); }
/// <summary> /// Function for Delete /// </summary> public void DeleteFunction() { try { MonthlySalaryDetailsSP spMonthlySalaryDetails = new MonthlySalaryDetailsSP(); MonthlySalarySP spMonthlySalary = new MonthlySalarySP(); string strMonth = dtpSalaryMonth.Text; spMonthlySalary.MonthlySalaryDeleteAll(spMonthlySalary.MonthlySalarySettingsMonthlySalaryIdSearchUsingSalaryMonth(Convert.ToDateTime(dtpSalaryMonth.Text))); Messages.DeletedMessage(); SalaryPackageComboFill(); GridFill(); UpdateDataGridViewRowColors(); DeleteButtonEnableDisableChoose(); dtpSalaryMonth.Focus(); } catch (Exception ex) { MessageBox.Show("MSS5" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }