Rev 1888 | Rev 1898 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1888 | Rev 1892 | ||
---|---|---|---|
Line 611... | Line 611... | ||
611 | </div> |
611 | </div> |
612 | </script> |
612 | </script> |
613 | 613 | ||
614 | 614 | ||
615 | 615 | ||
616 | - | ||
617 | - | ||
618 | - | ||
619 | - | ||
620 | - | ||
621 | - | ||
622 | - | ||
623 | - | ||
624 | - | ||
625 | - | ||
626 | <script type="text/ng-template" id="pt_estgp_estgweb_services_courses_coursereport_documentmodel_learningresults_components_GlobalLearningResultsChartImg"> |
616 | <script type="text/ng-template" id="pt_estgp_estgweb_services_courses_coursereport_documentmodel_learningresults_components_GlobalLearningResultsChartImg"> |
627 | <globallearningresultschartimg> |
617 | <globallearningresultschartimg> |
628 | </globallearningresultschartimg> |
618 | </globallearningresultschartimg> |
629 | </script> |
619 | </script> |
630 | <script> |
620 | <script> |
Line 666... | Line 656... | ||
666 | <div class="imageComponent component"> |
656 | <div class="imageComponent component"> |
667 | 657 | ||
668 | <div class="componentBody"> |
658 | <div class="componentBody"> |
669 | <div class="form-group clearfix"> |
659 | <div class="form-group clearfix"> |
670 | <label class="col-md-2 control-label">Legenda</label> |
660 | <label class="col-md-2 control-label">Legenda</label> |
- | 661 | <div class="col-md-10"> |
|
- | 662 | <input type="text" class="form-control" rows="10" ng-model="comp.title"> |
|
- | 663 | </div> |
|
- | 664 | </div> |
|
- | 665 | <div class="form-group clearfix"> |
|
- | 666 | <div class="col-md-2 control-label"> |
|
- | 667 | <button class="btn btn-default" ng-click="generateChart(comp)">Refrescar/Gerar Gráfico</button> |
|
- | 668 | </div> |
|
- | 669 | <div class="col-md-10"> |
|
- | 670 | <label ng-if="comp.image.identifier"> Limites do PDF </label> |
|
- | 671 | <div ng-if="comp.image.identifier" style="text-align: center; width: 595px; border: 1px solid black; padding: 45px"> |
|
- | 672 | <center> |
|
- | 673 | <div style="width: 200px;height: 200px; max-width: 500px; max-height: 750px" resizable on-resize="resize($evt, $ui, comp)"> |
|
- | 674 | <img ng-if="comp.imageUrl" style="width: 100%;height: 100%" ng-src="{{comp.imageUrl}}"> |
|
- | 675 | <img ng-if="!comp.imageUrl" style="width: 100%;height: 100%" ng-src="{{'<%=request.getContextPath()%>/repositoryStream/' + comp.image.identifier}}"> |
|
- | 676 | </div> |
|
- | 677 | (Se desejar altere o tamanho da imagem arrastando no canto inferior direito) |
|
- | 678 | </center> |
|
- | 679 | </div> |
|
- | 680 | </div> |
|
- | 681 | </div> |
|
- | 682 | </div> |
|
- | 683 | </div> |
|
- | 684 | </script> |
|
- | 685 | ||
- | 686 | ||
- | 687 | <script type="text/ng-template" id="pt_estgp_estgweb_services_courses_coursereport_documentmodel_learningresults_components_GlobalLearningResultsChartYearImg"> |
|
- | 688 | <globallearninglesultschartyearimg> |
|
- | 689 | </globallearninglesultschartyearimg> |
|
- | 690 | </script> |
|
- | 691 | ||
- | 692 | <script> |
|
- | 693 | angular.module("courseReportApp").directive('globallearninglesultschartyearimg', function() { |
|
- | 694 | ||
- | 695 | return { |
|
- | 696 | restrict: 'E', |
|
- | 697 | link: function($scope, element, attrs) |
|
- | 698 | { |
|
- | 699 | $scope.generateChart = function(comp) |
|
- | 700 | { |
|
- | 701 | ||
- | 702 | widgetCallWithActionParameters( |
|
- | 703 | "<%=request.getContextPath()%>/user/courseReport.do", |
|
- | 704 | "generateGlobalLearningResultsChartImg", |
|
- | 705 | { |
|
- | 706 | "courseReportDocument" : BacoJS.stringifyOrdered(angular.element($("#courseReportApp")).scope().report) |
|
- | 707 | }, |
|
- | 708 | "#courseReportApp", |
|
- | 709 | function(repositoryFile4JsonView) |
|
- | 710 | { |
|
- | 711 | comp.image = repositoryFile4JsonView; |
|
- | 712 | comp.imageUrl = "<%=request.getContextPath()%>/repositoryStream/" + comp.image.identifier + "?" + new Date().getTime(); |
|
- | 713 | angular.element($("#courseReportApp")).scope().$apply(); |
|
- | 714 | }, |
|
- | 715 | function(){} |
|
- | 716 | ); |
|
- | 717 | } |
|
- | 718 | ||
- | 719 | ||
- | 720 | }, |
|
- | 721 | templateUrl: function(elem,attrs) { |
|
- | 722 | return "globallearningresultschartimg"; |
|
- | 723 | } |
|
- | 724 | } |
|
- | 725 | }); |
|
- | 726 | </script> |
|
- | 727 | <script type="text/ng-template" id="globallearninglesultschartyearimg"> |
|
- | 728 | <div class="imageComponent component"> |
|
- | 729 | ||
- | 730 | <div class="componentBody"> |
|
- | 731 | <div class="form-group clearfix"> |
|
- | 732 | <label class="col-md-2 control-label">Legenda</label> |
|
671 | <div class="col-md-10"> |
733 | <div class="col-md-10"> |
672 | <input type="text" class="form-control" rows="10" ng-model="comp.title"> |
734 | <input type="text" class="form-control" rows="10" ng-model="comp.title"> |
673 | </div> |
735 | </div> |
674 | </div> |
736 | </div> |
675 | <div class="form-group clearfix"> |
737 | <div class="form-group clearfix"> |