
diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index 1656b95..0c53ba4 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js @@ -16,14 +16,15 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod $scope.AllOrientation = []; $scope.AllImageType = []; $scope.moduleData = []; + $rootScope.moduleName; $scope.loadForModuleById = function (moduleId) { $scope.moduleId = moduleId; console.log('loadForModuleById is called') - var moduleName = Modules[moduleId].Name; - var promise = ModuleService.loadModuleDataBasedOnModuleName(moduleName) + $rootScope.moduleName = Modules[moduleId].Name; + var promise = ModuleService.loadModuleDataBasedOnModuleName($scope.moduleName) .then( function (result) { @@ -150,5 +151,59 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod } + $scope.openModuleItemView = function(event) + { + var u = $location.url(); + $location.url('/module-item-view'); + } + + $scope.openModuleItem2 = function (event) { + + alert('hi openModuleItem2'); + alert('module name: ' + $rootScope.moduleName); + ////// debugger; + //var moduleItemDataToBeSaved = event.target.id; + + //var OpendTileData = []; + + //OpendTileData = ModuleService.GetOpenedTileData(moduleItemDataToBeSaved, $scope.moduleLandingData); + + var url; + + if ($rootScope.moduleName == ATLAS_ANATOMY) { + url = 'app/views/aa/atlas-anatomy-detail.html'; + } + else if ($rootScope.moduleName == CLINICAL_ANIMATION) { + //to do, in next phase of project + + } + else if ($rootScope.moduleName == CLINICAL_ILLUSTRATION) { + //to do, in next phase of project + + } + + $.jsPanel({ + id: 'ImagePanel', + selector: '.JsPannelContainer', + theme: 'success', + currentController: 'TileViewListController', + parentSlug: 'tile-view-list', + ajax: { + url: url + }, + + title: localStorage.getItem("currentViewTitle"), + + position: { + top: 70, + left: 1, + }, + + size: { width: $(window).outerWidth() - 10, height: $(window).outerHeight() - 110 }, + + }); + + + } }]); diff --git a/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js b/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js index 20be0f8..f7d0b83 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/main/AIA.js @@ -178,7 +178,14 @@ AIA.constant('pages', [ pageSlug: 'atlas-anatomy-detail', pageUrl: 'app/views/atlas-anatomy-detail.html', pageController: 'TileViewListController' - }, + }, + + { //id:2, + name: 'Module Item', + pageSlug: 'module-item-view', + pageUrl: 'app/views/module-item-view.html', + pageController: 'TileViewListController' + }, ]); diff --git a/400-SOURCECODE/AIAHTML5.Web/app/views/module-item-view.html b/400-SOURCECODE/AIAHTML5.Web/app/views/module-item-view.html index 85ced9f..5aef90b 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/views/module-item-view.html +++ b/400-SOURCECODE/AIAHTML5.Web/app/views/module-item-view.html @@ -1,369 +1,7 @@ - - -
- - - -{{val._Title}}