Rev 1994 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1994 | Rev 1996 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | <a name="cu{{$index}}"></a> |
25 | <a name="cu{{$index}}"></a> |
26 | <span ng-if="$index != 0" class="glyphicon glyphicon-backward" ></span><a ng-if="$index != 0" href="#indexCus"> Voltar atrás</a> |
26 | <span ng-if="$index != 0" class="glyphicon glyphicon-backward" ></span><a ng-if="$index != 0" href="#indexCus"> Voltar atrás</a> |
27 | <div class="panel-heading"><h2>{{cu.title}}</h2></div> |
27 | <div class="panel-heading"><h2>{{cu.title}}</h2></div> |
28 | 28 | ||
29 | <div style="padding-left:20px"> |
29 | <div style="padding-left:20px"> |
30 | <div><h3><label class="label label-primary">Estado do Relatório</label></h3></div> |
30 | <div><h3><label class="label label-primary">Estado do Relatório</label></h3></div> |
31 | 31 | ||
32 | <div ng-if="cu.courseUnitEvaluation.closed"> |
32 | <div ng-if="cu.courseUnitEvaluation.closed"> |
33 | Entregue e Aceite |
33 | Entregue e Aceite |
34 | </div> |
34 | </div> |
35 | <div class="alert-danger" ng-if="cu.courseUnitEvaluation.closed && !cu.courseUnitEvaluation.teacherComplete"> |
35 | <div class="alert-danger" ng-if="cu.courseUnitEvaluation.closed && !cu.courseUnitEvaluation.teacherComplete"> |
36 | Entregue mas não foi aprovado pela comissão |
36 | Entregue mas não foi aprovado pela comissão |
37 | </div> |
37 | </div> |
38 | <div class="alert-danger" ng-if="!cu.courseUnitEvaluation.closed && !cu.courseUnitEvaluation.teacherComplete"> |
38 | <div class="alert-danger" ng-if="!cu.courseUnitEvaluation.closed && !cu.courseUnitEvaluation.teacherComplete"> |
39 | Não foi entregue pelo docente para validação |
39 | Não foi entregue pelo docente para validação |
40 | </div> |
40 | </div> |
41 | 41 | ||
Line 645... | Line 645... | ||
645 | } |
645 | } |
646 | 646 | ||
647 | 647 | ||
648 | }, |
648 | }, |
649 | templateUrl: function(elem,attrs) { |
649 | templateUrl: function(elem,attrs) { |
650 | return "globallearningresultschartimg"; |
650 | return "chartTemplate"; |
651 | } |
651 | } |
652 | } |
652 | } |
653 | }); |
653 | }); |
654 | </script> |
654 | </script> |
- | 655 | ||
- | 656 | ||
655 | <script type="text/ng-template" id="globallearningresultschartimg"> |
657 | <script type="text/ng-template" id="chartTemplate"> |
656 | <div class="imageComponent component"> |
658 | <div class="imageComponent component"> |
657 | 659 | ||
658 | <div class="componentBody"> |
660 | <div class="componentBody"> |
659 | <div class="form-group clearfix"> |
661 | <div class="form-group clearfix"> |
660 | <label class="col-md-2 control-label">Legenda</label> |
662 | <label class="col-md-2 control-label">Legenda</label> |
Line 682... | Line 684... | ||
682 | </div> |
684 | </div> |
683 | </div> |
685 | </div> |
684 | </script> |
686 | </script> |
685 | 687 | ||
686 | 688 | ||
- | 689 | <!-- Grafico 2 --> |
|
687 | <script type="text/ng-template" id="pt_estgp_estgweb_services_courses_coursereport_documentmodel_learningresults_components_GlobalLearningResultsChartYearImg"> |
690 | <script type="text/ng-template" id="pt_estgp_estgweb_services_courses_coursereport_documentmodel_learningresults_components_GlobalLearningResultsChartYearImg"> |
688 | <globallearningresultschartyearimg> |
691 | <globallearningresultschartyearimg> |
689 | </globallearningresultschartyearimg> |
692 | </globallearningresultschartyearimg> |
690 | </script> |
693 | </script> |
691 | 694 | ||
692 | - | ||
693 | <!-- Grafico 2 --> |
- | |
694 | <script> |
695 | <script> |
695 | angular.module("courseReportApp").directive('globallearningresultschartyearimg', function() { |
696 | angular.module("courseReportApp").directive('globallearningresultschartyearimg', function() { |
696 | 697 | ||
697 | return { |
698 | return { |
698 | restrict: 'E', |
699 | restrict: 'E', |
Line 700... | Line 701... | ||
700 | { |
701 | { |
701 | $scope.generateChart = function(comp) |
702 | $scope.generateChart = function(comp) |
702 | { |
703 | { |
703 | 704 | ||
704 | widgetCallWithActionParameters( |
705 | widgetCallWithActionParameters( |
705 | "<%=request.getContextPath()%>/user/courseReport.do", |
706 | "<%=request.getContextPath()%>/user/courseReport.do", |
706 | "generateGlobalLearningResultsChartYearImg", |
707 | "generateGlobalLearningResultsChartYearImg", |
707 | { |
708 | { |
708 | "courseReportDocument" : BacoJS.stringifyOrdered(angular.element($("#courseReportApp")).scope().report) |
709 | "courseReportDocument" : BacoJS.stringifyOrdered(angular.element($("#courseReportApp")).scope().report) |
709 | }, |
710 | }, |
710 | "#courseReportApp", |
711 | "#courseReportApp", |
711 | function(repositoryFile4JsonView) |
712 | function(repositoryFile4JsonView) |
712 | { |
713 | { |
713 | comp.image = repositoryFile4JsonView; |
714 | comp.image = repositoryFile4JsonView; |
714 | comp.imageUrl = "<%=request.getContextPath()%>/repositoryStream/" + comp.image.identifier + "?" + new Date().getTime(); |
715 | comp.imageUrl = "<%=request.getContextPath()%>/repositoryStream/" + comp.image.identifier + "?" + new Date().getTime(); |
715 | angular.element($("#courseReportApp")).scope().$apply(); |
716 | angular.element($("#courseReportApp")).scope().$apply(); |
Line 719... | Line 720... | ||
719 | } |
720 | } |
720 | 721 | ||
721 | 722 | ||
722 | }, |
723 | }, |
723 | templateUrl: function(elem,attrs) { |
724 | templateUrl: function(elem,attrs) { |
724 | return "globallearningresultschartimg"; |
725 | return "chartTemplate"; |
725 | } |
726 | } |
726 | } |
727 | } |
727 | }); |
728 | }); |
728 | </script> |
729 | </script> |
729 | <script type="text/ng-template" id="globallearninglesultschartyearimg"> |
- | |
730 | <div class="imageComponent component"> |
- | |
731 | 730 | ||
- | 731 | ||
- | 732 | <!-- Grafico 3 --> |
|
- | 733 | <script type="text/ng-template" id="pt_estgp_estgweb_services_courses_coursereport_documentmodel_learningresults_components_LearningResultsChartSem"> |
|
732 | <div class="componentBody"> |
734 | <learningresultschartsem> |
733 | <div class="form-group clearfix"> |
735 | </learningresultschartsem> |
- | 736 | </script> |
|
- | 737 | ||
- | 738 | <script> |
|
734 | <label class="col-md-2 control-label">Legenda</label> |
739 | angular.module("courseReportApp").directive('learningresultschartsem', function() { |
- | 740 | ||
- | 741 | return { |
|
735 | <div class="col-md-10"> |
742 | restrict: 'E', |
736 | <input type="text" class="form-control" rows="10" ng-model="comp.title"> |
743 | link: function($scope, element, attrs) |
737 | </div> |
744 | { |
- | 745 | $scope.generateChart = function(comp) |
|
738 | </div> |
746 | { |
- | 747 | ||
739 | <div class="form-group clearfix"> |
748 | widgetCallWithActionParameters( |
740 | <div class="col-md-2 control-label"> |
749 | "<%=request.getContextPath()%>/user/courseReport.do", |
741 | <button class="btn btn-default" ng-click="generateChart(comp)">Refrescar/Gerar Grafico</button> |
750 | "generateLearningResultsChartSem", |
742 | </div> |
751 | { |
- | 752 | "courseReportDocument" : BacoJS.stringifyOrdered(angular.element($("#courseReportApp")).scope().report) |
|
743 | <div class="col-md-10"> |
753 | }, |
744 | <label ng-if="comp.image.identifier"> Limites do PDF </label> |
754 | "#courseReportApp", |
745 | <div ng-if="comp.image.identifier" style="text-align: center; width: 595px; border: 1px solid black; padding: 45px"> |
755 | function(repositoryFile4JsonView) |
746 | <center> |
756 | { |
747 | <div style="width: 200px;height: 200px; max-width: 500px; max-height: 750px" resizable on-resize="resize($evt, $ui, comp)"> |
757 | comp.image = repositoryFile4JsonView; |
748 | <img ng-if="comp.imageUrl" style="width: 100%;height: 100%" ng-src="{{comp.imageUrl}}"> |
758 | comp.imageUrl = "<%=request.getContextPath()%>/repositoryStream/" + comp.image.identifier + "?" + new Date().getTime(); |
749 | <img ng-if="!comp.imageUrl" style="width: 100%;height: 100%" ng-src="{{'<%=request.getContextPath()%>/repositoryStream/' + comp.image.identifier}}"> |
759 | angular.element($("#courseReportApp")).scope().$apply(); |
750 | </div> |
760 | }, |
751 | (Se desejar altere o tamanho da imagem arrastando no canto inferior direito) |
- | |
752 | </center> |
761 | function(){} |
753 | </div> |
762 | ); |
754 | </div> |
763 | } |
- | 764 | ||
755 | </div> |
765 | }, |
- | 766 | templateUrl: function(elem,attrs) { |
|
- | 767 | return "chartTemplate"; |
|
756 | </div> |
768 | } |
757 | </div> |
769 | } |
- | 770 | }); |
|
758 | </script> |
771 | </script> |