PlotCurveDef.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
/**
* Project : AMDA-NG
* Name : PlotCurveDef.js
* @plugin amdaPlotObj.PlotCurveDef
* @extends Ext.data.Model
* @brief Data model for plot curves definition
* @author Benjamin
* @version $Id: PlotCurveDef.js $
********************************************************************************
* FT Id : Date : Name - Description
*******************************************************************************
* :
*/
Ext.define('amdaPlotObj.PlotCurveDef', {
extend: 'Ext.data.Model',
idProperty: 'id',
requires: [
'amdaPlotObj.PlotCurveDefParam'
],
fields : [
{name: 'id', mapping: '@id', type:'string'},
{name: 'name', mapping: '@name', type: 'string'},
{name: 'functionName', mapping: '@functionName', type: 'string'}
],
hasMany : {
model : 'amdaPlotObj.PlotCurveDefParam',
name : 'params'
},
proxy: {
type: 'ajax',
url : 'generic_data/Functions/plotCurves.xml',
reader: {
type: 'xml',
root: 'curves',
record: 'curve'
}
}
});