Mercurial > lada > lada-client
comparison app/view/window/ProbeEdit.js @ 1175:5e3d4136ecfb
Changed title of Probe- and Messungs-mask/ added ProbeId as displayfield
author | Evi Huber <ehuber@bfs.de> |
---|---|
date | Mon, 11 Jul 2016 10:27:01 +0200 |
parents | 8280cd5694e5 |
children |
comparison
equal
deleted
inserted
replaced
1172:9b157a8eecf1 | 1175:5e3d4136ecfb |
---|---|
36 if (this.record === null) { | 36 if (this.record === null) { |
37 Ext.Msg.alert('Keine valide Probe ausgewählt!'); | 37 Ext.Msg.alert('Keine valide Probe ausgewählt!'); |
38 this.callParent(arguments); | 38 this.callParent(arguments); |
39 return; | 39 return; |
40 } | 40 } |
41 var extendedTitle = this.record.get('probeId') ? this.record.get('probeId') : ''; | |
42 this.title = '§3-Probe ' + extendedTitle; | |
43 this.buttons = [{ | 41 this.buttons = [{ |
44 text: 'Schließen', | 42 text: 'Schließen', |
45 scope: this, | 43 scope: this, |
46 handler: this.close | 44 handler: this.close |
47 }]; | 45 }]; |
137 this.down('probeform').setRecord(record); | 135 this.down('probeform').setRecord(record); |
138 this.record = record; | 136 this.record = record; |
139 var owner = this.record.get('owner'); | 137 var owner = this.record.get('owner'); |
140 var readonly = this.record.get('readonly'); | 138 var readonly = this.record.get('readonly'); |
141 | 139 |
140 var messstelle = Ext.data.StoreManager.get('messstellen') | |
141 .getById(this.record.get('mstId')); | |
142 this.setTitle('§3 Probe - Hauptprobennr.: ' + this.record.get('hauptprobenNr') | |
143 + ' Mst: ' + messstelle.get('messStelle')); | |
144 | |
142 if (owner) { | 145 if (owner) { |
143 //Always allow to Add Messungen. | 146 //Always allow to Add Messungen. |
144 me.enableAddMessungen(); | 147 me.enableAddMessungen(); |
145 } | 148 } |
146 | 149 |