comparison app/view/grid/DatensatzErzeuger.js @ 1014:e9e974d31924 stammdatengrids

Set mandatory fields
author Dustin Demuth <dustin@intevation.de>
date Fri, 29 Jan 2016 14:51:17 +0100
parents 6afdbc8ee920
children 981339d774b8
comparison
equal deleted inserted replaced
1013:75ce503ab296 1014:e9e974d31924
42 this.dockedItems = [{ 42 this.dockedItems = [{
43 xtype: 'toolbar', 43 xtype: 'toolbar',
44 dock: 'top', 44 dock: 'top',
45 items: [{ 45 items: [{
46 xtype: 'tbtext', 46 xtype: 'tbtext',
47 id: 'tbtitle',
48 text: i18n.getMsg('de.gridTitle') 47 text: i18n.getMsg('de.gridTitle')
49 }, 48 },
50 '->', 49 '->',
51 { 50 {
52 text: i18n.getMsg('de.button.add'), 51 text: i18n.getMsg('de.button.add'),
85 } 84 }
86 }, { 85 }, {
87 header: i18n.getMsg('daErzeugerId'), 86 header: i18n.getMsg('daErzeugerId'),
88 dataIndex: 'daErzeugerId', 87 dataIndex: 'daErzeugerId',
89 editor: { 88 editor: {
89 xtype: 'textfield',
90 allowBlank: false 90 allowBlank: false
91 } 91 }
92 }, { 92 }, {
93 header: i18n.getMsg('bezeichnung'), 93 header: i18n.getMsg('bezeichnung'),
94 dataIndex: 'bezeichnung', 94 dataIndex: 'bezeichnung',
95 editor: { 95 editor: {
96 allowBlank: false, 96 xtype: 'textfield',
97 xtype: 'textfield' 97 allowBlank: false
98 } 98 }
99 }, { 99 }, {
100 header: i18n.getMsg('mstId'), 100 header: i18n.getMsg('mstId'),
101 dataIndex: 'mstId', 101 dataIndex: 'mstId',
102 renderer: function(value) { 102 renderer: function(value) {
130 */ 130 */
131 setStore: function(store){ 131 setStore: function(store){
132 var i18n = Lada.getApplication().bundle; 132 var i18n = Lada.getApplication().bundle;
133 133
134 if (store) { 134 if (store) {
135 this.removeDocked(Ext.getCmp('ptbar'), true);
136 this.reconfigure(store); 135 this.reconfigure(store);
136
137 var ptbar = this.down('pagingtoolbar');
138 if (ptbar) {
139 this.removeDocked(ptbar);
140 }
141
137 this.down('button[action=add]').enable(); 142 this.down('button[action=add]').enable();
138 this.addDocked([{ 143 this.addDocked([{
139 xtype: 'pagingtoolbar', 144 xtype: 'pagingtoolbar',
140 id: 'ptbar',
141 dock: 'bottom', 145 dock: 'bottom',
142 store: store, 146 store: store,
143 displayInfo: true 147 displayInfo: true
144 }]); 148 }]);
145 } 149 }

http://lada.wald.intevation.org