Mercurial > lada > lada-client
annotate app/model/StatusStufe.js @ 1023:3e9ff7786d2c
Do not Copy the StatusWert if it equals 0
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 09 Feb 2016 09:48:57 +0100 |
parents | f73ca04d73a7 |
children |
rev | line source |
---|---|
956
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
2 * Software engineering by Intevation GmbH |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
3 * |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
7 */ |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
8 |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
9 /** |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
10 * Model class for StatusWerte |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
11 */ |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
12 Ext.define('Lada.model.StatusStufe', { |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
13 extend: 'Ext.data.Model', |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
14 |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
15 fields: [{ |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
16 name: 'id' |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
17 }, { |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
18 name: 'stufe', |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
19 type: 'string' |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
20 }], |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
21 |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
22 idProperty: 'id', |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
23 |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
24 proxy: { |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
25 type: 'rest', |
999 | 26 url: 'lada-server/rest/statusstufe', |
956
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
27 reader: { |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
28 type: 'json', |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
29 root: 'data' |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
30 } |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
31 } |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
32 |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
33 }); |
45c67a784b31
Added StatusStufe to the StatusGrid. Created Store and Model for StatusStufe
Dustin Demuth <dustin@intevation.de>
parents:
diff
changeset
|
34 |