www/js/inv_hops.js

changeset 30
f5ab22446aa5
parent 19
057a6256bd7b
child 34
a720353fada9
equal deleted inserted replaced
29:a12d0a4d621e 30:f5ab22446aa5
189 }, 189 },
190 filterable: true, 190 filterable: true,
191 filtermode: 'excel', 191 filtermode: 'excel',
192 columns: [ 192 columns: [
193 { text: 'Hop Naam', datafield: 'name', width: 250 }, 193 { text: 'Hop Naam', datafield: 'name', width: 250 },
194 { text: 'Soort', datafield: 'type', width: 90 }, 194 { text: 'Soort', datafield: 'type', align: 'center', cellsalign: 'center', width: 90 },
195 { text: 'Vorm', datafield: 'form', width: 90 }, 195 { text: 'Vorm', datafield: 'form', align: 'center', cellsalign: 'center', width: 90 },
196 { text: 'Alpha %', datafield: 'alpha', width: 80, cellsalign: 'right', cellsformat: 'p1' }, 196 { text: 'Alpha %', datafield: 'alpha', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'p1' },
197 { text: 'Beta %', datafield: 'beta', width: 80, cellsalign: 'right', cellsformat: 'p1' }, 197 { text: 'Beta %', datafield: 'beta', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'p1' },
198 { text: 'Cohumuloon %%', datafield: 'cohumulone', width: 80, cellsalign: 'right', cellsformat: 'p1' }, 198 { text: 'Cohumuloon %%', datafield: 'cohumulone', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'p1' },
199 { text: 'HSI', datafield: 'hsi', width: 60, cellsalign: 'right', cellsformat: 'f1' }, 199 { text: 'HSI', datafield: 'hsi', width: 60, align: 'right', cellsalign: 'right', cellsformat: 'f1' },
200 { text: 'Herkomst', datafield: 'origin', width: 150 }, 200 { text: 'Herkomst', datafield: 'origin', align: 'center', cellsalign: 'center', width: 150 },
201 { text: 'Oogst datum', datafield: 'production_date', width: 100 }, 201 { text: 'Oogst datum', datafield: 'production_date', align: 'center', cellsalign: 'center', width: 100 },
202 { text: 'Voorraad', datafield: 'inventory', width: 70, cellsalign: 'right' }, 202 { text: 'Voor, gr.', datafield: 'inventory', width: 70, align: 'right', cellsalign: 'right', cellsformat: 'f1' },
203 { text: 'Prijs /kg', datafield: 'cost', width: 70, cellsalign: 'right', cellsformat: 'c2' }, 203 { text: 'Prijs /kg', datafield: 'cost', width: 70, align: 'right', cellsalign: 'right', cellsformat: 'c2' },
204 { text: 'Edit', datafield: 'Edit', columntype: 'button', cellsrenderer: function () { 204 { text: 'Edit', datafield: 'Edit', columntype: 'button', align: 'center', cellsrenderer: function () {
205 return "Edit"; 205 return "Edit";
206 }, buttonclick: function (row) { 206 }, buttonclick: function (row) {
207 // open the popup window when the user clicks a button. 207 // open the popup window when the user clicks a button.
208 editrow = row; 208 editrow = row;
209 $("#popupWindow").jqxWindow({ position: { x: 230, y: 30 } }); 209 $("#popupWindow").jqxWindow({ position: { x: 230, y: 30 } });

mercurial