Beispiel #1
0
        /// <summary>
        /// 取得十二月工资
        /// </summary>
        /// <param name="accountID"></param>
        /// <returns></returns>
        private List <EmployeeSalaryHistory> MakeEmployeeLastYearSalary(int accountID)
        {
            List <EmployeeSalaryHistory> returnList  = new List <EmployeeSalaryHistory>();
            List <EmployeeSalaryHistory> historyList = _DalEmployeeSalary.GetEmployeeSalaryHistoryByEmployeeId(accountID);

            foreach (EmployeeSalaryHistory history in historyList)
            {
                if (new HrmisUtility().EndMonthByYearMonth(history.SalaryDateTime).Year.Equals(new HrmisUtility().EndMonthByYearMonth(_SalaryTime).Year - 1))
                {
                    returnList.Add(history);
                }
            }
            return(returnList);
        }
Beispiel #2
0
 /// <summary>
 /// 根据员工ID获取员工工资历史
 /// </summary>
 /// <param name="employeeID"></param>
 /// <returns></returns>
 public List <EmployeeSalaryHistory> GetEmployeeSalaryHistoryByEmployeeId(int employeeID)
 {
     return(_DalEmployeeSalary.GetEmployeeSalaryHistoryByEmployeeId(employeeID));
 }