Commit 0285224094c489d67f4e7f0e9c32f715d945aeb5

Authored by Amrita Vishnoi
1 parent d856c12a

showing data in filter

400-SOURCECODE/AIAHTML5.Web/app/controllers/TinyViewListController.js
1 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 6 var ATLAS_ANATOMY = 'Atlas Anatomy';
7 7 var CLINICAL_ILLUSTRATION ='Clinical Illustrations';
8 8 var CLINICAL_ANIMATION='Clinical Animations';
9 9  
  10 +
  11 + $scope.AllBodyRegion = [];
  12 + $scope.AllBodySystem = [];
  13 + $scope.AllOrientation = [];
  14 + $scope.AllImageType = [];
  15 +
10 16 $scope.loadForModuleById = function (moduleId) {
11 17  
12 18 console.log('loadForModuleById is called')
... ... @@ -17,7 +23,15 @@ function ($scope, $rootScope, $compile, $http, $log, $location, $timeout, Module
17 23  
18 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 35 var jsonPath;
22 36 if(moduleName==ATLAS_ANATOMY)
23 37 {
... ...
400-SOURCECODE/AIAHTML5.Web/app/views/tiny-view.html
... ... @@ -8,7 +8,7 @@
8 8 <div class="col-md-2 col-sm-4 pad-lftrgt3">
9 9 <div class="form-group">
10 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 12 <option value="">All</option>
13 13 </select>
14 14 </div>
... ... @@ -16,7 +16,7 @@
16 16 <div class="col-md-2 col-sm-4 pad-lftrgt3">
17 17 <div class="form-group">
18 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 20 <option value="">All</option>
21 21 </select>
22 22 </div>
... ... @@ -24,7 +24,7 @@
24 24 <div class="col-md-2 col-sm-4 pad-lftrgt3">
25 25 <div class="form-group">
26 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 28 <option value="">All</option>
29 29 </select>
30 30 </div>
... ... @@ -32,12 +32,12 @@
32 32 <div class="col-md-2 col-sm-4 pad-lftrgt3">
33 33 <div class="form-group">
34 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 36 <option value="">All</option>
37 37 </select>
38 38 </div>
39 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 41 <div class="form-group">
42 42 <h6 class="text-center text-primary txt-white f11">Medical Speciality</h6>
43 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 113 <td width="15%">
114 114 {{item._ImageType}}
115 115 </td>
116   - <td width="25%">
  116 + <td width="25%" style="display:none">
117 117 {{item._MedicalSpecialty}}
118 118 </td>
119 119 </tr>
... ... @@ -135,7 +135,7 @@
135 135 <td width="15%">
136 136 {{item._ImageType}}
137 137 </td>
138   - <td width="25%">
  138 + <td width="25%" style="display:none">
139 139 {{item._MedicalSpecialty}}
140 140 </td>
141 141 </tr>
... ...