示例#1
0
        // GET: PayrollSalaryMasterSheets
        public ActionResult Index()
        {
            string id = Session["EmpCode"].ToString();
            PayrollSalaryMasterSheetListDTO Record = new PayrollSalaryMasterSheetListDTO();

            Record.PayrollSalaryMasterSheetDTO = _payrollSalaryMasterSheetService.GetAllPayrollSalaryMasterSheet(id);
            Record.FiscalYearList = _payrollSalaryMasterSheetService.GetFiscalYear();

            foreach (var item in Record.PayrollSalaryMasterSheetDTO)
            {
                Record.totalActual           += item.SalaryAfterTaxDeduction;
                Record.totalAllowance        += (item.TotalRankAllowances + item.NonTaxableAllowanceAmount + item.TaxableAllowanceAmount);
                Record.totalGrossIncome      += item.GrossIncome;
                Record.totalGrade            += item.GradeSalary;
                Record.totalRank             += item.RankSalary;
                Record.totalTax              += item.TaxAmount;
                Record.totalBasicSalaryForPf += item.TotalBasicSalaryForPf;
                Record.totalPfCompany        += item.PfCompany;
                Record.totalPfExtra          += item.PfExtra;
                Record.totalPfSelf           += item.PfSelf;
                Record.totalCIT              += item.CitAmount;
                item.PayrollEmployeeTaxDetail = _payrollSalaryMasterSheetService.GetPayrollEmployeeTaxDetails(id);
            }

            return(View(Record));
        }
示例#2
0
        public ActionResult RetirementFundIndex(string FiscalYear)
        {
            string id = Session["EmpCode"].ToString();
            PayrollSalaryMasterSheetListDTO Record = new PayrollSalaryMasterSheetListDTO();

            Record.PayrollSalaryMasterSheetDTO = _payrollSalaryMasterSheetService.GetAllPayrollSalaryMasterSheetFilter(id, FiscalYear);
            Record.FiscalYearList = _payrollSalaryMasterSheetService.GetFiscalYear();
            foreach (var item in Record.PayrollSalaryMasterSheetDTO)
            {
                Record.totalBasicSalaryForPf += item.TotalBasicSalaryForPf;
                Record.totalPfCompany        += item.PfCompany;
                Record.totalPfExtra          += item.PfExtra;
                Record.totalPfSelf           += item.PfSelf;
                Record.totalCIT += item.CitAmount;
            }

            return(View(Record));
        }