/// <summary>
        /// 练习报告的统计部分
        /// </summary>
        /// <returns></returns>
        public ActionResult GetByStudentTask(int taskId)
        {
            StudentReportBll studentReportBll = new StudentReportBll();
            var models = studentReportBll.GetByStudentTask(GetCurrentUser().StudentId, taskId);

            return(Json(new SuccessJsonResponse(models), JsonRequestBehavior.AllowGet));
        }
        public ActionResult ShowTaskReport(int taskId, string path, int source = 0, int origin = 0)
        {
            StudentReportBll studentReportBll = new StudentReportBll();
            var taskReport = studentReportBll.GetByStudentTask(GetCurrentUser().StudentId, taskId);
            SumReportViewModel viewModels = taskReport.ConvertTo <SumReportViewModel>();

            var courseInfo = studentReportBll.GetStuTaskReportById(taskId);

            viewModels.TaskId        = taskId;
            viewModels.StudentName   = GetCurrentUser().Name;
            viewModels.ReportType    = courseInfo.ReportType;
            viewModels.ReportTypeStr = courseInfo.ReportTypeStr;
            viewModels.CourseName    = courseInfo.Ycs_Name;
            viewModels.LessonName    = courseInfo.Ycl_Name;
            viewModels.PraticeCount  = courseInfo.PraticeCount;
            viewModels.Source        = source;
            viewModels.Path          = path;
            viewModels.Origin        = origin;
            return(View(viewModels));
        }