www/js/inv_fermentables.js

changeset 30
f5ab22446aa5
parent 18
395833e20f88
child 34
a720353fada9
equal deleted inserted replaced
29:a12d0a4d621e 30:f5ab22446aa5
198 }, 198 },
199 filterable: true, 199 filterable: true,
200 filtermode: 'excel', 200 filtermode: 'excel',
201 columns: [ 201 columns: [
202 { text: 'Vergistbaar product', datafield: 'name', width: 250 }, 202 { text: 'Vergistbaar product', datafield: 'name', width: 250 },
203 { text: 'Soort', datafield: 'type', width: 90 }, 203 { text: 'Soort', datafield: 'type', align: 'center', cellsalign: 'center', width: 90 },
204 { text: 'Mout type', datafield: 'graintype', width: 90 }, 204 { text: 'Mout type', datafield: 'graintype', align: 'center', cellsalign: 'center', width: 90 },
205 { text: 'Herkomst', datafield: 'origin', width: 150 }, 205 { text: 'Herkomst', datafield: 'origin', width: 150 },
206 { text: 'Producent', datafield: 'supplier', width: 150 }, 206 { text: 'Producent', datafield: 'supplier', width: 150 },
207 { text: 'Kleur', datafield: 'color', width: 70, cellsalign: 'right' }, 207 { text: 'Kleur', datafield: 'color', width: 70, align: 'right', cellsalign: 'right' },
208 { text: 'Opbrengst', datafield: 'yield', width: 70, cellsalign: 'right' }, 208 { text: 'Opbrengst', datafield: 'yield', width: 70, align: 'right', cellsalign: 'right', cellsformat: 'p1' },
209 { text: 'Inv.', datafield: 'inventory', width: 70, cellsalign: 'right' }, 209 { text: 'Vooraad', datafield: 'inventory', width: 70, align: 'right', cellsalign: 'right', cellsformat: 'f3' },
210 { text: 'Prijs', datafield: 'cost', width: 70, cellsalign: 'right', cellsformat: 'c2' }, 210 { text: 'Prijs', datafield: 'cost', width: 70, align: 'right', cellsalign: 'right', cellsformat: 'c2' },
211 { text: 'Edit', datafield: 'Edit', width: 120, columntype: 'button', cellsrenderer: function () { 211 { text: 'Edit', datafield: 'Edit', width: 120, align: 'center', columntype: 'button', cellsrenderer: function () {
212 return "Edit"; 212 return "Edit";
213 }, buttonclick: function (row) { 213 }, buttonclick: function (row) {
214 // open the popup window when the user clicks a button. 214 // open the popup window when the user clicks a button.
215 editrow = row; 215 editrow = row;
216 $("#popupWindow").jqxWindow({ position: { x: 230, y: 30 } }); 216 $("#popupWindow").jqxWindow({ position: { x: 230, y: 30 } });

mercurial