comparison app/model/Probe.js @ 548:d47ee7439f44

Added new js files.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 06 Mar 2015 12:43:52 +0100
parents
children 394c12b7bb21
comparison
equal deleted inserted replaced
547:f172b35a3b92 548:d47ee7439f44
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 * A Probe.
11 * This class represents and defines the model of a 'Probe'
12 **/
13 Ext.define('Lada.model.Probe', {
14 extend: 'Ext.data.Model',
15
16 fields: [{
17 name: 'id'
18 }, {
19 name: 'probeIdAlt'
20 }, {
21 name: 'hauptprobenNr'
22 }, {
23 name: 'test'
24 }, {
25 name: 'netzbetreiberId'
26 }, {
27 name: 'mstId'
28 }, {
29 name: 'datenbasisId'
30 }, {
31 name: 'baId'
32 }, {
33 name: 'probenartId'
34 }, {
35 name: 'mediaDesk'
36 }, {
37 name: 'media'
38 }, {
39 name: 'umwId'
40 }, {
41 name: 'probeentnahmeBeginn',
42 type: 'date',
43 convert: function(v) {
44 if (!v) {
45 return v;
46 }
47 return new Date(v);
48 },
49 defaultValue: new Date()
50 }, {
51 name: 'probeentnahmeEnde',
52 type: 'date',
53 convert: function(v) {
54 if (!v) {
55 return v;
56 }
57 return new Date(v);
58 },
59 defaultValue: new Date()
60 }, {
61 name: 'mittelungsdauer'
62 }, {
63 name: 'letzteAenderung',
64 type: 'date',
65 convert: function(v) {
66 if (!v) {
67 return v;
68 }
69 return new Date(v);
70 },
71 defaultValue: new Date()
72 }, {
73 name: 'erzeugerId'
74 }, {
75 name: 'probeNehmerId'
76 }, {
77 name: 'mpKat'
78 }, {
79 name: 'mplId'
80 }, {
81 name: 'mprId'
82 }, {
83 name: 'solldatumBeginn',
84 type: 'date',
85 convert: function(v) {
86 if (!v) {
87 return v;
88 }
89 return new Date(v);
90 },
91 defaultValue: new Date()
92 }, {
93 name: 'solldatumEnde',
94 type: 'date',
95 convert: function(v) {
96 if (!v) {
97 return v;
98 }
99 return new Date(v);
100 },
101 defaultValue: new Date()
102 }, {
103 name: 'readonly',
104 type: 'bool',
105 persist: false
106 }],
107
108 idProperty: 'id',
109
110 proxy: {
111 type: 'rest',
112 url: 'lada-server/probe',
113 reader: {
114 type: 'json',
115 root: 'data'
116 }
117 }
118 });

http://lada.wald.intevation.org