comparison app/view/form/Messung.js @ 611:8a156a7fbe67

added a controller for messungforms, modified testdatensatz-widget to load a local store, removed dirtychange listeners from probe-form
author Dustin Demuth <dustin@intevation.de>
date Fri, 13 Mar 2015 15:11:12 +0100
parents 4c97717b92da
children 04cf6b514e3e
comparison
equal deleted inserted replaced
610:f240fe19ff5d 611:8a156a7fbe67
12 Ext.define('Lada.view.form.Messung', { 12 Ext.define('Lada.view.form.Messung', {
13 extend: 'Ext.form.Panel', 13 extend: 'Ext.form.Panel',
14 alias: 'widget.messungform', 14 alias: 'widget.messungform',
15 requires: [ 15 requires: [
16 'Lada.view.widget.Datenbasis', 16 'Lada.view.widget.Datenbasis',
17 'Lada.view.widget.base.CheckBox',
18 'Lada.view.widget.Messmethode',
17 'Lada.view.widget.base.TextField', 19 'Lada.view.widget.base.TextField',
18 'Lada.view.widget.base.Datetime', 20 'Lada.view.widget.base.Datetime',
19 'Lada.view.widget.base.FieldSet',
20 'Lada.model.Messung'
21 ], 21 ],
22 22
23 model: 'Lada.model.Messung', 23 model: 'Lada.model.Messung',
24 minWidth: 650, 24 minWidth: 650,
25 margin: 5, 25 margin: 5,
28 recordId: null, 28 recordId: null,
29 29
30 trackResetOnLoad: true, 30 trackResetOnLoad: true,
31 31
32 initComponent: function() { 32 initComponent: function() {
33 var me = this;
33 this.items = [{ 34 this.items = [{
34 xtype: 'fieldset', 35 xtype: 'fieldset',
35 title: 'Allgemein' 36 title: 'Allgemein',
37 items: [{
38 border: 0,
39 margin: '0, 0, 10, 0',
40 layout: {
41 type: 'table',
42 columns: 2
43 },
44 dockedItems: [{
45 xtype: 'toolbar',
46 dock: 'bottom',
47 border: '0, 1, 1, 1',
48 style: {
49 borderBottom: '1px solid #b5b8c8 !important',
50 borderLeft: '1px solid #b5b8c8 !important',
51 borderRight: '1px solid #b5b8c8 !important'
52 },
53 items: ['->', {
54 text: 'Speichern',
55 qtip: 'Daten speichern',
56 icon: 'resources/img/dialog-ok-apply.png',
57 action: 'save',
58 disabled: true
59 }, {
60 text: 'Verwerfen',
61 qtip: 'Ă„nderungen verwerfen',
62 icon: 'resources/img/dialog-cancel.png',
63 action: 'discard',
64 disabled: true
65 }]
66 }],
67 items: [{
68 xtype: 'textfield',
69 name: 'nebenprobenNr',
70 maxLength: 10,
71 margin: '0, 10, 5, 0',
72 fieldLabel: 'Nebenprobennr.',
73 width: 300,
74 labelWidth: 100,
75 }, {
76 xtype: 'messmethode',
77 name: 'mmtId',
78 margin: '0, 10, 5, 0',
79 fieldLabel: 'Messmethode',
80 width: 300,
81 labelWidth: 100,
82 }, {
83 xtype: 'datetime',
84 name: 'messzeitpunkt',
85 margin: '0, 10, 5, 0',
86 fieldLabel: 'Messzeitpunkt',
87 width: 300,
88 labelWidth: 100,
89 }, {
90 xtype: 'numberfield',
91 allowDecimals: false,
92 minValue: 0,
93 name: 'messdauer',
94 margin: '0, 10, 5, 0',
95 fieldLabel: 'Messdauer',
96 width: 300,
97 labelWidth: 100,
98 }, {
99 xtype: 'chkbox',
100 name: 'fertig',
101 margin: '0, 10, 5, 0',
102 fieldLabel: 'Fertig',
103 width: 300,
104 labelWidth: 100,
105 }, {
106 xtype: 'chkbox',
107 name: 'geplant',
108 margin: '0, 10, 5, 0',
109 fieldLabel: 'Geplant',
110 width: 300,
111 labelWidth: 100,
112 }]
113 }]
36 }]; 114 }];
37 this.callParent(arguments); 115 this.callParent(arguments);
38 }, 116 },
39 117
40 setRecord: function(record) { 118 setRecord: function(record) {

http://lada.wald.intevation.org