Mercurial > lada > lada-client
diff 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 |
line wrap: on
line diff
--- a/app/model/Probe.js Wed Jun 05 18:05:00 2013 +0200 +++ b/app/model/Probe.js Tue Jun 11 08:06:24 2013 +0200 @@ -17,11 +17,11 @@ {name: "netzbetreiberId"}, {name: "probeId"}, {name: "probeNehmerId"}, - {name: "probeentnahmeBeginn", type: 'date', convert: ts2date}, - {name: "probeentnahmeEnde", type: 'date', convert: ts2date}, + {name: "probeentnahmeBeginn", type: 'date', convert: ts2date, defaultValue: new Date()}, + {name: "probeentnahmeEnde", type: 'date', convert: ts2date, defaultValue: new Date()}, {name: "probenartId"}, - {name: "solldatumBeginn", type: 'date', convert: ts2date}, - {name: "solldatumEnde", type: 'date', convert: ts2date}, + {name: "solldatumBeginn", type: 'date', convert: ts2date, defaultValue: new Date()}, + {name: "solldatumEnde", type: 'date', convert: ts2date, defaultValue: new Date()}, {name: "test"}, {name: "umwId"} ], @@ -33,7 +33,8 @@ api: { }, reader: { - type: 'json' + type: 'json', + root: 'data' } } });