From d717573caf6c703b9c2041fc167944f539d0153d Mon Sep 17 00:00:00 2001 From: mangaldeep patel Date: Thu, 29 Nov 2018 13:06:14 +0530 Subject: [PATCH] ADAM Image Module --- 400-SOURCECODE/AIAHTML5.Web/Web.config | 5 +++-- 400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js | 23 ++++++----------------- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/400-SOURCECODE/AIAHTML5.Web/Web.config b/400-SOURCECODE/AIAHTML5.Web/Web.config index d92fcca..a7bbf1d 100644 --- a/400-SOURCECODE/AIAHTML5.Web/Web.config +++ b/400-SOURCECODE/AIAHTML5.Web/Web.config @@ -21,7 +21,7 @@ - + @@ -42,6 +42,7 @@ + diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js index a8991f3..52fdb43 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/AIController.js @@ -1,13 +1,8 @@ -AIA.controller("AIController", ["$scope", "$window", "$rootScope", "$compile", "$http", "$log", "$location", "$timeout", "pages", "BodyRegions", "BodySystems", "ViewOrientations", "ImageTypes", "MedicalSpecialties", "DataService", -function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout, pages, BodyRegions, BodySystems, ViewOrientations, ImageTypes, MedicalSpecialties, DataService) { +AIA.controller("AIController", ["$scope", "$window", "$rootScope", "$compile", "$http", "$log", "$location", "$timeout", "pages", "DataService", +function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout, pages, DataService) { // $rootScope.currentActiveModuleTitle = pages[3].name; $scope.showTabButton = true; $scope.IllustrationData; - $scope.AIAllBodyRegion = []; - $scope.AIAllBodySystem = []; - $scope.AIAllOrientation = []; - $scope.AIAllImageType = []; - $scope.AIAllSpeciality = []; $scope.searchAIListViewData = []; $scope.SelectedAIthumbImage = []; $scope.SelectedAIImage = []; @@ -46,12 +41,6 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout }) $scope.LoadAIJsonData(); - - $scope.AIAllBodyRegion = BodyRegions; - $scope.AIAllBodySystem = BodySystems; - $scope.AIAllOrientation = ViewOrientations; - $scope.AIAllImageType = ImageTypes; - $scope.AIAllSpeciality = MedicalSpecialties; $scope.scroll(); //push the details of open module in array $rootScope.openModules $rootScope.openModules.push({ "ModuleId": 13 }); @@ -81,7 +70,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout $scope.reRunSearchOnLoad = function () { - var curBodyRegion = $rootScope.getLocalStorageValue("AICurBodyRegion"); + var curBodyRegion = $rootScope.getLocalStorageValue("AICurBodyId"); if (typeof (curBodyRegion) !== "undefined" && curBodyRegion !== null && curBodyRegion !== '') { $scope.query.selectedbodyregion = curBodyRegion; } @@ -212,7 +201,7 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout //set localstorage values - localStorage.setItem("AICurBodyRegion", ''); + localStorage.setItem("AICurBodyId", ''); localStorage.setItem("AIListViewScroll", ''); if ($('.selected').hasClass("selected")) { $('.selected').removeClass("selected"); } @@ -244,11 +233,11 @@ function ($scope, $window, $rootScope, $compile, $http, log, $location, $timeout if (typeof (SearchText) !== "undefined" && (SearchText !== null && SearchText !== "")) { - localStorage.setItem("AICurBodyRegion", SearchText); + localStorage.setItem("AICurBodyId", SearchText); } else { - localStorage.setItem("AICurBodyRegion", ''); + localStorage.setItem("AICurBodyId", ''); } -- libgit2 0.21.4