ModuleService.js
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
var ATLAS_ANATOMY = 'Atlas Anatomy';
var CLINICAL_ILLUSTRATION = 'Clinical Illustrations';
var CLINICAL_ANIMATION = 'Clinical Animations';
AIA.factory('ModuleService', function ()
{
var OpenedModuleList = [];
return {
SaveOpenedModules: function (moduleDetails)
{
//var moduleId = moduleDetails.moduleId;
//OpenedModuleList.push(moduleId);
//OpenedModuleList.tileViewId = moduleDetails.TileViewId;
//OpenedModuleList.tileImageName = moduleDetails.imageName;
//OpenedModuleList.tileImageSRC = moduleDetails.imagePath;
//moduleData.push($scope.moduleId);
//moduleData.push(value._Id);
//moduleData.push(value._ImageId);
//moduleData.push(value._Title);
//moduleData.push(value._ImageName);
//moduleData.push(value._BodySystem);
//moduleData.push(value._BodyRegion);
//moduleData.push(value._ViewOrientation);
//moduleData.push(value._ImageType);
//moduleData.push(value._TileImageName);
if (moduleId == ATLAS_ANATOMY)
{
console.log('AA is called');
}
else if(moduleId == CLINICAL_ANIMATION)
{
}
else if(moduleId == CLINICAL_ILLUSTRATION)
{
}
console.log('called service');
//return true;
}
};
});