Blame view

js/app/models/FileObject.js 1.3 KB
16035364   Benjamin Renard   First commit
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
/**
 * Project      : AMDA-NG
 * Name         : FileObject.js
 * Description  :  
 * @class   amdaModel.FileObject
 * @extends amdaModel.AmdaObject 
 * 
 * @author Elena
 * @version $Id: FileObject.js 1719 2013-08-30 14:26:56Z elena $
 ******************************************************************************
 *    FT Id     :   Date   : Name - Description
 ******************************************************************************
 
 */
 
 		
Ext.define('amdaModel.FileObject', {
		extend: 'amdaModel.AmdaObject',
    
    fields : [
	      {name: 'fileName', type: 'string'},  
              {name: 'file', type: 'string',
                  convert: function(value, rec){              
                    return rec.get('fileName');
                }
              },               
	      {name: 'mask',  type: 'string',
                  convert: function(value, rec){  
                      if (!value) return rec.get('fileName');
                      else return value;
                }                  
              }, 
	      {name: 'minsampling', type: 'float'},
	      {name: 'maxsampling', type: 'float'},
	      {name: 'format', type: 'string'},
	      {name: 'vars'},
	      {name: 'startTime', type: 'string'},
	      {name: 'stopTime', type: 'string'},
	      {name: 'foundTime', type: 'boolean'}
	]
});