Blame view

js/app/controllers/StatisticsModule.js 1.17 KB
d18b535d   elena   catalog draft + c...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 * Project   AMDA-NG
 * Name      StatisticsModule.js
 * @class    amdaDesktop.StatisticsModule
 * @extends  amdaDesktop.InteractiveModule
 * @brief    Statistics Module controller definition 
 * @author   elena
 */

Ext.define('amdaDesktop.StatisticsModule', {
	extend: 'amdaDesktop.InteractiveModule',
	
	 requires: [
         'amdaUI.StatisticsUI'
     ],
     
      contentId : 'statisticsUI',
      
    /**
     * @cfg {String} data models
     * @required
     */
	nodeDataModel : 'amdaModel.StatisticsNode',
2e7079bb   Benjamin Renard   First implementat...
24
	objectDataModel : 'amdaModel.Statistic',
d18b535d   elena   catalog draft + c...
25
26
27
28
29
    /**
     * @cfg {String} window definitions
     * @required
     */
	width : 550,
f43a0a5e   Benjamin Renard   Fix save statisti...
30
	height: 600,
d18b535d   elena   catalog draft + c...
31
32
33
	uiType : 'panelStatistics',
	helpTitle : 'Help on Statistics Module',
	helpFile : 'statisticsHelp',
d80af896   Elena.Budnik   args for Statistics
34
35
36
	 
	 saveState: function() {
            var uiContent = this.getUiContent();               
7348b580   Elena.Budnik   redmine #6010 : S...
37
38
            var form = uiContent.formPanel.items.items[1].getForm();
            var values = form.getValues();
d80af896   Elena.Budnik   args for Statistics
39
40
41
            Ext.state.Manager.set('timeinterval', {'startDate' : values.startDate,'stopDate' : values.stopDate });
    },
       
7348b580   Elena.Budnik   redmine #6010 : S...
42
    getState : function() {
d80af896   Elena.Budnik   args for Statistics
43
44
        return Ext.state.Manager.get('timeinterval'); 
    }
d18b535d   elena   catalog draft + c...
45
46
		
});