CatalogModule.js
1.12 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
/**
* Project AMDA-NG
* Name CatalogModule.js
* @class amdaDesktop.CatalogModule
* @extends amdaDesktop.InteractiveModule
* @brief Catalog Module controller definition
* @author elena
*/
Ext.define('amdaDesktop.CatalogModule', {
extend: 'amdaDesktop.InteractiveModule',
requires: [
'amdaUI.CatalogUI'
],
contentId : 'catalogUI',
isOperationOnShow : true,
/**
* @cfg {String} data models
* @required
*/
nodeDataModel : 'amdaModel.CatalogNode',
/**
* @cfg {String} window definitions
* @required
*/
width : 800,
height: 700,
uiType : 'panelCatalog',
helpTitle : 'Help on Catalog Module',
helpFile : 'catalogHelp',
operationOnShow: function() {
var obj = this.linkedNode.get('object');
if (obj && obj.get('id') == '' && !obj.get('fromPlugin')) {
Ext.Msg.prompt('Define Parameters', 'Please enter parameters number:', function(btn, text){
if (btn == 'ok'){
AmdaAction.initTTCache(this.getUiContent().isCatalog, text, this.getUiContent().onAfterInit, this.getUiContent());
}
}, this);
}
}
});