Mercurial > lada > lada-client
comparison app/view/grid/Messwert.js @ 1054:7e801af49eeb
Use exponential notation for messwerte and zusatzwerte.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 02 Mar 2016 12:59:15 +0100 |
parents | f9449df5f9fb |
children | e76551a6da27 |
comparison
equal
deleted
inserted
replaced
1052:d2165ba7e8f1 | 1054:7e801af49eeb |
---|---|
98 header: '<NWG', | 98 header: '<NWG', |
99 width: 60, | 99 width: 60, |
100 dataIndex: 'messwertNwg', | 100 dataIndex: 'messwertNwg', |
101 editor: { | 101 editor: { |
102 xtype: 'checkbox', | 102 xtype: 'checkbox', |
103 inputValue: '<' | 103 inputValue: '<' |
104 } | 104 } |
105 }, { | 105 }, { |
106 header: 'Messwert', | 106 header: 'Messwert', |
107 dataIndex: 'messwert', | 107 dataIndex: 'messwert', |
108 xtype: 'numbercolumn', | 108 width: 80, |
109 width: 80, | 109 editor: { |
110 renderer: function(value) { | 110 xtype: 'textfield', |
111 return value.toExponential(2); | 111 allowBlank: false, |
112 }, | 112 regex: /^[+\-]?(?:(?:0|[1-9]\d*)(?:[\.\,][0-9]\d*)?(?:[eE][+\-]?\d+)|(\d+[\.\,]?\d*)?)$/, |
113 editor: { | 113 regexText: 'Keine Zahl' |
114 xtype: 'numberfield', | |
115 allowBlank: false, | |
116 maxLength: 10, | |
117 allowExponential: true, | |
118 enforceMaxLength: true, | |
119 hideTrigger: true, | |
120 keyNavEnabled: false, | |
121 mouseWheelEnabled: false | |
122 } | 114 } |
123 }, { | 115 }, { |
124 header: 'Messeinheit', | 116 header: 'Messeinheit', |
125 dataIndex: 'mehId', | 117 dataIndex: 'mehId', |
126 width: 90, | 118 width: 90, |
157 allowExponential: false, | 149 allowExponential: false, |
158 enforceMaxLength: true | 150 enforceMaxLength: true |
159 } | 151 } |
160 }, { | 152 }, { |
161 header: 'Nachweisgrenze', | 153 header: 'Nachweisgrenze', |
162 xtype: 'numbercolumn', | |
163 dataIndex: 'nwgZuMesswert', | 154 dataIndex: 'nwgZuMesswert', |
164 width: 80, | 155 width: 80, |
165 renderer: function(value) { | 156 editor: { |
166 if (!value) { | 157 xtype: 'textfield', |
167 return null; | |
168 } else { | |
169 return value.toExponential(2); | |
170 } | |
171 }, | |
172 editor: { | |
173 xtype: 'numberfield', | |
174 allowBlank: true, | 158 allowBlank: true, |
175 maxLength: 10, | 159 regex: /^[+\-]?(?:(?:0|[1-9]\d*)(?:[\.\,][0-9]\d*)?(?:[eE][+\-]?\d+)|(\d+[\.\,]?\d*)?)$/, |
176 allowExponential: true, | 160 regexText: 'Keine Zahl' |
177 enforceMaxLength: true, | |
178 hideTrigger: true, | |
179 keyNavEnabled: false, | |
180 mouseWheelEnabled: false | |
181 } | 161 } |
182 }, { | 162 }, { |
183 header: 'Grenzwertüberschreitung', | 163 header: 'Grenzwertüberschreitung', |
184 dataIndex: 'grenzwertueberschreitung', | 164 dataIndex: 'grenzwertueberschreitung', |
185 flex: 1, | 165 flex: 1, |