comparison app/model/Messung.js @ 171:c5422819d7b9

Show messzeitpunkt in messung listing. Convert timestamp to date.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 03 Jul 2013 16:13:36 +0200
parents 5eb0cfac0e30
children 92facbaece42
comparison
equal deleted inserted replaced
170:738d657d8b6b 171:c5422819d7b9
5 {name: "messungsId", mapping:"id.messungsId"}, 5 {name: "messungsId", mapping:"id.messungsId"},
6 {name: "probeId", mapping:"id.probeId"}, 6 {name: "probeId", mapping:"id.probeId"},
7 {name: "mmtId"}, 7 {name: "mmtId"},
8 {name: "nebenprobenNr"}, 8 {name: "nebenprobenNr"},
9 {name: "messdauer"}, 9 {name: "messdauer"},
10 {name: "messzeitpunkt"}, 10 {name: "messzeitpunkt", convert: ts2date},
11 {name: "fertig", type: "boolean"}, 11 {name: "fertig", type: "boolean"},
12 {name: "letzteAenderung", type:"date"}, 12 {name: "letzteAenderung", type:"date"},
13 {name: "geplant", type: "boolean"} 13 {name: "geplant", type: "boolean"}
14 ], 14 ],
15 idProperty: "convertedId", 15 idProperty: "convertedId",
21 type: 'json', 21 type: 'json',
22 root: 'data' 22 root: 'data'
23 } 23 }
24 } 24 }
25 }); 25 });
26
27 function ts2date(v, record){
28 // Converts a timestamp into a date object.
29 return new Date(v);
30 }

http://lada.wald.intevation.org