Mercurial > lada > lada-client
annotate app/model/KommentarM.js @ 523:6ad453afbc31
Make tables editable for 'Status'
See LSB 3.5
author | Roland Geider <roland.geider@intevation.de> |
---|---|
date | Tue, 16 Dec 2014 16:20:15 +0100 |
parents | 850ccfe5f3c4 |
children |
rev | line source |
---|---|
488
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
2 * Software engineering by Intevation GmbH |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
3 * |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
7 */ |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
8 |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
9 /** |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
10 * Model class for Kommentare on Messungen |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
11 */ |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.model.KommentarM', { |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
13 extend: 'Lada.model.Base', |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
14 |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
15 fields: [{ |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
16 name: "id" |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
17 }, { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
18 name: "messungsId" |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
19 }, { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
20 name: "erzeuger" |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
21 }, { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
22 name: "datum", |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
23 type: 'date', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
24 convert: Lada.lib.Helpers.ts2date, |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
25 defaultValue: new Date() |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
26 }, { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
27 name: "text" |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
28 }], |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
29 |
488
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
30 idProperty: "id", |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
31 |
488
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
32 proxy: { |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
33 type: 'rest', |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
34 url: 'server/rest/kommentar_m', |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
35 reader: { |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
36 type: 'json', |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
37 root: 'data' |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
38 } |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
39 } |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
40 }); |