changeset 1094:677fc5e62055

Set and enforce max text length for stammdaten id values.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 10 May 2016 15:10:21 +0200
parents 4932f7abc8a8
children 14c130767e44 9bfbcad128a3
files app/view/grid/DatensatzErzeuger.js app/view/grid/MessprogrammKategorie.js app/view/grid/Probenehmer.js
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/grid/DatensatzErzeuger.js	Tue May 10 15:00:56 2016 +0200
+++ b/app/view/grid/DatensatzErzeuger.js	Tue May 10 15:10:21 2016 +0200
@@ -106,6 +106,8 @@
             dataIndex: 'daErzeugerId',
             editor: {
                 xtype: 'textfield',
+                maxLength: 2,
+                enforceMaxLength: true,
                 allowBlank: false
             }
         }, {
--- a/app/view/grid/MessprogrammKategorie.js	Tue May 10 15:00:56 2016 +0200
+++ b/app/view/grid/MessprogrammKategorie.js	Tue May 10 15:10:21 2016 +0200
@@ -107,6 +107,8 @@
             dataIndex: 'mplId',
             editor: {
                 xtype: 'textfield',
+                maxLength: 3,
+                enforceMaxLength: true,
                 allowBlank: false
             }
         }, {
--- a/app/view/grid/Probenehmer.js	Tue May 10 15:00:56 2016 +0200
+++ b/app/view/grid/Probenehmer.js	Tue May 10 15:10:21 2016 +0200
@@ -113,6 +113,8 @@
             dataIndex: 'prnId',
             editor: {
                 allowBlank: false,
+                maxLength: 9,
+                enforceMaxLength: true,
                 xtype: 'textfield'
             }
         }, {

http://lada.wald.intevation.org