/// <summary> /// 查看员工的所有请年假情况 /// </summary> public List <LeaveRequestItem> GetVacationUsedDetailByAccountID(int accountID) { List <LeaveRequestItem> leaveRequestItemList = new List <LeaveRequestItem>(); List <LeaveRequestItem> temp = _DalLeaveRequest.GetVacationUsedDetailByAccountID(accountID); foreach (LeaveRequestItem item in temp) { if (item.Status.Id == RequestStatus.Cancelled.Id || item.Status.Id == RequestStatus.CancelApproving.Id) { if (AdjustIfApprovePass(item)) { leaveRequestItemList.Add(item); } } else { leaveRequestItemList.Add(item); } } return(leaveRequestItemList); }