public void MonthlySalaryDeleteAll(decimal decMonthlySalaryId)
 {
     try
     {
         SPMonthlySalary.MonthlySalaryDeleteAll(decMonthlySalaryId);
     }
     catch (Exception ex)
     {
         MessageBox.Show("MS3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
예제 #2
0
 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" }));
 }
예제 #3
0
 /// <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);
     }
 }