Mercurial > lada > lada-client
changeset 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 | eb8a7d3cca89 |
children | a8619efdf3ae |
files | app/model/Probe.js |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
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' } } });