Code:
Ext.define('App.model.RestTreeTaskDetail', {
extend: 'Ext.data.Model',
config: {
idProperty: 'ID',
autoLoad: false,
fields: [
{ name: 'ID', type: 'int' },
{ name: 'TREE_NUM', type: 'int'},
{ name: 'ID_TASK_MASTER', type: 'int'},
{ name: 'TREE_STATUS_DOMAIN_CODE', type: 'int'},
{ name: 'TREE_STATUS_DOMAIN_VALUE', type: 'string'},
{ name: 'TREE_STATUS_DATE', type: 'date', format: 'd-m-Y'},
{ name: 'SPECIES_DOMAIN_CODE', type: 'int'},
{ name: 'SPECIES_DOMAIN_VALUE', type: 'string'},
{ name: 'RATING', type: 'float'},
{ name: 'TREE_TYPE', type: 'string'},
{ name: 'GROW_SPACE_DOMAIN_CODE', type: 'int'},
{ name: 'GROW_SPACE_DOMAIN_VALUE', type: 'string'},
{ name: 'LAND_USE_DOMAIN_CODE', type: 'int'},
{ name: 'LAND_USE_DOMAIN_VALUE', type: 'string'},
{ name: 'DSH', type: 'int'},
{ name: 'HEIGHT', type: 'int'},
{ name: 'CROWN', type: 'int'},
{ name: 'TRUNK', type: 'int'},
{ name: 'BRANCH', type: 'int'},
{ name: 'TWIG', type: 'int'},
{ name: 'FOLLAGE', type: 'int'},
{ name: 'INSECTS_DISEASE', type: 'int'},
{ name: 'ROOTS', type: 'int'},
{ name: 'CALC_TOTALS', type: 'int'},
{ name: 'CALC_CONDITION', type: 'float'},
{ name: 'AESTHETIC', type: 'int'},
{ name: 'SPECIMENS', type: 'int'},
{ name: 'CONTRIBUTION', type: 'int'},
{ name: 'PLACEMENT', type: 'int'},
{ name: 'TARGET', type: 'int'},
{ name: 'SIZE', type: 'int'},
{ name: 'PROBABILITY', type: 'int'},
{ name: 'CALC_RISK_RATING', type: 'float'},
{ name: 'MULTI_DBH_DOMAIN_CODE', type: 'int'},
{ name: 'MULTI_DBH_DOMAIN_VALUE', type: 'string'},
{ name: 'NUM_STEMS_DOMAIN_CODE', type: 'int'},
{ name: 'NUM_STEMS_DOMAIN_VALUE', type: 'string'},
{ name: 'GRID', type: 'string'},
{ name: 'GUID', type: 'string'},
{ name: 'CALC_TREE_VALUE', type: 'float'},
{ name: 'DESIGNATIONS', type: 'string'}
],
proxy: {
type: 'jsonp',
url: 'http://moss.irgia.com/_vti_bin/RestInSPWithDataFromSQL/RestDataFromSQL.svc/GetItem/1'
}
}
})
---------