Mercurial > lada > lada-client
annotate app/model/StaMessmethode.js @ 541:6a5b48b17542
Added an error to static probe data.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 18 Dec 2014 15:02:00 +0100 |
parents | 7fb335bf6799 |
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 for Messmethode Stammdaten. |
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.StaMessmethode', { |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
13 extend: 'Ext.data.Model', |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
14 |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
15 /** |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
16 * Fields are: |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
17 * - id: The unique identifier (Primary key). |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
18 * - beschreibung: The long description. |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
19 * - messmethode: |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
20 */ |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
21 fields: [{ |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
22 name: 'id' |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
23 }, { |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
24 name: 'beschreibung' |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
25 }, { |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
26 name: 'messmethode' |
531
7fb335bf6799
Fixed messmethode combobox display value.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
27 }, { |
7fb335bf6799
Fixed messmethode combobox display value.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
28 name: 'display', |
7fb335bf6799
Fixed messmethode combobox display value.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
29 persist: false, |
7fb335bf6799
Fixed messmethode combobox display value.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
30 convert: function(value, record) { |
7fb335bf6799
Fixed messmethode combobox display value.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
31 return record.get('id') + ' - ' + record.get('messmethode'); |
7fb335bf6799
Fixed messmethode combobox display value.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
32 } |
7fb335bf6799
Fixed messmethode combobox display value.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
488
diff
changeset
|
33 |
488
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
34 }], |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
35 |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
36 idProperty: 'id', |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
37 |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
38 proxy: { |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
39 type: 'rest', |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
40 url: 'server/rest/sta_messmethode', |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
41 reader: { |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
42 type: 'json', |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
43 root: 'data' |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
44 } |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
45 } |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
46 }); |
f7446ebfe5d0
Added and updated models.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
diff
changeset
|
47 |