Beispiel #1
0
        /// <summary>
        /// 描述:获取退费要销毁的课次
        /// <para>作   者:瞿琦</para>
        /// <para>创建时间:2018-11-9</para>
        /// </summary>
        /// <returns>要销毁的课次信息集合</returns>
        public List <LessonFinisherInfo> GetLessonFinisherInfo()
        {
            //传入学生Id和休学日期,获取要销毁的课次Id
            var service   = new StudentTimetableService(this._tblOdrRefundOrder.SchoolId, this._tblOdrRefundOrder.StudentId);
            var leaveList = service.GetLeaveSchoolLessonsList(_tblOdrLeaveClassOrder.StopClassDate, _unitOfWork).Where(x => _refundEnllorCourseId.Contains(x.EnrollOrderItemId));
            var result    = leaveList.Select(x => new LessonFinisherInfo
            {
                LessonId     = x.LessonId,
                BusinessId   = this._tblOdrRefundOrder.RefundOrderId,
                BusinessType = (int)ProcessBusinessType.F_Refund,
                Remark       = LessonProcessConstants.LeaveClassLessonRemark
            }).ToList();

            return(result);
        }
        /// <summary>
        /// 描述:获取要销毁的课次列表
        /// <para>作    者:瞿琦</para>
        /// <para>创建时间:2018-11-7</para>
        /// </summary>
        /// <returns>要销毁的课次Id集合</returns>
        /// <returns>无</returns>
        /// <exception cref="AMS.Core.BussinessException">无</exception>
        public List <LessonFinisherInfo> GetLessonFinisherInfo()
        {
            //传入学生Id和休学日期,获取要销毁的课次Id
            var service   = new StudentTimetableService(this._tblOdrRefundOrder.SchoolId, this._tblOdrRefundOrder.StudentId);
            var leaveList = service.GetLeaveSchoolLessonsList(_tblOdrLeaveSchoolOrder.LeaveTime, _unitOfWork);
            var result    = leaveList.Select(x => new LessonFinisherInfo
            {
                LessonId     = x.LessonId,
                BusinessId   = this._tblOdrRefundOrder.RefundOrderId,
                BusinessType = (int)ProcessBusinessType.F_LeaveSchool,   //没有枚举类型
                Remark       = LessonProcessConstants.LeaveSchoolRemark,
            }).ToList();

            return(result);
        }