Beispiel #1
0
        public Salary MapEmployeeToSalary(Employee employee)
        {
            Salary salary = new Salary
            {
                SerialNo = employee.SerialNo,
                IdNo     = employee.IdNo,
                AdditionalDutiesAllowance = SalaryGenrationHelper.GetAdditionalDutiesAllowance(employee.IsAddiitonalDuties),
                AssistantProctorAllowance = SalaryGenrationHelper.GetProctorAssistanceBill(employee.IsAssistantProctor),
                AccountNo = employee.AccountNo,
                BF        = SalaryGenrationHelper.GetBf(employee.Salary, employee.Category),
                CurriculumAssitanceAllowance = SalaryGenrationHelper.GetCurriculumAssistanceBill(),
                DeanAllowance             = SalaryGenrationHelper.GetDeanAllowance(employee.IsDean),
                GPF                       = SalaryGenrationHelper.GetGpf(employee.Salary),
                HouseRent                 = SalaryGenrationHelper.CalculateHouseRent(employee.Salary),
                IncomeTax                 = SalaryGenrationHelper.GetTax(1, 1, employee.Sex, employee.IsFreedomFighter),
                Institute                 = employee.Department,
                JoiningDate               = employee.JoiningDate,
                MainSalary                = employee.Salary,
                MedicalAllowance          = SalaryGenrationHelper.GetMedicalBill(),
                Month                     = SalaryGenrationHelper.GetMonth(),
                Name                      = employee.FullName,
                PayableMainSalary         = employee.Salary,
                ResearchAllowance         = SalaryGenrationHelper.GetResearchAllowance(),
                RevenueStamp              = SalaryGenrationHelper.GetRevenueStampCost(),
                Somonnoy                  = "0",
                TelephoneAllowance        = SalaryGenrationHelper.GetTelephoneAllowance(),
                Title                     = employee.Podobi,
                TransportationAllowance   = SalaryGenrationHelper.GetTransportationAllowance(employee.HasOwnTransportationMethod),
                BookAllowance             = SalaryGenrationHelper.GetBookAllowance(),
                ChairmanAllowance         = SalaryGenrationHelper.GetChairmanAllowance(employee.IsChairman),
                Club                      = SalaryGenrationHelper.GetClubAllowance(),
                DevelopmentFund           = SalaryGenrationHelper.GetDevelopmentFund(),
                FestivalAllowance         = SalaryGenrationHelper.GetFestivalAllowance(employee.Salary),
                GasBill                   = SalaryGenrationHelper.GetGasBill(),
                GroupInsurance            = SalaryGenrationHelper.GetGroupInsurance(),
                HouseRentSub              = SalaryGenrationHelper.GetHouseRentSub(),
                InternetBill              = SalaryGenrationHelper.GetInternetBill(),
                MoharghoAlloowance        = SalaryGenrationHelper.GetMoharghoAllowance(),
                PresonAllowance           = SalaryGenrationHelper.GtePresonAllowance(),
                ProvostAllowance          = SalaryGenrationHelper.GetProvostAllowance(employee.IsProvost),
                StudentAdvisorAllowance   = SalaryGenrationHelper.GetStudentAdvisorAllowance(employee.IsStudentAdviser),
                StudentDevelopmentFund    = SalaryGenrationHelper.GetStudentDevelopmentAllowance(),
                TeacherFamilyDevelopment  = SalaryGenrationHelper.GetTeacherFamilyDevelopmentFund(),
                WardenDirectorAllowance   = "",
                FutureFund                = "",
                Grade                     = "",
                OthersAddition            = "",
                AssistantProvostAllowance = "",
                BoisakhiAllowance         = SalaryGenrationHelper.GetBoisakhiAllowance(employee.Salary),
                SrantiBinodonAllowance    = SalaryGenrationHelper.GetSrantiAllowance()
            };

            salary.Total            = SalaryGenrationHelper.GetGrandTotal(salary);
            salary.TotalSubtraction = SalaryGenrationHelper.GetTotalSubtraction(salary);
            salary.NeatSalary       = SalaryGenrationHelper.GetNeatTotalSalary(salary);

            return(salary);
        }
Beispiel #2
0
        public List <Salary> UpdateSalaryList(List <Salary> salaries)
        {
            List <Salary> newSalaries = new List <Salary>();

            foreach (Salary salary in salaries)
            {
                Salary newSalary = salary;
                newSalary.BF               = SalaryGenrationHelper.GetBf(salary.MainSalary, "শিক্ষক");
                newSalary.GPF              = SalaryGenrationHelper.GetGpf(salary.MainSalary);
                newSalary.Total            = SalaryGenrationHelper.GetGrandTotal(newSalary);
                newSalary.TotalSubtraction = SalaryGenrationHelper.GetTotalSubtraction(newSalary);
                newSalary.NeatSalary       = SalaryGenrationHelper.GetNeatTotalSalary(newSalary);

                newSalaries.Add(newSalary);
            }
            return(newSalaries);
        }