comparison app/model/Probe.js @ 77:c846a2e37289

Set default date in Proben to today.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 11 Jun 2013 08:06:24 +0200
parents 9e2e09e819fd
children 0a104617a700
comparison
equal deleted inserted replaced
76:eb8a7d3cca89 77:c846a2e37289
15 {name: "mprId"}, 15 {name: "mprId"},
16 {name: "mstId"}, 16 {name: "mstId"},
17 {name: "netzbetreiberId"}, 17 {name: "netzbetreiberId"},
18 {name: "probeId"}, 18 {name: "probeId"},
19 {name: "probeNehmerId"}, 19 {name: "probeNehmerId"},
20 {name: "probeentnahmeBeginn", type: 'date', convert: ts2date}, 20 {name: "probeentnahmeBeginn", type: 'date', convert: ts2date, defaultValue: new Date()},
21 {name: "probeentnahmeEnde", type: 'date', convert: ts2date}, 21 {name: "probeentnahmeEnde", type: 'date', convert: ts2date, defaultValue: new Date()},
22 {name: "probenartId"}, 22 {name: "probenartId"},
23 {name: "solldatumBeginn", type: 'date', convert: ts2date}, 23 {name: "solldatumBeginn", type: 'date', convert: ts2date, defaultValue: new Date()},
24 {name: "solldatumEnde", type: 'date', convert: ts2date}, 24 {name: "solldatumEnde", type: 'date', convert: ts2date, defaultValue: new Date()},
25 {name: "test"}, 25 {name: "test"},
26 {name: "umwId"} 26 {name: "umwId"}
27 ], 27 ],
28 idProperty: "probeId", 28 idProperty: "probeId",
29 proxy: { 29 proxy: {
31 appendId: true, //default 31 appendId: true, //default
32 url: 'server/rest/proben', 32 url: 'server/rest/proben',
33 api: { 33 api: {
34 }, 34 },
35 reader: { 35 reader: {
36 type: 'json' 36 type: 'json',
37 root: 'data'
37 } 38 }
38 } 39 }
39 }); 40 });
40 41
41 function ts2date(v, record){ 42 function ts2date(v, record){

http://lada.wald.intevation.org