Mercurial > lada > lada-client
diff app/model/Status.js @ 574:8d2cf853eed2
merged.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 10 Mar 2015 14:33:03 +0100 |
parents | d9593b520b3b |
children | 9b3adfb7b1ae |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/model/Status.js Tue Mar 10 14:33:03 2015 +0100 @@ -0,0 +1,37 @@ +/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz + * Software engineering by Intevation GmbH + * + * This file is Free Software under the GNU GPL (v>=3) + * and comes with ABSOLUTELY NO WARRANTY! Check out + * the documentation coming with IMIS-Labordaten-Application for details. + */ + +/** + * Model class for Status + */ +Ext.define('Lada.model.Status', { + extend: 'Ext.data.Model', + + fields: [{ + name: 'id' + }, { + name: 'messungsId' + }, { + name: 'status' + }, { + name: 'sdatum' + }, { + name: 'skommentar' + }], + + idProperty: 'id', + + proxy: { + type: 'rest', + url: 'lada-server/status', + reader: { + type: 'json', + root: 'data' + } + } +});