public void DailySalaryVoucherDetailsDeleteUsingMasterId(decimal DailySalaryVoucherDetailsMasterId)
 {
     try
     {
         spDetails.DailySalaryVoucherDetailsDeleteUsingMasterId(DailySalaryVoucherDetailsMasterId);
     }
     catch (Exception ex)
     {
         MessageBox.Show("BR1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Ejemplo n.º 2
0
        public ActionResult DeleteDailySalaryVoucher(string dailyMasterId, string voucherTypeId, string voucherNo, string salaryDate)
        {
            bool   isSuccess = true;
            string message   = string.Empty;

            try
            {
                DailySalaryVoucherMasterSP  spMaster        = new DailySalaryVoucherMasterSP();
                DailySalaryVoucherDetailsSP spDetails       = new DailySalaryVoucherDetailsSP();
                LedgerPostingSP             spLedgerPosting = new LedgerPostingSP();

                spMaster.DailySalaryVoucherMasterDelete(Convert.ToDecimal(dailyMasterId));
                spDetails.DailySalaryVoucherDetailsDeleteUsingMasterId(Convert.ToDecimal(dailyMasterId));
                spLedgerPosting.LedgerPostDelete(voucherNo, Convert.ToDecimal(voucherTypeId));
                DataTable dtbl = DailySalaryVoucherDetailsGridfill(true, voucherNo, salaryDate);
            }
            catch (Exception ex)
            {
                isSuccess = false;
                message   = "DSV13:" + ex.Message;
            }
            return(Json(new { isSuccess, message }));
        }