Esempio n. 1
0
        /// <summary>
        /// 根据PKID获得的请假信息
        /// </summary>
        /// <returns></returns>
        public List <LeaveRequest> GetConfirmLeaveRequest()
        {
            //找出所有待审核的请假申请
            List <LeaveRequest> confirmLeaveRequestList = _DalLeaveRequest.GetConfirmLeaveRequest();

            foreach (LeaveRequest request in confirmLeaveRequestList)
            {
                request.Account = _IAccountBll.GetAccountById(request.Account.Id);
                foreach (LeaveRequestItem item in request.LeaveRequestItems)
                {
                    if (item.CurrentStep != null)
                    {
                        item.CurrentStep.OperatorID =
                            ChangeOperatorToEmployee(request, item.CurrentStep);
                    }
                    else
                    {
                        item.CurrentStep = new DiyStep(0, "", OperatorType.Others, 0);
                    }
                }
            }
            return(confirmLeaveRequestList);
        }