Subversion Repositories bacoAlunos

Rev

Rev 1909 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1909 Rev 1912
Line 704... Line 704...
704
                        "generateGlobalLearningResultsChartImg",
704
                        "generateGlobalLearningResultsChartImg",
705
                        {
705
                        {
706
                            "courseReportDocument": BacoJS.stringifyOrdered(angular.element($("#courseReportApp")).scope().report)
706
                            "courseReportDocument": BacoJS.stringifyOrdered(angular.element($("#courseReportApp")).scope().report)
707
                        },
707
                        },
708
                        "#courseReportApp",
708
                        "#courseReportApp",
709
                        function (repositoryFile4JsonView) {
709
                        function (chart) {
710
                            comp.image = repositoryFile4JsonView;
710
                            comp.image = chart.image;
-
 
711
                            comp.WIDTH = chart.WIDTH;
-
 
712
                            comp.HEIGHT = chart.HEIGHT;
711
                            comp.imageUrl = "<%=request.getContextPath()%>/repositoryStream/" + comp.image.identifier + "?" + new Date().getTime();
713
                            comp.imageUrl = "<%=request.getContextPath()%>/repositoryStream/" + comp.image.identifier + "?" + new Date().getTime();
712
                            angular.element($("#courseReportApp")).scope().$apply();
714
                            angular.element($("#courseReportApp")).scope().$apply();
713
                        },
715
                        },
714
                        function () {
716
                        function () {
715
                        }
717
                        }
Line 741... Line 743...
741
                <div class="col-md-10">
743
                <div class="col-md-10">
742
                    <label ng-if="comp.image.identifier"> Limites do PDF </label>
744
                    <label ng-if="comp.image.identifier"> Limites do PDF </label>
743
                    <div ng-if="comp.image.identifier"
745
                    <div ng-if="comp.image.identifier"
744
                         style="text-align: center; width: 595px; border: 1px solid black; padding: 45px">
746
                         style="text-align: center; width: 595px; border: 1px solid black; padding: 45px">
745
                        <center>
747
                        <center>
746
                            <div style="width: 200px;height: 200px; max-width: 500px; max-height: 750px" resizable
748
                            <div style="width:'{{comp.width}}'px ;height:'{{comp.height}}'px; max-width: 500px; max-height: 750px" resizable
747
                                 on-resize="resize($evt, $ui, comp)">
749
                                 on-resize="resize($evt, $ui, comp)">
748
                                <img ng-if="comp.imageUrl" style="width: 100%;height: 100%" ng-src="{{comp.imageUrl}}">
750
                                <img ng-if="comp.imageUrl" style="width: 100%;height: 100%" ng-src="{{comp.imageUrl}}">
749
                                <img ng-if="!comp.imageUrl" style="width: 100%;height: 100%"
751
                                <img ng-if="!comp.imageUrl" style="width: 100%;height: 100%"
750
                                     ng-src="{{'<%=request.getContextPath()%>/repositoryStream/' + comp.image.identifier}}">
752
                                     ng-src="{{'<%=request.getContextPath()%>/repositoryStream/' + comp.image.identifier}}">
751
                            </div>
753
                            </div>
Line 777... Line 779...
777
                        "generateGlobalLearningResultsChartYearImg",
779
                        "generateGlobalLearningResultsChartYearImg",
778
                        {
780
                        {
779
                            "courseReportDocument": BacoJS.stringifyOrdered(angular.element($("#courseReportApp")).scope().report)
781
                            "courseReportDocument": BacoJS.stringifyOrdered(angular.element($("#courseReportApp")).scope().report)
780
                        },
782
                        },
781
                        "#courseReportApp",
783
                        "#courseReportApp",
782
                        function (repositoryFile4JsonView) {
784
                        function (chart) {
783
                            comp.image = repositoryFile4JsonView;
785
                            comp.image = chart.image;
-
 
786
                            comp.WIDTH = chart.WIDTH;
-
 
787
                            comp.HEIGHT = chart.HEIGHT;
784
                            comp.imageUrl = "<%=request.getContextPath()%>/repositoryStream/" + comp.image.identifier + "?" + new Date().getTime();
788
                            comp.imageUrl = "<%=request.getContextPath()%>/repositoryStream/" + comp.image.identifier + "?" + new Date().getTime();
785
                            angular.element($("#courseReportApp")).scope().$apply();
789
                            angular.element($("#courseReportApp")).scope().$apply();
786
                        },
790
                        },
787
                        function () {
791
                        function () {
788
                        }
792
                        }
Line 814... Line 818...
814
                <div class="col-md-10">
818
                <div class="col-md-10">
815
                    <label ng-if="comp.image.identifier"> Limites do PDF </label>
819
                    <label ng-if="comp.image.identifier"> Limites do PDF </label>
816
                    <div ng-if="comp.image.identifier"
820
                    <div ng-if="comp.image.identifier"
817
                         style="text-align: center; width: 595px; border: 1px solid black; padding: 45px">
821
                         style="text-align: center; width: 595px; border: 1px solid black; padding: 45px">
818
                        <center>
822
                        <center>
819
                            <div style="width: 200px;height: 200px; max-width: 500px; max-height: 750px" resizable
823
                            <div style="width:'{{comp.width}}'px ;height:'{{comp.height}}'px; max-width: 500px; max-height: 750px" resizable
820
                                 on-resize="resize($evt, $ui, comp)">
824
                                 on-resize="resize($evt, $ui, comp)">
821
                                <img ng-if="comp.imageUrl" style="width: 100%;height: 100%" ng-src="{{comp.imageUrl}}">
825
                                <img ng-if="comp.imageUrl" style="width: 100%;height: 100%" ng-src="{{comp.imageUrl}}">
822
                                <img ng-if="!comp.imageUrl" style="width: 100%;height: 100%"
826
                                <img ng-if="!comp.imageUrl" style="width: 100%;height: 100%"
823
                                     ng-src="{{'<%=request.getContextPath()%>/repositoryStream/' + comp.image.identifier}}">
827
                                     ng-src="{{'<%=request.getContextPath()%>/repositoryStream/' + comp.image.identifier}}">
824
                            </div>
828
                            </div>