Mercurial > lada > lada-client
comparison app/model/MessprogrammKategorie.js @ 975:fb99332bb48e stammdatengrids
Severe changes concerning the Resultgrids.
- Intrduced "Stammdaten" which can be selected in the Mode Field on the left side,
- Added Stores and Models for the Stammdaten
- Removed the FilterResultgrid and replaced it with a model which uses inheritance.
Dynamic Grid Columns can now be derived from app/view/widget/DynamicGrid.js
For Proben and Messprogramme this is already done.
- There might be some REGRESSION concerning the buttons in the ProbeList and
MessprogrammeList grid, as those are not disabled properly.
This needs to be fixed in future commits.
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Wed, 02 Dec 2015 17:39:04 +0100 |
parents | |
children | f73ca04d73a7 |
comparison
equal
deleted
inserted
replaced
974:ea477f62a667 | 975:fb99332bb48e |
---|---|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz | |
2 * Software engineering by Intevation GmbH | |
3 * | |
4 * This file is Free Software under the GNU GPL (v>=3) | |
5 * and comes with ABSOLUTELY NO WARRANTY! Check out | |
6 * the documentation coming with IMIS-Labordaten-Application for details. | |
7 */ | |
8 | |
9 /** | |
10 * Model class for MessprogrammKategorie Stammdaten | |
11 */ | |
12 Ext.define('Lada.model.MessprogrammKategorie', { | |
13 extend: 'Ext.data.Model', | |
14 | |
15 fields: [{ | |
16 name: 'id' | |
17 }, { | |
18 name: 'netzbetreiberId' | |
19 }, { | |
20 name: 'mplId' | |
21 }, { | |
22 name: 'bezeichnung' | |
23 }, { | |
24 name: 'letzteAenderung', | |
25 type: 'date', | |
26 convert: function(v) { | |
27 if (!v) { | |
28 return v; | |
29 } | |
30 return new Date(v); | |
31 } | |
32 }, { | |
33 name: 'treeModified', | |
34 serialize: function(value) { | |
35 if (value === '') { | |
36 return null; | |
37 } | |
38 return value; | |
39 } | |
40 }, { | |
41 name: 'parentModified', | |
42 serialize: function(value) { | |
43 if (value === '') { | |
44 return null; | |
45 } | |
46 return value; | |
47 } | |
48 }], | |
49 | |
50 idProperty: 'id', | |
51 | |
52 proxy: { | |
53 type: 'rest', | |
54 url: 'lada-server/messprogrammkategorie', | |
55 reader: { | |
56 type: 'json', | |
57 root: 'data' | |
58 } | |
59 } | |
60 }); |