Subversion Repositories bacoAlunos

Rev

Rev 1888 | Rev 1898 | Go to most recent revision | Show entire file | Regard 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
<script type="text/ng-template" id="pt_estgp_estgweb_services_courses_coursereport_documentmodel_learningresults_components_GlobalLearningResultsChartImg">
-
 
617
    <globallearningresultschartimg>
-
 
618
    </globallearningresultschartimg>
-
 
619
</script>
-
 
620
<script>
-
 
621
    angular.module("courseReportApp").directive('globallearningresultschartimg', function() {
616
 
622
 
-
 
623
        return {
-
 
624
            restrict: 'E',
-
 
625
            link: function($scope, element, attrs)
-
 
626
            {
-
 
627
                $scope.generateChart = function(comp)
-
 
628
                {
617
 
629
 
-
 
630
                    widgetCallWithActionParameters(
-
 
631
                            "<%=request.getContextPath()%>/user/courseReport.do",
-
 
632
                            "generateGlobalLearningResultsChartImg",
-
 
633
                            {
-
 
634
                                "courseReportDocument" : BacoJS.stringifyOrdered(angular.element($("#courseReportApp")).scope().report)
-
 
635
                            },
-
 
636
                            "#courseReportApp",
-
 
637
                            function(repositoryFile4JsonView)
-
 
638
                            {
-
 
639
                                comp.image = repositoryFile4JsonView;
-
 
640
                                comp.imageUrl = "<%=request.getContextPath()%>/repositoryStream/" + comp.image.identifier + "?" + new Date().getTime();
-
 
641
                                angular.element($("#courseReportApp")).scope().$apply();
-
 
642
                            },
-
 
643
                            function(){}
-
 
644
                    );
-
 
645
                }
618
 
646
 
619
 
647
 
-
 
648
            },
-
 
649
            templateUrl: function(elem,attrs) {
-
 
650
                return "globallearningresultschartimg";
-
 
651
            }
-
 
652
        }
-
 
653
    });
-
 
654
</script>
-
 
655
<script type="text/ng-template" id="globallearningresultschartimg">
-
 
656
    <div class="imageComponent component">
620
 
657
 
-
 
658
        <div class="componentBody">
-
 
659
            <div class="form-group clearfix">
-
 
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>
621
 
685
 
622
 
686
 
623
 
-
 
624
 
-
 
625
 
-
 
626
<script type="text/ng-template" id="pt_estgp_estgweb_services_courses_coursereport_documentmodel_learningresults_components_GlobalLearningResultsChartImg">
687
<script type="text/ng-template" id="pt_estgp_estgweb_services_courses_coursereport_documentmodel_learningresults_components_GlobalLearningResultsChartYearImg">
627
    <globallearningresultschartimg>
688
    <globallearninglesultschartyearimg>
628
    </globallearningresultschartimg>
689
    </globallearninglesultschartyearimg>
629
</script>
690
</script>
-
 
691
 
630
<script>
692
<script>
631
    angular.module("courseReportApp").directive('globallearningresultschartimg', function() {
693
    angular.module("courseReportApp").directive('globallearninglesultschartyearimg', function() {
632
 
694
 
633
        return {
695
        return {
634
            restrict: 'E',
696
            restrict: 'E',
635
            link: function($scope, element, attrs)
697
            link: function($scope, element, attrs)
636
            {
698
            {
Line 660... Line 722...
660
                return "globallearningresultschartimg";
722
                return "globallearningresultschartimg";
661
            }
723
            }
662
        }
724
        }
663
    });
725
    });
664
</script>
726
</script>
665
<script type="text/ng-template" id="globallearningresultschartimg">
727
<script type="text/ng-template" id="globallearninglesultschartyearimg">
666
    <div class="imageComponent component">
728
    <div class="imageComponent component">
667
 
729
 
668
        <div class="componentBody">
730
        <div class="componentBody">
669
            <div class="form-group clearfix">
731
            <div class="form-group clearfix">
670
                <label class="col-md-2 control-label">Legenda</label>
732
                <label class="col-md-2 control-label">Legenda</label>