Commit 9f5559a276610c29e8ce7f24481503abf26d9e6e
1 parent
73c49a1e
fix lab exercise and other issue
Showing
7 changed files
with
65 additions
and
34 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/CurrBuildController.js
... | ... | @@ -2974,6 +2974,7 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ |
2974 | 2974 | width: $rootScope.AIWindowData[i].width |
2975 | 2975 | }, |
2976 | 2976 | imageId: $rootScope.AIWindowData[i].imageId, |
2977 | + imgLeft:$rootScope.AIWindowData[i].imgLeft, | |
2977 | 2978 | minimised: $rootScope.AIWindowData[i].minimised, |
2978 | 2979 | windowTitle: $rootScope.AIWindowData[i].currentViewTitle, |
2979 | 2980 | maximised: $rootScope.AIWindowData[i].maximised, |
... | ... | @@ -3206,7 +3207,6 @@ function ($scope, $rootScope, pages, log, Modules, $http, $compile, $location, $ |
3206 | 3207 | height: $rootScope.AAWindowData[i].height |
3207 | 3208 | }, |
3208 | 3209 | id: $rootScope.AAWindowData[i].id, |
3209 | - imgLeft:$rootScope.AAWindowData[i].imgLeft, | |
3210 | 3210 | showSelectedPins: $rootScope.AAWindowData[i].isShowSelectedPins, |
3211 | 3211 | hideCallOuts: false,//N |
3212 | 3212 | showAllPins: $rootScope.AAWindowData[i].isShowAllPins, | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/DAController.js
... | ... | @@ -525,7 +525,6 @@ AIA.controller("DAController", ["$scope", "$rootScope", "$compile", "$http", "$l |
525 | 525 | |
526 | 526 | } ; |
527 | 527 | |
528 | - //window.parent.closeIFrame(); | |
529 | 528 | window.parent.AIAModuleOpenResourceInfo(DaopenData); |
530 | 529 | |
531 | 530 | } | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/LabExercController.js
... | ... | @@ -233,8 +233,6 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, |
233 | 233 | |
234 | 234 | window.parent.AIAModuleOpenResourceInfo(LEopenData); |
235 | 235 | |
236 | - window.parent.closeIFrame(); | |
237 | - | |
238 | 236 | } |
239 | 237 | else { |
240 | 238 | // $rootScope.menuLabExer = 1;//used in home controller |
... | ... | @@ -488,7 +486,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, |
488 | 486 | |
489 | 487 | var userloginid = JSON.parse(localStorage.getItem('loggedInUserDetails')).Id; |
490 | 488 | $scope.SetLEwindowStoreData(windowviewid, 'userloginid', userloginid); |
491 | - | |
489 | + | |
492 | 490 | |
493 | 491 | $timeout(function () { |
494 | 492 | var isMaximize = $scope.GetLEwindowStoreData(windowviewid, 'maximised'); |
... | ... | @@ -512,15 +510,62 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, |
512 | 510 | $scope.SetLEwindowStoreData(windowviewid, 'width', $scope.jsPanelWidth); |
513 | 511 | $scope.SetLEwindowStoreData(windowviewid, 'height', $scope.jsPanelHeight); |
514 | 512 | |
515 | - $scope.setControlsIDs(windowviewid); | |
516 | - $scope.createScopeVariable(windowviewid); | |
517 | - | |
518 | - $scope.labViewID = "LabView_" + windowviewid; | |
519 | - var labViewElement = angular.element(document.getElementById($scope.labViewID)); | |
520 | - | |
521 | - $compile(labViewElement.contents())($scope); | |
522 | - | |
523 | - | |
513 | + | |
514 | + $scope.setControlsIDs(windowviewid); | |
515 | + | |
516 | + var timeintval = null; | |
517 | + timeintval = $interval(function () { | |
518 | + $scope.labViewID = "LabView_" + windowviewid; | |
519 | + var labViewElement = angular.element(document.getElementById($scope.labViewID)); | |
520 | + if (document.getElementById($scope.labViewID) != null) | |
521 | + { | |
522 | + var panelBody = document.getElementById("panelbodyDiv_" + windowviewid); | |
523 | + var len = panelBody!=null?(panelBody.id).split("_").length:0; | |
524 | + if (len>1) { | |
525 | + $scope.stopLabIntervalLoader(); | |
526 | + $compile(labViewElement.contents())($scope); | |
527 | + $scope.createScopeVariable(windowviewid); | |
528 | + | |
529 | + //wait until DOM element load of Lab | |
530 | + | |
531 | + $scope.PanelActivity(); | |
532 | + $scope.JsPanelclick(windowviewid); | |
533 | + | |
534 | + var canvasDIvHeight = $('#labImagePanel_' + windowviewid+ " .jsPanel-content").height(); | |
535 | + $('#panelbodyDiv_' + windowviewid).css("height",canvasDIvHeight-100); | |
536 | + $('#resultbodyDiv_' + windowviewid).css("height",canvasDIvHeight-90); | |
537 | + | |
538 | + $scope.LoadLabExercise(windowviewid,userloginid,Identifier); | |
539 | + | |
540 | + } | |
541 | + else | |
542 | + { | |
543 | + $scope.setControlsIDs(windowviewid); | |
544 | + console.log("waiting for loading content"); | |
545 | + } | |
546 | + | |
547 | + } | |
548 | + else | |
549 | + { | |
550 | + $scope.setControlsIDs(windowviewid); | |
551 | + console.log("waiting for loading view scope"); | |
552 | + } | |
553 | + | |
554 | + | |
555 | + },100); | |
556 | + $scope.stopLabIntervalLoader = function () { | |
557 | + if (angular.isDefined(timeintval)) { | |
558 | + $interval.cancel(timeintval); | |
559 | + timeintval = undefined; | |
560 | + } | |
561 | + }; | |
562 | + | |
563 | + | |
564 | + }, 100); | |
565 | + } | |
566 | + | |
567 | + $scope.LoadLabExercise = function (windowviewid,userloginid,Identifier) { | |
568 | + | |
524 | 569 | var labExerciseInfo = { |
525 | 570 | userId: userloginid, |
526 | 571 | identifier: Identifier, |
... | ... | @@ -528,13 +573,7 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, |
528 | 573 | LabExerciseService.GetLabExercise(labExerciseInfo) |
529 | 574 | .then( |
530 | 575 | function (labResult) { |
531 | - | |
532 | - $timeout(function () { | |
533 | - var canvasDIvHeight = $('#labImagePanel_' + windowviewid+ " .jsPanel-content").height(); | |
534 | - $('#panelbodyDiv_' + windowviewid).css("height",canvasDIvHeight-100); | |
535 | - $('#resultbodyDiv_' + windowviewid).css("height",canvasDIvHeight-90); | |
536 | - $scope.JsPanelclick(windowviewid); | |
537 | - | |
576 | + | |
538 | 577 | if (labResult != undefined && labResult.lastQuestion > 0 && labResult != AIAConstants.SAVED_LAB_EXERCISE_NOT_FOUND) { |
539 | 578 | |
540 | 579 | $scope.SetLEwindowStoreData(windowviewid, 'SavedLabExercise', labResult); |
... | ... | @@ -550,18 +589,13 @@ function ($scope, $rootScope, pages, log, $http, $timeout, DataService, $filter, |
550 | 589 | } |
551 | 590 | $scope.DisableLabUI(windowviewid); |
552 | 591 | |
553 | - },300) | |
554 | - | |
555 | 592 | }, |
556 | 593 | function (error) { |
557 | 594 | console.log('error in getting save ddata'); |
558 | 595 | $scope.DisableLabUI(windowviewid); |
559 | - } | |
560 | - ) | |
561 | - | |
562 | - $scope.PanelActivity(); | |
563 | - }, 500); | |
564 | - } | |
596 | + }) | |
597 | + } | |
598 | + | |
565 | 599 | |
566 | 600 | $scope.JsPanelclick = function (windowviewid) { |
567 | 601 | //reset option list manager and annotation | ... | ... |
400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
400-SOURCECODE/Admin/src/app/app.component.ts
... | ... | @@ -104,7 +104,7 @@ export class AppComponent implements OnInit { |
104 | 104 | UserId: this.global.UserId, |
105 | 105 | UserType: this.global.UserTypeName |
106 | 106 | }).subscribe(x => { |
107 | - //console.log(x); this.UserManageRightsList = x; | |
107 | + this.UserManageRightsList = x; | |
108 | 108 | this.objMenuGernal = this.obj[i].HeaderMenu; |
109 | 109 | //this.objMenuGernal = this.objMenu; |
110 | 110 | //this.objMenu=''; | ... | ... |
400-SOURCECODE/Admin/src/app/components/Reports/expiringsubscriptionreport.component.html
... | ... | @@ -175,7 +175,7 @@ |
175 | 175 | |
176 | 176 | <td colspan="6"><b style="color: red;text-align: center; padding-left: 606px;"><span [innerHTML]="NoRecord"></span></b></td> |
177 | 177 | </tr> |
178 | - <tr *ngFor="let esr of lstExpiringSubscriptionReport | orderBy: key : reverse;"> | |
178 | + <tr *ngFor="let esr of lstExpiringSubscriptionReport"> | |
179 | 179 | <td>{{esr.AccountNumber}}</td> |
180 | 180 | <td>{{esr.LicenseeName}}</td> |
181 | 181 | <td>{{esr.LicenseType}}</td> | ... | ... |
400-SOURCECODE/Admin/src/app/components/Reports/usagereport.component.ts