comparison app/view/grid/Probenzusatzwert.js @ 636:f4f76fc04e28

merged.
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 16 Mar 2015 17:32:15 +0100
parents f59bda7551d7
children 4a9bd2664da6
comparison
equal deleted inserted replaced
635:def8def373e8 636:f4f76fc04e28
47 }] 47 }]
48 }]; 48 }];
49 this.columns = [{ 49 this.columns = [{
50 header: 'PZW-ID', 50 header: 'PZW-ID',
51 dataIndex: 'id', 51 dataIndex: 'id',
52 width: 70 52 flex: 1,
53 }, { 53 }, {
54 header: 'PZW-Größe', 54 header: 'PZW-Größe',
55 dataIndex: 'pzsId', 55 dataIndex: 'pzsId',
56 flex: 1, 56 flex: 3,
57 renderer: function(value) { 57 renderer: function(value) {
58 if (!value || value === '') { 58 if (!value || value === '') {
59 return ''; 59 return '';
60 } 60 }
61 var store = Ext.data.StoreManager.get('probenzusaetze'); 61 var store = Ext.data.StoreManager.get('probenzusaetze');
70 allowBlank: false 70 allowBlank: false
71 } 71 }
72 }, { 72 }, {
73 header: 'Messwert', 73 header: 'Messwert',
74 dataIndex: 'messwertPzs', 74 dataIndex: 'messwertPzs',
75 width: 80, 75 xtype: 'numbercolumn',
76 renderer: function(value, meta, record) { 76 flex: 1,
77 var nwg = record.get('nwgZuMesswert');
78 if (value < nwg) {
79 return '<' + value;
80 }
81 return value;
82 },
83 editor: { 77 editor: {
78 xtype: 'numberfield',
84 allowBlank: false 79 allowBlank: false
85 } 80 }
86 }, { 81 }, {
87 header: 'Maßeinheit', 82 header: 'Maßeinheit',
88 dataIndex: 'pzsId', 83 dataIndex: 'pzsId',
89 width: 80, 84 flex: 1,
90 renderer: function(value) { 85 renderer: function(value) {
91 if (!value || value === '') { 86 if (!value || value === '') {
92 return ''; 87 return '';
93 } 88 }
94 var zstore = Ext.data.StoreManager.get('probenzusaetze'); 89 var zstore = Ext.data.StoreManager.get('probenzusaetze');
98 return record.get('einheit'); 93 return record.get('einheit');
99 } 94 }
100 }, { 95 }, {
101 header: 'Nachweisgrenze', 96 header: 'Nachweisgrenze',
102 dataIndex: 'nwgZuMesswert', 97 dataIndex: 'nwgZuMesswert',
103 width: 110, 98 xtype: 'numbercolumn',
99 format: '0',
100 flex: 1,
104 editor: { 101 editor: {
102 xtype: 'numberfield',
105 allowBlank: false 103 allowBlank: false
106 } 104 }
107 }, { 105 }, {
108 header: 'rel. Unsich.[%]', 106 header: 'rel. Unsich.[%]',
109 dataIndex: 'messfehler', 107 dataIndex: 'messfehler',
108 xtype: 'numbercolumn',
109 format: '0',
110 flex: 1,
110 editor: { 111 editor: {
112 xtype: 'numberfield',
111 allowBlank: false 113 allowBlank: false
114 }
115 }, {
116 header: '< NWG',
117 flex: 1,
118 renderer: function(value, meta, record) {
119 var nwg = record.get('nwgZuMesswert');
120 var mw = record.get('messwertPzs');
121 if ( mw < nwg) {
122 return 'MW < NWG';
123 }
124 return '';
112 } 125 }
113 }]; 126 }];
114 this.initData(); 127 this.initData();
115 this.callParent(arguments); 128 this.callParent(arguments);
116 }, 129 },

http://lada.wald.intevation.org