[Lada-commits] [PATCH 1 of 2] Show List of Messungskommentare
Wald Commits
scm-commit at wald.intevation.org
Thu Jul 4 12:22:49 CEST 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1372933285 -7200
# Node ID f1f0351b6e2fca4652f7dbef7d1c372e814ee88c
# Parent c53f3110852ea4697c88270efe15ecde15f8b742
Show List of Messungskommentare
diff -r c53f3110852e -r f1f0351b6e2f app/model/MKommentar.js
--- a/app/model/MKommentar.js Thu Jul 04 11:24:02 2013 +0200
+++ b/app/model/MKommentar.js Thu Jul 04 12:21:25 2013 +0200
@@ -1,14 +1,14 @@
Ext.define('Lada.model.MKommentar', {
extend: 'Ext.data.Model',
fields: [
- {name: "kId"},
+ {name: "id"},
{name: "messungsId"},
{name: "probeId"},
{name: "erzeuger"},
{name: "kdatum", type: 'date', convert: ts2date, defaultValue: new Date()},
{name: "ktext"}
],
- idProperty: "kId",
+ idProperty: "id",
proxy: {
type: 'rest',
appendId: true, //default
@@ -19,7 +19,7 @@
}
},
getEidi: function() {
- var kid = this.get('kId');
+ var kid = this.get('id.kid');
var messId = this.get('messungsId');
var probeId = this.get('probeId');
return "/" + kid + "/" + messId + "/" + probeId;
diff -r c53f3110852e -r f1f0351b6e2f app/view/messungen/Create.js
--- a/app/view/messungen/Create.js Thu Jul 04 11:24:02 2013 +0200
+++ b/app/view/messungen/Create.js Thu Jul 04 12:21:25 2013 +0200
@@ -3,6 +3,8 @@
alias: 'widget.messungencreate',
title: 'Maske für Messungen',
+ width: Ext.getBody().getViewSize().width - 30,
+ height: Ext.getBody().getViewSize().height - 30,
autoShow: true,
autoScroll: true,
modal: true,
diff -r c53f3110852e -r f1f0351b6e2f app/view/messungen/CreateForm.js
--- a/app/view/messungen/CreateForm.js Thu Jul 04 11:24:02 2013 +0200
+++ b/app/view/messungen/CreateForm.js Thu Jul 04 12:21:25 2013 +0200
@@ -2,7 +2,8 @@
extend: 'Lada.view.widgets.LadaForm',
model: 'Lada.model.Messung',
requires: [
- 'Lada.view.widgets.Messmethode'
+ 'Lada.view.widgets.Messmethode',
+ 'Lada.view.mkommentare.List'
],
initComponent: function() {
this.items = [
@@ -35,6 +36,20 @@
xtype: 'textfield',
name: 'geplant',
fieldLabel: 'Geplant'
+ },
+ // Messungskommentare
+ {
+ xtype: 'fieldset',
+ title: 'Messungskommentare',
+ collapsible: true,
+ collapsed: false,
+ padding: '10 10',
+ items: [
+ {
+ xtype: 'mkommentarelist',
+ parentId: this.modelId
+ }
+ ]
}
];
this.callParent();
More information about the Lada-commits
mailing list