Mercurial > lada > lada-client
comparison app/model/Status.js @ 569:d9593b520b3b
Added a model for Status
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 10 Mar 2015 11:58:07 +0100 |
parents | |
children | 9b3adfb7b1ae |
comparison
equal
deleted
inserted
replaced
568:34b2654af158 | 569:d9593b520b3b |
---|---|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU GPL (v>=3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out | |
6 * the documentation coming with IMIS-Labordaten-Application for details. | |
7 */ | |
8 | |
9 /** | |
10 * Model class for Status | |
11 */ | |
12 Ext.define('Lada.model.Status', { | |
13 extend: 'Ext.data.Model', | |
14 | |
15 fields: [{ | |
16 name: 'id' | |
17 }, { | |
18 name: 'messungsId' | |
19 }, { | |
20 name: 'status' | |
21 }, { | |
22 name: 'sdatum' | |
23 }, { | |
24 name: 'skommentar' | |
25 }], | |
26 | |
27 idProperty: 'id', | |
28 | |
29 proxy: { | |
30 type: 'rest', | |
31 url: 'lada-server/status', | |
32 reader: { | |
33 type: 'json', | |
34 root: 'data' | |
35 } | |
36 } | |
37 }); |