Commit 641bd20f8f9ad8c11683af07da7730cc6ba017ca

Authored by Amrita Vishnoi
1 parent 896dee6f

whole data is not passing to openModuleItem

400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js
@@ -67,9 +67,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod @@ -67,9 +67,9 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod
67 { 67 {
68 var moduleData = []; 68 var moduleData = [];
69 moduleData.push(value._Id); 69 moduleData.push(value._Id);
  70 + moduleData.push(value._ImageId);
70 moduleData.push(value._TileImageName); 71 moduleData.push(value._TileImageName);
71 - //moduleData.push("~/../content/images/aa/thumbnails/" + value._TileImageName);  
72 - 72 +
73 $scope.ImageName = value._TileImageName; 73 $scope.ImageName = value._TileImageName;
74 $scope.imagePath = "~/../content/images/aa/thumbnails/" + value._TileImageName; 74 $scope.imagePath = "~/../content/images/aa/thumbnails/" + value._TileImageName;
75 $scope.TileViewId = value._Id; 75 $scope.TileViewId = value._Id;
@@ -106,10 +106,15 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod @@ -106,10 +106,15 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod
106 $("html,body").scrollTop(0); 106 $("html,body").scrollTop(0);
107 } 107 }
108 108
109 - $scope.openModuleItem = function (moduleDataDetail) { 109 + $scope.openModuleItem = function ($event) {
110 110
111 alert('call on TileViewListController'); 111 alert('call on TileViewListController');
112 112
  113 + var id = $event._TileImageName;
  114 + alert('image name: ' + id);
  115 + //var imgId = $event.data._ImageId;
  116 + //var imageName = $event.data._TileImageName;
  117 +
113 ModuleService.SaveOpenedModules(moduleDetails); 118 ModuleService.SaveOpenedModules(moduleDetails);
114 119
115 //var isSaved= ModuleService.SaveOpenedModules(moduleDetails); 120 //var isSaved= ModuleService.SaveOpenedModules(moduleDetails);
400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js
@@ -14,6 +14,17 @@ AIA.factory('ModuleService', function () @@ -14,6 +14,17 @@ AIA.factory('ModuleService', function ()
14 //OpenedModuleList.tileViewId = moduleDetails.TileViewId; 14 //OpenedModuleList.tileViewId = moduleDetails.TileViewId;
15 //OpenedModuleList.tileImageName = moduleDetails.imageName; 15 //OpenedModuleList.tileImageName = moduleDetails.imageName;
16 //OpenedModuleList.tileImageSRC = moduleDetails.imagePath; 16 //OpenedModuleList.tileImageSRC = moduleDetails.imagePath;
  17 +
  18 + //moduleData.push($scope.moduleId);
  19 + //moduleData.push(value._Id);
  20 + //moduleData.push(value._ImageId);
  21 + //moduleData.push(value._Title);
  22 + //moduleData.push(value._ImageName);
  23 + //moduleData.push(value._BodySystem);
  24 + //moduleData.push(value._BodyRegion);
  25 + //moduleData.push(value._ViewOrientation);
  26 + //moduleData.push(value._ImageType);
  27 + //moduleData.push(value._TileImageName);
17 28
18 if (moduleId == ATLAS_ANATOMY) 29 if (moduleId == ATLAS_ANATOMY)
19 { 30 {