From 9e26e98b14a67854b84a566843640fe6d30194bc Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 14 Aug 2018 15:24:08 +0530 Subject: [PATCH] Commit Changes --- 400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js index 0f8ea8f..8720462 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js @@ -1290,37 +1290,25 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, } $scope.reportCopyStatus = false; $scope.SendLabEXMailToUser = function (User) { - - - // html2canvas($("#submitResultHtml"), { - // onrendered: function (canvas) { - // var dataURL = canvas.toDataURL("image/jpeg"); - // dataURL = dataURL.replace(/^data:image\/(png|jpg);base64,/, ""); - // var imageToPrint = new Image(); - // imageToPrint.src = dataURL; - // console.log(imageToPrint.src); - // $scope.reportImage = imageToPrint.src; - var htm = ''; - htm += ''; + var reportHtml = ''; + reportHtml += '
QuestionActivity TitleStatus
'; $("#resultLabData tr").each(function () { - htm += ''; + reportHtml += ''; $(this).children("td").each(function () { if ($(this).text() == " Review") { } else{ - htm += ''; + reportHtml += ''; } }); - htm += ''; + reportHtml += ''; }); - htm += '
QuestionActivity TitleStatus
'+$(this).text()+'' + $(this).text() + '
'; - $scope.reportImage = "
"+$("#submitResultHtml .panel-heading .row div:nth-child(1)").text()+"Performance Report" + $("#submitResultHtml .panel-heading .row div:nth-child(3)").text() + "
Total QuestionCorrect AnswersIncorrect Answers
" + $("#questionStatus tbody tr td:nth-child(1)").text() + "" + $("#questionStatus tbody tr td:nth-child(2)").text() + "" + $("#questionStatus tbody tr td:nth-child(3)").text() + "


" + htm + ""; + reportHtml += ''; + $scope.reportImage = "
"+$("#submitResultHtml .panel-heading .row div:nth-child(1)").text()+"Performance Report" + $("#submitResultHtml .panel-heading .row div:nth-child(3)").text() + "
Total QuestionCorrect AnswersIncorrect Answers
" + $("#questionStatus tbody tr td:nth-child(1)").text() + "" + $("#questionStatus tbody tr td:nth-child(2)").text() + "" + $("#questionStatus tbody tr td:nth-child(3)").text() + "


" + reportHtml + ""; $scope.reportTitle = "Lab Exercise Report for " + $("#submitResultHtml .panel-heading .row div:nth-child(1)").text(); $scope.senderEmails = $("#emailTo").val(); - // } - // }); LabExerciseService.LabExerciseReport(User, $scope.reportImage, $scope.reportTitle, $scope.reportCopyStatus, $scope.senderEmails).then( -- libgit2 0.21.4