Mercurial > lada > lada-client
changeset 498:c1b77fb96b01
Have consistent requires in classes.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 06 Nov 2014 10:59:03 +0100 |
parents | 7c0653e8d9f7 |
children | 8b4ec61c5752 |
files | app/view/kommentare/CreateForm.js app/view/kommentare/List.js app/view/messungen/CreateForm.js app/view/messwerte/Create.js app/view/messwerte/List.js app/view/mkommentare/Create.js app/view/mkommentare/CreateForm.js app/view/orte/CreateOrt.js app/view/proben/Create.js app/view/proben/CreateForm.js app/view/proben/Edit.js app/view/proben/Import.js app/view/search/List.js app/view/status/Create.js app/view/status/CreateForm.js app/view/widgets/Messeinheit.js app/view/widgets/Messgroesse.js app/view/widgets/Messmethode.js app/view/widgets/Mst.js app/view/widgets/Netzbetreiber.js app/view/widgets/Probenzusatzwert.js app/view/widgets/Uwb.js app/view/widgets/Verwaltungseinheit.js app/view/zusatzwerte/Create.js |
diffstat | 24 files changed, 57 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/kommentare/CreateForm.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/kommentare/CreateForm.js Thu Nov 06 10:59:03 2014 +0100 @@ -11,6 +11,12 @@ */ Ext.define('Lada.view.kommentare.CreateForm', { extend: 'Lada.view.widgets.LadaForm', + requires: [ + 'Lada.view.widgets.Mst', + 'Lada.view.widgets.Datetime', + 'Ext.form.field.TextArea' + ], + model: 'Lada.model.Kommentar', initComponent: function() {
--- a/app/view/kommentare/List.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/kommentare/List.js Thu Nov 06 10:59:03 2014 +0100 @@ -13,6 +13,10 @@ extend: 'Ext.grid.Panel', alias: 'widget.kommentarelist', + requires: [ + 'Ext.toolbar.Toolbar' + ], + store: 'KommentareP', viewConfig: { maxHeight: 350,
--- a/app/view/messungen/CreateForm.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/messungen/CreateForm.js Thu Nov 06 10:59:03 2014 +0100 @@ -12,6 +12,7 @@ Ext.define('Lada.view.messungen.CreateForm', { extend: 'Lada.view.widgets.LadaForm', requires: [ + 'Lada.view.widgets.Datetime', 'Lada.view.widgets.Messmethode', 'Lada.view.widgets.Testdatensatz' ],
--- a/app/view/messwerte/Create.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/messwerte/Create.js Thu Nov 06 10:59:03 2014 +0100 @@ -13,6 +13,10 @@ extend: 'Ext.window.Window', alias: 'widget.messwertecreate', + requires: [ + 'Lada.view.messwerte.CreateForm' + ], + title: 'Maske für Messwerte', autoShow: true, autoScroll: true,
--- a/app/view/messwerte/List.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/messwerte/List.js Thu Nov 06 10:59:03 2014 +0100 @@ -11,7 +11,6 @@ */ Ext.define('Lada.view.messwerte.List', { extend: 'Ext.grid.Panel', - require: ['Lada.store.StaMesseinheit'], alias: 'widget.messwertelist', store: 'Messwerte',
--- a/app/view/mkommentare/Create.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/mkommentare/Create.js Thu Nov 06 10:59:03 2014 +0100 @@ -13,6 +13,10 @@ extend: 'Ext.window.Window', alias: 'widget.mkommentarecreate', + requires: [ + 'Lada.view.mkommentare.CreateForm' + ], + title: 'Maske für Messungskommentare', // Make size of the dialog dependend of the available space. // TODO: Handle resizing the browser window. @@ -20,9 +24,6 @@ autoScroll: true, modal: true, - requires: [ - 'Lada.view.mkommentare.CreateForm' - ], initComponent: function() { var form = Ext.create('Lada.view.mkommentare.CreateForm', this.initialConfig);
--- a/app/view/mkommentare/CreateForm.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/mkommentare/CreateForm.js Thu Nov 06 10:59:03 2014 +0100 @@ -12,6 +12,11 @@ Ext.define('Lada.view.mkommentare.CreateForm', { extend: 'Lada.view.widgets.LadaForm', + requires: [ + 'Lada.view.widgets.Mst', + 'Lada.view.widgets.Datetime' + ], + model: 'Lada.model.KommentarM', initComponent: function() {
--- a/app/view/orte/CreateOrt.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/orte/CreateOrt.js Thu Nov 06 10:59:03 2014 +0100 @@ -13,6 +13,11 @@ extend: 'Ext.window.Window', alias: 'widget.createortdetail', + requires: [ + 'Lada.view.widgets.Staat', + 'Lada.view.widgets.Verwaltungseinheit' + ], + title: 'Neuer Ort', /**
--- a/app/view/proben/Create.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/proben/Create.js Thu Nov 06 10:59:03 2014 +0100 @@ -13,6 +13,10 @@ extend: 'Ext.window.Window', alias: 'widget.probencreate', + requires: [ + 'Lada.view.proben.CreateForm' + ], + title: 'Maske für §3-Proben', // Make size of the dialog dependend of the available space. // TODO: Handle resizing the browser window.
--- a/app/view/proben/CreateForm.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/proben/CreateForm.js Thu Nov 06 10:59:03 2014 +0100 @@ -12,6 +12,7 @@ Ext.define('Lada.view.proben.CreateForm', { extend: 'Lada.view.widgets.LadaForm', requires: [ + 'Lada.view.widgets.Mst', 'Lada.view.widgets.Datenbasis', 'Lada.view.widgets.Netzbetreiber', 'Lada.view.widgets.Betriebsart',
--- a/app/view/proben/Edit.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/proben/Edit.js Thu Nov 06 10:59:03 2014 +0100 @@ -11,9 +11,12 @@ */ Ext.define('Lada.view.proben.Edit', { extend: 'Ext.window.Window', - require: ['Lada.view.proben.EditForm'], alias: 'widget.probenedit', + requires: [ + 'Lada.view.proben.EditForm' + ], + title: 'Maske für §3-Proben', // Make size of the dialog dependend of the available space. // TODO: Handle resizing the browser window.
--- a/app/view/proben/Import.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/proben/Import.js Thu Nov 06 10:59:03 2014 +0100 @@ -13,6 +13,10 @@ extend: 'Ext.window.Window', alias: 'widget.probenimport', + requires: [ + 'Lada.view.proben.ImportForm' + ], + title: 'Maske für §3-Proben Import', autoShow: true, autoScroll: true,
--- a/app/view/search/List.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/search/List.js Thu Nov 06 10:59:03 2014 +0100 @@ -12,7 +12,11 @@ Ext.define('Lada.view.search.List', { extend: 'Ext.form.FieldSet', alias: 'widget.queryselector', - require: ['Ext.layout.container.Column'], + + require: [ + 'Ext.layout.container.Column' + ], + title: 'SQL-Auswahl', initComponent: function() { this.layout = 'column';
--- a/app/view/status/Create.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/status/Create.js Thu Nov 06 10:59:03 2014 +0100 @@ -13,6 +13,10 @@ extend: 'Ext.window.Window', alias: 'widget.statuscreate', + requires: [ + 'Lada.view.status.CreateForm' + ], + title: 'Maske für den Messstatus', autoShow: true, autoScroll: true,
--- a/app/view/status/CreateForm.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/status/CreateForm.js Thu Nov 06 10:59:03 2014 +0100 @@ -13,7 +13,8 @@ extend: 'Lada.view.widgets.LadaForm', requires: [ 'Lada.view.widgets.Mst', - 'Lada.view.widgets.Statuswert' + 'Lada.view.widgets.Statuswert', + 'Lada.view.widgets.Datetime' ], model: 'Lada.model.Status',
--- a/app/view/widgets/Messeinheit.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/widgets/Messeinheit.js Thu Nov 06 10:59:03 2014 +0100 @@ -11,7 +11,6 @@ */ Ext.define('Lada.view.widgets.Messeinheit', { extend: 'Ext.form.ComboBox', - require: ['Lada.store.StaMesseinheiten'], alias: 'widget.messeinheit', store: 'StaMesseinheiten', displayField: 'einheit',
--- a/app/view/widgets/Messgroesse.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/widgets/Messgroesse.js Thu Nov 06 10:59:03 2014 +0100 @@ -11,7 +11,6 @@ */ Ext.define('Lada.view.widgets.Messgroesse', { extend: 'Ext.form.ComboBox', - require: ['Lada.store.StaMessgroessen'], alias: 'widget.messgroesse', store: 'StaMessgroessen', displayField: 'messgroesse',
--- a/app/view/widgets/Messmethode.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/widgets/Messmethode.js Thu Nov 06 10:59:03 2014 +0100 @@ -11,7 +11,6 @@ */ Ext.define('Lada.view.widgets.Messmethode', { extend: 'Ext.form.ComboBox', - require: ['Lada.store.StaMessmethoden'], alias: 'widget.messmethode', store: 'StaMessmethoden', displayField: 'messmethode',
--- a/app/view/widgets/Mst.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/widgets/Mst.js Thu Nov 06 10:59:03 2014 +0100 @@ -11,7 +11,6 @@ */ Ext.define('Lada.view.widgets.Mst', { extend: 'Ext.form.ComboBox', - require: ['Lada.store.StaMessstellen'], alias: 'widget.mst', store: 'StaMessstellen', displayField: 'messStelle',
--- a/app/view/widgets/Netzbetreiber.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/widgets/Netzbetreiber.js Thu Nov 06 10:59:03 2014 +0100 @@ -11,7 +11,6 @@ */ Ext.define('Lada.view.widgets.Netzbetreiber', { extend: 'Ext.form.ComboBox', - require: ['Lada.store.StaNetzbetreiber'], alias: 'widget.netzbetreiber', store: 'StaNetzbetreiber', displayField: 'netzbetreiber',
--- a/app/view/widgets/Probenzusatzwert.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/widgets/Probenzusatzwert.js Thu Nov 06 10:59:03 2014 +0100 @@ -11,7 +11,6 @@ */ Ext.define('Lada.view.widgets.Probenzusatzwert', { extend: 'Ext.form.ComboBox', - require: ['Lada.store.StaProbenzusaetze'], alias: 'widget.probenzusatzwert', store: 'StaProbenzusaetze', displayField: 'beschreibung',
--- a/app/view/widgets/Uwb.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/widgets/Uwb.js Thu Nov 06 10:59:03 2014 +0100 @@ -11,7 +11,6 @@ */ Ext.define('Lada.view.widgets.Uwb' ,{ extend: 'Ext.form.ComboBox', - require: ['Lada.store.StaUmwelt'], alias: 'widget.uwb', store: 'StaUmwelt', displayField: 'id',
--- a/app/view/widgets/Verwaltungseinheit.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/widgets/Verwaltungseinheit.js Thu Nov 06 10:59:03 2014 +0100 @@ -11,7 +11,6 @@ */ Ext.define('Lada.view.widgets.Verwaltungseinheit', { extend: 'Ext.form.field.ComboBox', - require: ['Lada.store.StaVerwaltungseinheiten'], alias: 'widget.verwaltungseinheiten', store: 'StaVerwaltungseinheiten', displayField: 'bezeichnung',
--- a/app/view/zusatzwerte/Create.js Thu Nov 06 10:38:17 2014 +0100 +++ b/app/view/zusatzwerte/Create.js Thu Nov 06 10:59:03 2014 +0100 @@ -13,6 +13,10 @@ extend: 'Ext.window.Window', alias: 'widget.zusatzwertecreate', + requires: [ + 'Lada.view.zusatzwerte.CreateForm' + ], + title: 'Maske für Zusatzwerte', autoShow: true, autoScroll: true,