Mercurial > lada > lada-client
comparison app/model/DatensatzErzeuger.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 | b21421ba6917 |
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 DatensatzErzeuger Stammdaten | |
11 */ | |
12 Ext.define('Lada.model.DatensatzErzeuger', { | |
13 extend: 'Ext.data.Model', | |
14 | |
15 fields: [{ | |
16 name: 'id' | |
17 }, { | |
18 name: 'netzbetreiberId' | |
19 }, { | |
20 name: 'daErzeugerId' | |
21 }, { | |
22 name: 'mstId' | |
23 }, { | |
24 name: 'bezeichnung' | |
25 }, { | |
26 name: 'letzteAenderung', | |
27 type: 'date', | |
28 convert: function(v) { | |
29 if (!v) { | |
30 return v; | |
31 } | |
32 return new Date(v); | |
33 } | |
34 }, { | |
35 name: 'treeModified', | |
36 serialize: function(value) { | |
37 if (value === '') { | |
38 return null; | |
39 } | |
40 return value; | |
41 } | |
42 }, { | |
43 name: 'parentModified', | |
44 serialize: function(value) { | |
45 if (value === '') { | |
46 return null; | |
47 } | |
48 return value; | |
49 } | |
50 }], | |
51 | |
52 idProperty: 'id', | |
53 | |
54 proxy: { | |
55 type: 'rest', | |
56 url: 'lada-server/datensatzerzeuger', | |
57 reader: { | |
58 type: 'json', | |
59 root: 'data' | |
60 } | |
61 } | |
62 }); |