Mercurial > lada > lada-client
changeset 769:274a843caf44
Added model and store for deskriptoren.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 12 May 2015 15:10:52 +0200 |
parents | 380edfecac67 |
children | 3185a77e8501 |
files | app/model/Deskriptor.js app/store/Deskriptoren.js |
diffstat | 2 files changed, 51 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/model/Deskriptor.js Tue May 12 15:10:52 2015 +0200 @@ -0,0 +1,36 @@ +/** + * + */ +Ext.define('Lada.model.Deskriptor', { + extend: 'Ext.data.Model', + + /** + * Fields are: + * - ... + */ + fields: [{ + name: 'bedeutung' + }, { + name: 'beschreibung' + }, { + name: 'ebene' + }, { + name: 'id' + }, { + name: 'sn' + }, { + name: 'sXx' + }], + + idProperty: 'id', + + proxy: { + type: 'rest', + url: 'lada-server/deskriptor', + reader: { + type: 'json', + root: 'data', + totalProperty: 'totalCount' + } + } +});
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/store/Deskriptoren.js Tue May 12 15:10:52 2015 +0200 @@ -0,0 +1,15 @@ +/* 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. + */ + +/** + * Store for Datenbasis + */ +Ext.define('Lada.store.Deskriptoren', { + extend: 'Ext.data.Store', + model: 'Lada.model.Deskriptor' +});