Blame view

js/app/models/AmdaObject.js 1.29 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
42
43
44
45
46
47
48
49
/**
 * Project      : AMDA-NG
 * Name         : AmdaObject.js
 * Description  : Base Amda Business Object Definition
 * @class amdaModel.AmdaObject
 * @extends Ext.data.Model 
 * 
 * @author elena
 * @version $Id: AmdaObject.js 966 2012-07-03 14:50:05Z elena $
 ******************************************************************************
 *    FT Id     :   Date   : Name - Description
 ******************************************************************************
 *	:           :15/12/2010: elena – creation
 */
 
Ext.define('amdaModel.AmdaObject', {
	
    extend: 'Ext.data.Model',
	
    fields : [
	    {name: 'id', type: 'string', defaultValue: null},
	    {name: 'name', type:'string'}	 	    
	],
/*	
    constructor: function(configParam){
//TODO we do not need events: CHECK	
        this.addEvents({
            "modify" : false,
            "create" : false,
            "execute" : false	    
        });
        
        this.callParent(arguments);      
    },
*/    
    /**
     * Set the json values into this object parameter
     * @param values in json format
     */
    setValues: Ext.emptyFn,
    
    /**
     * get parameter values into  object to be sent to Server
     * @return object
     */
    //TODO utf8_encode() and Ext.urlEncode() ???
    getJsonValues :  Ext.emptyFn
     
});