Example #1
0
        public PayrollSalaryMasterSheetDTO GetIndividualSalarySheetDescription(int Id)
        {
            PayrollSalaryMasterSheet    db     = _unitOfWork.PayrollSalaryMasterSheetRepository.GetById(Id);
            PayrollSalaryMasterSheetDTO Record = PayrollSalaryMasterSheetRequestFormatter.ConvertRespondentInfoToDTO(db);

            Record.PayrollSalaryDetailSheets = PayrollSalaryDetailSheetResponseFormatter.GetAllPayrollDetailSheet(db.PayrollSalaryDetailSheets).Where(x => x.AllowanceType == "O");
            Record.PayrollEmployeeTaxDetails = PayrollEmployeeTaxDetailResponseFormatter.GetAllTaxDetailSheet(db.PayrollEmployeeTaxDetails);
            return(Record);
        }
Example #2
0
        public IEnumerable <PayrollSalaryDetailSheetDTO> GetAllPayrollSalaryDetail(string id)
        {
            int salaryId = Convert.ToInt32(id);

            return(PayrollSalaryDetailSheetResponseFormatter.GetAllPayrollDetailSheet(_unitOfWork.PayrollSalaryDetailSheet.Get(x => x.AllowanceId > 4 && x.PayrollSalaryMasterId == salaryId)));
        }