예제 #1
0
        /// <summary>
        /// 其他统计,居住证统计
        /// </summary>
        public EmployeeOtherStatistics ResidenceStatistics()
        {
            _Employeesource = _Employeesource ??
                              _GetEmployeeHistory.GetEmployeeOnDutyByDepartmentAndDateTime(_DepartmentID, _Date, true,
                                                                                           _AccountOperator,
                                                                                           HrmisPowers.A405, null);
            List <Employee> employeeList = Employee.CopyEmployeeList(_Employeesource);

            foreach (Employee employee in employeeList)
            {
                employee.EmployeeDetails.StatisticsTime = _Date;
            }
            EmployeeOtherStatistics employeeOtherStatistics = new EmployeeOtherStatistics(employeeList);

            employeeOtherStatistics.ResidencePermitStatistics();
            return(employeeOtherStatistics);
        }
예제 #2
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);
        }