diff app/view/grid/Probenzusatzwert.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 479782c96efa
children b73f9a976c82
line wrap: on
line diff
--- a/app/view/grid/Probenzusatzwert.js	Tue Mar 01 14:20:49 2016 +0100
+++ b/app/view/grid/Probenzusatzwert.js	Wed Mar 02 12:59:15 2016 +0100
@@ -90,14 +90,12 @@
         }, {
             header: 'Messwert',
             dataIndex: 'messwertPzs',
-            xtype: 'numbercolumn',
             flex: 1,
             editor: {
-                xtype: 'numberfield',
+                xtype: 'textfield',
                 allowBlank: false,
-                maxLength: 10,
-                enforceMaxLength: true,
-                allowExponential: false
+                regex: /^[+\-]?(?:(?:0|[1-9]\d*)(?:[\.\,][0-9]\d*)?(?:[eE][+\-]?\d+)|(\d+[\.\,]?\d*)?)$/,
+                regexText: 'Keine Zahl'
             }
         }, {
             header: '< NWG',
@@ -114,14 +112,12 @@
             header: 'Nachweisgrenze',
             dataIndex: 'nwgZuMesswert',
             xtype: 'numbercolumn',
-            format: '0',
             flex: 1,
             editor: {
-                xtype: 'numberfield',
+                xtype: 'textfield',
                 allowBlank: false,
-                maxLength: 10,
-                enforceMaxLength: true,
-                allowExponential: false
+                regex: /^[+\-]?(?:(?:0|[1-9]\d*)(?:[\.\,][0-9]\d*)?(?:[eE][+\-]?\d+)|(\d+[\.\,]?\d*)?)$/,
+                regexText: 'Keine Zahl'
             }
         }, {
             header: 'Maßeinheit',

http://lada.wald.intevation.org