Example #1
0
        /// <summary>
        /// 其他统计,年假统计
        /// </summary>
        public EmployeeOtherStatistics VocationStatistics()
        {
            _Employeesource = _Employeesource ??
                              _GetEmployeeHistory.GetEmployeeOnDutyByDepartmentAndDateTime(_DepartmentID, _Date, true,
                                                                                           _AccountOperator,
                                                                                           HrmisPowers.A405, null);
            List <Employee> employeeList = Employee.CopyEmployeeList(_Employeesource);

            foreach (Employee employee in employeeList)
            {
                employee.SocWorkAgeAndVacationList = new SocWorkAgeAndVacationList();
                employee.SocWorkAgeAndVacationList.EmployeeVacations = _DalVacation.GetVacationByAccountID(employee.Account.Id);
                //添加社保统计
                employee.EmployeeWelfareHistory         = _DalEmployeeWelfareHistroy.GetEmployeeWelfareHistoryByAccountID(employee.Account.Id);
                employee.EmployeeDetails.StatisticsTime = _Date;
            }
            EmployeeOtherStatistics employeeOtherStatistics = new EmployeeOtherStatistics(employeeList);

            employeeOtherStatistics.VocationStatistics();
            //添加社保统计
            employeeOtherStatistics.InsuranceStatistics();
            return(employeeOtherStatistics);
        }
Example #2
0
 /// <summary>
 /// 员工福利更新历史
 /// </summary>
 public List <EmployeeWelfareHistory> GetEmployeeWelfareHistoryByAccountID(int employeeID)
 {
     return(_EmployeeWelfareHistoryDal.GetEmployeeWelfareHistoryByAccountID(employeeID));
 }