[Lada-commits] [PATCH 3 of 5] Added window to create a new ort
Wald Commits
scm-commit at wald.intevation.org
Tue Mar 17 16:05:42 CET 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1426604704 -3600
# Node ID bd151c8b7ad109d34809ab38ae0e522ca1eb1f8e
# Parent 5b5bba1d8e6a9ca76459e0234ed9d9c54de2d6a6
Added window to create a new ort.
diff -r 5b5bba1d8e6a -r bd151c8b7ad1 app/view/window/OrtCreate.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/window/OrtCreate.js Tue Mar 17 16:05:04 2015 +0100
@@ -0,0 +1,90 @@
+/* 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.
+ */
+
+/*
+ * Window to edit a Messung
+ */
+Ext.define('Lada.view.window.OrtCreate', {
+ extend: 'Ext.window.Window',
+ alias: 'widget.ortcreate',
+
+ requires: [
+ 'Lada.view.panel.Map',
+ 'Lada.view.form.Ort',
+ 'Lada.view.form.Location'
+ ],
+
+ collapsible: true,
+ maximizable: true,
+ autoshow: true,
+ layout: 'border',
+
+ record: null,
+ grid: null,
+
+ initComponent: function() {
+ this.title = 'Ort';
+ this.buttons = [{
+ text: 'Schließen',
+ scope: this,
+ handler: this.close
+ }];
+ this.width = 900;
+ this.height = 515;
+ this.bodyStyle = {background: '#fff'};
+
+ this.items = [{
+ region: 'west',
+ border: 0,
+ layout: 'vbox',
+ items: [{
+ xtype: 'ortform',
+ margin: 5
+ }, {
+ xtype: 'locationform',
+ margin: 5
+ }]
+ }, {
+ xtype: 'fset',
+ bodyStyle: {
+ background: '#fff'
+ },
+ layout: 'border',
+ name: 'mapfield',
+ title: 'Karte',
+ region: 'center',
+ padding: '5, 5',
+ margin: 5,
+ items: [{
+ xtype: 'map',
+ region: 'center',
+ layout: 'border',
+ bodyStyle: {
+ background: '#fff'
+ },
+ name: 'map'
+ }]
+ }];
+ this.callParent(arguments);
+ },
+
+ initData: function() {
+ var ort = Ext.create('Lada.model.Ort', {
+ probeId: this.record.get('id')
+ });
+ this.down('ortform').setRecord(ort);
+ },
+
+ setMessages: function(errors, warnings) {
+ //todo this is a stub
+ },
+
+ clearMessages: function() {
+ //todo this is a stub
+ }
+});
More information about the Lada-commits
mailing list