comparison app/view/grid/Status.js @ 965:a2c2039bb5d9

Disabled StatusGrid Edit when StatusEdit ist false, Load StatuswerteStore differently, removed a bunch of trailing commas
author Dustin Demuth <dustin@intevation.de>
date Thu, 12 Nov 2015 14:25:07 +0100
parents 5b86baa038bc
children 50d7b6e17525
comparison
equal deleted inserted replaced
964:5b86baa038bc 965:a2c2039bb5d9
70 header: 'erstellt', 70 header: 'erstellt',
71 dataIndex: 'datum', 71 dataIndex: 'datum',
72 xtype: 'datecolumn', 72 xtype: 'datecolumn',
73 format: 'd.m.Y H:i', 73 format: 'd.m.Y H:i',
74 width: 110, 74 width: 110,
75 sortable: false, 75 sortable: false
76 }, { 76 }, {
77 header: 'Erzeuger', 77 header: 'Erzeuger',
78 dataIndex: 'erzeuger', 78 dataIndex: 'erzeuger',
79 renderer: function(value) { 79 renderer: function(value) {
80 var r = ''; 80 var r = '';
94 displayField: 'messStelle', 94 displayField: 'messStelle',
95 valueField: 'id', 95 valueField: 'id',
96 allowBlank: false, 96 allowBlank: false,
97 editable: false 97 editable: false
98 }, 98 },
99 sortable: false, 99 sortable: false
100 }, { 100 }, {
101 header: 'Stufe', 101 header: 'Stufe',
102 dataIndex: 'statusStufe', 102 dataIndex: 'statusStufe',
103 renderer: function(value) { 103 renderer: function(value) {
104 var sta = Ext.data.StoreManager.get('statusstufe'); 104 var sta = Ext.data.StoreManager.get('statusstufe');
110 if (item) { 110 if (item) {
111 r = item.get('stufe'); 111 r = item.get('stufe');
112 } 112 }
113 return r; 113 return r;
114 }, 114 },
115 sortable: false, 115 sortable: false
116 }, { 116 }, {
117 header: 'Status', 117 header: 'Status',
118 dataIndex: 'statusWert', 118 dataIndex: 'statusWert',
119 renderer: function(value) { 119 renderer: function(value) {
120 var sta = Ext.data.StoreManager.get('statuswerte'); 120 var sta = Ext.data.StoreManager.get('statuswerte');
135 displayField: 'wert', 135 displayField: 'wert',
136 valueField: 'id', 136 valueField: 'id',
137 allowBlank: false, 137 allowBlank: false,
138 editable: false 138 editable: false
139 }, 139 },
140 sortable: false, 140 sortable: false
141 }, { 141 }, {
142 header: 'Text', 142 header: 'Text',
143 dataIndex: 'text', 143 dataIndex: 'text',
144 flex: 1, 144 flex: 1,
145 editor: { 145 editor: {
146 allowBlank: true, 146 allowBlank: true,
147 maxLength: 1000, 147 maxLength: 1000,
148 enforceMaxLength: true 148 enforceMaxLength: true
149 }, 149 },
150 sortable: false, 150 sortable: false
151 }]; 151 }];
152 this.initData(); 152 this.initData();
153 this.callParent(arguments); 153 this.callParent(arguments);
154 this.setReadOnly(true); //Grid is always initialised as RO 154 this.setReadOnly(true); //Grid is always initialised as RO
155 }, 155 },

http://lada.wald.intevation.org