Commit 03ba5f97912487fac4673516584b95c47e170c19
1 parent
4c93eac5
implemented copy report functionality
Showing
2 changed files
with
3 additions
and
2 deletions
400-SOURCECODE/AIAHTML5.API/Controllers/LabExerciseController.cs
... | ... | @@ -256,7 +256,7 @@ namespace AIAHTML5.API.Controllers |
256 | 256 | { |
257 | 257 | aar.Add(User["EmailTo"].ToString()); |
258 | 258 | } |
259 | - if (User["ReportCheck"].ToString() == "true") | |
259 | + if (Convert.ToBoolean(User["ReportCheck"]) == true) | |
260 | 260 | { |
261 | 261 | aar.Add(User["EmailAdd"].ToString()); |
262 | 262 | } | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/services/LabExerciseService.js
... | ... | @@ -51,9 +51,10 @@ |
51 | 51 | }, |
52 | 52 | |
53 | 53 | // code of email report |
54 | - LabExerciseReport: function (User, reportImage, reportTitle) { | |
54 | + LabExerciseReport: function (User, reportImage, reportTitle, reportCopyStatus) { | |
55 | 55 | User.reportImage = reportImage; |
56 | 56 | User.reportTitle = reportTitle; |
57 | + User.ReportCheck = reportCopyStatus; | |
57 | 58 | var deferred = $q.defer(); |
58 | 59 | // var jsonData = { 'EmailTo': User.EmailTo, 'EmailAdd': User.EmailAdd }; |
59 | 60 | $http.post('http://192.168.90.19:91/API/api/LabExercise/SendEmail', JSON.stringify(User), { | ... | ... |