Rev 1982 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1982 | Rev 1985 | ||
---|---|---|---|
Line 661... | Line 661... | ||
661 | return "globallearningresultschartimg"; |
661 | return "globallearningresultschartimg"; |
662 | } |
662 | } |
663 | } |
663 | } |
664 | }); |
664 | }); |
665 | </script> |
665 | </script> |
- | 666 | ||
- | 667 | ||
666 | <script type="text/ng-template" id="globallearningresultschartimg"> |
668 | <script type="text/ng-template" id="globallearningresultschartimg"> |
667 | <div class="imageComponent component"> |
669 | <div class="imageComponent component"> |
668 | 670 | ||
669 | <div class="componentBody"> |
671 | <div class="componentBody"> |
670 | <div class="form-group clearfix"> |
672 | <div class="form-group clearfix"> |
Line 697... | Line 699... | ||
697 | 699 | ||
698 | 700 | ||
699 | 701 | ||
700 | 702 | ||
701 | 703 | ||
702 | - | ||
- | 704 | <!-- Primeiro gráfico --> |
|
703 | <script type="text/ng-template" id="pt_estgp_estgweb_services_courses_coursereport_documentmodel_learningresults_components_GlobalLearningResultsChartYearImg"> |
705 | <script type="text/ng-template" id="pt_estgp_estgweb_services_courses_coursereport_documentmodel_learningresults_components_GlobalLearningResultsChartYearImg"> |
704 | <globallearningresultschartyearimg> |
706 | <globallearningresultschartyearimg> |
705 | 707 | ||
706 | </globallearningresultschartyearimg> |
708 | </globallearningresultschartyearimg> |
707 | </script> |
709 | </script> |
Line 721... | Line 723... | ||
721 | { |
723 | { |
722 | "courseReportDocument" : BacoJS.stringifyOrdered(angular.element($("#courseReportApp")).scope().report) |
724 | "courseReportDocument" : BacoJS.stringifyOrdered(angular.element($("#courseReportApp")).scope().report) |
723 | }, |
725 | }, |
724 | "#courseReportApp", |
726 | "#courseReportApp", |
725 | function(repositoryFile4JsonView) |
727 | function(repositoryFile4JsonView) |
- | 728 | { |
|
- | 729 | comp.image = repositoryFile4JsonView; |
|
- | 730 | comp.imageUrl = "<%=request.getContextPath()%>/repositoryStream/" + comp.image.identifier + "?" + new Date().getTime(); |
|
- | 731 | angular.element($("#courseReportApp")).scope().$apply(); |
|
- | 732 | }, |
|
- | 733 | function(){} |
|
- | 734 | ); |
|
- | 735 | } |
|
- | 736 | ||
- | 737 | ||
- | 738 | }, |
|
- | 739 | templateUrl: function(elem,attrs) { |
|
- | 740 | return "globallearningresultschartimg"; |
|
- | 741 | } |
|
- | 742 | } |
|
- | 743 | }); |
|
- | 744 | </script> |
|
- | 745 | ||
- | 746 | ||
- | 747 | ||
- | 748 | <!-- Segundo gráfico --> |
|
- | 749 | <script type="text/ng-template" id="pt_estgp_estgweb_services_courses_coursereport_documentmodel_learningresults_components_LearningResultsChartSem"> |
|
- | 750 | <learningresultschartsem> |
|
- | 751 | ||
- | 752 | </learningresultschartsem> |
|
- | 753 | </script> |
|
- | 754 | <script> |
|
- | 755 | angular.module("courseReportApp").directive('learningresultschartsem', function() { |
|
- | 756 | ||
- | 757 | return { |
|
- | 758 | restrict: 'E', |
|
- | 759 | link: function($scope, element, attrs) |
|
- | 760 | { |
|
- | 761 | $scope.generateChart = function(comp) |
|
- | 762 | { |
|
- | 763 | ||
- | 764 | widgetCallWithActionParameters( |
|
- | 765 | "<%=request.getContextPath()%>/user/courseReport.do", |
|
- | 766 | "generateLearningResultsChartSem", |
|
- | 767 | { |
|
- | 768 | "courseReportDocument" : BacoJS.stringifyOrdered(angular.element($("#courseReportApp")).scope().report) |
|
- | 769 | }, |
|
- | 770 | "#courseReportApp", |
|
- | 771 | function(repositoryFile4JsonView) |
|
726 | { |
772 | { |
727 | comp.image = repositoryFile4JsonView; |
773 | comp.image = repositoryFile4JsonView; |
728 | comp.imageUrl = "<%=request.getContextPath()%>/repositoryStream/" + comp.image.identifier + "?" + new Date().getTime(); |
774 | comp.imageUrl = "<%=request.getContextPath()%>/repositoryStream/" + comp.image.identifier + "?" + new Date().getTime(); |
729 | angular.element($("#courseReportApp")).scope().$apply(); |
775 | angular.element($("#courseReportApp")).scope().$apply(); |
730 | }, |
776 | }, |