comparison app/view/grid/Messwert.js @ 991:19b78162e128

reorg mewwert grid
author Michael Stanko <mstanko@bfs.de>
date Mon, 28 Dec 2015 12:01:47 +0100
parents 07dfcdf5b41f
children f9449df5f9fb
comparison
equal deleted inserted replaced
990:c2a726887dd7 991:19b78162e128
93 minChars: 0, 93 minChars: 0,
94 typeAhead: false, 94 typeAhead: false,
95 triggerAction: 'all' 95 triggerAction: 'all'
96 } 96 }
97 }, { 97 }, {
98 header: '&lt;NWG',
99 width: 60,
100 dataIndex: 'messwertNwg',
101 editor: {
102 xtype: 'checkbox'
103 }
104 }, {
98 header: 'Messwert', 105 header: 'Messwert',
99 dataIndex: 'messwert', 106 dataIndex: 'messwert',
100 xtype: 'numbercolumn', 107 xtype: 'numbercolumn',
101 width: 80, 108 width: 80,
109 renderer: function(value) {
110 return value.toExponential(3);
111 },
102 editor: { 112 editor: {
103 xtype: 'numberfield', 113 xtype: 'numberfield',
104 allowBlank: false, 114 allowBlank: false,
105 maxLength: 10, 115 maxLength: 10,
106 allowExponential: false, 116 allowExponential: true,
107 enforceMaxLength: true 117 enforceMaxLength: true,
118 hideTrigger: true,
119 keyNavEnabled: false,
120 mouseWheelEnabled: false
108 } 121 }
109 }, { 122 }, {
110 header: 'Messeinheit', 123 header: 'Messeinheit',
111 dataIndex: 'mehId', 124 dataIndex: 'mehId',
112 width: 90, 125 width: 90,
130 minChars: 0, 143 minChars: 0,
131 typeAhead: false, 144 typeAhead: false,
132 triggerAction: 'all' 145 triggerAction: 'all'
133 } 146 }
134 }, { 147 }, {
135 header: '&lt;NWG',
136 xtype: 'numbercolumn',
137 width: 60,
138 dataIndex: 'messwertNwg'
139 }, {
140 header: 'Nachweisgrenze',
141 xtype: 'numbercolumn',
142 width: 110,
143 dataIndex: 'nwgZuMesswert'
144 }, {
145 header: 'Messfehler', 148 header: 'Messfehler',
146 dataIndex: 'messfehler', 149 dataIndex: 'messfehler',
147 xtype: 'numbercolumn', 150 xtype: 'numbercolumn',
148 width: 80, 151 width: 80,
149 editor: { 152 editor: {
150 xtype: 'numberfield', 153 xtype: 'numberfield',
151 allowBlank: false, 154 allowBlank: false,
152 maxLength: 10, 155 maxLength: 10,
153 allowExponential: false, 156 allowExponential: false,
154 enforceMaxLength: true 157 enforceMaxLength: true
158 }
159 }, {
160 header: 'Nachweisgrenze',
161 xtype: 'numbercolumn',
162 dataIndex: 'nwgZuMesswert',
163 width: 80,
164 renderer: function(value) {
165 if (!value) {
166 return null;
167 } else {
168 return value.toExponential(3);
169 }
170 },
171 editor: {
172 xtype: 'numberfield',
173 allowBlank: true,
174 maxLength: 10,
175 allowExponential: true,
176 enforceMaxLength: true,
177 hideTrigger: true,
178 keyNavEnabled: false,
179 mouseWheelEnabled: false
155 } 180 }
156 }, { 181 }, {
157 header: 'Grenzwertüberschreitung', 182 header: 'Grenzwertüberschreitung',
158 dataIndex: 'grenzwertueberschreitung', 183 dataIndex: 'grenzwertueberschreitung',
159 flex: 1, 184 flex: 1,

http://lada.wald.intevation.org