public List<DataTable> MonthlySalaryVoucherDetailsViewAll(string strMonth, string Month, string monthYear, bool isEditMode, string strVoucherNoforEdit) { SalaryVoucherDetailsSP SPSalaryVoucherDetails = new SalaryVoucherDetailsSP(); List<DataTable> ListObj = new List<DataTable>(); try { ListObj = SPSalaryVoucherDetails.MonthlySalaryVoucherDetailsViewAll(strMonth, Month, monthYear, isEditMode, strVoucherNoforEdit); } catch (Exception ex) { MessageBox.Show("SvBll 1:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return ListObj; }
public void MonthlySalaryVoucherDetailsAdd(SalaryVoucherDetailsInfo salaryvoucherdetailsinfo) { SalaryVoucherDetailsSP SPSalaryVoucherDetails = new SalaryVoucherDetailsSP(); try { SPSalaryVoucherDetails.MonthlySalaryVoucherDetailsAdd(salaryvoucherdetailsinfo); } catch (Exception ex) { MessageBox.Show("SvBll 3:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public string CheckWhetherSalaryAlreadyPaid(decimal decEmployeeId, DateTime Month) { string strName = string.Empty; SalaryVoucherDetailsSP SPSalaryVoucherDetails = new SalaryVoucherDetailsSP(); try { strName = SPSalaryVoucherDetails.CheckWhetherSalaryAlreadyPaid(decEmployeeId, Month); } catch (Exception ex) { MessageBox.Show("SvBll 2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return strName; }
public void SalaryVoucherDetailsDeleteUsingMasterId(decimal SalaryVoucherDetailsMasterId) { SalaryVoucherDetailsSP SPSalaryVoucherDetails = new SalaryVoucherDetailsSP(); try { SPSalaryVoucherDetails.SalaryVoucherDetailsDeleteUsingMasterId(SalaryVoucherDetailsMasterId); } catch (Exception ex) { MessageBox.Show("SvBll 5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
public int SalaryVoucherDetailsCount(decimal decMasterId) { int max = 0; SalaryVoucherDetailsSP SPSalaryVoucherDetails = new SalaryVoucherDetailsSP(); try { max = SPSalaryVoucherDetails.SalaryVoucherDetailsCount(decMasterId); } catch (Exception ex) { MessageBox.Show("SvBll 4:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return max; }