Пример #1
0
        /// <summary>
        /// 获取用户答卷详细信息
        /// </summary>
        /// <param name="userExamId">考(答)卷ID</param>
        /// <returns></returns>
        public UserExamPaperMarkingDetails GetDetails(long userExamId)
        {
            var manage = new UserExamManage(userExamId);

            var details = manage.GetDetails();

            return(details);
        }
Пример #2
0
        /// <summary>
        /// 提交用户考卷阅卷结果
        /// </summary>
        /// <param name="reviewUserId">阅卷用户ID</param>
        /// <param name="userExamId">用户考卷ID</param>
        /// <param name="questionScores">题目对应的得分集合</param>
        /// <returns></returns>
        public bool SubmitMarkingResult(long reviewUserId, long userExamId, Dictionary <long, int> questionScores)
        {
            var manager = new UserExamManage(userExamId);

            bool success = manager.SubmitMarking(reviewUserId, questionScores);

            return(success);
        }
Пример #3
0
        /// <summary>
        /// 删除用户考卷信息
        /// </summary>
        /// <param name="deleteUser">执行删除操作的用户</param>
        /// <param name="userExamId">用户考卷ID</param>
        /// <returns></returns>
        public bool Delete(long deleteUser, long userExamId)
        {
            var manage = new UserExamManage(userExamId);

            return(manage.Delete(deleteUser));
        }