annotate app/model/Status.js @ 653:9f557bd48c30 2.0-alpha1

Temporarily disabled paging toolbar.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 18 Mar 2015 14:47:25 +0100
parents 9b3adfb7b1ae
children c07419f07a0c c5b8896768a2
rev   line source
569
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
2 * Software engineering by Intevation GmbH
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
3 *
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
4 * This file is Free Software under the GNU GPL (v>=3)
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
5 * and comes with ABSOLUTELY NO WARRANTY! Check out
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
6 * the documentation coming with IMIS-Labordaten-Application for details.
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
7 */
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
8
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
9 /**
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
10 * Model class for Status
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
11 */
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
12 Ext.define('Lada.model.Status', {
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
13 extend: 'Ext.data.Model',
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
14
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
15 fields: [{
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
16 name: 'id'
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
17 }, {
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
18 name: 'messungsId'
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
19 }, {
593
9b3adfb7b1ae Updated status model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 569
diff changeset
20 name: 'erzeuger'
9b3adfb7b1ae Updated status model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 569
diff changeset
21 }, {
569
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
22 name: 'status'
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
23 }, {
593
9b3adfb7b1ae Updated status model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 569
diff changeset
24 name: 'sdatum',
9b3adfb7b1ae Updated status model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 569
diff changeset
25 type: 'date',
9b3adfb7b1ae Updated status model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 569
diff changeset
26 convert: function(v) {
9b3adfb7b1ae Updated status model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 569
diff changeset
27 if (!v) {
9b3adfb7b1ae Updated status model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 569
diff changeset
28 return v;
9b3adfb7b1ae Updated status model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 569
diff changeset
29 }
9b3adfb7b1ae Updated status model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 569
diff changeset
30 return new Date(v);
9b3adfb7b1ae Updated status model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 569
diff changeset
31 },
9b3adfb7b1ae Updated status model.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 569
diff changeset
32 defaultValue: new Date()
569
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
33 }, {
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
34 name: 'skommentar'
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
35 }],
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
36
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
37 idProperty: 'id',
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
38
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
39 proxy: {
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
40 type: 'rest',
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
41 url: 'lada-server/status',
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
42 reader: {
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
43 type: 'json',
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
44 root: 'data'
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
45 }
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
46 }
d9593b520b3b Added a model for Status
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
47 });

http://lada.wald.intevation.org