コード例 #1
0
        /// <summary>
        ///将查找出来的请假转化为IRequest
        /// </summary>
        private List <Request> GetRequestFromLeaveRequest(int employeeID, DateTime formTime, DateTime toTime,
                                                          RequestStatus status)
        {
            List <LeaveRequest> leaveRequestList =
                _DalLeaveRequest.GetLeaveRequestByCondition(employeeID, formTime, toTime, status);
            List <Request> requestList = new List <Request>();

            foreach (LeaveRequest leaveRequest in leaveRequestList)
            {
                requestList.Add(new Request(leaveRequest));
            }
            return(requestList);
        }