From f6a824abd670d30846b20facf5686ce92e5d95a2 Mon Sep 17 00:00:00 2001 From: amrita.vishnoi Date: Mon, 7 Nov 2016 16:02:37 +0530 Subject: [PATCH] Able to send data to the service --- 150-DOCUMENTATION/AIA_DailyScrum.xlsx | Bin 0 -> 27430 bytes 400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js | 17 ++++++++++++----- 400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js | 17 ++++++++++------- 3 files changed, 22 insertions(+), 12 deletions(-) create mode 100644 150-DOCUMENTATION/AIA_DailyScrum.xlsx diff --git a/150-DOCUMENTATION/AIA_DailyScrum.xlsx b/150-DOCUMENTATION/AIA_DailyScrum.xlsx new file mode 100644 index 0000000..979a007 Binary files /dev/null and b/150-DOCUMENTATION/AIA_DailyScrum.xlsx differ diff --git a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js index 026514c..30e9404 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/controllers/TileViewListController.js @@ -7,6 +7,7 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod var CLINICAL_ILLUSTRATION ='Clinical Illustrations'; var CLINICAL_ANIMATION='Clinical Animations'; + var moduleData = []; $scope.AllBodyRegion = []; $scope.AllBodySystem = []; @@ -64,11 +65,15 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod //$('#grid-view').empty(); angular.forEach($scope.data, function (value, key) { + var obj = {}; + obj.moduleId = value._Id; + //moduleData.push(value._Id); + $scope.ImageName = value._TileImageName; $scope.imagePath = "~/../content/images/aa/thumbnails/" + value._TileImageName; $scope.TileViewId = value._Id; - var $el = $('
' + var $el = $('
' + '
' + '' + '

' + value._Title + '

').appendTo('#grid-view'); @@ -100,18 +105,20 @@ function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, Bod $("html,body").scrollTop(0); } - $scope.openModuleItem = function (event) { + $scope.openModuleItem = function (moduleDataDetail) { alert('call on TileViewListController'); var moduleDetails = []; - moduleDetails.push($scope.moduleId); + moduleDetails.push(event.moduleId); moduleDetails.push($scope.imageName); moduleDetails.push($scope.imagePath); moduleDetails.push($scope.iileViewId); + + ModuleService.SaveOpenedModules(moduleDetails); - var isSaved= ModuleService.SaveOpenedModules(moduleDetails); - alert(isSaved); + //var isSaved= ModuleService.SaveOpenedModules(moduleDetails); + //alert(isSaved); } diff --git a/400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js b/400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js index 740afff..d38c57f 100644 --- a/400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js +++ b/400-SOURCECODE/AIAHTML5.Web/app/services/ModuleService.js @@ -9,15 +9,18 @@ AIA.factory('ModuleService', function () return { SaveOpenedModules: function (moduleDetails) { - var moduleId = moduleDetails.moduleId; - OpenedModuleList.push(moduleId); - OpenedModuleList.tileViewId = moduleDetails.TileViewId; - OpenedModuleList.tileImageName = moduleDetails.imageName; - OpenedModuleList.tileImageSRC = moduleDetails.imagePath; + //var moduleId = moduleDetails.moduleId; + //OpenedModuleList.push(moduleId); + //OpenedModuleList.tileViewId = moduleDetails.TileViewId; + //OpenedModuleList.tileImageName = moduleDetails.imageName; + //OpenedModuleList.tileImageSRC = moduleDetails.imagePath; if (moduleId == ATLAS_ANATOMY) { - console.log('AA is called') + console.log('AA is called'); + + + } else if(moduleId == CLINICAL_ANIMATION) { @@ -29,7 +32,7 @@ AIA.factory('ModuleService', function () } console.log('called service'); - return true; + //return true; } }; }); \ No newline at end of file -- libgit2 0.21.4