Mercurial > lada > lada-client
comparison app/view/grid/Probenehmer.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('pn.gridTitle') | 47 text: i18n.getMsg('pn.gridTitle') |
49 }, | 48 }, |
50 '->', | 49 '->', |
51 { | 50 { |
52 text: i18n.getMsg('pn.button.add'), | 51 text: i18n.getMsg('pn.button.add'), |
84 } | 83 } |
85 }, { | 84 }, { |
86 header: i18n.getMsg('bearbeiter'), | 85 header: i18n.getMsg('bearbeiter'), |
87 dataIndex: 'bearbeiter', | 86 dataIndex: 'bearbeiter', |
88 editor: { | 87 editor: { |
89 allowBlank: false | 88 xtype: 'textfield' |
90 } | 89 } |
91 }, { | 90 }, { |
92 header: i18n.getMsg('prnId'), | 91 header: i18n.getMsg('prnId'), |
93 dataIndex: 'prnId', | 92 dataIndex: 'prnId', |
94 editor: { | 93 editor: { |
94 xtype: 'textfield', | |
95 allowBlank: false | 95 allowBlank: false |
96 } | 96 } |
97 }, { | 97 }, { |
98 header: i18n.getMsg('bemerkung'), | 98 header: i18n.getMsg('bemerkung'), |
99 dataIndex: 'bemerkung', | 99 dataIndex: 'bemerkung', |
100 editor: { | 100 editor: { |
101 allowBlank: false, | 101 xtype: 'textfield', |
102 xtype: 'textfield' | 102 allowBlank: false |
103 } | 103 } |
104 }, { | 104 }, { |
105 header: i18n.getMsg('kurzBezeichnung'), | 105 header: i18n.getMsg('kurzBezeichnung'), |
106 dataIndex: 'kurzBezeichnung', | 106 dataIndex: 'kurzBezeichnung', |
107 editor: { | 107 editor: { |
108 allowBlank: false, | 108 xtype: 'textfield', |
109 xtype: 'textfield' | 109 allowBlank: false |
110 } | 110 } |
111 }, { | 111 }, { |
112 header: i18n.getMsg('ort'), | 112 header: i18n.getMsg('ort'), |
113 dataIndex: 'ort', | 113 dataIndex: 'ort', |
114 editor: { | 114 editor: { |
115 allowBlank: false, | |
116 xtype: 'textfield' | 115 xtype: 'textfield' |
117 } | 116 } |
118 }, { | 117 }, { |
119 header: i18n.getMsg('plz'), | 118 header: i18n.getMsg('plz'), |
120 dataIndex: 'plz', | 119 dataIndex: 'plz', |
121 editor: { | 120 editor: { |
122 allowBlank: false, | |
123 xtype: 'numberfield' | 121 xtype: 'numberfield' |
124 } | 122 } |
125 }, { | 123 }, { |
126 header: i18n.getMsg('strasse'), | 124 header: i18n.getMsg('strasse'), |
127 dataIndex: 'strasse', | 125 dataIndex: 'strasse', |
128 editor: { | 126 editor: { |
129 allowBlank: false, | |
130 xtype: 'textfield' | 127 xtype: 'textfield' |
131 } | 128 } |
132 }, { | 129 }, { |
133 header: i18n.getMsg('telefon'), | 130 header: i18n.getMsg('telefon'), |
134 dataIndex: 'telefon', | 131 dataIndex: 'telefon', |
135 editor: { | 132 editor: { |
136 allowBlank: false | 133 xtype: 'textfield' |
137 } | 134 } |
138 }, { | 135 }, { |
139 header: i18n.getMsg('tp'), | 136 header: i18n.getMsg('tp'), |
140 dataIndex: 'tp', | 137 dataIndex: 'tp', |
141 editor: { | 138 editor: { |
142 allowBlank: false | 139 xtype: 'textfield' |
143 } | 140 } |
144 }, { | 141 }, { |
145 header: i18n.getMsg('typ'), | 142 header: i18n.getMsg('typ'), |
146 dataIndex: 'typ', | 143 dataIndex: 'typ', |
147 editor: { | 144 editor: { |
148 allowBlank: false | 145 xtype: 'textfield' |
149 } | 146 } |
150 }, { | 147 }, { |
151 header: i18n.getMsg('letzteAenderung'), | 148 header: i18n.getMsg('letzteAenderung'), |
152 dataIndex: 'letzteAenderung' | 149 dataIndex: 'letzteAenderung' |
153 }]; | 150 }]; |
159 */ | 156 */ |
160 setStore: function(store){ | 157 setStore: function(store){ |
161 var i18n = Lada.getApplication().bundle; | 158 var i18n = Lada.getApplication().bundle; |
162 | 159 |
163 if (store) { | 160 if (store) { |
164 this.removeDocked(Ext.getCmp('ptbar'), true); | |
165 this.reconfigure(store); | 161 this.reconfigure(store); |
162 | |
163 var ptbar = this.down('pagingtoolbar'); | |
164 if (ptbar) { | |
165 this.removeDocked(ptbar); | |
166 } | |
167 | |
166 this.down('button[action=add]').enable(); | 168 this.down('button[action=add]').enable(); |
167 this.addDocked([{ | 169 this.addDocked([{ |
168 xtype: 'pagingtoolbar', | 170 xtype: 'pagingtoolbar', |
169 id: 'ptbar', | |
170 dock: 'bottom', | 171 dock: 'bottom', |
171 store: store, | 172 store: store, |
172 displayInfo: true | 173 displayInfo: true |
173 }]); | 174 }]); |
174 } | 175 } |