Example #1
0
        /// <summary>
        /// 退选;
        /// </summary>
        /// <param name="selectedCourseInfo">已选课程信息</param>
        /// <returns>课程信息</returns>
        public static CourseInfo Reject(SelectedCourseInfo selectedCourseInfo)
        {
            var courseInfo = new CourseInfo()
            {
                No     = selectedCourseInfo.No,
                Name   = selectedCourseInfo.Name,
                Credit = selectedCourseInfo.Credit,
            };

            return(courseInfo);
        }
Example #2
0
        /// <summary>
        /// 选课;
        /// </summary>
        /// <param name="courseInfo">课程信息</param>
        /// <returns>已选课程信息</returns>
        public static SelectedCourseInfo Select(CourseInfo courseInfo)
        {
            var selectedCourseInfo = new SelectedCourseInfo()
            {
                No        = courseInfo.No,
                Name      = courseInfo.Name,
                Credit    = courseInfo.Credit,
                OrderBook = false,
                State     = EntityInfoState.Added
            };

            return(selectedCourseInfo);
        }