Mercurial > lada > lada-client
comparison app/model/Probenehmer.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 Probenehmer Stammdaten | |
11 */ | |
12 Ext.define('Lada.model.Probenehmer', { | |
13 extend: 'Ext.data.Model', | |
14 | |
15 fields: [{ | |
16 name: 'id' | |
17 }, { | |
18 name: 'netzbetreiberId' | |
19 }, { | |
20 name: 'prnId' | |
21 }, { | |
22 name: 'bearbeiter' | |
23 }, { | |
24 name: 'bemerkung' | |
25 }, { | |
26 name: 'bezeichnung' | |
27 }, { | |
28 name: 'kurzBezeichnung' | |
29 }, { | |
30 name: 'ort' | |
31 }, { | |
32 name: 'plz' | |
33 }, { | |
34 name: 'strasse' | |
35 }, { | |
36 name: 'telefon' | |
37 }, { | |
38 name: 'tp' | |
39 }, { | |
40 name: 'typ' | |
41 }, { | |
42 name: 'letzteAenderung', | |
43 type: 'date', | |
44 convert: function(v) { | |
45 if (!v) { | |
46 return v; | |
47 } | |
48 return new Date(v); | |
49 } | |
50 }, { | |
51 name: 'treeModified', | |
52 serialize: function(value) { | |
53 if (value === '') { | |
54 return null; | |
55 } | |
56 return value; | |
57 } | |
58 }, { | |
59 name: 'parentModified', | |
60 serialize: function(value) { | |
61 if (value === '') { | |
62 return null; | |
63 } | |
64 return value; | |
65 } | |
66 }], | |
67 | |
68 idProperty: 'id', | |
69 | |
70 proxy: { | |
71 type: 'rest', | |
72 url: 'lada-server/messprogrammkategorie', | |
73 reader: { | |
74 type: 'json', | |
75 root: 'data' | |
76 } | |
77 } | |
78 }); |