Mercurial > lada > lada-client
comparison app/controller/grid/Messung.js @ 963:6a6f2c6fe8ee
More work done on StatusWerte and Statusstufe. A Messung will also open when the owner attribute is true. Stauswerte and StatusStufen are loaded at application startup. Statusgrid and Messunggrid now use these stores, which were registered at the store manager.
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 12 Nov 2015 12:13:31 +0100 |
parents | 9b6800458a9e |
children | a73726bba79c |
comparison
equal
deleted
inserted
replaced
962:9b6800458a9e | 963:6a6f2c6fe8ee |
---|---|
41 editItem: function(grid, record) { | 41 editItem: function(grid, record) { |
42 var probe = grid.up('window').record; | 42 var probe = grid.up('window').record; |
43 /* Only open a new Window when: | 43 /* Only open a new Window when: |
44 statusEdit = True | 44 statusEdit = True |
45 -or- | 45 -or- |
46 the value of status is not 0 | 46 the value of status is not 0 |
47 the statusWert attribute is not present in the original data. | 47 -or- |
48 it is appended, when the value and name of the status were | 48 the owner = True |
49 determined. | 49 |
50 the statusWert attribute is not present in the original data. | |
51 it is appended, when the value and name of the status were | |
52 determined. | |
50 */ | 53 */ |
51 if (record.get('statusEdit') || record.get('statusWert') > 0) { | 54 if (record.get('statusEdit') |
55 || record.get('statusWert') > 0 | |
56 || record.get('owner')) { | |
52 var win = Ext.create('Lada.view.window.MessungEdit', { | 57 var win = Ext.create('Lada.view.window.MessungEdit', { |
53 parentWindow: grid.up('window'), | 58 parentWindow: grid.up('window'), |
54 probe: probe, | 59 probe: probe, |
55 record: record, | 60 record: record, |
56 grid: grid | 61 grid: grid |