Mercurial > lada > lada-client
annotate app/model/Status.js @ 536:fbe81214026a
Make tables editable for 'Kommentare'
See LSB 3.5
author | Roland Geider <roland.geider@intevation.de> |
---|---|
date | Wed, 17 Dec 2014 15:34:04 +0100 |
parents | f7446ebfe5d0 |
children |
rev | line source |
---|---|
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
335
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
335
diff
changeset
|
2 * Software engineering by Intevation GmbH |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
335
diff
changeset
|
3 * |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
335
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
335
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
335
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
335
diff
changeset
|
7 */ |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
335
diff
changeset
|
8 |
322
49a42c7f1d1f
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
308
diff
changeset
|
9 /** |
49a42c7f1d1f
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
308
diff
changeset
|
10 * Model class for Status |
49a42c7f1d1f
Added docstring
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
308
diff
changeset
|
11 */ |
170
738d657d8b6b
Added Status into Messungen listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.model.Status', { |
335
34ac1c9db042
Inherit form model.base. Formatting
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
322
diff
changeset
|
13 extend: 'Lada.model.Base', |
170
738d657d8b6b
Added Status into Messungen listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
14 fields: [ |
488
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
472
diff
changeset
|
15 {name: "id"}, |
170
738d657d8b6b
Added Status into Messungen listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
16 {name: "messungsId"}, |
738d657d8b6b
Added Status into Messungen listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
17 {name: "probeId"}, |
738d657d8b6b
Added Status into Messungen listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
18 {name: "erzeuger"}, |
200
945a727209d3
Fixed attribute names in the Status model
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
170
diff
changeset
|
19 {name: "status", defaultValue: 1}, |
488
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
472
diff
changeset
|
20 {name: "datum", type: 'date', convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
472
diff
changeset
|
21 {name: "kommentar"} |
170
738d657d8b6b
Added Status into Messungen listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
22 ], |
488
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
472
diff
changeset
|
23 idProperty: "id", |
170
738d657d8b6b
Added Status into Messungen listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
24 proxy: { |
738d657d8b6b
Added Status into Messungen listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
25 type: 'rest', |
738d657d8b6b
Added Status into Messungen listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
26 url: 'server/rest/status', |
738d657d8b6b
Added Status into Messungen listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
27 reader: { |
738d657d8b6b
Added Status into Messungen listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
28 type: 'json', |
738d657d8b6b
Added Status into Messungen listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
29 root: 'data' |
738d657d8b6b
Added Status into Messungen listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
30 } |
738d657d8b6b
Added Status into Messungen listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
31 } |
738d657d8b6b
Added Status into Messungen listing.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
diff
changeset
|
32 }); |