Commit 0285224094c489d67f4e7f0e9c32f715d945aeb5

Authored by Amrita Vishnoi
1 parent d856c12a

showing data in filter

400-SOURCECODE/AIAHTML5.Web/app/controllers/TinyViewListController.js
1 'use strict'; 1 'use strict';
2 2
3 -AIA.controller("TinyViewListController", ["$scope", "$rootScope", "$compile", "$http", "$log", "$location", "$timeout", "Modules", "$routeParams", "DataService",  
4 -function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, Modules, $routeParam, DataService) 3 +AIA.controller("TinyViewListController", ["$scope", "$rootScope", "$compile", "$http", "$log", "$location", "BodyRegions", "BodySystems", "ViewOrientations", "ImageTypes", "$timeout", "Modules", "$routeParams", "DataService",
  4 +function ($scope, $rootScope, $compile, $http, $log, $location, BodyRegions, BodySystems, ViewOrientations, ImageTypes, $timeout, Modules, $routeParam, DataService)
5 { 5 {
6 var ATLAS_ANATOMY = 'Atlas Anatomy'; 6 var ATLAS_ANATOMY = 'Atlas Anatomy';
7 var CLINICAL_ILLUSTRATION ='Clinical Illustrations'; 7 var CLINICAL_ILLUSTRATION ='Clinical Illustrations';
8 var CLINICAL_ANIMATION='Clinical Animations'; 8 var CLINICAL_ANIMATION='Clinical Animations';
9 9
  10 +
  11 + $scope.AllBodyRegion = [];
  12 + $scope.AllBodySystem = [];
  13 + $scope.AllOrientation = [];
  14 + $scope.AllImageType = [];
  15 +
10 $scope.loadForModuleById = function (moduleId) { 16 $scope.loadForModuleById = function (moduleId) {
11 17
12 console.log('loadForModuleById is called') 18 console.log('loadForModuleById is called')
@@ -17,7 +23,15 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, Module @@ -17,7 +23,15 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, Module
17 23
18 $scope.loadDataForModule = function (moduleName) 24 $scope.loadDataForModule = function (moduleName)
19 { 25 {
20 - console.log('loadDataForModule is called') 26 +
  27 + //0. load filter static data
  28 +
  29 + $scope.AllBodyRegion = BodyRegions;
  30 + $scope.AllBodySystem = BodySystems;
  31 + $scope.AllOrientation = ViewOrientations;
  32 + $scope.AllImageType = ImageTypes;
  33 +
  34 + //1. load dynamic data for module specific images
21 var jsonPath; 35 var jsonPath;
22 if(moduleName==ATLAS_ANATOMY) 36 if(moduleName==ATLAS_ANATOMY)
23 { 37 {
400-SOURCECODE/AIAHTML5.Web/app/views/tiny-view.html
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 <div class="col-md-2 col-sm-4 pad-lftrgt3"> 8 <div class="col-md-2 col-sm-4 pad-lftrgt3">
9 <div class="form-group"> 9 <div class="form-group">
10 <h6 class="text-center text-primary txt-white f11">Body Region</h6> 10 <h6 class="text-center text-primary txt-white f11">Body Region</h6>
11 - <select class="form-control input-sm" ng-model="query.selectedbodyregion" ng-options="item for item in CIAllBodyRegion track by item"> 11 + <select class="form-control input-sm" ng-model="query.selectedbodyregion" ng-options="item for item in AllBodyRegion track by item">
12 <option value="">All</option> 12 <option value="">All</option>
13 </select> 13 </select>
14 </div> 14 </div>
@@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
16 <div class="col-md-2 col-sm-4 pad-lftrgt3"> 16 <div class="col-md-2 col-sm-4 pad-lftrgt3">
17 <div class="form-group"> 17 <div class="form-group">
18 <h6 class="text-center text-primary txt-white f11">Body System</h6> 18 <h6 class="text-center text-primary txt-white f11">Body System</h6>
19 - <select class="form-control input-sm" ng-model="query.selectedbodysystem" ng-options="item for item in CIAllBodySystem track by item"> 19 + <select class="form-control input-sm" ng-model="query.selectedbodysystem" ng-options="item for item in AllBodySystem track by item">
20 <option value="">All</option> 20 <option value="">All</option>
21 </select> 21 </select>
22 </div> 22 </div>
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 <div class="col-md-2 col-sm-4 pad-lftrgt3"> 24 <div class="col-md-2 col-sm-4 pad-lftrgt3">
25 <div class="form-group"> 25 <div class="form-group">
26 <h6 class="text-center text-primary txt-white f11">View Orientation</h6> 26 <h6 class="text-center text-primary txt-white f11">View Orientation</h6>
27 - <select class="form-control input-sm" ng-model="query.selectedorientation" ng-options="item for item in CIAllOrientation track by item"> 27 + <select class="form-control input-sm" ng-model="query.selectedorientation" ng-options="item for item in AllOrientation track by item">
28 <option value="">All</option> 28 <option value="">All</option>
29 </select> 29 </select>
30 </div> 30 </div>
@@ -32,12 +32,12 @@ @@ -32,12 +32,12 @@
32 <div class="col-md-2 col-sm-4 pad-lftrgt3"> 32 <div class="col-md-2 col-sm-4 pad-lftrgt3">
33 <div class="form-group"> 33 <div class="form-group">
34 <h6 class="text-center text-primary txt-white f11">Image Type</h6> 34 <h6 class="text-center text-primary txt-white f11">Image Type</h6>
35 - <select class="form-control input-sm" ng-model="query.selectedimagetype" ng-options="item for item in CIAllImageType track by item"> 35 + <select class="form-control input-sm" ng-model="query.selectedimagetype" ng-options="item for item in AllImageType track by item">
36 <option value="">All</option> 36 <option value="">All</option>
37 </select> 37 </select>
38 </div> 38 </div>
39 </div> 39 </div>
40 - <div class="col-md-2 col-sm-4 pad-lftrgt3"> 40 + <div class="col-md-2 col-sm-4 pad-lftrgt3" style="display:none">
41 <div class="form-group"> 41 <div class="form-group">
42 <h6 class="text-center text-primary txt-white f11">Medical Speciality</h6> 42 <h6 class="text-center text-primary txt-white f11">Medical Speciality</h6>
43 <select class="form-control input-sm" ng-model="query.selectedspecialty" ng-options="item for item in CIAllSpeciality track by item"> 43 <select class="form-control input-sm" ng-model="query.selectedspecialty" ng-options="item for item in CIAllSpeciality track by item">
@@ -113,7 +113,7 @@ @@ -113,7 +113,7 @@
113 <td width="15%"> 113 <td width="15%">
114 {{item._ImageType}} 114 {{item._ImageType}}
115 </td> 115 </td>
116 - <td width="25%"> 116 + <td width="25%" style="display:none">
117 {{item._MedicalSpecialty}} 117 {{item._MedicalSpecialty}}
118 </td> 118 </td>
119 </tr> 119 </tr>
@@ -135,7 +135,7 @@ @@ -135,7 +135,7 @@
135 <td width="15%"> 135 <td width="15%">
136 {{item._ImageType}} 136 {{item._ImageType}}
137 </td> 137 </td>
138 - <td width="25%"> 138 + <td width="25%" style="display:none">
139 {{item._MedicalSpecialty}} 139 {{item._MedicalSpecialty}}
140 </td> 140 </td>
141 </tr> 141 </tr>