comparison app/model/Zusatzwert.js @ 497:7c0653e8d9f7

Fixed some js related issues (unused vars, arrays, etc.) and code style.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 06 Nov 2014 10:38:17 +0100
parents d07e5086a64b
children 8b4ec61c5752
comparison
equal deleted inserted replaced
496:d07e5086a64b 497:7c0653e8d9f7
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz 1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
2 * Software engineering by Intevation GmbH 2 * Software engineering by Intevation GmbH
3 * 3 *
4 * This file is Free Software under the GNU GPL (v>=3) 4 * This file is Free Software under the GNU GPL (v>=3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out 5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details. 6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */ 7 */
8 8
9 /** 9 /**
10 * Model class for Zusatzwerte 10 * Model class for Zusatzwerte
11 */ 11 */
12 Ext.define('Lada.model.Zusatzwert', { 12 Ext.define('Lada.model.Zusatzwert', {
13 extend: 'Lada.model.Base', 13 extend: 'Lada.model.Base',
14 14
15 fields: [{ 15 fields: [{
16 name: "id" 16 name: 'id'
17 }, { 17 }, {
18 name: "probeId" 18 name: 'probeId'
19 }, { 19 }, {
20 name: "pzsId" 20 name: 'pzsId'
21 }, { 21 }, {
22 name: "nwgZuMesswert", 22 name: 'nwgZuMesswert',
23 type: 'float' 23 type: 'float'
24 }, { 24 }, {
25 name: "messwertPzs", 25 name: 'messwertPzs',
26 type: 'float' 26 type: 'float'
27 }, { 27 }, {
28 name: "messfehler", 28 name: 'messfehler',
29 type: 'float' 29 type: 'float'
30 }, { 30 }, {
31 name: "letzteAenderung", 31 name: 'letzteAenderung',
32 type: 'date', 32 type: 'date',
33 convert: Lada.lib.Helpers.ts2date, 33 convert: Lada.lib.Helpers.ts2date,
34 defaultValue: new Date() 34 defaultValue: new Date()
35 }], 35 }],
36 36
37 idProperty: "id", 37 idProperty: 'id',
38 38
39 proxy: { 39 proxy: {
40 type: 'rest', 40 type: 'rest',
41 url: 'server/rest/zusatzwert', 41 url: 'server/rest/zusatzwert',
42 reader: { 42 reader: {
44 root: 'data' 44 root: 'data'
45 }, 45 },
46 writer: { 46 writer: {
47 type: 'json', 47 type: 'json',
48 // TODO: Check if this function is really needed (torsten) 48 // TODO: Check if this function is really needed (torsten)
49 // <2013-09-18 15:58> 49 // <2013-09-18 15:58>
50 writeEverything : true 50 writeEverything: true
51 } 51 }
52 }, 52 },
53 53
54 getMesseinheit: function(pzsId) { 54 getMesseinheit: function(pzsId) {
55 var zstore = Ext.data.StoreManager.get('staProbenzusaetze'); 55 var zstore = Ext.data.StoreManager.get('staProbenzusaetze');

http://lada.wald.intevation.org