Mercurial > lada > lada-client
comparison app/view/grid/FilterResult.js @ 923:7cbbe0485d0d
Added a Print-button which sends a selection of proben to a service which still has to be specified.
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 20 Aug 2015 14:37:37 +0200 |
parents | 07dfcdf5b41f |
children |
comparison
equal
deleted
inserted
replaced
922:9f5d8885e464 | 923:7cbbe0485d0d |
---|---|
49 }, { | 49 }, { |
50 text: 'Proben Exportieren', | 50 text: 'Proben Exportieren', |
51 icon: 'resources/img/svn-update.png', | 51 icon: 'resources/img/svn-update.png', |
52 action: 'export', | 52 action: 'export', |
53 disabled: true | 53 disabled: true |
54 }, { | |
55 text: 'Auswahl Drucken', | |
56 icon: 'resources/img/printer.png', | |
57 action: 'print', | |
58 disabled: true | |
54 }, | 59 }, |
55 '-', | 60 '-', |
56 { | 61 { |
57 text: 'Messprogramm erstellen', | 62 text: 'Messprogramm erstellen', |
58 icon: 'resources/img/list-add.png', | 63 icon: 'resources/img/list-add.png', |
100 this.down('button[action=addMessprogramm]').disable(); | 105 this.down('button[action=addMessprogramm]').disable(); |
101 this.down('button[action=genProbenFromMessprogramm]').disable(); | 106 this.down('button[action=genProbenFromMessprogramm]').disable(); |
102 this.down('button[action=addProbe]').enable(); | 107 this.down('button[action=addProbe]').enable(); |
103 this.down('button[action=import]').enable(); | 108 this.down('button[action=import]').enable(); |
104 this.down('button[action=export]').enable(); | 109 this.down('button[action=export]').enable(); |
110 this.down('button[action=print]').enable(); | |
105 } | 111 } |
106 else if (store.model.modelName == 'Lada.model.MessprogrammList') { | 112 else if (store.model.modelName == 'Lada.model.MessprogrammList') { |
107 t.setText(i18n.getMsg('probeplanning')); | 113 t.setText(i18n.getMsg('probeplanning')); |
108 this.down('button[action=addMessprogramm]').enable(); | 114 this.down('button[action=addMessprogramm]').enable(); |
109 this.down('button[action=genProbenFromMessprogramm]').enable(); | 115 this.down('button[action=genProbenFromMessprogramm]').enable(); |
110 this.down('button[action=addProbe]').disable(); | 116 this.down('button[action=addProbe]').disable(); |
111 this.down('button[action=import]').disable(); | 117 this.down('button[action=import]').disable(); |
112 this.down('button[action=export]').disable(); | 118 this.down('button[action=export]').disable(); |
119 this.down('button[action=print]').disable(); | |
113 } | 120 } |
114 else { | 121 else { |
115 t.setText(''); | 122 t.setText(''); |
116 console.log('The model '+store.model.modelName+ | 123 console.log('The model '+store.model.modelName+ |
117 'was not defined in the FilterResultGrid.' + | 124 'was not defined in the FilterResultGrid.' + |