Mercurial > lada > lada-client
comparison app/model/Probenehmer.js @ 1007:23bfcbdb4527
merged.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 20 Jan 2016 17:33:33 +0100 |
parents | 15d8c64049d1 |
children | 1df6b6210b42 1251094e7500 |
comparison
equal
deleted
inserted
replaced
1002:54179b6043b6 | 1007:23bfcbdb4527 |
---|---|
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 }, { | |
52 name: 'treeModified', | |
53 serialize: function(value) { | |
54 if (value === '') { | |
55 return null; | |
56 } | |
57 return value; | |
58 } | |
59 }, { | |
60 name: 'parentModified', | |
61 serialize: function(value) { | |
62 if (value === '') { | |
63 return null; | |
64 } | |
65 return value; | |
66 } | |
67 */ | |
68 }], | |
69 | |
70 idProperty: 'id', | |
71 | |
72 proxy: { | |
73 type: 'rest', | |
74 url: 'lada-server/rest/probenehmer', | |
75 reader: { | |
76 type: 'json', | |
77 root: 'data' | |
78 } | |
79 } | |
80 }); |