Mercurial > lada > lada-client
comparison app/model/Messung.js @ 299:fe199b8828a8
Use ts2date function from lib.Helpers. Remove old code
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 09 Aug 2013 15:23:59 +0200 |
parents | 92facbaece42 |
children | 65f8be677c8a |
comparison
equal
deleted
inserted
replaced
298:53a446d4f424 | 299:fe199b8828a8 |
---|---|
1 Ext.define('Lada.model.Messung', { | 1 Ext.define('Lada.model.Messung', { |
2 extend: 'Ext.data.Model', | 2 extend: 'Ext.data.Model', |
3 requires: ['Lada.lib.Helpers'], | |
3 fields: [ | 4 fields: [ |
4 {name: "id"}, | 5 {name: "id"}, |
5 {name: "messungsId", mapping:"id.messungsId"}, | 6 {name: "messungsId", mapping:"id.messungsId"}, |
6 {name: "probeId", mapping:"id.probeId"}, | 7 {name: "probeId", mapping:"id.probeId"}, |
7 {name: "mmtId"}, | 8 {name: "mmtId"}, |
8 {name: "nebenprobenNr"}, | 9 {name: "nebenprobenNr"}, |
9 {name: "messdauer"}, | 10 {name: "messdauer"}, |
10 {name: "messzeitpunkt", convert: ts2date, defaultValue: new Date()}, | 11 {name: "messzeitpunkt", convert: Lada.lib.Helpers.ts2date, defaultValue: new Date()}, |
11 {name: "fertig", type: "boolean"}, | 12 {name: "fertig", type: "boolean"}, |
12 {name: "letzteAenderung", type:"date"}, | 13 {name: "letzteAenderung", type:"date"}, |
13 {name: "geplant", type: "boolean"} | 14 {name: "geplant", type: "boolean"} |
14 ], | 15 ], |
15 idProperty: "id", | 16 idProperty: "id", |